wargerm 0.4.28 → 0.4.31
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/Card/index.d.ts +1 -0
- package/dist/index.esm.js +16 -6
- package/dist/index.js +16 -6
- package/package.json +88 -88
package/dist/index.esm.js
CHANGED
@@ -7204,6 +7204,7 @@ var WForm = function WForm(props, ref) {
|
|
7204
7204
|
}
|
7205
7205
|
|
7206
7206
|
var baseitem = c.renderFormItem(c, _objectSpread2(_objectSpread2({}, c), {}, {
|
7207
|
+
disabled: disabled,
|
7207
7208
|
formItemProps: c.formItemProps,
|
7208
7209
|
fieldProps: c.fieldProps,
|
7209
7210
|
columnsFields: columnsFields // columnsFieldsRef,
|
@@ -7709,6 +7710,7 @@ var WForm = function WForm(props, ref) {
|
|
7709
7710
|
}
|
7710
7711
|
|
7711
7712
|
var baseitem = c.renderFormItem(c, _objectSpread2(_objectSpread2({}, c), {}, {
|
7713
|
+
disabled: disabled,
|
7712
7714
|
formItemProps: c.formItemProps,
|
7713
7715
|
fieldProps: c.fieldProps,
|
7714
7716
|
columnsFields: columnsFields // columnsFieldsRef,
|
@@ -9606,7 +9608,7 @@ var Index$b = function Index(_ref) {
|
|
9606
9608
|
var _excluded$d = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
|
9607
9609
|
|
9608
9610
|
var Index$c = function Index(_ref, ref) {
|
9609
|
-
var _classNames;
|
9611
|
+
var _classNames, _sliderTabs$component;
|
9610
9612
|
|
9611
9613
|
var title = _ref.title,
|
9612
9614
|
_ref$className = _ref.className,
|
@@ -9641,14 +9643,15 @@ var Index$c = function Index(_ref, ref) {
|
|
9641
9643
|
className: "dot"
|
9642
9644
|
}), title), headerCenter, headerTail) : null, /*#__PURE__*/React.createElement("div", {
|
9643
9645
|
className: "body"
|
9644
|
-
}, sliderTabs ? sliderTabs.components[activeTab]
|
9646
|
+
}, (sliderTabs === null || sliderTabs === void 0 ? void 0 : (_sliderTabs$component = sliderTabs.components) === null || _sliderTabs$component === void 0 ? void 0 : _sliderTabs$component[activeTab]) || props.children)), sliderTabs && /*#__PURE__*/React.createElement("div", {
|
9645
9647
|
className: "sliderTabs ".concat(sliderTabs.direction == 'left' ? "left ".concat(sliderTabs.className || '') : "right ".concat(sliderTabs.className || ''))
|
9646
9648
|
}, sliderTabs.tabs.map(function (item, index) {
|
9647
9649
|
return /*#__PURE__*/React.createElement("div", {
|
9648
9650
|
className: "tab ".concat(index == activeTab ? 'active' : '', " ").concat(sliderTabs.tabClassName || '', " ").concat(sliderTabs.activeTabClassName || '')
|
9649
9651
|
}, /*#__PURE__*/React.createElement("span", {
|
9650
9652
|
onClick: function onClick() {
|
9651
|
-
|
9653
|
+
setActiveTab(index);
|
9654
|
+
sliderTabs.onChange && (sliderTabs === null || sliderTabs === void 0 ? void 0 : sliderTabs.onChange(index));
|
9652
9655
|
}
|
9653
9656
|
}, item));
|
9654
9657
|
}))));
|
@@ -10320,7 +10323,7 @@ Modal$1.hidden = function () {
|
|
10320
10323
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
10321
10324
|
};
|
10322
10325
|
|
10323
|
-
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
10326
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
10324
10327
|
|
10325
10328
|
var ModalForm = function ModalForm(props, ref) {
|
10326
10329
|
var columns = props.columns,
|
@@ -10334,6 +10337,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10334
10337
|
title = props.title,
|
10335
10338
|
record = props.record,
|
10336
10339
|
onFormChange = props.onFormChange,
|
10340
|
+
formItemChild = props.formItemChild,
|
10337
10341
|
extraProps = _objectWithoutProperties(props, _excluded$g);
|
10338
10342
|
|
10339
10343
|
var formRef = useRef(null);
|
@@ -10460,7 +10464,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10460
10464
|
search: search,
|
10461
10465
|
columns: columns,
|
10462
10466
|
extraColumns: extraColumns
|
10463
|
-
}));
|
10467
|
+
}), title == '查看' && formItemChild ? formItemChild() : null);
|
10464
10468
|
};
|
10465
10469
|
|
10466
10470
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
@@ -10540,7 +10544,12 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10540
10544
|
|
10541
10545
|
return modalOnOk;
|
10542
10546
|
}(),
|
10543
|
-
index: index
|
10547
|
+
index: index,
|
10548
|
+
formItemChild: function formItemChild() {
|
10549
|
+
var _item$formItemChild;
|
10550
|
+
|
10551
|
+
return item === null || item === void 0 ? void 0 : (_item$formItemChild = item.formItemChild) === null || _item$formItemChild === void 0 ? void 0 : _item$formItemChild.call(item, record, actionRef, index);
|
10552
|
+
}
|
10544
10553
|
});
|
10545
10554
|
},
|
10546
10555
|
edit: function edit(item, record, index) {
|
@@ -10852,6 +10861,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10852
10861
|
title: modalFormConfig.type || '新增',
|
10853
10862
|
visible: visible,
|
10854
10863
|
record: modalFormConfig.record,
|
10864
|
+
formItemChild: modalFormConfig.formItemChild,
|
10855
10865
|
disabled: modalFormConfig.type == '查看',
|
10856
10866
|
setVisible: setVisible,
|
10857
10867
|
submitMethod: function () {
|
package/dist/index.js
CHANGED
@@ -7263,6 +7263,7 @@ var WForm = function WForm(props, ref) {
|
|
7263
7263
|
}
|
7264
7264
|
|
7265
7265
|
var baseitem = c.renderFormItem(c, _objectSpread2(_objectSpread2({}, c), {}, {
|
7266
|
+
disabled: disabled,
|
7266
7267
|
formItemProps: c.formItemProps,
|
7267
7268
|
fieldProps: c.fieldProps,
|
7268
7269
|
columnsFields: columnsFields // columnsFieldsRef,
|
@@ -7768,6 +7769,7 @@ var WForm = function WForm(props, ref) {
|
|
7768
7769
|
}
|
7769
7770
|
|
7770
7771
|
var baseitem = c.renderFormItem(c, _objectSpread2(_objectSpread2({}, c), {}, {
|
7772
|
+
disabled: disabled,
|
7771
7773
|
formItemProps: c.formItemProps,
|
7772
7774
|
fieldProps: c.fieldProps,
|
7773
7775
|
columnsFields: columnsFields // columnsFieldsRef,
|
@@ -9665,7 +9667,7 @@ var Index$b = function Index(_ref) {
|
|
9665
9667
|
var _excluded$d = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
|
9666
9668
|
|
9667
9669
|
var Index$c = function Index(_ref, ref) {
|
9668
|
-
var _classNames;
|
9670
|
+
var _classNames, _sliderTabs$component;
|
9669
9671
|
|
9670
9672
|
var title = _ref.title,
|
9671
9673
|
_ref$className = _ref.className,
|
@@ -9700,14 +9702,15 @@ var Index$c = function Index(_ref, ref) {
|
|
9700
9702
|
className: "dot"
|
9701
9703
|
}), title), headerCenter, headerTail) : null, /*#__PURE__*/React__default['default'].createElement("div", {
|
9702
9704
|
className: "body"
|
9703
|
-
}, sliderTabs ? sliderTabs.components[activeTab]
|
9705
|
+
}, (sliderTabs === null || sliderTabs === void 0 ? void 0 : (_sliderTabs$component = sliderTabs.components) === null || _sliderTabs$component === void 0 ? void 0 : _sliderTabs$component[activeTab]) || props.children)), sliderTabs && /*#__PURE__*/React__default['default'].createElement("div", {
|
9704
9706
|
className: "sliderTabs ".concat(sliderTabs.direction == 'left' ? "left ".concat(sliderTabs.className || '') : "right ".concat(sliderTabs.className || ''))
|
9705
9707
|
}, sliderTabs.tabs.map(function (item, index) {
|
9706
9708
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
9707
9709
|
className: "tab ".concat(index == activeTab ? 'active' : '', " ").concat(sliderTabs.tabClassName || '', " ").concat(sliderTabs.activeTabClassName || '')
|
9708
9710
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
9709
9711
|
onClick: function onClick() {
|
9710
|
-
|
9712
|
+
setActiveTab(index);
|
9713
|
+
sliderTabs.onChange && (sliderTabs === null || sliderTabs === void 0 ? void 0 : sliderTabs.onChange(index));
|
9711
9714
|
}
|
9712
9715
|
}, item));
|
9713
9716
|
}))));
|
@@ -10379,7 +10382,7 @@ Modal$1.hidden = function () {
|
|
10379
10382
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
10380
10383
|
};
|
10381
10384
|
|
10382
|
-
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
10385
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
10383
10386
|
|
10384
10387
|
var ModalForm = function ModalForm(props, ref) {
|
10385
10388
|
var columns = props.columns,
|
@@ -10393,6 +10396,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10393
10396
|
title = props.title,
|
10394
10397
|
record = props.record,
|
10395
10398
|
onFormChange = props.onFormChange,
|
10399
|
+
formItemChild = props.formItemChild,
|
10396
10400
|
extraProps = _objectWithoutProperties(props, _excluded$g);
|
10397
10401
|
|
10398
10402
|
var formRef = React.useRef(null);
|
@@ -10519,7 +10523,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10519
10523
|
search: search,
|
10520
10524
|
columns: columns,
|
10521
10525
|
extraColumns: extraColumns
|
10522
|
-
}));
|
10526
|
+
}), title == '查看' && formItemChild ? formItemChild() : null);
|
10523
10527
|
};
|
10524
10528
|
|
10525
10529
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
@@ -10599,7 +10603,12 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10599
10603
|
|
10600
10604
|
return modalOnOk;
|
10601
10605
|
}(),
|
10602
|
-
index: index
|
10606
|
+
index: index,
|
10607
|
+
formItemChild: function formItemChild() {
|
10608
|
+
var _item$formItemChild;
|
10609
|
+
|
10610
|
+
return item === null || item === void 0 ? void 0 : (_item$formItemChild = item.formItemChild) === null || _item$formItemChild === void 0 ? void 0 : _item$formItemChild.call(item, record, actionRef, index);
|
10611
|
+
}
|
10603
10612
|
});
|
10604
10613
|
},
|
10605
10614
|
edit: function edit(item, record, index) {
|
@@ -10911,6 +10920,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10911
10920
|
title: modalFormConfig.type || '新增',
|
10912
10921
|
visible: visible,
|
10913
10922
|
record: modalFormConfig.record,
|
10923
|
+
formItemChild: modalFormConfig.formItemChild,
|
10914
10924
|
disabled: modalFormConfig.type == '查看',
|
10915
10925
|
setVisible: setVisible,
|
10916
10926
|
submitMethod: function () {
|
package/package.json
CHANGED
@@ -1,88 +1,88 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.4.
|
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-form": "^1.49.3",
|
50
|
-
"@ant-design/pro-table": "^2.58.1",
|
51
|
-
"animate.css": "^4.1.1",
|
52
|
-
"react-countup": "^6.0.0",
|
53
|
-
"react-dom": "^17.0.2",
|
54
|
-
"echarts": "^5.2.2",
|
55
|
-
"echarts-for-react": "^3.0.2",
|
56
|
-
"swiper": "^6.7.0",
|
57
|
-
"xgplayer": "^2.31.6",
|
58
|
-
"xgplayer-flv": "^2.5.1",
|
59
|
-
"xgplayer-flv.js": "^2.3.0",
|
60
|
-
"xgplayer-hls": "^2.5.2",
|
61
|
-
"xgplayer-hls.js": "^2.6.1"
|
62
|
-
},
|
63
|
-
"peerDependencies": {
|
64
|
-
"@ant-design/icons": ">=4.2.0",
|
65
|
-
"antd": ">=4.7.0",
|
66
|
-
"classnames": ">=2.2.0",
|
67
|
-
"echarts": "^5.2.2",
|
68
|
-
"echarts-for-react": "^3.0.2",
|
69
|
-
"lodash": ">=4.0.0",
|
70
|
-
"react": ">=17.0.0"
|
71
|
-
},
|
72
|
-
"devDependencies": {
|
73
|
-
"@ant-design/icons": "^4.6.4",
|
74
|
-
"@types/lodash": "^4.14.173",
|
75
|
-
"@types/react-dom": "^17.0.11",
|
76
|
-
"@umijs/test": "^3.0.5",
|
77
|
-
"antd": "^4.16.13",
|
78
|
-
"babel-plugin-import": "^1.13.3",
|
79
|
-
"classnames": "^2.3.1",
|
80
|
-
"dumi": "^1.1.31",
|
81
|
-
"father-build": "^1.19.1",
|
82
|
-
"gh-pages": "^3.0.0",
|
83
|
-
"lint-staged": "^10.0.7",
|
84
|
-
"prettier": "^1.19.1",
|
85
|
-
"react": "^16.12.0",
|
86
|
-
"yorkie": "^2.0.0"
|
87
|
-
}
|
88
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.4.31",
|
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-form": "^1.49.3",
|
50
|
+
"@ant-design/pro-table": "^2.58.1",
|
51
|
+
"animate.css": "^4.1.1",
|
52
|
+
"react-countup": "^6.0.0",
|
53
|
+
"react-dom": "^17.0.2",
|
54
|
+
"echarts": "^5.2.2",
|
55
|
+
"echarts-for-react": "^3.0.2",
|
56
|
+
"swiper": "^6.7.0",
|
57
|
+
"xgplayer": "^2.31.6",
|
58
|
+
"xgplayer-flv": "^2.5.1",
|
59
|
+
"xgplayer-flv.js": "^2.3.0",
|
60
|
+
"xgplayer-hls": "^2.5.2",
|
61
|
+
"xgplayer-hls.js": "^2.6.1"
|
62
|
+
},
|
63
|
+
"peerDependencies": {
|
64
|
+
"@ant-design/icons": ">=4.2.0",
|
65
|
+
"antd": ">=4.7.0",
|
66
|
+
"classnames": ">=2.2.0",
|
67
|
+
"echarts": "^5.2.2",
|
68
|
+
"echarts-for-react": "^3.0.2",
|
69
|
+
"lodash": ">=4.0.0",
|
70
|
+
"react": ">=17.0.0"
|
71
|
+
},
|
72
|
+
"devDependencies": {
|
73
|
+
"@ant-design/icons": "^4.6.4",
|
74
|
+
"@types/lodash": "^4.14.173",
|
75
|
+
"@types/react-dom": "^17.0.11",
|
76
|
+
"@umijs/test": "^3.0.5",
|
77
|
+
"antd": "^4.16.13",
|
78
|
+
"babel-plugin-import": "^1.13.3",
|
79
|
+
"classnames": "^2.3.1",
|
80
|
+
"dumi": "^1.1.31",
|
81
|
+
"father-build": "^1.19.1",
|
82
|
+
"gh-pages": "^3.0.0",
|
83
|
+
"lint-staged": "^10.0.7",
|
84
|
+
"prettier": "^1.19.1",
|
85
|
+
"react": "^16.12.0",
|
86
|
+
"yorkie": "^2.0.0"
|
87
|
+
}
|
88
|
+
}
|