Skip to content

Commit

Permalink
chore(release): v2.0.0-alpha.17
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Jun 14, 2023
1 parent a80ce0a commit 32e585d
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 21 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v2.0.0-alpha.17
`2023-06-14`

* :bug: fix: searchbar shape=round 效果差的问题 (#1109) @xiaoyatong
* :bug: fix: swipe 类型和文档优化 (#1122) @oasis-cloud
* 🛠 refactor: form (#1118) @oasis-cloud
* 📖 docs: 修改布局文档相关 @hanyuxinting
* 📖 docs: 文档走查及问题修复 (#1123) @xiaoyatong
* 📖 docs: 文档走查及问题修复-基础&布局组件(#1117) @Eiinu
* 📖 docs: 文档走查及问题修复-导航组件 (#1119) @xiaoyatong


# v2.0.0-alpha.16
`2023-06-09`

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-taro",
"version": "2.0.0-alpha.16",
"version": "2.0.0-alpha.17",
"style": "dist/style.css",
"main": "dist/nutui.react.umd.js",
"module": "dist/esm/nutui-react.es.js",
Expand Down
2 changes: 1 addition & 1 deletion src/packages/animatingnumbers/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default App

:::

## AnimatingNumbers.CountUp
## AnimatingNumbers

### Props

Expand Down
6 changes: 6 additions & 0 deletions src/packages/form/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,15 @@ const FormDemo = () => {
<Form.Item
label={translated.name}
name="username"
required
rules={[{ required: true, message: translated.nameTip }]}
>
<Input placeholder={translated.nameTip1} type="text" />
</Form.Item>
<Form.Item
label={translated.age}
name="age"
required
rules={[
{ required: true, message: translated.ageTip },
{ validator: customValidator, message: translated.ageTip2 },
Expand All @@ -351,13 +353,15 @@ const FormDemo = () => {
<Form.Item
label={translated.tel}
name="tel"
required
rules={[{ required: true, message: translated.telTip }]}
>
<Input placeholder={translated.telTip2} type="number" />
</Form.Item>
<Form.Item
label={translated.address}
name="address"
required
rules={[{ required: true, message: translated.addressTip }]}
>
<Input placeholder={translated.addressTip} type="text" />
Expand Down Expand Up @@ -389,6 +393,7 @@ const FormDemo = () => {
<Form.Item
label={translated.name}
name="username"
required
rules={[{ required: true, message: translated.nameTip }]}
initialValue="ZhangSan"
>
Expand All @@ -408,6 +413,7 @@ const FormDemo = () => {
<Form.Item
label={translated.name}
name="username"
required
rules={[{ required: true, message: translated.nameTip }]}
>
<Input placeholder={translated.nameTip1} type="text" />
Expand Down
6 changes: 6 additions & 0 deletions src/packages/form/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,15 @@ const FormDemo = () => {
<Form.Item
label={translated.name}
name="username"
required
rules={[{ required: true, message: translated.nameTip }]}
>
<Input placeholder={translated.nameTip1} type="text" />
</Form.Item>
<Form.Item
label={translated.age}
name="age"
required
rules={[
{ required: true, message: translated.ageTip },
{ validator: customValidator, message: translated.ageTip2 },
Expand All @@ -307,13 +309,15 @@ const FormDemo = () => {
<Form.Item
label={translated.tel}
name="tel"
required
rules={[{ required: true, message: translated.telTip }]}
>
<Input placeholder={translated.telTip2} type="number" />
</Form.Item>
<Form.Item
label={translated.address}
name="address"
required
rules={[{ required: true, message: translated.addressTip }]}
>
<Input placeholder={translated.addressTip} type="text" />
Expand Down Expand Up @@ -345,6 +349,7 @@ const FormDemo = () => {
<Form.Item
label={translated.name}
name="username"
required
rules={[{ required: true, message: translated.nameTip }]}
initialValue="ZhangSan"
>
Expand All @@ -364,6 +369,7 @@ const FormDemo = () => {
<Form.Item
label={translated.name}
name="username"
required
rules={[{ required: true, message: translated.nameTip }]}
>
<Input placeholder={translated.nameTip1} type="text" />
Expand Down
2 changes: 2 additions & 0 deletions src/packages/form/form.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import '../cellgroup/cellgroup.scss';
@import '../cell/cell.scss';
@import '../formitem/formitem.scss';

.form-layout-right .nut-form-item__label {
text-align: right;
Expand Down
4 changes: 3 additions & 1 deletion src/packages/form/useform.taro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class FormStore {
this.fieldEntities.push(field)
return () => {
this.fieldEntities = this.fieldEntities.filter((item) => item != field)
delete this.store[field.props.name]
if (this.store) {
delete this.store[field.props.name]
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/packages/form/useform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class FormStore {
this.fieldEntities.push(field)
return () => {
this.fieldEntities = this.fieldEntities.filter((item) => item != field)
delete this.store[field.props.name]
if (this.store) {
delete this.store[field.props.name]
}
}
}

Expand Down
14 changes: 0 additions & 14 deletions src/packages/formitem/formitem.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
@import '../cell/cell.scss';

.nut-theme-dark {
.nut-form-item {
&__body {
&__slots {
.nut-input-text {
color: $dark1;
}
}
}
}
}

.nut-form-item {
display: flex;

Expand Down
3 changes: 2 additions & 1 deletion src/packages/toast/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ export default App

## Toast

`Toast` only supports Imperative calls.

### Props

Expand All @@ -347,6 +346,8 @@ export default App
| closeOnOverlayClick | Whether to close when overlay is clicked | `boolean` | `false` |
| onClose | Callback function after close | `() => void` | `null` |

`Toast` only supports Imperative calls.

You can also pass in a string directly, and `Toast.show` will automatically use it as `content`.

### Ref
Expand Down
3 changes: 2 additions & 1 deletion src/packages/toast/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ export default App

## Toast

`Toast`只支持指令式调用

### Props

Expand All @@ -346,6 +345,8 @@ export default App
| closeOnOverlayClick | 是否在点击遮罩层后关闭提示 | `boolean` | `false` |
| onClose | 关闭时触发的事件 | `() => void` | `() => void` |

`Toast`只支持指令式调用

如果传入的参数是字符串类型,`Toast.show`会自动把它作为`content`

### Ref
Expand Down
3 changes: 2 additions & 1 deletion src/packages/toast/doc.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ export default App

## Toast

`Toast`只支持指令式調用

### Props

Expand All @@ -346,6 +345,8 @@ export default App
| closeOnOverlayClick | 是否在點擊遮罩層後關閉提示 | `boolean` | `false` |
| onClose | 關閉時觸發的事件 | `() => void` | `() => void` |

`Toast`只支持指令式調用

如果傳入的參數是字符串類型,`Toast.show`會自動把它作為`content`

### Ref
Expand Down

0 comments on commit 32e585d

Please sign in to comment.