wargerm 0.7.19 → 0.7.21
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/dist/components/WForm/index.d.ts +1 -1
- package/dist/index.esm.js +5 -4
- package/dist/index.js +5 -4
- package/package.json +90 -90
@@ -60,7 +60,7 @@ export interface WFormProps extends FormProps {
|
|
60
60
|
setForm?: (form: any) => void;
|
61
61
|
onSubmit?: (params: Record<string, any>) => void;
|
62
62
|
onFormChange?: (changedValues: Record<string, any>, allValues: Record<string, any>, form: any) => void;
|
63
|
-
onReset?: () => void;
|
63
|
+
onReset?: (value?: any) => void;
|
64
64
|
formRef?: MutableRefObject<FormInstance>;
|
65
65
|
search?: Isearch | false;
|
66
66
|
disabledRuler?: boolean;
|
package/dist/index.esm.js
CHANGED
@@ -4174,8 +4174,9 @@ var WForm = function WForm(props, ref) {
|
|
4174
4174
|
var handleRest = function handleRest() {
|
4175
4175
|
var _form$resetFields;
|
4176
4176
|
|
4177
|
-
onReset && onReset();
|
4178
4177
|
form === null || form === void 0 ? void 0 : (_form$resetFields = form.resetFields) === null || _form$resetFields === void 0 ? void 0 : _form$resetFields.call(form);
|
4178
|
+
var values = form.getFieldsValue();
|
4179
|
+
onReset && onReset(filterObj(values));
|
4179
4180
|
};
|
4180
4181
|
|
4181
4182
|
var setFieldsValue = function setFieldsValue(record) {
|
@@ -7537,11 +7538,11 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7537
7538
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : _actionRef$current6.reload(true);
|
7538
7539
|
};
|
7539
7540
|
|
7540
|
-
var onReset = function onReset() {
|
7541
|
+
var onReset = function onReset(values) {
|
7541
7542
|
var _actionRef$current7;
|
7542
7543
|
|
7543
7544
|
(searchFormConfig === null || searchFormConfig === void 0 ? void 0 : searchFormConfig.onReset) && searchFormConfig.onReset();
|
7544
|
-
formSearchRef.current = {};
|
7545
|
+
formSearchRef.current = _objectSpread2({}, values);
|
7545
7546
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : _actionRef$current7.reload(true);
|
7546
7547
|
};
|
7547
7548
|
|
@@ -7752,7 +7753,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7752
7753
|
align: 'center',
|
7753
7754
|
render: function render(_, record, index) {
|
7754
7755
|
return /*#__PURE__*/React.createElement("div", {
|
7755
|
-
className: "flex w100p jc-
|
7756
|
+
className: "flex w100p jc-sa ai-c"
|
7756
7757
|
}, tableActionDom(record, index));
|
7757
7758
|
}
|
7758
7759
|
}, optionColumnConfig)]).map(function (item) {
|
package/dist/index.js
CHANGED
@@ -4218,8 +4218,9 @@ var WForm = function WForm(props, ref) {
|
|
4218
4218
|
var handleRest = function handleRest() {
|
4219
4219
|
var _form$resetFields;
|
4220
4220
|
|
4221
|
-
onReset && onReset();
|
4222
4221
|
form === null || form === void 0 ? void 0 : (_form$resetFields = form.resetFields) === null || _form$resetFields === void 0 ? void 0 : _form$resetFields.call(form);
|
4222
|
+
var values = form.getFieldsValue();
|
4223
|
+
onReset && onReset(filterObj(values));
|
4223
4224
|
};
|
4224
4225
|
|
4225
4226
|
var setFieldsValue = function setFieldsValue(record) {
|
@@ -7581,11 +7582,11 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7581
7582
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : _actionRef$current6.reload(true);
|
7582
7583
|
};
|
7583
7584
|
|
7584
|
-
var onReset = function onReset() {
|
7585
|
+
var onReset = function onReset(values) {
|
7585
7586
|
var _actionRef$current7;
|
7586
7587
|
|
7587
7588
|
(searchFormConfig === null || searchFormConfig === void 0 ? void 0 : searchFormConfig.onReset) && searchFormConfig.onReset();
|
7588
|
-
formSearchRef.current = {};
|
7589
|
+
formSearchRef.current = _objectSpread2({}, values);
|
7589
7590
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : _actionRef$current7.reload(true);
|
7590
7591
|
};
|
7591
7592
|
|
@@ -7796,7 +7797,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7796
7797
|
align: 'center',
|
7797
7798
|
render: function render(_, record, index) {
|
7798
7799
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
7799
|
-
className: "flex w100p jc-
|
7800
|
+
className: "flex w100p jc-sa ai-c"
|
7800
7801
|
}, tableActionDom(record, index));
|
7801
7802
|
}
|
7802
7803
|
}, optionColumnConfig)]).map(function (item) {
|
package/package.json
CHANGED
@@ -1,91 +1,91 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.7.
|
5
|
-
"scripts": {
|
6
|
-
"dev": "dumi dev",
|
7
|
-
"docs:build": "dumi build",
|
8
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
-
"build": "father-build",
|
10
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
-
"release": "npm run build && npm publish",
|
12
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
-
"test": "umi-test",
|
14
|
-
"test:coverage": "umi-test --coverage"
|
15
|
-
},
|
16
|
-
"main": "dist/index.js",
|
17
|
-
"module": "dist/index.esm.js",
|
18
|
-
"unpkg": "dist/index.umd.min.js",
|
19
|
-
"typings": "dist/index.d.ts",
|
20
|
-
"author": "jinly2",
|
21
|
-
"license": "MIT",
|
22
|
-
"keywords": [
|
23
|
-
"React",
|
24
|
-
"Component"
|
25
|
-
],
|
26
|
-
"gitHooks": {
|
27
|
-
"pre-commit": "lint-staged"
|
28
|
-
},
|
29
|
-
"repository": {
|
30
|
-
"type": "git",
|
31
|
-
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
-
"branch": "main"
|
33
|
-
},
|
34
|
-
"files": [
|
35
|
-
"dist",
|
36
|
-
"es",
|
37
|
-
"lib",
|
38
|
-
"index.css"
|
39
|
-
],
|
40
|
-
"lint-staged": {
|
41
|
-
"*.{js,jsx,less,md,json}": [
|
42
|
-
"prettier --write"
|
43
|
-
],
|
44
|
-
"*.ts?(x)": [
|
45
|
-
"prettier --parser=typescript --write"
|
46
|
-
]
|
47
|
-
},
|
48
|
-
"dependencies": {
|
49
|
-
"@ant-design/pro-table": "^3.3.1",
|
50
|
-
"animate.css": "^4.1.1",
|
51
|
-
"dayjs": "^1.11.7",
|
52
|
-
"echarts": "^5.2.2",
|
53
|
-
"echarts-for-react": "^3.0.2",
|
54
|
-
"lodash-es": "^4.17.21",
|
55
|
-
"react-countup": "^6.0.0",
|
56
|
-
"react-dom": "^17.0.2",
|
57
|
-
"react-file-viewer": "^1.2.1",
|
58
|
-
"swiper": "^6.7.0",
|
59
|
-
"use-sync-external-store": "^1.2.0",
|
60
|
-
"xgplayer": "^2.31.6",
|
61
|
-
"xgplayer-flv": "^2.5.1",
|
62
|
-
"xgplayer-flv.js": "^2.3.0",
|
63
|
-
"xgplayer-hls": "^2.5.2",
|
64
|
-
"xgplayer-hls.js": "^2.6.1"
|
65
|
-
},
|
66
|
-
"peerDependencies": {
|
67
|
-
"@ant-design/icons": ">=4.2.0",
|
68
|
-
"antd": ">=4.7.0",
|
69
|
-
"classnames": ">=2.2.0",
|
70
|
-
"echarts": "^5.2.2",
|
71
|
-
"echarts-for-react": "^3.0.2",
|
72
|
-
"lodash-es": ">=4.17.21",
|
73
|
-
"react": ">=17.0.0"
|
74
|
-
},
|
75
|
-
"devDependencies": {
|
76
|
-
"@ant-design/icons": "^4.6.4",
|
77
|
-
"@types/lodash-es": "^4.17.6",
|
78
|
-
"@types/react-dom": "^17.0.11",
|
79
|
-
"@types/use-sync-external-store": "^0.0.3",
|
80
|
-
"@umijs/test": "^3.0.5",
|
81
|
-
"antd": "^5.2.2",
|
82
|
-
"classnames": "^2.3.1",
|
83
|
-
"dumi": "^1.1.31",
|
84
|
-
"father-build": "^1.19.1",
|
85
|
-
"gh-pages": "^3.0.0",
|
86
|
-
"lint-staged": "^10.0.7",
|
87
|
-
"prettier": "^1.19.1",
|
88
|
-
"react": "^16.12.0",
|
89
|
-
"yorkie": "^2.0.0"
|
90
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.7.21",
|
5
|
+
"scripts": {
|
6
|
+
"dev": "dumi dev",
|
7
|
+
"docs:build": "dumi build",
|
8
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
+
"build": "father-build",
|
10
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
+
"release": "npm run build && npm publish",
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
+
"test": "umi-test",
|
14
|
+
"test:coverage": "umi-test --coverage"
|
15
|
+
},
|
16
|
+
"main": "dist/index.js",
|
17
|
+
"module": "dist/index.esm.js",
|
18
|
+
"unpkg": "dist/index.umd.min.js",
|
19
|
+
"typings": "dist/index.d.ts",
|
20
|
+
"author": "jinly2",
|
21
|
+
"license": "MIT",
|
22
|
+
"keywords": [
|
23
|
+
"React",
|
24
|
+
"Component"
|
25
|
+
],
|
26
|
+
"gitHooks": {
|
27
|
+
"pre-commit": "lint-staged"
|
28
|
+
},
|
29
|
+
"repository": {
|
30
|
+
"type": "git",
|
31
|
+
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
+
"branch": "main"
|
33
|
+
},
|
34
|
+
"files": [
|
35
|
+
"dist",
|
36
|
+
"es",
|
37
|
+
"lib",
|
38
|
+
"index.css"
|
39
|
+
],
|
40
|
+
"lint-staged": {
|
41
|
+
"*.{js,jsx,less,md,json}": [
|
42
|
+
"prettier --write"
|
43
|
+
],
|
44
|
+
"*.ts?(x)": [
|
45
|
+
"prettier --parser=typescript --write"
|
46
|
+
]
|
47
|
+
},
|
48
|
+
"dependencies": {
|
49
|
+
"@ant-design/pro-table": "^3.3.1",
|
50
|
+
"animate.css": "^4.1.1",
|
51
|
+
"dayjs": "^1.11.7",
|
52
|
+
"echarts": "^5.2.2",
|
53
|
+
"echarts-for-react": "^3.0.2",
|
54
|
+
"lodash-es": "^4.17.21",
|
55
|
+
"react-countup": "^6.0.0",
|
56
|
+
"react-dom": "^17.0.2",
|
57
|
+
"react-file-viewer": "^1.2.1",
|
58
|
+
"swiper": "^6.7.0",
|
59
|
+
"use-sync-external-store": "^1.2.0",
|
60
|
+
"xgplayer": "^2.31.6",
|
61
|
+
"xgplayer-flv": "^2.5.1",
|
62
|
+
"xgplayer-flv.js": "^2.3.0",
|
63
|
+
"xgplayer-hls": "^2.5.2",
|
64
|
+
"xgplayer-hls.js": "^2.6.1"
|
65
|
+
},
|
66
|
+
"peerDependencies": {
|
67
|
+
"@ant-design/icons": ">=4.2.0",
|
68
|
+
"antd": ">=4.7.0",
|
69
|
+
"classnames": ">=2.2.0",
|
70
|
+
"echarts": "^5.2.2",
|
71
|
+
"echarts-for-react": "^3.0.2",
|
72
|
+
"lodash-es": ">=4.17.21",
|
73
|
+
"react": ">=17.0.0"
|
74
|
+
},
|
75
|
+
"devDependencies": {
|
76
|
+
"@ant-design/icons": "^4.6.4",
|
77
|
+
"@types/lodash-es": "^4.17.6",
|
78
|
+
"@types/react-dom": "^17.0.11",
|
79
|
+
"@types/use-sync-external-store": "^0.0.3",
|
80
|
+
"@umijs/test": "^3.0.5",
|
81
|
+
"antd": "^5.2.2",
|
82
|
+
"classnames": "^2.3.1",
|
83
|
+
"dumi": "^1.1.31",
|
84
|
+
"father-build": "^1.19.1",
|
85
|
+
"gh-pages": "^3.0.0",
|
86
|
+
"lint-staged": "^10.0.7",
|
87
|
+
"prettier": "^1.19.1",
|
88
|
+
"react": "^16.12.0",
|
89
|
+
"yorkie": "^2.0.0"
|
90
|
+
}
|
91
91
|
}
|