Skip to content

Commit

Permalink
chore: v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Aug 24, 2022
1 parent f759803 commit d93a7a3
Show file tree
Hide file tree
Showing 27 changed files with 71 additions and 43 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## v1.3.0
`2022-08-24`

* :sparkles: chore: Taro support (#240) @xiaoyatong
* :sparkles: chore: support react18 (#224) @oasis-cloud
* :sparkles: chore: noticebar (#233) @vickyYe
* :sparkles: feat: add SideNavBar (#198) @mangov587
* :sparkles: feat: add Table (#185) @yangjinjun3
* :sparkles: feat: popover 功能补齐与单元测试 (#219) @yangxiaolu1993
* :sparkles: feat: notify 增加props+国际化文档 (#221) @vickyYe
* :sparkles: feat: icon 组件增加自定义字体新方案,增加 fontClassName 属性 (#232) @oasis-cloud
* :sparkles: feat: toast 组件props补齐+国际化,input组件issue问题修改 (#214) @vickyYe
* :sparkles: feat: shortpassword 优化demo,增加单元测试,增加国际化 (#222) @Drjingfubo
* :sparkles: feat: fixednav 单元测试 (#217) @Ymm0008
* :sparkles: feat: timeselect (#216) @shadow-Fiend
* :sparkles: feat: layout props补齐,单元测试 (#208) @Ymm0008
* :sparkles: feat: Address 组件功能补齐-添加默认选中项;单元测试添加 (#207) @yangxiaolu1993
* :sparkles: feat: popup 增加指定节点挂载与多层堆叠功能 (#197) @love_forever
* :sparkles: feat: Swiper 组件能力补齐,新增demo,添加国际化文档 (#196) @lkjh3214
* :bug: fix: checkbox 组件的全选 demo 无法高亮全选按钮 (#239) @oasis-cloud
* :bug: fix: 解决Picker滚动结束延迟触发事件问题 (#218) @yangxiaolu1993
* :bug: fix: radio 组件 demo 中自定义尺寸文案错误 (#231) @oasis-cloud
* :bug: fix: radio 组件 demo 中自定义图标展示错误 (#230) @oasis-cloud
* :bug: fix: checkbox 全选 demo 中的错误 (#229) @oasis-cloud
* :bug: fix: vite 构建 umd 文件时 banner 插入错误 @oasis-cloud
* :bug: fix: 修复Infiniteloading 组件 pullTxt、loadTxt 和 loadMoreTxt 参数无效 (#227) @junjun666
* :bug: fix: radio 组件选中后可以取消的问题 (#211) @oasis-cloud

## v1.2.2
`2022-08-10`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nutui/nutui-react",
"version": "1.2.3-beta.2",
"version": "1.3.0",
"style": "dist/style.css",
"main": "dist/nutui.react.umd.js",
"module": "dist/esm/nutui-react.es.js",
Expand Down
8 changes: 4 additions & 4 deletions src/packages/address/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const App = () => {
const onChange = (cal) => {
const name = address[cal.next]

if(cal.next == 'town') setNormal(false)
if(cal.next === 'town') setNormal(false)
}
const close = (val) => {
console.log(val)
Expand Down Expand Up @@ -535,7 +535,7 @@ const App = () => {
}
const close = (val) => {
setOther(false)
if (val.type == 'exist') {
if (val.type === 'exist') {
const { provinceName, cityName, countyName, townName, addressDetail } = val.data as AddressResult
if (provinceName) {
setText(provinceName + cityName + countyName + townName + addressDetail)
Expand All @@ -545,7 +545,7 @@ const App = () => {
}
}
const switchModule = (val) => {
if (val.type == 'custom') {
if (val.type === 'custom') {
console.log('点击了“选择其他地址”按钮')
} else {
console.log('点击了自定义地址左上角的返回按钮')
Expand Down Expand Up @@ -588,7 +588,7 @@ export default App;
| 字段 | 说明 | 类型 | 默认值 |
|----- | ----- | ----- | ----- |
| modelValue | 是否打开地址选择 | String | '' |
| modelSelect`v1.2.3` | 设置默认选中地址 | String\|Number[] | [] |
| modelSelect`v1.3.0` | 设置默认选中地址 | String\|Number[] | [] |
| type | 地址选择类型 exist/custom/custom2 | String | 'custom' |
| province | 省,每个省的对象中,必须有 name 字段,如果类型选择 custom2,必须指定 title 字段为首字母 | Array | [] |
| city | 市,每个市的对象中,必须有 name 字段,如果类型选择 custom2,必须指定 title 字段为首字母 | Array | [] |
Expand Down
6 changes: 3 additions & 3 deletions src/packages/cell/__test__/__snapshots__/cell.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`prop icon 1`] = `
class="nut-cell__icon"
>
<i
class="icon nutui-iconfont nut-icon nutui-icon nut-icon-my "
class="nutui-iconfont nut-icon nut-icon-my icon"
/>
</div>
<div
Expand All @@ -28,7 +28,7 @@ exports[`prop icon 1`] = `
张三
</div>
<i
class="nut-cell__link nutui-iconfont nut-icon nutui-icon nut-icon-right "
class="nutui-iconfont nut-icon nut-icon-right nut-cell__link"
/>
</div>
</div>
Expand All @@ -55,7 +55,7 @@ exports[`prop isLink 1`] = `
https://m.jd.com/
</div>
<i
class="nut-cell__link nutui-iconfont nut-icon nutui-icon nut-icon-right "
class="nutui-iconfont nut-icon nut-icon-right nut-cell__link"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`prop title desc subtitle 1`] = `
</div>
</div>
<i
class="nut-cell__link nutui-iconfont nut-icon nutui-icon nut-icon-right "
class="nutui-iconfont nut-icon nut-icon-right nut-cell__link"
/>
</div>
<div
Expand All @@ -52,7 +52,7 @@ exports[`prop title desc subtitle 1`] = `
https://jd.com
</div>
<i
class="nut-cell__link nutui-iconfont nut-icon nutui-icon nut-icon-right "
class="nutui-iconfont nut-icon nut-icon-right nut-cell__link"
/>
</div>
<div
Expand All @@ -69,7 +69,7 @@ exports[`prop title desc subtitle 1`] = `
</div>
</div>
<i
class="nut-cell__link nutui-iconfont nut-icon nutui-icon nut-icon-right "
class="nutui-iconfont nut-icon nut-icon-right nut-cell__link"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`should match snapshot 1`] = `
class="nut-checkbox nut-checkbox--reverse "
>
<i
class="nut-checkbox__icon nutui-iconfont nut-icon nut-icon-checked "
class="nutui-iconfont nut-icon nut-icon-checked nut-checkbox__icon"
style="font-size: 18px; width: 18px; height: 18px;"
/>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`should match snapshot 1`] = `
style="transform: translateY(-50%);"
>
<i
class=" nutui-iconfont nut-icon nutui-icon nut-icon-arrow-down "
class="nutui-iconfont nut-icon nut-icon-arrow-down "
style="color: rgb(153, 153, 153); font-size: 16px; width: 16px; height: 16px;"
/>
</div>
Expand Down Expand Up @@ -66,7 +66,7 @@ exports[`should match snapshot 1`] = `
style="transform: translateY(-50%);"
>
<i
class=" nutui-iconfont nut-icon nutui-icon nut-icon-arrow-down "
class="nutui-iconfont nut-icon nut-icon-arrow-down "
style="color: rgb(153, 153, 153); font-size: 16px; width: 16px; height: 16px;"
/>
</div>
Expand Down Expand Up @@ -105,7 +105,7 @@ exports[`should match snapshot 1`] = `
style="transform: translateY(-50%);"
>
<i
class=" nutui-iconfont nut-icon nutui-icon nut-icon-arrow-down "
class="nutui-iconfont nut-icon nut-icon-arrow-down "
style="color: rgb(194, 194, 194); font-size: 16px; width: 16px; height: 16px;"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`should icon snapshot match 1`] = `
<DocumentFragment>
<i
class="test nutui-iconfont nut-icon nutui-icon nut-icon-JD "
class="nutui-iconfont nut-icon nut-icon-JD test"
style="color: rgb(250, 44, 25); font-size: 24px; width: 24px; height: 24px;"
/>
</DocumentFragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`infiniteloading base 1`] = `
class="top-box"
>
<img
class="top-img nut-icon__img"
class="nut-icon__img top-img "
src="https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png"
/>
<span
Expand Down Expand Up @@ -46,7 +46,7 @@ exports[`pull base 1`] = `
class="top-box"
>
<img
class="top-img nut-icon__img"
class="nut-icon__img top-img "
src="https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png"
/>
<span
Expand Down Expand Up @@ -79,7 +79,7 @@ exports[`pull base 2`] = `
class="top-box"
>
<img
class="top-img nut-icon__img"
class="nut-icon__img top-img "
src="https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png"
/>
<span
Expand Down
4 changes: 2 additions & 2 deletions src/packages/layout/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ export default App;

| 字段 | 说明 | 回调参数 |
|----- | ----- | ----- |
| onClick`v1.2.3` | 点击时触发 | event: MouseEvent, type: 'row' | 'col' |
| onClick`v1.3.0` | 点击时触发 | event: MouseEvent, type: 'row' | 'col' |

### col events

| 字段 | 说明 | 回调参数 |
|----- | ----- | ----- |
| onClick`v1.2.3` | 点击时触发 | event: MouseEvent, type: 'row' | 'col' |
| onClick`v1.3.0` | 点击时触发 | event: MouseEvent, type: 'row' | 'col' |

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render placeholder element when using placeholder prop 1`] = `"<div class=\\"nut-navbar nut-navbar--fixed\\" style=\\"z-index: 10;\\"><div class=\\"nut-navbar__left\\"><i class=\\" nutui-iconfont nut-icon nutui-icon nut-icon-left \\" style=\\"color: rgb(151, 151, 151);\\"></i></div><div class=\\"nut-navbar__title\\"><div class=\\"title\\">订单详情</div></div><div class=\\"nut-navbar__right\\"></div></div>"`;
exports[`should render placeholder element when using placeholder prop 1`] = `"<div class=\\"nut-navbar nut-navbar--fixed\\" style=\\"z-index: 10;\\"><div class=\\"nut-navbar__left\\"><i class=\\"nutui-iconfont nut-icon nut-icon-left \\" style=\\"color: rgb(151, 151, 151);\\"></i></div><div class=\\"nut-navbar__title\\"><div class=\\"title\\">订单详情</div></div><div class=\\"nut-navbar__right\\"></div></div>"`;
2 changes: 1 addition & 1 deletion src/packages/noticebar/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default App
| delay | Delay time | String/Number | 1 |
| scrollable | Whether to scroll content | Boolean | true |
| speed | Scrolling speed (px/s) | Number | 50 |
| wrapable`new` | Whether to enable text wrap | Boolean | false |
| wrapable`v1.3.0` | Whether to enable text wrap | Boolean | false |

### Prop(direction=vertical)

Expand Down
2 changes: 1 addition & 1 deletion src/packages/noticebar/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default App
| delay | 延时多少秒 | String/Number | 1 |
| scrollable | 是否可以滚动 | Boolean | true |
| speed | 滚动速率 (px/s) | Number | 50 |
| wrapable `new` | 是否开启文本换行 | Boolean | false |
| wrapable `v1.3.0` | 是否开启文本换行 | Boolean | false |

### Prop(direction=vertical)

Expand Down
2 changes: 1 addition & 1 deletion src/packages/noticebar/doc.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default App
| delay | 延时多少秒 | String/Number | 1 |
| scrollable | 是否可以滚动 | Boolean | true |
| speed | 滚动速率 (px/s) | Number | 50 |
| wrapable `new` | 是否开启文本换行 | Boolean | false |
| wrapable `v1.3.0` | 是否开启文本换行 | Boolean | false |

### Prop(direction=vertical)

Expand Down
2 changes: 1 addition & 1 deletion src/packages/notify/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default App
| color | Font Color | String | - |
| background | Background color | String | - |
| className | Custom class name | String/Number | 1 |
| position `new` | Custom Position (top, bottom) | String | 'top' |
| position `v1.3.0` | Custom Position (top, bottom) | String | 'top' |

### Events

Expand Down
2 changes: 1 addition & 1 deletion src/packages/notify/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default App
| color | 字体颜色 | String ||
| background | 背景颜色 | String ||
| className | 自定义类名 | String/Number | 1 |
| position `new` | 自定义位置 (top, bottom) | String | 'top' |
| position `v1.3.0` | 自定义位置 (top, bottom) | String | 'top' |

### Events

Expand Down
2 changes: 1 addition & 1 deletion src/packages/notify/doc.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default App
| color | 字体颜色 | String ||
| background | 背景颜色 | String ||
| className | 自定义类名 | String/Number | 1 |
| position `new` | 自定义位置 (top, bottom) | String | 'top' |
| position `v1.3.0` | 自定义位置 (top, bottom) | String | 'top' |

### Events

Expand Down
2 changes: 1 addition & 1 deletion src/packages/picker/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export default App;
| listData | 列表数据 | Array | [] |
| defaultValueData | 默认选中 | Array | [] |
| threeDimensional`v1.2.2` | 是否开启3D效果 | Boolean | true |
| swipeDuration`v1.2.3` | 快速滑动时惯性滚动的时长,单位 ms | String \| Number | 1000 |
| swipeDuration`v1.3.0` | 快速滑动时惯性滚动的时长,单位 ms | String \| Number | 1000 |


## listData 数据结构
Expand Down
6 changes: 3 additions & 3 deletions src/packages/popover/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default App;
:::demo
```tsx
import React, { useState, useRef } from "react";
import { Popover,Button } from '@nutui/nutui-react';
import { Popover,Button, Icon } from '@nutui/nutui-react';

const App = () => {
const [customized, setCustomized] = useState(false)
Expand Down Expand Up @@ -169,7 +169,7 @@ left # 左侧中间位置
right # 右侧中间位置
bottom # 底部中间位置
```
`v1.2.3` 起新增
`v1.3.0` 起新增
```
top-start # 顶部左侧位置
top-end # 顶部右侧位置
Expand Down Expand Up @@ -224,7 +224,7 @@ export default App;
| visible | 是否展示气泡弹出层 | boolean | false |
| theme | 主题风格,可选值为 dark | string | `light` |
| location | 弹出位置 | string | `bottom` |
| offset `v1.2.3` | 出现位置的偏移量 | number | 20 |
| offset `v1.3.0` | 出现位置的偏移量 | number | 20 |

### List 数据结构

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render correct close icon when using close-icon prop 1`] = `"<i class=\\" nutui-iconfont nut-icon nutui-icon nut-icon-success \\" style=\\"font-size: 12px; width: 12px; height: 12px;\\"></i>"`;
exports[`should render correct close icon when using close-icon prop 1`] = `"<i class=\\"nutui-iconfont nut-icon nut-icon-success \\" style=\\"font-size: 12px; width: 12px; height: 12px;\\"></i>"`;
2 changes: 1 addition & 1 deletion src/packages/popup/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default App;
| closeIcon | 自定义 Icon | String | `"close"` |
| destroyOnClose | 组件销毁后是否关闭 | Boolean | `true` |
| round | 是否显示圆角 | Boolean | `false` |
| teleport`v1.2.3` | 指定节点挂载 | HTMLElement、(() => HTMLElement) 、null | `null` |
| teleport`v1.3.0` | 指定节点挂载 | HTMLElement、(() => HTMLElement) 、null | `null` |

### Events

Expand Down
2 changes: 1 addition & 1 deletion src/packages/swiper/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export default App;
| pageContent | 自定义指示器 | String \| React.ReactNode | - |
| isPreventDefault | 滑动过程中是否禁用默认事件 | Boolean | true |
| isStopPropagation | 滑动过程中是否禁止冒泡 | Boolean | true |
| isCenter`v1.2.3` | 是否居中展示,必须传对应的`width``height` | Boolean | false |
| isCenter`v1.3.0` | 是否居中展示,必须传对应的`width``height` | Boolean | false |



Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should render fixed element when using bottom prop 1`] = `"<div class=\\"nut-tabbar nut-tabbar__bottom nut-tabbar__safebottom \\"><div class=\\"nut-tabbar-item nut-tabbar-item--active\\"><div class=\\"nut-tabbar-item__icon-box\\"><div><i class=\\" nutui-iconfont nut-icon nutui-iconfont nut-icon-home \\" style=\\"font-size: 20px; width: 20px; height: 20px;\\"></i></div><div class=\\"nut-tabbar-item__icon-box nut-tabbar-item__icon-box--nav-word\\">首页</div></div></div><div class=\\"nut-tabbar-item\\"><div class=\\"nut-tabbar-item__icon-box\\"><div><i class=\\" nutui-iconfont nut-icon nutui-iconfont nut-icon-category \\" style=\\"font-size: 20px; width: 20px; height: 20px;\\"></i></div><div class=\\"nut-tabbar-item__icon-box nut-tabbar-item__icon-box--nav-word\\">分类</div></div></div></div>"`;
exports[`should render fixed element when using bottom prop 1`] = `"<div class=\\"nut-tabbar nut-tabbar__bottom nut-tabbar__safebottom \\"><div class=\\"nut-tabbar-item nut-tabbar-item--active\\"><div class=\\"nut-tabbar-item__icon-box\\"><div><i class=\\"nutui-iconfont nut-icon nut-icon-home \\" style=\\"font-size: 20px; width: 20px; height: 20px;\\"></i></div><div class=\\"nut-tabbar-item__icon-box nut-tabbar-item__icon-box--nav-word\\">首页</div></div></div><div class=\\"nut-tabbar-item\\"><div class=\\"nut-tabbar-item__icon-box\\"><div><i class=\\"nutui-iconfont nut-icon nut-icon-category \\" style=\\"font-size: 20px; width: 20px; height: 20px;\\"></i></div><div class=\\"nut-tabbar-item__icon-box nut-tabbar-item__icon-box--nav-word\\">分类</div></div></div></div>"`;
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ exports[`timeselect props test 1`] = `
class="nutui-popup__close-icon nutui-popup__close-icon--top-right"
>
<i
class=" nutui-iconfont nut-icon nutui-icon nut-icon-close "
class="nutui-iconfont nut-icon nut-icon-close "
style="font-size: 12px; width: 12px; height: 12px;"
/>
</div>
Expand Down
Loading

0 comments on commit d93a7a3

Please sign in to comment.