From 32e585d75c4d0f21e207762b52dc19301a686183 Mon Sep 17 00:00:00 2001 From: oasis-cloud Date: Wed, 14 Jun 2023 16:42:01 +0800 Subject: [PATCH] chore(release): v2.0.0-alpha.17 --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- src/packages/animatingnumbers/doc.taro.md | 2 +- src/packages/form/demo.taro.tsx | 6 ++++++ src/packages/form/demo.tsx | 6 ++++++ src/packages/form/form.scss | 2 ++ src/packages/form/useform.taro.ts | 4 +++- src/packages/form/useform.ts | 4 +++- src/packages/formitem/formitem.scss | 14 -------------- src/packages/toast/doc.en-US.md | 3 ++- src/packages/toast/doc.md | 3 ++- src/packages/toast/doc.zh-TW.md | 3 ++- 12 files changed, 40 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1425e289b1..cdf686eaa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/package.json b/package.json index ffee7ab9b9..809d56bc74 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/packages/animatingnumbers/doc.taro.md b/src/packages/animatingnumbers/doc.taro.md index 0b89cb98eb..0df33401ed 100644 --- a/src/packages/animatingnumbers/doc.taro.md +++ b/src/packages/animatingnumbers/doc.taro.md @@ -61,7 +61,7 @@ export default App ::: -## AnimatingNumbers.CountUp +## AnimatingNumbers ### Props diff --git a/src/packages/form/demo.taro.tsx b/src/packages/form/demo.taro.tsx index ba9846efd1..0beaa60404 100644 --- a/src/packages/form/demo.taro.tsx +++ b/src/packages/form/demo.taro.tsx @@ -333,6 +333,7 @@ const FormDemo = () => { @@ -340,6 +341,7 @@ const FormDemo = () => { { @@ -358,6 +361,7 @@ const FormDemo = () => { @@ -389,6 +393,7 @@ const FormDemo = () => { @@ -408,6 +413,7 @@ const FormDemo = () => { diff --git a/src/packages/form/demo.tsx b/src/packages/form/demo.tsx index 3485723ba3..f2d179d4b3 100644 --- a/src/packages/form/demo.tsx +++ b/src/packages/form/demo.tsx @@ -289,6 +289,7 @@ const FormDemo = () => { @@ -296,6 +297,7 @@ const FormDemo = () => { { @@ -314,6 +317,7 @@ const FormDemo = () => { @@ -345,6 +349,7 @@ const FormDemo = () => { @@ -364,6 +369,7 @@ const FormDemo = () => { diff --git a/src/packages/form/form.scss b/src/packages/form/form.scss index 4a81fba460..7867d381f7 100644 --- a/src/packages/form/form.scss +++ b/src/packages/form/form.scss @@ -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; diff --git a/src/packages/form/useform.taro.ts b/src/packages/form/useform.taro.ts index dd59a3df8b..9edee2298f 100644 --- a/src/packages/form/useform.taro.ts +++ b/src/packages/form/useform.taro.ts @@ -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] + } } } diff --git a/src/packages/form/useform.ts b/src/packages/form/useform.ts index dd59a3df8b..9edee2298f 100644 --- a/src/packages/form/useform.ts +++ b/src/packages/form/useform.ts @@ -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] + } } } diff --git a/src/packages/formitem/formitem.scss b/src/packages/formitem/formitem.scss index b09982b927..5121096800 100644 --- a/src/packages/formitem/formitem.scss +++ b/src/packages/formitem/formitem.scss @@ -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; diff --git a/src/packages/toast/doc.en-US.md b/src/packages/toast/doc.en-US.md index 518c0284c5..702a6519e6 100644 --- a/src/packages/toast/doc.en-US.md +++ b/src/packages/toast/doc.en-US.md @@ -330,7 +330,6 @@ export default App ## Toast -`Toast` only supports Imperative calls. ### Props @@ -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 diff --git a/src/packages/toast/doc.md b/src/packages/toast/doc.md index a05cca5a0e..f0062dc8ae 100644 --- a/src/packages/toast/doc.md +++ b/src/packages/toast/doc.md @@ -329,7 +329,6 @@ export default App ## Toast -`Toast`只支持指令式调用 ### Props @@ -346,6 +345,8 @@ export default App | closeOnOverlayClick | 是否在点击遮罩层后关闭提示 | `boolean` | `false` | | onClose | 关闭时触发的事件 | `() => void` | `() => void` | +`Toast`只支持指令式调用 + 如果传入的参数是字符串类型,`Toast.show`会自动把它作为`content` ### Ref diff --git a/src/packages/toast/doc.zh-TW.md b/src/packages/toast/doc.zh-TW.md index 4391367fb5..da1cedba36 100644 --- a/src/packages/toast/doc.zh-TW.md +++ b/src/packages/toast/doc.zh-TW.md @@ -329,7 +329,6 @@ export default App ## Toast -`Toast`只支持指令式調用 ### Props @@ -346,6 +345,8 @@ export default App | closeOnOverlayClick | 是否在點擊遮罩層後關閉提示 | `boolean` | `false` | | onClose | 關閉時觸發的事件 | `() => void` | `() => void` | +`Toast`只支持指令式調用 + 如果傳入的參數是字符串類型,`Toast.show`會自動把它作為`content` ### Ref