antd-mobile 5.8.0 → 5.8.1
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/2x/cjs/components/form/form-array.d.ts +1 -0
- package/2x/cjs/components/form/form-array.js +1 -1
- package/2x/es/components/form/form-array.d.ts +1 -0
- package/2x/es/components/form/form-array.js +1 -1
- package/2x/package.json +8 -8
- package/cjs/components/form/form-array.d.ts +1 -0
- package/cjs/components/form/form-array.js +1 -1
- package/es/components/form/form-array.d.ts +1 -0
- package/es/components/form/form-array.js +1 -1
- package/package.json +8 -8
- package/umd/antd-mobile.js +1 -1
|
@@ -13,6 +13,7 @@ export interface FormArrayProps {
|
|
|
13
13
|
name: string | number | (string | number)[];
|
|
14
14
|
initialValue?: any[];
|
|
15
15
|
renderHeader?: (field: FormArrayField, operation: FormArrayOperation) => ReactNode;
|
|
16
|
+
onAdd?: (operation: FormArrayOperation) => void;
|
|
16
17
|
renderAdd?: () => ReactNode;
|
|
17
18
|
children: (fields: FormArrayField[], operation: FormArrayOperation) => ReactElement[];
|
|
18
19
|
}
|
|
@@ -39,7 +39,7 @@ const FormArray = props => {
|
|
|
39
39
|
}, _react.default.createElement(_list.default.Item, {
|
|
40
40
|
className: 'adm-form-list-operation',
|
|
41
41
|
onClick: () => {
|
|
42
|
-
operation.add();
|
|
42
|
+
props.onAdd ? props.onAdd(operation) : operation.add();
|
|
43
43
|
},
|
|
44
44
|
arrow: false
|
|
45
45
|
}, props.renderAdd())));
|
|
@@ -13,6 +13,7 @@ export interface FormArrayProps {
|
|
|
13
13
|
name: string | number | (string | number)[];
|
|
14
14
|
initialValue?: any[];
|
|
15
15
|
renderHeader?: (field: FormArrayField, operation: FormArrayOperation) => ReactNode;
|
|
16
|
+
onAdd?: (operation: FormArrayOperation) => void;
|
|
16
17
|
renderAdd?: () => ReactNode;
|
|
17
18
|
children: (fields: FormArrayField[], operation: FormArrayOperation) => ReactElement[];
|
|
18
19
|
}
|
|
@@ -27,7 +27,7 @@ export const FormArray = props => {
|
|
|
27
27
|
}, React.createElement(List.Item, {
|
|
28
28
|
className: 'adm-form-list-operation',
|
|
29
29
|
onClick: () => {
|
|
30
|
-
operation.add();
|
|
30
|
+
props.onAdd ? props.onAdd(operation) : operation.add();
|
|
31
31
|
},
|
|
32
32
|
arrow: false
|
|
33
33
|
}, props.renderAdd())));
|
package/2x/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-mobile",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@floating-ui/dom": "^0.
|
|
6
|
-
"@react-spring/web": "^9.4.
|
|
5
|
+
"@floating-ui/dom": "^0.4.1",
|
|
6
|
+
"@react-spring/web": "^9.4.4",
|
|
7
7
|
"@types/resize-observer-browser": "^0.1.7",
|
|
8
|
-
"@use-gesture/react": "^10.2.
|
|
9
|
-
"ahooks": "^3.1.
|
|
8
|
+
"@use-gesture/react": "^10.2.10",
|
|
9
|
+
"ahooks": "^3.1.14",
|
|
10
10
|
"antd-mobile-icons": "^0.2.2",
|
|
11
11
|
"antd-mobile-v5-count": "^1.0.1",
|
|
12
12
|
"classnames": "^2.3.1",
|
|
13
|
-
"dayjs": "^1.
|
|
13
|
+
"dayjs": "^1.11.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"rc-field-form": "^1.
|
|
15
|
+
"rc-field-form": "^1.24.0",
|
|
16
16
|
"staged-components": "^1.1.2",
|
|
17
17
|
"tslib": "^2.3.1"
|
|
18
18
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"branch": "master",
|
|
40
40
|
"platform": "github"
|
|
41
41
|
},
|
|
42
|
-
"packageManager": "yarn@3.
|
|
42
|
+
"packageManager": "yarn@3.2.0"
|
|
43
43
|
}
|
|
@@ -13,6 +13,7 @@ export interface FormArrayProps {
|
|
|
13
13
|
name: string | number | (string | number)[];
|
|
14
14
|
initialValue?: any[];
|
|
15
15
|
renderHeader?: (field: FormArrayField, operation: FormArrayOperation) => ReactNode;
|
|
16
|
+
onAdd?: (operation: FormArrayOperation) => void;
|
|
16
17
|
renderAdd?: () => ReactNode;
|
|
17
18
|
children: (fields: FormArrayField[], operation: FormArrayOperation) => ReactElement[];
|
|
18
19
|
}
|
|
@@ -39,7 +39,7 @@ const FormArray = props => {
|
|
|
39
39
|
}, _react.default.createElement(_list.default.Item, {
|
|
40
40
|
className: 'adm-form-list-operation',
|
|
41
41
|
onClick: () => {
|
|
42
|
-
operation.add();
|
|
42
|
+
props.onAdd ? props.onAdd(operation) : operation.add();
|
|
43
43
|
},
|
|
44
44
|
arrow: false
|
|
45
45
|
}, props.renderAdd())));
|
|
@@ -13,6 +13,7 @@ export interface FormArrayProps {
|
|
|
13
13
|
name: string | number | (string | number)[];
|
|
14
14
|
initialValue?: any[];
|
|
15
15
|
renderHeader?: (field: FormArrayField, operation: FormArrayOperation) => ReactNode;
|
|
16
|
+
onAdd?: (operation: FormArrayOperation) => void;
|
|
16
17
|
renderAdd?: () => ReactNode;
|
|
17
18
|
children: (fields: FormArrayField[], operation: FormArrayOperation) => ReactElement[];
|
|
18
19
|
}
|
|
@@ -27,7 +27,7 @@ export const FormArray = props => {
|
|
|
27
27
|
}, React.createElement(List.Item, {
|
|
28
28
|
className: 'adm-form-list-operation',
|
|
29
29
|
onClick: () => {
|
|
30
|
-
operation.add();
|
|
30
|
+
props.onAdd ? props.onAdd(operation) : operation.add();
|
|
31
31
|
},
|
|
32
32
|
arrow: false
|
|
33
33
|
}, props.renderAdd())));
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-mobile",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@floating-ui/dom": "^0.
|
|
6
|
-
"@react-spring/web": "^9.4.
|
|
5
|
+
"@floating-ui/dom": "^0.4.1",
|
|
6
|
+
"@react-spring/web": "^9.4.4",
|
|
7
7
|
"@types/resize-observer-browser": "^0.1.7",
|
|
8
|
-
"@use-gesture/react": "^10.2.
|
|
9
|
-
"ahooks": "^3.1.
|
|
8
|
+
"@use-gesture/react": "^10.2.10",
|
|
9
|
+
"ahooks": "^3.1.14",
|
|
10
10
|
"antd-mobile-icons": "^0.2.2",
|
|
11
11
|
"antd-mobile-v5-count": "^1.0.1",
|
|
12
12
|
"classnames": "^2.3.1",
|
|
13
|
-
"dayjs": "^1.
|
|
13
|
+
"dayjs": "^1.11.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"rc-field-form": "^1.
|
|
15
|
+
"rc-field-form": "^1.24.0",
|
|
16
16
|
"staged-components": "^1.1.2",
|
|
17
17
|
"tslib": "^2.3.1"
|
|
18
18
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"branch": "master",
|
|
40
40
|
"platform": "github"
|
|
41
41
|
},
|
|
42
|
-
"packageManager": "yarn@3.
|
|
42
|
+
"packageManager": "yarn@3.2.0"
|
|
43
43
|
}
|