@fairys/taro-tools-simple-form 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
FairysTaroMainPageSearch,
|
|
98
98
|
FairysTaroMainPageBody,
|
|
99
99
|
FairysTaroMainPageFooter,
|
|
100
|
-
|
|
100
|
+
globalMessageDataInstance,
|
|
101
101
|
} from '@fairys/taro-tools-react';
|
|
102
102
|
import { Button } from '@nutui/nutui-react-taro';
|
|
103
103
|
import { FairysTaroSimpleForm } from '@fairys/taro-tools-simple-form';
|
|
@@ -110,13 +110,13 @@ function Index() {
|
|
|
110
110
|
.validate()
|
|
111
111
|
.then((values) => {
|
|
112
112
|
console.log(values);
|
|
113
|
-
|
|
113
|
+
globalMessageDataInstance.showMessage({
|
|
114
114
|
type: 'success',
|
|
115
115
|
content: '表单成功',
|
|
116
116
|
});
|
|
117
117
|
})
|
|
118
118
|
.catch((error) => {
|
|
119
|
-
|
|
119
|
+
globalMessageDataInstance.showMessage({
|
|
120
120
|
type: 'error',
|
|
121
121
|
content: error.message || '表单校验失败',
|
|
122
122
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "SunLxy <1011771396@qq.com>",
|
|
4
4
|
"description": "框架组件库",
|
|
5
5
|
"homepage": "https://github.com/autumn-fairy-tales/fairys-taro-react",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.16",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"types": "esm/index.d.ts",
|
|
9
9
|
"module": "esm/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@carefrees/form-utils-react-taro": "^0.0.18",
|
|
29
|
-
"@fairys/taro-tools-simple-form-ui": "^1.0.
|
|
29
|
+
"@fairys/taro-tools-simple-form-ui": "^1.0.16",
|
|
30
30
|
"@nutui/nutui-react-taro": "^3.0.18",
|
|
31
31
|
"clsx": "2.1.1",
|
|
32
32
|
"valtio": "~2.1.5"
|