@zat-design/sisyphus-react 3.4.5 → 3.4.6-beta.2
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/index.esm.css +147 -34
- package/dist/less.esm.css +147 -34
- package/es/ProConfigProvider/index.d.ts +2 -2
- package/es/ProConfigProvider/index.js +0 -3
- package/es/ProEditTable/components/RenderField/index.js +55 -48
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/style/index.less +0 -5
- package/es/ProEditTable/utils/tools.d.ts +12 -0
- package/es/ProEditTable/utils/tools.js +79 -2
- package/es/ProForm/components/base/RangePicker/index.js +9 -9
- package/es/ProForm/components/combination/Container/index.js +3 -2
- package/es/ProForm/components/combination/Container/style/index.less +5 -1
- package/es/ProForm/components/combination/{ProAddressBar → ProCascader}/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProCascader/index.js +256 -0
- package/es/ProForm/components/combination/{ProAddressBar → ProCascader}/propsType.d.ts +9 -6
- package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +14 -0
- package/es/ProForm/components/combination/ProCascader/utils/index.js +26 -0
- package/es/ProForm/components/combination/ProModalSelect/index.js +13 -5
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +23 -0
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProRangeLimit/index.js +17 -10
- package/es/ProForm/components/index.d.ts +1 -2
- package/es/ProForm/components/index.js +1 -4
- package/es/ProForm/components/render/Render.js +19 -14
- package/es/ProForm/components/render/RenderFields.js +3 -1
- package/es/ProForm/components/render/propsType.d.ts +3 -7
- package/es/ProForm/index.js +6 -2
- package/es/ProForm/propsType.d.ts +2 -0
- package/es/ProForm/style/index.less +2 -1
- package/es/ProForm/utils/index.d.ts +6 -1
- package/es/ProForm/utils/index.js +9 -6
- package/es/ProForm/utils/useChanged.js +1 -2
- package/es/ProForm/utils/useForm.js +18 -6
- package/es/ProForm/utils/useListChanged.js +1 -3
- package/es/ProIcon/config/index.d.ts +2 -0
- package/es/ProIcon/config/index.js +4 -2
- package/es/ProIcon/index.js +148 -81
- package/es/ProIcon/propsTypes.d.ts +6 -1
- package/es/ProIcon/utils/index.d.ts +5 -0
- package/es/ProIcon/utils/index.js +60 -0
- package/es/ProLayout/components/ProCollapse/index.js +6 -3
- package/es/ProLayout/components/ProCollapse/style/index.less +1 -1
- package/es/ProSelect/index.js +1 -1
- package/es/ProStep/components/Step/index.js +4 -3
- package/es/ProStep/style/index.less +37 -0
- package/es/ProTable/utils.js +6 -3
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +16 -6
- package/es/ProThemeTools/component/PrdTools/style/index.less +56 -48
- package/es/ProTree/components/ProTree.js +96 -74
- package/es/ProTree/components/ProTreeSelect/index.js +5 -9
- package/es/ProTree/components/ProTreeSelect/style/index.less +6 -8
- package/es/ProTree/components/Tree.js +63 -41
- package/es/ProTree/style/index.less +38 -16
- package/es/ProUpload/index.js +11 -13
- package/es/ProUpload/propsType.d.ts +8 -3
- package/es/assets/view.svg +2 -2
- package/es/global.less +6 -6
- package/lib/ProConfigProvider/index.d.ts +2 -2
- package/lib/ProConfigProvider/index.js +0 -3
- package/lib/ProEditTable/components/RenderField/index.js +53 -46
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/style/index.less +0 -5
- package/lib/ProEditTable/utils/tools.d.ts +12 -0
- package/lib/ProEditTable/utils/tools.js +80 -2
- package/lib/ProForm/components/base/RangePicker/index.js +9 -9
- package/lib/ProForm/components/combination/Container/index.js +3 -2
- package/lib/ProForm/components/combination/Container/style/index.less +5 -1
- package/lib/ProForm/components/combination/{ProAddressBar → ProCascader}/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProCascader/index.js +256 -0
- package/lib/ProForm/components/combination/{ProAddressBar → ProCascader}/propsType.d.ts +9 -6
- package/lib/ProForm/components/combination/ProCascader/utils/index.d.ts +14 -0
- package/lib/ProForm/components/combination/ProCascader/utils/index.js +33 -0
- package/lib/ProForm/components/combination/ProModalSelect/index.js +12 -4
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +23 -0
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +17 -10
- package/lib/ProForm/components/index.d.ts +1 -2
- package/lib/ProForm/components/index.js +1 -8
- package/lib/ProForm/components/render/Render.js +19 -14
- package/lib/ProForm/components/render/RenderFields.js +3 -1
- package/lib/ProForm/components/render/propsType.d.ts +3 -7
- package/lib/ProForm/index.js +5 -1
- package/lib/ProForm/propsType.d.ts +2 -0
- package/lib/ProForm/style/index.less +2 -1
- package/lib/ProForm/utils/index.d.ts +6 -1
- package/lib/ProForm/utils/index.js +9 -6
- package/lib/ProForm/utils/useChanged.js +1 -2
- package/lib/ProForm/utils/useForm.js +18 -6
- package/lib/ProForm/utils/useListChanged.js +1 -3
- package/lib/ProIcon/config/index.d.ts +2 -0
- package/lib/ProIcon/config/index.js +4 -2
- package/lib/ProIcon/index.js +144 -77
- package/lib/ProIcon/propsTypes.d.ts +6 -1
- package/lib/ProIcon/utils/index.d.ts +5 -0
- package/lib/ProIcon/utils/index.js +62 -1
- package/lib/ProLayout/components/ProCollapse/index.js +6 -3
- package/lib/ProLayout/components/ProCollapse/style/index.less +1 -1
- package/lib/ProSelect/index.js +1 -1
- package/lib/ProStep/components/Step/index.js +4 -3
- package/lib/ProStep/style/index.less +37 -0
- package/lib/ProTable/utils.js +6 -3
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +16 -6
- package/lib/ProThemeTools/component/PrdTools/style/index.less +56 -48
- package/lib/ProTree/components/ProTree.js +96 -74
- package/lib/ProTree/components/ProTreeSelect/index.js +5 -9
- package/lib/ProTree/components/ProTreeSelect/style/index.less +6 -8
- package/lib/ProTree/components/Tree.js +63 -41
- package/lib/ProTree/style/index.less +38 -16
- package/lib/ProUpload/index.js +10 -12
- package/lib/ProUpload/propsType.d.ts +8 -3
- package/lib/assets/view.svg +2 -2
- package/lib/global.less +6 -6
- package/package.json +2 -2
- package/es/ProForm/components/base/ProCascader/index.d.ts +0 -14
- package/es/ProForm/components/base/ProCascader/index.js +0 -72
- package/es/ProForm/components/combination/ProAddressBar/index.js +0 -437
- package/lib/ProForm/components/base/ProCascader/index.d.ts +0 -14
- package/lib/ProForm/components/base/ProCascader/index.js +0 -78
- package/lib/ProForm/components/combination/ProAddressBar/index.js +0 -437
- /package/es/ProForm/components/combination/{ProAddressBar → ProCascader}/propsType.js +0 -0
- /package/es/ProForm/components/combination/{ProAddressBar → ProCascader}/style/index.less +0 -0
- /package/lib/ProForm/components/combination/{ProAddressBar → ProCascader}/propsType.js +0 -0
- /package/lib/ProForm/components/combination/{ProAddressBar → ProCascader}/style/index.less +0 -0
|
@@ -3,16 +3,18 @@ import _Tree from "antd/es/tree";
|
|
|
3
3
|
import "antd/es/popover/style";
|
|
4
4
|
import _Popover from "antd/es/popover";
|
|
5
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
7
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
6
8
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
7
9
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
8
|
-
var _excluded = ["checkedValues", "disabled", "searchStr", "originalTreeData", "showCodeName", "checkStrictly", "flatTreeData", "mode", "fieldNames", "tags", "onCheck", "optionRender", "treeData", "showLine", "switcherIcon", "checkable", "menu", "innerExpandKeys", "selectedKey", "disabledMode"];
|
|
10
|
+
var _excluded = ["checkedValues", "disabled", "searchStr", "originalTreeData", "showCodeName", "checkStrictly", "flatTreeData", "mode", "fieldNames", "tags", "onCheck", "optionRender", "treeData", "showLine", "switcherIcon", "checkable", "menu", "innerExpandKeys", "selectedKey", "disabledMode", "isRadioSelect"];
|
|
9
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
12
|
/*
|
|
11
13
|
*@Date: 2023-07-25 13:49:35
|
|
12
14
|
*@LastEditTime: 2023-07-25 13:49:35
|
|
13
15
|
*@Author: liudongliang
|
|
14
16
|
*@Description: 树每行节点渲染组件,复选时阻止点击事件冒泡,只有点击树节点文本会向上触发onSelect事件
|
|
15
|
-
*/
|
|
17
|
+
*/
|
|
16
18
|
/* eslint-disable no-plusplus */
|
|
17
19
|
import React, { useEffect, useState } from 'react';
|
|
18
20
|
import { useSetState } from 'ahooks';
|
|
@@ -50,19 +52,22 @@ function List(props) {
|
|
|
50
52
|
innerExpandKeys = props.innerExpandKeys,
|
|
51
53
|
selectedKey = props.selectedKey,
|
|
52
54
|
disabledMode = props.disabledMode,
|
|
55
|
+
isRadioSelect = props.isRadioSelect,
|
|
53
56
|
other = _objectWithoutProperties(props, _excluded);
|
|
54
57
|
var fieldNameLabel = fieldNames.label;
|
|
55
58
|
var fieldNameValue = fieldNames.value;
|
|
56
59
|
var _useSetState = useSetState({
|
|
57
60
|
expandedKeys: [],
|
|
58
61
|
autoExpandParent: true,
|
|
59
|
-
currentClickTreeNode: null
|
|
62
|
+
currentClickTreeNode: null,
|
|
63
|
+
handing: false
|
|
60
64
|
}),
|
|
61
65
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
62
66
|
_useSetState2$ = _useSetState2[0],
|
|
63
67
|
expandedKeys = _useSetState2$.expandedKeys,
|
|
64
68
|
autoExpandParent = _useSetState2$.autoExpandParent,
|
|
65
69
|
currentClickTreeNode = _useSetState2$.currentClickTreeNode,
|
|
70
|
+
handing = _useSetState2$.handing,
|
|
66
71
|
setState = _useSetState2[1];
|
|
67
72
|
useEffect(function () {
|
|
68
73
|
if (searchStr) {
|
|
@@ -102,18 +107,44 @@ function List(props) {
|
|
|
102
107
|
});
|
|
103
108
|
}
|
|
104
109
|
}, [selectedKey]);
|
|
105
|
-
var onSelect = function
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
var onSelect = /*#__PURE__*/function () {
|
|
111
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value, item) {
|
|
112
|
+
var _props$onSelect;
|
|
113
|
+
var val;
|
|
114
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
115
|
+
while (1) switch (_context.prev = _context.next) {
|
|
116
|
+
case 0:
|
|
117
|
+
if (!handing) {
|
|
118
|
+
_context.next = 2;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
return _context.abrupt("return", null);
|
|
122
|
+
case 2:
|
|
123
|
+
val = value;
|
|
124
|
+
if (!isRadioSelect && value === currentClickTreeNode) {
|
|
125
|
+
// 如果当前点击了已经选中节点,那么取消选择
|
|
126
|
+
val = '';
|
|
127
|
+
}
|
|
128
|
+
setState({
|
|
129
|
+
currentClickTreeNode: val,
|
|
130
|
+
handing: true
|
|
131
|
+
});
|
|
132
|
+
_context.next = 7;
|
|
133
|
+
return props === null || props === void 0 ? void 0 : (_props$onSelect = props.onSelect) === null || _props$onSelect === void 0 ? void 0 : _props$onSelect.call(props, val, item);
|
|
134
|
+
case 7:
|
|
135
|
+
setState({
|
|
136
|
+
handing: false
|
|
137
|
+
});
|
|
138
|
+
case 8:
|
|
139
|
+
case "end":
|
|
140
|
+
return _context.stop();
|
|
141
|
+
}
|
|
142
|
+
}, _callee);
|
|
143
|
+
}));
|
|
144
|
+
return function onSelect(_x, _x2) {
|
|
145
|
+
return _ref.apply(this, arguments);
|
|
146
|
+
};
|
|
147
|
+
}();
|
|
117
148
|
var TreeNodeRow = function TreeNodeRow(props) {
|
|
118
149
|
var nodeClass = props.nodeClass,
|
|
119
150
|
item = props.item,
|
|
@@ -263,7 +294,6 @@ function List(props) {
|
|
|
263
294
|
})]
|
|
264
295
|
}, onlyKey);
|
|
265
296
|
};
|
|
266
|
-
// const _treeData = useMemo(() => {
|
|
267
297
|
function fn() {
|
|
268
298
|
var loop = function loop(data, index) {
|
|
269
299
|
index++;
|
|
@@ -275,33 +305,27 @@ function List(props) {
|
|
|
275
305
|
isChecked = true;
|
|
276
306
|
}
|
|
277
307
|
var title = showCodeName ? "".concat(item[fieldNameValue], "-").concat(item[fieldNameLabel]) : item[fieldNameLabel];
|
|
308
|
+
var nodeTitle = _jsx(TreeNodeRow, {
|
|
309
|
+
nodeClass: nodeClass,
|
|
310
|
+
item: item,
|
|
311
|
+
index: index,
|
|
312
|
+
title: (item === null || item === void 0 ? void 0 : item.title) || title,
|
|
313
|
+
isChecked: isChecked,
|
|
314
|
+
onlyKey: item[fieldNameValue]
|
|
315
|
+
});
|
|
278
316
|
if (item[fieldNames.children]) {
|
|
279
|
-
return {
|
|
280
|
-
title:
|
|
281
|
-
|
|
282
|
-
item: item,
|
|
283
|
-
index: index,
|
|
284
|
-
title: title,
|
|
285
|
-
isChecked: isChecked,
|
|
286
|
-
onlyKey: item[fieldNameValue]
|
|
287
|
-
}),
|
|
288
|
-
key: item[fieldNameValue],
|
|
317
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
318
|
+
title: nodeTitle,
|
|
319
|
+
key: (item === null || item === void 0 ? void 0 : item.key) || item[fieldNameValue],
|
|
289
320
|
children: loop(item[fieldNames.children], index)
|
|
290
|
-
};
|
|
321
|
+
});
|
|
291
322
|
}
|
|
292
|
-
return {
|
|
293
|
-
title:
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
index: index,
|
|
297
|
-
title: title,
|
|
298
|
-
isChecked: isChecked,
|
|
299
|
-
onlyKey: item[fieldNameValue]
|
|
300
|
-
}),
|
|
301
|
-
key: item[fieldNameValue]
|
|
302
|
-
};
|
|
323
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
324
|
+
title: nodeTitle,
|
|
325
|
+
key: (item === null || item === void 0 ? void 0 : item.key) || item[fieldNameValue]
|
|
326
|
+
});
|
|
303
327
|
});
|
|
304
|
-
return treeRow;
|
|
328
|
+
return treeRow;
|
|
305
329
|
};
|
|
306
330
|
if ((other === null || other === void 0 ? void 0 : other.mode) === 'view') {
|
|
307
331
|
return;
|
|
@@ -312,8 +336,6 @@ function List(props) {
|
|
|
312
336
|
}
|
|
313
337
|
return loop(newTreeData, -1);
|
|
314
338
|
}
|
|
315
|
-
// return fn();
|
|
316
|
-
// }, [searchStr, expandedKeys, showCodeName, originalTreeData, currentClickTreeNode]);
|
|
317
339
|
var _treeData = fn();
|
|
318
340
|
var onExpand = function onExpand(newExpandedKeys) {
|
|
319
341
|
setState({
|
|
@@ -4,6 +4,30 @@
|
|
|
4
4
|
.pro-tree {
|
|
5
5
|
height: 100%; // tree auto css
|
|
6
6
|
|
|
7
|
+
.@{ant-prefix}-tree-node-content-wrapper{
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: baseline;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.@{ant-prefix}-tree .@{ant-prefix}-tree-treenode-disabled {
|
|
13
|
+
.@{ant-prefix}-tree-node-content-wrapper {
|
|
14
|
+
color: var(--zaui-text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pro-tree-tree-node.checked {
|
|
18
|
+
color: var(--zaui-text);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pro-tree-tree-node.checked .brand-bg-opa-ten {
|
|
22
|
+
background-color: inherit;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// 解决双滚动条
|
|
27
|
+
.@{ant-prefix}-select-dropdown.pro-tree-select-drop-down-container.checkable-tree{
|
|
28
|
+
overflow: hidden!important;
|
|
29
|
+
}
|
|
30
|
+
|
|
7
31
|
.@{ant-prefix}-spin-nested-loading {
|
|
8
32
|
height: 100%; // tree auto css
|
|
9
33
|
|
|
@@ -304,19 +328,6 @@
|
|
|
304
328
|
}
|
|
305
329
|
}
|
|
306
330
|
|
|
307
|
-
.@{ant-prefix}-tree .@{ant-prefix}-tree-treenode-disabled {
|
|
308
|
-
.@{ant-prefix}-tree-node-content-wrapper {
|
|
309
|
-
color: var(--zaui-text);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.pro-tree-tree-node.checked {
|
|
313
|
-
color: var(--zaui-text);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.pro-tree-tree-node.checked .brand-bg-opa-ten {
|
|
317
|
-
background-color: inherit;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
331
|
|
|
321
332
|
// 重置ant-form view模式样式ant-tree样式
|
|
322
333
|
.pro-form.pro-form-view .@{ant-prefix}-form-item .pro-tree * {
|
|
@@ -337,7 +348,18 @@
|
|
|
337
348
|
height: 16px !important;
|
|
338
349
|
}
|
|
339
350
|
|
|
340
|
-
|
|
341
|
-
.@{ant-prefix}-select-
|
|
342
|
-
|
|
351
|
+
.pro-tree-select, .pro-tree-select-drop-down-container{
|
|
352
|
+
.@{ant-prefix}-select-selector{
|
|
353
|
+
.check-mark-icon{
|
|
354
|
+
display: none;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
&.@{ant-prefix}-select-dropdown{
|
|
358
|
+
// 隐藏单选下拉树后面勾号
|
|
359
|
+
.@{ant-prefix}-select-tree-node-content-wrapper{
|
|
360
|
+
.check-mark-icon{
|
|
361
|
+
display: none;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
343
365
|
}
|
package/es/ProUpload/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import _message from "antd/es/message";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
|
-
var _excluded = ["value", "size", "action", "maxCount", "headerRender", "footerRender", "disabled", "uploadType", "buttonProps", "accept", "extraTipText", "beforeUpload", "onChange", "onDownload", "onPreview", "onRemove", "method", "className", "dataParams", "name", "showExampleContent", "showUploadList", "otherProps", "transformResponse", "exampleTitle", "exampleContent", "exampleModalProps", "buttonText", "afterRender", "fieldNames"];
|
|
6
|
+
var _excluded = ["value", "size", "action", "maxCount", "headerRender", "footerRender", "disabled", "uploadType", "buttonProps", "accept", "extraTipText", "beforeUpload", "onChange", "onDownload", "onPreview", "onRemove", "filterOriginFileObj", "method", "className", "dataParams", "name", "showExampleContent", "showUploadList", "otherProps", "transformResponse", "exampleTitle", "exampleContent", "exampleModalProps", "buttonText", "afterRender", "fieldNames"];
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
/*
|
|
9
9
|
* @Author: wangshengqiang
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
* @Description: 上传控件
|
|
14
14
|
*/
|
|
15
15
|
import React, { useEffect, useState, useImperativeHandle } from 'react';
|
|
16
|
-
import { isFunction } from 'lodash';
|
|
16
|
+
import { isFunction, omit } from 'lodash';
|
|
17
17
|
import { PointerSensor, useSensor } from '@dnd-kit/core';
|
|
18
18
|
import { arrayMove } from '@dnd-kit/sortable';
|
|
19
19
|
import { useProConfig } from '../ProConfigProvider';
|
|
@@ -47,6 +47,8 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
47
47
|
onDownload = props.onDownload,
|
|
48
48
|
onPreview = props.onPreview,
|
|
49
49
|
onRemove = props.onRemove,
|
|
50
|
+
_props$filterOriginFi = props.filterOriginFileObj,
|
|
51
|
+
filterOriginFileObj = _props$filterOriginFi === void 0 ? false : _props$filterOriginFi,
|
|
50
52
|
_props$method = props.method,
|
|
51
53
|
method = _props$method === void 0 ? 'post' : _props$method,
|
|
52
54
|
className = props.className,
|
|
@@ -82,15 +84,11 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
82
84
|
var uploadResTransform = function uploadResTransform(fileList) {
|
|
83
85
|
var _list = fileList.map(function (file) {
|
|
84
86
|
if (file.status === 'done' && file.response) {
|
|
85
|
-
var nfile = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
uid: file.uid,
|
|
91
|
-
response: file === null || file === void 0 ? void 0 : file.response
|
|
92
|
-
// url: file?.response?.data?.url,
|
|
93
|
-
};
|
|
87
|
+
var nfile = _objectSpread({}, file);
|
|
88
|
+
// 过滤掉originFileObj
|
|
89
|
+
if (filterOriginFileObj) {
|
|
90
|
+
return omit(nfile, 'originFileObj');
|
|
91
|
+
}
|
|
94
92
|
if (transformResponse) {
|
|
95
93
|
var data = transformResponse(file.response) || {};
|
|
96
94
|
return _objectSpread(_objectSpread({}, nfile), data);
|
|
@@ -177,7 +175,6 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
177
175
|
* @return {*}
|
|
178
176
|
*/
|
|
179
177
|
var handleBeforeUpload = function handleBeforeUpload(file, fileList) {
|
|
180
|
-
// TODO
|
|
181
178
|
if (!validateFileExt(extExt, file)) {
|
|
182
179
|
var _locale$ProUpload2;
|
|
183
180
|
_message.error("".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload2 = locale.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.errorInfoExt, "\u3010").concat(extExt.join('、'), "\u3011"));
|
|
@@ -245,7 +242,8 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
245
242
|
showUploadList: showUploadList,
|
|
246
243
|
method: method,
|
|
247
244
|
accept: accept,
|
|
248
|
-
data: _objectSpread({}, dataParams)
|
|
245
|
+
data: _objectSpread({}, dataParams),
|
|
246
|
+
name: name
|
|
249
247
|
}, residueProps);
|
|
250
248
|
var baseProps = {
|
|
251
249
|
isView: isView,
|
|
@@ -18,10 +18,15 @@ export interface fieldNamesProps {
|
|
|
18
18
|
}
|
|
19
19
|
export interface ProUploadProps {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* @description 拖拽框顶部的内容
|
|
22
|
+
* @default -
|
|
23
|
+
*/
|
|
24
24
|
headerRender?: React.ReactNode | (() => React.ReactNode);
|
|
25
|
+
/**
|
|
26
|
+
* @description 是否过滤掉file对象中的originFileObj
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
filterOriginFileObj?: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* @description 拖拽框底部内容
|
|
27
32
|
* @default -
|
package/es/assets/view.svg
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<svg width="19px" height="15px" viewBox="0 0 19 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
3
|
<title>icon-dropdown-searchlist</title>
|
|
4
4
|
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="询报价录入交互说明" transform="translate(-531, -308)" fill="
|
|
5
|
+
<g id="询报价录入交互说明" transform="translate(-531, -308)" fill="currentColor" fill-rule="nonzero">
|
|
6
6
|
<g id="Dropdown/下拉弹窗切换/default备份-2" transform="translate(215, 299)">
|
|
7
7
|
<g id="编组-2" transform="translate(288, 1)">
|
|
8
8
|
<g id="编组" transform="translate(22, 0)">
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
</g>
|
|
18
18
|
</g>
|
|
19
19
|
</g>
|
|
20
|
-
</svg>
|
|
20
|
+
</svg>
|
package/es/global.less
CHANGED
|
@@ -7,11 +7,11 @@ pre {
|
|
|
7
7
|
* {
|
|
8
8
|
// 火狐浏览器
|
|
9
9
|
scrollbar-width: thin;
|
|
10
|
-
scrollbar-color: #
|
|
10
|
+
scrollbar-color: #d2d3d7 transparent;
|
|
11
11
|
// ie浏览器
|
|
12
|
-
scrollbar-face-color: #
|
|
13
|
-
scrollbar-highlight-color: #
|
|
14
|
-
scrollbar-3dlight-color: #
|
|
12
|
+
scrollbar-face-color: #d2d3d7;
|
|
13
|
+
scrollbar-highlight-color: #979797;
|
|
14
|
+
scrollbar-3dlight-color: #979797;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
::-webkit-scrollbar {
|
|
@@ -20,7 +20,7 @@ pre {
|
|
|
20
20
|
|
|
21
21
|
// // 滑块
|
|
22
22
|
::-webkit-scrollbar-thumb {
|
|
23
|
-
background-color: #
|
|
23
|
+
background-color: #d2d3d7;
|
|
24
24
|
background-clip: padding-box;
|
|
25
25
|
border-color: transparent;
|
|
26
26
|
border-style: dashed;
|
|
@@ -37,5 +37,5 @@ pre {
|
|
|
37
37
|
|
|
38
38
|
// 悬浮轨道
|
|
39
39
|
::-webkit-scrollbar-thumb:hover {
|
|
40
|
-
background-color: #
|
|
40
|
+
background-color: #979797;
|
|
41
41
|
}
|
|
@@ -2,14 +2,14 @@ import React, { FC } from 'react';
|
|
|
2
2
|
import { FormInstance } from 'antd';
|
|
3
3
|
import { PropSelectProps } from '../ProSelect/propsType';
|
|
4
4
|
import { ProModalSelectPropsType } from '../ProForm/components/combination/ProModalSelect/propsType';
|
|
5
|
-
import {
|
|
5
|
+
import { ProCascaderProps } from '../ProForm/components/combination/ProCascader/propsType';
|
|
6
6
|
import { ProEnumConfig } from '../ProEnum/propsType';
|
|
7
7
|
export interface ProConfigState {
|
|
8
8
|
locale?: string;
|
|
9
9
|
ProEnum?: Partial<ProEnumConfig>;
|
|
10
10
|
ProSelect?: Partial<PropSelectProps> & Record<string, any>;
|
|
11
11
|
ProModalSelect?: Partial<ProModalSelectPropsType> & Record<string, any>;
|
|
12
|
-
ProAddressBar?: Partial<
|
|
12
|
+
ProAddressBar?: Partial<ProCascaderProps> & Record<string, any>;
|
|
13
13
|
forms: Record<string, FormInstance | undefined>;
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}
|
|
@@ -62,9 +62,6 @@ var reducer = function reducer(state, action) {
|
|
|
62
62
|
case 'setWithLocal':
|
|
63
63
|
{
|
|
64
64
|
var _state = (0, _merge.default)({}, state, action.payload);
|
|
65
|
-
var localConfigStr = localStorage.getItem('localConfig');
|
|
66
|
-
var localConfig = JSON.parse(localConfigStr || '{}');
|
|
67
|
-
localStorage.setItem('localConfig', JSON.stringify((0, _merge.default)(localConfig, action.payload)));
|
|
68
65
|
return _state;
|
|
69
66
|
}
|
|
70
67
|
case 'setProEnum':
|
|
@@ -22,17 +22,18 @@ var _valueType = _interopRequireDefault(require("../../../ProForm/utils/valueTyp
|
|
|
22
22
|
var _transform = _interopRequireDefault(require("../../utils/transform"));
|
|
23
23
|
var _tools = require("../../utils/tools");
|
|
24
24
|
var componentMap = _interopRequireWildcard(require("../../../ProForm/components"));
|
|
25
|
+
var _ProConfigProvider = require("../../../ProConfigProvider");
|
|
25
26
|
var _Container = _interopRequireDefault(require("../../../ProForm/components/Container"));
|
|
26
27
|
var _transformNames = _interopRequireDefault(require("../../../ProForm/utils/transformNames"));
|
|
27
28
|
var _useFieldProps = require("../../../ProForm/utils/useFieldProps");
|
|
28
29
|
var _useListChanged3 = require("../../../ProForm/utils/useListChanged");
|
|
29
30
|
var _useRules = _interopRequireDefault(require("../../../ProForm/utils/useRules"));
|
|
30
31
|
var _utils = require("../../../ProForm/utils");
|
|
31
|
-
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className"];
|
|
32
|
+
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className", "trim"];
|
|
32
33
|
/* eslint-disable prefer-destructuring */
|
|
33
34
|
/* eslint-disable prefer-const */
|
|
34
35
|
var RenderField = function RenderField(_ref) {
|
|
35
|
-
var _type, _type$replace, _fieldProps2,
|
|
36
|
+
var _type, _type$replace, _fieldProps2, _names, _TargetComponent4, _componentProps;
|
|
36
37
|
var value = _ref.text,
|
|
37
38
|
record = _ref.record,
|
|
38
39
|
index = _ref.index,
|
|
@@ -59,6 +60,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
59
60
|
rules = _column$rules === void 0 ? [] : _column$rules,
|
|
60
61
|
equalWith = column.equalWith,
|
|
61
62
|
className = column.className,
|
|
63
|
+
trim = column.trim,
|
|
62
64
|
resetProps = (0, _objectWithoutProperties2.default)(column, _excluded);
|
|
63
65
|
// editRender弃用使用component同ProForm
|
|
64
66
|
var _editRender = component || editRender;
|
|
@@ -78,7 +80,8 @@ var RenderField = function RenderField(_ref) {
|
|
|
78
80
|
formNamePath = config.namePath,
|
|
79
81
|
_config$originalDiffT = config.originalDiffTip,
|
|
80
82
|
originalDiffTip = _config$originalDiffT === void 0 ? true : _config$originalDiffT,
|
|
81
|
-
rowDisabled = config.rowDisabled
|
|
83
|
+
rowDisabled = config.rowDisabled,
|
|
84
|
+
otherProps = config.otherProps;
|
|
82
85
|
var _fieldProps = fieldProps || formItemProps || {};
|
|
83
86
|
var _rules = rules || [];
|
|
84
87
|
var _required = required;
|
|
@@ -99,35 +102,41 @@ var RenderField = function RenderField(_ref) {
|
|
|
99
102
|
form: form,
|
|
100
103
|
namePath: [].concat((0, _toConsumableArray2.default)(namePath), [index])
|
|
101
104
|
};
|
|
105
|
+
// 行参数
|
|
106
|
+
var rowParams = [currentValue, rowData, options];
|
|
102
107
|
if (typeof isEditable === 'function') {
|
|
103
|
-
isEditable = isEditable(
|
|
108
|
+
isEditable = isEditable.apply(void 0, rowParams);
|
|
104
109
|
}
|
|
110
|
+
// 获取最终的disabled
|
|
111
|
+
_disabled = (0, _tools.getDisabled)({
|
|
112
|
+
globalControl: otherProps === null || otherProps === void 0 ? void 0 : otherProps.globalControl,
|
|
113
|
+
formDisabled: otherProps === null || otherProps === void 0 ? void 0 : otherProps.formDisabled,
|
|
114
|
+
column: column,
|
|
115
|
+
tabledDisabled: config === null || config === void 0 ? void 0 : config.disabled,
|
|
116
|
+
columnFieldProps: _fieldProps,
|
|
117
|
+
params: rowParams
|
|
118
|
+
});
|
|
105
119
|
// 是否只读文本
|
|
106
|
-
var isView = !isEditable || (record === null || record === void 0 ? void 0 : record['is-view']) || config.isView || virtualKey && !isEditing || (
|
|
120
|
+
var isView = !isEditable || (record === null || record === void 0 ? void 0 : record['is-view']) || config.isView || virtualKey && !isEditing || (0, _tools.getDisabled)({
|
|
121
|
+
globalControl: otherProps === null || otherProps === void 0 ? void 0 : otherProps.globalControl,
|
|
122
|
+
formDisabled: otherProps === null || otherProps === void 0 ? void 0 : otherProps.formDisabled,
|
|
123
|
+
column: column,
|
|
124
|
+
tabledDisabled: config === null || config === void 0 ? void 0 : config.disabled,
|
|
125
|
+
columnFieldProps: _fieldProps,
|
|
126
|
+
params: rowParams,
|
|
127
|
+
rowDisabled: rowDisabled || 'empty'
|
|
128
|
+
});
|
|
107
129
|
// 只读文本时,采用当前formItem的name,单行编辑时,使用生成的虚拟的name
|
|
108
130
|
var baseName = isView ? name : namePath;
|
|
109
131
|
var TargetComponent;
|
|
110
|
-
if (
|
|
111
|
-
_required = required(
|
|
112
|
-
}
|
|
113
|
-
if (typeof fieldProps === 'function') {
|
|
114
|
-
_fieldProps = fieldProps(currentValue, rowData, options);
|
|
115
|
-
}
|
|
116
|
-
if (typeof ((_fieldProps2 = _fieldProps) === null || _fieldProps2 === void 0 ? void 0 : _fieldProps2.disabled) === 'function') {
|
|
117
|
-
_disabled = _fieldProps.disabled(currentValue, rowData, options);
|
|
118
|
-
} else if (((_fieldProps3 = _fieldProps) === null || _fieldProps3 === void 0 ? void 0 : _fieldProps3.disabled) === true) {
|
|
119
|
-
_disabled = _fieldProps.disabled;
|
|
120
|
-
}
|
|
121
|
-
if (typeof column.disabled === 'function') {
|
|
122
|
-
_disabled = column.disabled(currentValue, rowData, options);
|
|
123
|
-
} else if (column.disabled === true) {
|
|
124
|
-
_disabled = column.disabled;
|
|
132
|
+
if ((0, _lodash.isFunction)(required)) {
|
|
133
|
+
_required = required.apply(void 0, rowParams);
|
|
125
134
|
}
|
|
126
|
-
if ((
|
|
127
|
-
|
|
135
|
+
if ((0, _lodash.isFunction)(fieldProps)) {
|
|
136
|
+
_fieldProps = fieldProps.apply(void 0, rowParams);
|
|
128
137
|
}
|
|
129
|
-
if (
|
|
130
|
-
_rules = rules(
|
|
138
|
+
if ((0, _lodash.isFunction)(rules)) {
|
|
139
|
+
_rules = rules.apply(void 0, rowParams);
|
|
131
140
|
}
|
|
132
141
|
// 设置校验规则
|
|
133
142
|
var internalRule = (0, _useRules.default)({
|
|
@@ -137,7 +146,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
137
146
|
required: !isView && _required,
|
|
138
147
|
rules: isEditing ? _rules : [],
|
|
139
148
|
isSelect: (0, _utils.isSelect)({
|
|
140
|
-
dataSource: (
|
|
149
|
+
dataSource: (_fieldProps2 = _fieldProps) === null || _fieldProps2 === void 0 ? void 0 : _fieldProps2.dataSource,
|
|
141
150
|
type: type
|
|
142
151
|
}),
|
|
143
152
|
type: type
|
|
@@ -172,7 +181,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
172
181
|
* @returns {}
|
|
173
182
|
*/
|
|
174
183
|
var valueTypeTransform = (0, _react.useCallback)(function () {
|
|
175
|
-
var
|
|
184
|
+
var _fieldProps3;
|
|
176
185
|
// 不存在valueType返回空
|
|
177
186
|
if (!valueType) {
|
|
178
187
|
return {};
|
|
@@ -182,7 +191,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
182
191
|
valueType = 'switch';
|
|
183
192
|
}
|
|
184
193
|
var params = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, column), {}, {
|
|
185
|
-
mode: (
|
|
194
|
+
mode: (_fieldProps3 = _fieldProps) === null || _fieldProps3 === void 0 ? void 0 : _fieldProps3.mode
|
|
186
195
|
});
|
|
187
196
|
return (0, _lodash.isFunction)(_valueType.default[valueType]) ? _valueType.default[valueType](params) : {};
|
|
188
197
|
}, [valueType]);
|
|
@@ -227,7 +236,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
227
236
|
}
|
|
228
237
|
if (isEditable && isEditing) {
|
|
229
238
|
if (typeof _editRender === 'function') {
|
|
230
|
-
TargetComponent = _editRender(
|
|
239
|
+
TargetComponent = _editRender.apply(void 0, rowParams);
|
|
231
240
|
}
|
|
232
241
|
if ( /*#__PURE__*/_react.default.isValidElement(_editRender)) {
|
|
233
242
|
TargetComponent = _editRender;
|
|
@@ -269,7 +278,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
269
278
|
case 'ProEnum':
|
|
270
279
|
nextArgs[2].option = _args[1];
|
|
271
280
|
break;
|
|
272
|
-
case '
|
|
281
|
+
case 'ProCascader':
|
|
273
282
|
nextArgs[2].selectedOptions = _args[1];
|
|
274
283
|
break;
|
|
275
284
|
case 'DatePicker':
|
|
@@ -380,13 +389,13 @@ var RenderField = function RenderField(_ref) {
|
|
|
380
389
|
var _onblur = /*#__PURE__*/function () {
|
|
381
390
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
|
|
382
391
|
var _TargetComponent3, _TargetComponent3$pro, _TargetComponent$prop4;
|
|
383
|
-
var
|
|
384
|
-
row,
|
|
385
|
-
orgRow,
|
|
386
|
-
_len3,
|
|
392
|
+
var _len3,
|
|
387
393
|
args,
|
|
388
394
|
_key3,
|
|
389
395
|
_args,
|
|
396
|
+
rowPath,
|
|
397
|
+
row,
|
|
398
|
+
orgRow,
|
|
390
399
|
_Object$keys2,
|
|
391
400
|
_Object$keys2$map,
|
|
392
401
|
diff,
|
|
@@ -395,13 +404,13 @@ var RenderField = function RenderField(_ref) {
|
|
|
395
404
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
396
405
|
while (1) switch (_context2.prev = _context2.next) {
|
|
397
406
|
case 0:
|
|
398
|
-
rowPath = [].concat((0, _toConsumableArray2.default)(namePath), [index]);
|
|
399
|
-
row = form.getFieldValue(rowPath);
|
|
400
|
-
orgRow = (0, _lodash.cloneDeep)(row);
|
|
401
407
|
for (_len3 = _args3.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
402
408
|
args[_key3] = _args3[_key3];
|
|
403
409
|
}
|
|
404
|
-
_args = formatArgs(args);
|
|
410
|
+
_args = formatArgs([].concat(args));
|
|
411
|
+
rowPath = [].concat((0, _toConsumableArray2.default)(namePath), [index]);
|
|
412
|
+
row = type === 'Group' ? _args[1] : form.getFieldValue(rowPath, true);
|
|
413
|
+
orgRow = (0, _lodash.cloneDeep)(row);
|
|
405
414
|
_args[1] = row;
|
|
406
415
|
_context2.t0 = (_TargetComponent3 = TargetComponent) === null || _TargetComponent3 === void 0 ? void 0 : (_TargetComponent3$pro = _TargetComponent3.props) === null || _TargetComponent3$pro === void 0 ? void 0 : _TargetComponent3$pro.onBlur;
|
|
407
416
|
if (!_context2.t0) {
|
|
@@ -441,14 +450,12 @@ var RenderField = function RenderField(_ref) {
|
|
|
441
450
|
cellNamePath: []
|
|
442
451
|
});
|
|
443
452
|
case 20:
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
});
|
|
451
|
-
}
|
|
453
|
+
// 单行编辑时需要 强制更新视图
|
|
454
|
+
setState({
|
|
455
|
+
forceUpdate: {
|
|
456
|
+
d: Date.now()
|
|
457
|
+
}
|
|
458
|
+
});
|
|
452
459
|
case 21:
|
|
453
460
|
case "end":
|
|
454
461
|
return _context2.stop();
|
|
@@ -515,7 +522,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
515
522
|
if (['Select', 'ProSelect', 'ProEnum'].includes(type)) {
|
|
516
523
|
componentProps.scrollFollowParent = false;
|
|
517
524
|
}
|
|
518
|
-
Object.assign(_formItemProps, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultTransform()), valueTypeTransform()), namesTransform()));
|
|
525
|
+
Object.assign(_formItemProps, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultTransform()), valueTypeTransform()), namesTransform()), (0, _utils.isTrim)(type, trim, (0, _ProConfigProvider.useProConfig)())));
|
|
519
526
|
// 编辑&保存模式,在查看状态下移除表单的rules不做校验
|
|
520
527
|
if (!isEditing) {
|
|
521
528
|
delete _formItemProps.rules;
|
|
@@ -69,12 +69,12 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
69
69
|
// 判断是否在formList内
|
|
70
70
|
if (namePath === null || namePath === void 0 ? void 0 : namePath.length) {
|
|
71
71
|
name = [].concat((0, _toConsumableArray2.default)(namePath), (0, _toConsumableArray2.default)(name.slice(1)));
|
|
72
|
+
disabled = (formFieldProps === null || formFieldProps === void 0 ? void 0 : formFieldProps.disabled) || disabled; // formFieldProps?.disabled可能是函数??
|
|
72
73
|
}
|
|
73
74
|
var tableRef = (0, _react.useRef)(null);
|
|
74
75
|
var _React$useContext = _react.default.useContext(_antd.ConfigProvider.ConfigContext),
|
|
75
76
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
76
77
|
var prefixCls = getPrefixCls();
|
|
77
|
-
disabled = (formFieldProps === null || formFieldProps === void 0 ? void 0 : formFieldProps.disabled) || disabled;
|
|
78
78
|
var _useLocalStorageState = (0, _ahooks.useLocalStorageState)('themeConfig'),
|
|
79
79
|
_useLocalStorageState2 = (0, _slicedToArray2.default)(_useLocalStorageState, 1),
|
|
80
80
|
themeConfig = _useLocalStorageState2[0];
|
|
@@ -132,7 +132,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
132
132
|
return getRowKey(item) === getRowKey(record);
|
|
133
133
|
}));
|
|
134
134
|
};
|
|
135
|
-
var config = {
|
|
135
|
+
var config = (0, _objectSpread2.default)({
|
|
136
136
|
form: form,
|
|
137
137
|
mode: mode,
|
|
138
138
|
isView: isView,
|
|
@@ -165,7 +165,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
165
165
|
originalDiffTip: originalDiffTip,
|
|
166
166
|
prefixCls: prefixCls,
|
|
167
167
|
rowDisabled: rowDisabled
|
|
168
|
-
};
|
|
168
|
+
}, resetProps);
|
|
169
169
|
// 编辑行设置下样式
|
|
170
170
|
var _rowClassName = function _rowClassName(record) {
|
|
171
171
|
var isEdit = !virtualKey || editingKeys.includes(record.rowKey);
|
|
@@ -87,11 +87,6 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th.@{ant-prefix}-table-selection-column {
|
|
91
|
-
padding-left: var(--zaui-space-size-md, 16px);
|
|
92
|
-
padding-right: var(--zaui-space-size-md, 16px);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
90
|
.@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th:not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan]).is-required {
|
|
96
91
|
&.is-required-right {
|
|
97
92
|
.pro-edit-table-title {
|