@zat-design/sisyphus-react 3.1.5 → 3.2.0
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 +176 -250
- package/es/ProAction/index.js +7 -5
- package/es/ProAction/index.less +3 -2
- package/es/ProConfigProvider/index.d.ts +2 -0
- package/es/ProConfigProvider/index.js +23 -2
- package/es/ProDownload/utils.js +6 -3
- package/es/ProDrawerForm/components/ProDrawer/index.js +6 -4
- package/es/ProDrawerForm/index.js +5 -3
- package/es/ProDrawerForm/style/index.less +15 -11
- package/es/ProEditLabel/style/index.less +2 -2
- package/es/ProEditTable/components/ActionButton/index.js +3 -2
- package/es/ProEditTable/components/RenderField/index.js +2 -1
- package/es/ProEditTable/index.js +7 -6
- package/es/ProEditTable/style/index.less +15 -8
- package/es/ProEditTable/utils/config.d.ts +8 -8
- package/es/ProEditTable/utils/config.js +20 -12
- package/es/ProEditTable/utils/index.js +3 -2
- package/es/ProEnum/hooks/useEnumRequest.js +17 -10
- package/es/ProEnum/index.js +9 -4
- package/es/ProEnum/style/index.less +1 -1
- package/es/ProForm/components/FormFooter/index.js +16 -20
- package/es/ProForm/components/base/Input/index.js +4 -3
- package/es/ProForm/components/base/InputNumber/index.js +4 -3
- package/es/ProForm/components/base/RangePicker/index.js +0 -3
- package/es/ProForm/components/base/Select/index.js +2 -1
- package/es/ProForm/components/base/Switch/index.js +9 -5
- package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -1
- package/es/ProForm/components/base/TextArea/index.js +4 -2
- package/es/ProForm/components/base/TextArea/index.less +1 -1
- package/es/ProForm/components/combination/Container/style/index.less +0 -1
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
- package/es/ProForm/components/combination/FormList/style/index.less +20 -19
- package/es/ProForm/components/combination/Group/index.js +2 -2
- package/es/ProForm/components/combination/ProAddressBar/index.js +83 -63
- package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
- package/es/ProForm/components/combination/ProModalSelect/index.js +76 -15
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
- package/es/ProForm/components/combination/ProNumberRange/index.js +3 -2
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProRangeLimit/index.js +3 -7
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
- package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -11
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
- package/es/ProForm/components/old/EnumSelect/style/index.less +7 -8
- package/es/ProForm/components/render/Render.js +4 -2
- package/es/ProForm/components/render/RenderFields.js +10 -6
- package/es/ProForm/components/render/propsType.d.ts +5 -4
- package/es/ProForm/index.js +14 -2
- package/es/ProForm/style/index.less +77 -169
- package/es/ProForm/utils/index.d.ts +1 -1
- package/es/ProForm/utils/index.js +7 -2
- package/es/ProForm/utils/rulesCreator.js +2 -1
- package/es/ProForm/utils/useRules.js +4 -3
- package/es/ProForm/utils/useShouldUpdate.js +16 -16
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
- package/es/ProLayout/components/Layout/Notice/index.js +3 -2
- package/es/ProLayout/components/ProCollapse/style/index.less +4 -4
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
- package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +2 -1
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
- package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/es/ProLayout/components/ProHeader/components/index.js +2 -1
- package/es/ProLayout/components/ProHeader/index.js +9 -6
- package/es/ProLayout/components/ProHeader/style/index.less +16 -7
- package/es/ProLayout/utils/index.js +1 -1
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/index.js +4 -2
- package/es/ProStep/components/Step/index.js +3 -1
- package/es/ProStep/style/index.less +0 -1
- package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
- package/es/ProTable/components/RenderColumn/index.js +41 -25
- package/es/ProTable/index.js +10 -8
- package/es/ProTable/propsType.d.ts +2 -0
- package/es/ProTable/style/index.less +14 -1
- package/es/ProTable/useAntdTable.d.ts +12 -4
- package/es/ProTable/useAntdTable.js +18 -6
- package/es/ProTable/utils.d.ts +1 -1
- package/es/ProTable/utils.js +258 -201
- package/es/ProTabs/style/index.less +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +1 -1
- package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/index.js +24 -17
- package/es/ProThemeTools/propsType.d.ts +8 -6
- package/es/ProThemeTools/style/index.less +2 -2
- package/es/ProThemeTools/utils/index.d.ts +7 -0
- package/es/ProThemeTools/utils/index.js +19 -1
- package/es/ProTree/components/ProTree.js +6 -5
- package/es/ProTree/components/SearchTitle.d.ts +2 -2
- package/es/ProTree/components/SearchTitle.js +11 -1
- package/es/ProTree/components/Tree.js +9 -2
- package/es/ProTree/style/index.less +193 -141
- package/es/ProTreeModal/components/List.js +0 -14
- package/es/ProTreeModal/components/Trigger.js +9 -3
- package/es/ProTreeModal/index.js +29 -13
- package/es/ProTreeModal/style/index.less +2 -6
- package/es/ProUpload/components/ButtonRender.js +5 -2
- package/es/ProUpload/components/DragRender.js +8 -8
- package/es/ProUpload/components/Example.js +3 -1
- package/es/ProUpload/components/ImageRender.js +8 -6
- package/es/ProUpload/index.js +8 -6
- package/es/ProUpload/style/index.less +41 -39
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/locale/en_US.d.ts +138 -0
- package/es/locale/en_US.js +137 -0
- package/es/locale/index.d.ts +13 -0
- package/es/locale/index.js +32 -0
- package/es/locale/zh_CN.d.ts +137 -0
- package/es/locale/zh_CN.js +136 -0
- package/es/old/ProEditableTable/style/index.less +1 -2
- package/es/style/components.less +0 -1
- package/es/style/core/normalize.less +1 -2
- package/es/style/theme/antd.less +3 -4
- package/es/style/theme/index.less +80 -79
- package/es/style/theme/tokens.less +1 -0
- package/lib/ProAction/index.js +7 -5
- package/lib/ProAction/index.less +3 -2
- package/lib/ProConfigProvider/index.d.ts +2 -0
- package/lib/ProConfigProvider/index.js +22 -2
- package/lib/ProDownload/utils.js +4 -3
- package/lib/ProDrawerForm/components/ProDrawer/index.js +6 -4
- package/lib/ProDrawerForm/index.js +5 -3
- package/lib/ProDrawerForm/style/index.less +15 -11
- package/lib/ProEditLabel/style/index.less +2 -2
- package/lib/ProEditTable/components/ActionButton/index.js +3 -2
- package/lib/ProEditTable/components/RenderField/index.js +4 -1
- package/lib/ProEditTable/index.js +7 -6
- package/lib/ProEditTable/style/index.less +15 -8
- package/lib/ProEditTable/utils/config.d.ts +8 -8
- package/lib/ProEditTable/utils/config.js +20 -12
- package/lib/ProEditTable/utils/index.js +3 -2
- package/lib/ProEnum/hooks/useEnumRequest.js +17 -10
- package/lib/ProEnum/index.js +9 -4
- package/lib/ProEnum/style/index.less +1 -1
- package/lib/ProForm/components/FormFooter/index.js +16 -19
- package/lib/ProForm/components/base/Input/index.js +4 -3
- package/lib/ProForm/components/base/InputNumber/index.js +4 -3
- package/lib/ProForm/components/base/RangePicker/index.js +1 -4
- package/lib/ProForm/components/base/Select/index.js +2 -1
- package/lib/ProForm/components/base/Switch/index.js +8 -5
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -1
- package/lib/ProForm/components/base/TextArea/index.js +4 -2
- package/lib/ProForm/components/base/TextArea/index.less +1 -1
- package/lib/ProForm/components/combination/Container/style/index.less +0 -1
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
- package/lib/ProForm/components/combination/FormList/style/index.less +20 -19
- package/lib/ProForm/components/combination/Group/index.js +2 -2
- package/lib/ProForm/components/combination/ProAddressBar/index.js +78 -60
- package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.js +76 -15
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
- package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -2
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +3 -7
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -11
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
- package/lib/ProForm/components/old/EnumSelect/style/index.less +7 -8
- package/lib/ProForm/components/old/InputRange/index.js +0 -1
- package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
- package/lib/ProForm/components/render/Render.js +5 -2
- package/lib/ProForm/components/render/RenderFields.js +9 -5
- package/lib/ProForm/components/render/propsType.d.ts +5 -4
- package/lib/ProForm/index.js +14 -2
- package/lib/ProForm/style/index.less +77 -169
- package/lib/ProForm/utils/index.d.ts +1 -1
- package/lib/ProForm/utils/index.js +7 -2
- package/lib/ProForm/utils/rulesCreator.js +2 -1
- package/lib/ProForm/utils/useRules.js +4 -3
- package/lib/ProForm/utils/useShouldUpdate.js +16 -16
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
- package/lib/ProLayout/components/Layout/Notice/index.js +3 -2
- package/lib/ProLayout/components/ProCollapse/style/index.less +4 -4
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
- package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +3 -1
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
- package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
- package/lib/ProLayout/components/ProHeader/index.js +9 -6
- package/lib/ProLayout/components/ProHeader/style/index.less +16 -7
- package/lib/ProLayout/utils/index.js +1 -1
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/index.js +4 -2
- package/lib/ProStep/components/Step/index.js +3 -1
- package/lib/ProStep/style/index.less +0 -1
- package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
- package/lib/ProTable/components/RenderColumn/index.js +38 -24
- package/lib/ProTable/components/TableResizable/index.js +8 -0
- package/lib/ProTable/index.js +10 -8
- package/lib/ProTable/propsType.d.ts +2 -0
- package/lib/ProTable/style/index.less +14 -1
- package/lib/ProTable/useAntdTable.d.ts +12 -4
- package/lib/ProTable/useAntdTable.js +19 -6
- package/lib/ProTable/utils.d.ts +1 -1
- package/lib/ProTable/utils.js +258 -201
- package/lib/ProTabs/index.js +1 -0
- package/lib/ProTabs/style/index.less +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
- package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/index.js +24 -16
- package/lib/ProThemeTools/propsType.d.ts +8 -6
- package/lib/ProThemeTools/style/index.less +2 -2
- package/lib/ProThemeTools/utils/index.d.ts +7 -0
- package/lib/ProThemeTools/utils/index.js +20 -2
- package/lib/ProTree/components/ProTree.js +6 -5
- package/lib/ProTree/components/SearchTitle.d.ts +2 -2
- package/lib/ProTree/components/SearchTitle.js +11 -1
- package/lib/ProTree/components/Tree.js +16 -2
- package/lib/ProTree/index.js +0 -1
- package/lib/ProTree/style/index.less +193 -141
- package/lib/ProTreeModal/components/List.js +0 -14
- package/lib/ProTreeModal/components/Tree.js +1 -0
- package/lib/ProTreeModal/components/Trigger.js +10 -3
- package/lib/ProTreeModal/index.js +29 -13
- package/lib/ProTreeModal/style/index.less +2 -6
- package/lib/ProUpload/components/ButtonRender.js +5 -2
- package/lib/ProUpload/components/DragRender.js +8 -8
- package/lib/ProUpload/components/Example.js +3 -1
- package/lib/ProUpload/components/ImageRender.js +8 -6
- package/lib/ProUpload/index.js +14 -5
- package/lib/ProUpload/style/index.less +41 -39
- package/lib/index.d.ts +2 -1
- package/lib/index.js +13 -1
- package/lib/locale/en_US.d.ts +138 -0
- package/lib/locale/en_US.js +143 -0
- package/lib/locale/index.d.ts +13 -0
- package/lib/locale/index.js +41 -0
- package/lib/locale/zh_CN.d.ts +137 -0
- package/lib/locale/zh_CN.js +142 -0
- package/lib/old/ProCertValidity/index.js +1 -1
- package/lib/old/ProEditableTable/style/index.less +1 -2
- package/lib/style/components.less +0 -1
- package/lib/style/core/normalize.less +1 -2
- package/lib/style/theme/antd.less +3 -4
- package/lib/style/theme/index.less +80 -79
- package/lib/style/theme/tokens.less +1 -0
- package/package.json +1 -1
- package/typings.d.ts +2 -0
- package/es/old/ProBackBtn/style/index.less +0 -19
- package/lib/old/ProBackBtn/style/index.less +0 -19
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
|
@@ -21,12 +21,13 @@ var _index = require("../index");
|
|
|
21
21
|
var _components = require("./components");
|
|
22
22
|
var _utils = require("./utils");
|
|
23
23
|
var _inputSearch = _interopRequireDefault(require("../assets/input-search.svg"));
|
|
24
|
+
var _locale = _interopRequireWildcard(require("../locale"));
|
|
24
25
|
require("./style/index.less");
|
|
25
26
|
var LIST = 'LIST';
|
|
26
27
|
var TREE = 'TREE';
|
|
27
28
|
var CASCADER = exports.CASCADER = 'CASCADER';
|
|
28
29
|
var ProTreeModal = function ProTreeModal(props) {
|
|
29
|
-
var _props$otherProps, _props$otherProps2;
|
|
30
|
+
var _locale$ProTreeModal, _props$otherProps, _props$otherProps2, _locale$ProTreeModal9, _locale$ProTreeModal10, _locale$ProTreeModal11, _locale$ProTreeModal12;
|
|
30
31
|
var _useProConfig = (0, _index.useProConfig)('ProEnum'),
|
|
31
32
|
_useProConfig$dics = _useProConfig.dics,
|
|
32
33
|
dics = _useProConfig$dics === void 0 ? {} : _useProConfig$dics;
|
|
@@ -40,7 +41,7 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
40
41
|
mode = _props$mode === void 0 ? 'tree' : _props$mode,
|
|
41
42
|
enumCode = props.code,
|
|
42
43
|
_props$title = props.title,
|
|
43
|
-
title = _props$title === void 0 ?
|
|
44
|
+
title = _props$title === void 0 ? _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal = _locale.default.ProTreeModal) === null || _locale$ProTreeModal === void 0 ? void 0 : _locale$ProTreeModal.select : _props$title,
|
|
44
45
|
useRequest = props.useRequest,
|
|
45
46
|
allValue = props.allValue,
|
|
46
47
|
_props$showCodeName = props.showCodeName,
|
|
@@ -127,7 +128,8 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
127
128
|
}
|
|
128
129
|
// check dictEnum isArray
|
|
129
130
|
if (!dictEnum || !Array.isArray(dictEnum)) {
|
|
130
|
-
|
|
131
|
+
var _locale$ProTreeModal2;
|
|
132
|
+
console.error(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal2 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal2 === void 0 ? void 0 : _locale$ProTreeModal2.errorArrayMessage);
|
|
131
133
|
dictEnum = [];
|
|
132
134
|
}
|
|
133
135
|
setState({
|
|
@@ -235,7 +237,10 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
235
237
|
}
|
|
236
238
|
if (min) {
|
|
237
239
|
if (values.length < min) {
|
|
238
|
-
|
|
240
|
+
var _locale$ProTreeModal3;
|
|
241
|
+
_antd.message.error((0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal3 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal3 === void 0 ? void 0 : _locale$ProTreeModal3.selectMin, {
|
|
242
|
+
min: min
|
|
243
|
+
}));
|
|
239
244
|
return;
|
|
240
245
|
}
|
|
241
246
|
}
|
|
@@ -300,9 +305,12 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
300
305
|
checkedValues.push(code);
|
|
301
306
|
}
|
|
302
307
|
if (max && checkedValues.length > max) {
|
|
308
|
+
var _locale$ProTreeModal4;
|
|
303
309
|
_antd.message.error(maxMessage ? (0, _utils.transformMessage)({
|
|
304
310
|
max: max
|
|
305
|
-
}, maxMessage) :
|
|
311
|
+
}, maxMessage) : (0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal4 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal4 === void 0 ? void 0 : _locale$ProTreeModal4.selectMax, {
|
|
312
|
+
max: max
|
|
313
|
+
}));
|
|
306
314
|
return;
|
|
307
315
|
}
|
|
308
316
|
setState({
|
|
@@ -362,9 +370,12 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
362
370
|
});
|
|
363
371
|
}
|
|
364
372
|
if (max && checkedValues.length > max) {
|
|
373
|
+
var _locale$ProTreeModal5;
|
|
365
374
|
_antd.message.error(maxMessage ? (0, _utils.transformMessage)({
|
|
366
375
|
max: max
|
|
367
|
-
}, maxMessage) :
|
|
376
|
+
}, maxMessage) : (0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal5 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal5 === void 0 ? void 0 : _locale$ProTreeModal5.selectMax, {
|
|
377
|
+
max: max
|
|
378
|
+
}));
|
|
368
379
|
return;
|
|
369
380
|
}
|
|
370
381
|
setState({
|
|
@@ -502,9 +513,12 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
502
513
|
}
|
|
503
514
|
}
|
|
504
515
|
if (max && checkedValues.length > max) {
|
|
516
|
+
var _locale$ProTreeModal6;
|
|
505
517
|
_antd.message.error(maxMessage ? (0, _utils.transformMessage)({
|
|
506
518
|
max: max
|
|
507
|
-
}, maxMessage) :
|
|
519
|
+
}, maxMessage) : (0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal6 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal6 === void 0 ? void 0 : _locale$ProTreeModal6.selectMax, {
|
|
520
|
+
max: max
|
|
521
|
+
}));
|
|
508
522
|
return;
|
|
509
523
|
}
|
|
510
524
|
setState({
|
|
@@ -519,9 +533,10 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
519
533
|
*/
|
|
520
534
|
var renderContainer = function renderContainer() {
|
|
521
535
|
if (state.treeData.length === 0 && state.searchStr) {
|
|
536
|
+
var _locale$ProTreeModal7;
|
|
522
537
|
return (0, _jsxRuntime.jsx)("div", {
|
|
523
538
|
className: "pro-tree-modal-no-checks",
|
|
524
|
-
children:
|
|
539
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal7 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal7 === void 0 ? void 0 : _locale$ProTreeModal7.noFinal
|
|
525
540
|
});
|
|
526
541
|
}
|
|
527
542
|
switch (modeType) {
|
|
@@ -597,9 +612,10 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
597
612
|
*/
|
|
598
613
|
var renderView = function renderView() {
|
|
599
614
|
if (state.checkedValues.length === 0) {
|
|
615
|
+
var _locale$ProTreeModal8;
|
|
600
616
|
return (0, _jsxRuntime.jsx)("div", {
|
|
601
617
|
className: "pro-tree-modal-no-checks",
|
|
602
|
-
children:
|
|
618
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal8 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal8 === void 0 ? void 0 : _locale$ProTreeModal8.noCheck
|
|
603
619
|
});
|
|
604
620
|
}
|
|
605
621
|
switch (modeType) {
|
|
@@ -655,7 +671,7 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
655
671
|
checked: state.checkAll,
|
|
656
672
|
disabled: disabled,
|
|
657
673
|
onChange: handleAllCheck,
|
|
658
|
-
children:
|
|
674
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal9 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal9 === void 0 ? void 0 : _locale$ProTreeModal9.checkAll
|
|
659
675
|
}) : null,
|
|
660
676
|
children: (0, _jsxRuntime.jsxs)("div", {
|
|
661
677
|
className: "pro-tree-modal-content",
|
|
@@ -665,7 +681,7 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
665
681
|
disabled: disabled,
|
|
666
682
|
allowClear: true,
|
|
667
683
|
value: state.searchStr,
|
|
668
|
-
placeholder: placeholder ||
|
|
684
|
+
placeholder: placeholder || (_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal10 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal10 === void 0 ? void 0 : _locale$ProTreeModal10.input),
|
|
669
685
|
className: "pro-tree-modal-search",
|
|
670
686
|
onChange: onSearch,
|
|
671
687
|
prefix: (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
|
@@ -681,12 +697,12 @@ var ProTreeModal = function ProTreeModal(props) {
|
|
|
681
697
|
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
682
698
|
className: "pro-tree-modal-box-header",
|
|
683
699
|
children: [(0, _jsxRuntime.jsxs)("span", {
|
|
684
|
-
children: ["
|
|
700
|
+
children: [_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal11 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal11 === void 0 ? void 0 : _locale$ProTreeModal11.check, " (", state.checkedValues.length, "/", max || state.flatTreeData.length, ")"]
|
|
685
701
|
}), (0, _jsxRuntime.jsx)(_antd.Button, {
|
|
686
702
|
disabled: disabled,
|
|
687
703
|
type: "link",
|
|
688
704
|
onClick: handleClearAll,
|
|
689
|
-
children:
|
|
705
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTreeModal12 = _locale.default.ProTreeModal) === null || _locale$ProTreeModal12 === void 0 ? void 0 : _locale$ProTreeModal12.clearAll
|
|
690
706
|
})]
|
|
691
707
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
692
708
|
className: "pro-tree-modal-tree-warp pro-transfer-right",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
display : flex;
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
height : 482px;
|
|
14
|
-
margin-bottom : var(--zaui-space-size-md
|
|
14
|
+
margin-bottom : calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
15
15
|
|
|
16
16
|
.ant-tree-checkbox {
|
|
17
17
|
margin-top: 2px;
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
padding-bottom: var(--zaui-font-size-sm, 12px);
|
|
29
29
|
color : var(--zaui-text);
|
|
30
30
|
font-size : var(--zaui-font-size, 14px);
|
|
31
|
-
font-family : PingFangSC-Regular, PingFang SC;
|
|
32
31
|
line-height : var(--zaui-font-size-xxl, 20px);
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
height : 100%;
|
|
50
49
|
color : var(--zaui-text);
|
|
51
50
|
font-size : var(--zaui-font-size, 14px);
|
|
52
|
-
font-family : PingFangSC-Regular, PingFang SC;
|
|
53
51
|
line-height : var(--zaui-font-size-xxl, 20px);
|
|
54
52
|
border : 1px solid #e6e6e6;
|
|
55
53
|
border-radius : var(--zaui-border-radius, 4px);
|
|
@@ -132,7 +130,7 @@
|
|
|
132
130
|
flex-direction : row;
|
|
133
131
|
align-items : center;
|
|
134
132
|
justify-content: space-between;
|
|
135
|
-
margin-bottom : var(--zaui-
|
|
133
|
+
margin-bottom : calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
136
134
|
line-height : var(--zaui-font-size-xxl, 20px);
|
|
137
135
|
cursor : pointer;
|
|
138
136
|
|
|
@@ -194,7 +192,6 @@
|
|
|
194
192
|
margin-right : var(--zaui-space-size-sm, 8px);
|
|
195
193
|
padding : 0 var(--zaui-space-size-xs);
|
|
196
194
|
font-weight : 400;
|
|
197
|
-
font-family : PingFangSC-Regular, PingFang SC;
|
|
198
195
|
line-height : var(--zaui-font-size-lg-title);
|
|
199
196
|
white-space : nowrap;
|
|
200
197
|
border-radius : var(--zaui-border-radius-card);
|
|
@@ -216,7 +213,6 @@
|
|
|
216
213
|
color : #939599;
|
|
217
214
|
font-weight : 400;
|
|
218
215
|
font-size : var(--zaui-font-size, 14px);
|
|
219
|
-
font-family : PingFangSC-Regular, PingFang SC;
|
|
220
216
|
}
|
|
221
217
|
|
|
222
218
|
.pro-transfer-right {
|
|
@@ -13,8 +13,10 @@ var _sortable = require("@dnd-kit/sortable");
|
|
|
13
13
|
var _icons = require("@ant-design/icons");
|
|
14
14
|
var _FileItem = require("./FileItem");
|
|
15
15
|
var _DraggableUploadListItem = require("./DraggableUploadListItem");
|
|
16
|
+
var _locale = _interopRequireDefault(require("../../locale"));
|
|
16
17
|
/* 按钮类型 */
|
|
17
18
|
var ButtonRender = function ButtonRender(props) {
|
|
19
|
+
var _locale$ProUpload;
|
|
18
20
|
var isView = props.isView,
|
|
19
21
|
disabled = props.disabled,
|
|
20
22
|
sensor = props.sensor,
|
|
@@ -26,7 +28,8 @@ var ButtonRender = function ButtonRender(props) {
|
|
|
26
28
|
buttonProps = props.buttonProps,
|
|
27
29
|
extraTipText = props.extraTipText,
|
|
28
30
|
afterRender = props.afterRender,
|
|
29
|
-
buttonText = props.buttonText
|
|
31
|
+
_props$buttonText = props.buttonText,
|
|
32
|
+
buttonText = _props$buttonText === void 0 ? _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload = _locale.default.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.buttonText : _props$buttonText;
|
|
30
33
|
// 按钮类型的props
|
|
31
34
|
var buttonUploadProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, baseUploadProps), {}, {
|
|
32
35
|
fileList: fileList,
|
|
@@ -58,7 +61,7 @@ var ButtonRender = function ButtonRender(props) {
|
|
|
58
61
|
className: "pro-upload-button-inner",
|
|
59
62
|
children: [(0, _jsxRuntime.jsxs)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, buttonProps), {}, {
|
|
60
63
|
disabled: disabled || isView,
|
|
61
|
-
children: [(0, _jsxRuntime.jsx)(_icons.CloudUploadOutlined, {}), buttonText
|
|
64
|
+
children: [(0, _jsxRuntime.jsx)(_icons.CloudUploadOutlined, {}), buttonText]
|
|
62
65
|
})), afterRender ? (0, _jsxRuntime.jsx)("div", {
|
|
63
66
|
className: "pro-upload-button-inner-right",
|
|
64
67
|
children: afterRender
|
|
@@ -14,8 +14,10 @@ var _sortable = require("@dnd-kit/sortable");
|
|
|
14
14
|
var _icons = require("@ant-design/icons");
|
|
15
15
|
var _FileItem = require("./FileItem");
|
|
16
16
|
var _DraggableUploadListItem = require("./DraggableUploadListItem");
|
|
17
|
+
var _locale = _interopRequireDefault(require("../../locale"));
|
|
17
18
|
var Dragger = _antd.Upload.Dragger;
|
|
18
19
|
var DragRender = function DragRender(props) {
|
|
20
|
+
var _locale$ProUpload3, _locale$ProUpload4, _locale$ProUpload5;
|
|
19
21
|
var isView = props.isView,
|
|
20
22
|
baseUploadProps = props.baseUploadProps,
|
|
21
23
|
disabled = props.disabled,
|
|
@@ -79,6 +81,7 @@ var DragRender = function DragRender(props) {
|
|
|
79
81
|
* @return {*}
|
|
80
82
|
*/
|
|
81
83
|
var draggerSingleRender = function draggerSingleRender(file) {
|
|
84
|
+
var _locale$ProUpload, _locale$ProUpload2;
|
|
82
85
|
var _fileExt = (0, _FileItem.getFileExt)(file.name);
|
|
83
86
|
var _fileIcon = (0, _FileItem.getFileIcon)(_fileExt);
|
|
84
87
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
@@ -100,13 +103,13 @@ var DragRender = function DragRender(props) {
|
|
|
100
103
|
onClick: function onClick() {
|
|
101
104
|
handleReSelect(file);
|
|
102
105
|
},
|
|
103
|
-
children:
|
|
106
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload = _locale.default.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.draggerSelect
|
|
104
107
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
105
108
|
className: "file-del",
|
|
106
109
|
onClick: function onClick() {
|
|
107
110
|
handleDelFile(file);
|
|
108
111
|
},
|
|
109
|
-
children:
|
|
112
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload2 = _locale.default.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.draggerDelete
|
|
110
113
|
})]
|
|
111
114
|
})]
|
|
112
115
|
});
|
|
@@ -135,16 +138,13 @@ var DragRender = function DragRender(props) {
|
|
|
135
138
|
children: [(0, _jsxRuntime.jsx)("i", {
|
|
136
139
|
className: "icon-upload",
|
|
137
140
|
children: (0, _jsxRuntime.jsx)(_icons.CloudUploadOutlined, {})
|
|
138
|
-
}), (0, _jsxRuntime.
|
|
141
|
+
}), (0, _jsxRuntime.jsx)("p", {
|
|
139
142
|
className: "dragger-txt",
|
|
140
|
-
children:
|
|
141
|
-
className: "click-txt",
|
|
142
|
-
children: "\u70B9\u51FB\u4E0A\u4F20 "
|
|
143
|
-
})]
|
|
143
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload3 = _locale.default.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.draggerTips
|
|
144
144
|
})]
|
|
145
145
|
}), (0, _jsxRuntime.jsxs)("p", {
|
|
146
146
|
className: "file-ext",
|
|
147
|
-
children: ["\
|
|
147
|
+
children: [_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload4 = _locale.default.ProUpload) === null || _locale$ProUpload4 === void 0 ? void 0 : _locale$ProUpload4.draggerFileExt, "\uFF1A", extExt.length > 0 ? extExt.join('、') : "".concat(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload5 = _locale.default.ProUpload) === null || _locale$ProUpload5 === void 0 ? void 0 : _locale$ProUpload5.draggerLimitless)]
|
|
148
148
|
})]
|
|
149
149
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
150
150
|
className: "dragger-file-show",
|
|
@@ -10,7 +10,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _ProDrawerForm = _interopRequireDefault(require("../../ProDrawerForm"));
|
|
13
|
+
var _locale = _interopRequireDefault(require("../../locale"));
|
|
13
14
|
var Example = exports.Example = function Example(props) {
|
|
15
|
+
var _locale$ProUpload;
|
|
14
16
|
var exampleContent = props.exampleContent,
|
|
15
17
|
className = props.className,
|
|
16
18
|
exampleTitle = props.exampleTitle,
|
|
@@ -29,7 +31,7 @@ var Example = exports.Example = function Example(props) {
|
|
|
29
31
|
className: className,
|
|
30
32
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
31
33
|
onClick: handleShowModal,
|
|
32
|
-
children:
|
|
34
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload = _locale.default.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.exampleTitle
|
|
33
35
|
}), (0, _jsxRuntime.jsx)(_ProDrawerForm.default, {
|
|
34
36
|
title: exampleTitle,
|
|
35
37
|
width: "600",
|
|
@@ -22,17 +22,19 @@ var _DraggableUploadListItem = require("./DraggableUploadListItem");
|
|
|
22
22
|
var _look = _interopRequireDefault(require("../../assets/look.svg"));
|
|
23
23
|
var _delete = _interopRequireDefault(require("../../assets/delete.svg"));
|
|
24
24
|
var _download = _interopRequireDefault(require("../../assets/download.svg"));
|
|
25
|
+
var _locale = _interopRequireDefault(require("../../locale"));
|
|
25
26
|
/*
|
|
26
27
|
* @Author: wangshengqiang
|
|
27
28
|
* @Date: 2023-07-27 20:13:07
|
|
28
29
|
* @LastEditors: wangshengqiang
|
|
29
|
-
* @LastEditTime: 2023-
|
|
30
|
+
* @LastEditTime: 2023-11-07 19:01:07
|
|
30
31
|
* @Description: 图片类型
|
|
31
32
|
*
|
|
32
33
|
*/
|
|
33
34
|
|
|
34
35
|
/* 按钮类型 */
|
|
35
36
|
var ImageRender = function ImageRender(props) {
|
|
37
|
+
var _locale$ProUpload4;
|
|
36
38
|
var _useState = (0, _react.useState)({}),
|
|
37
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
38
40
|
previewImg = _useState2[0],
|
|
@@ -92,7 +94,7 @@ var ImageRender = function ImageRender(props) {
|
|
|
92
94
|
openFileDialogOnClick: !showDraggerSingleRender,
|
|
93
95
|
disabled: disabled || isView,
|
|
94
96
|
itemRender: function itemRender(originNode, file, fileList, actions) {
|
|
95
|
-
var _file$url;
|
|
97
|
+
var _file$url, _locale$ProUpload, _locale$ProUpload2, _locale$ProUpload3;
|
|
96
98
|
var _showPreview = file.status === 'done';
|
|
97
99
|
var _isShowDownload = !!onDownload && file.status === 'done';
|
|
98
100
|
var _fileExt = (0, _FileItem.getFileExt)(file.name || (file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('?')[0]));
|
|
@@ -130,7 +132,7 @@ var ImageRender = function ImageRender(props) {
|
|
|
130
132
|
wrapper: "span",
|
|
131
133
|
src: _look.default
|
|
132
134
|
}),
|
|
133
|
-
children:
|
|
135
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload = _locale.default.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.view
|
|
134
136
|
}), _isShowDownload && (0, _jsxRuntime.jsx)(_antd.Button, {
|
|
135
137
|
type: "link",
|
|
136
138
|
disabled: isView || disabled,
|
|
@@ -143,7 +145,7 @@ var ImageRender = function ImageRender(props) {
|
|
|
143
145
|
wrapper: "span",
|
|
144
146
|
src: _download.default
|
|
145
147
|
}),
|
|
146
|
-
children:
|
|
148
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload2 = _locale.default.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.download
|
|
147
149
|
})]
|
|
148
150
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
149
151
|
className: "action-button",
|
|
@@ -198,7 +200,7 @@ var ImageRender = function ImageRender(props) {
|
|
|
198
200
|
wrapper: "span",
|
|
199
201
|
src: _delete.default
|
|
200
202
|
}),
|
|
201
|
-
children:
|
|
203
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload3 = _locale.default.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.delete
|
|
202
204
|
})
|
|
203
205
|
})]
|
|
204
206
|
})]
|
|
@@ -228,7 +230,7 @@ var ImageRender = function ImageRender(props) {
|
|
|
228
230
|
style: {
|
|
229
231
|
marginTop: 8
|
|
230
232
|
},
|
|
231
|
-
children:
|
|
233
|
+
children: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload4 = _locale.default.ProUpload) === null || _locale$ProUpload4 === void 0 ? void 0 : _locale$ProUpload4.buttonText
|
|
232
234
|
})]
|
|
233
235
|
})
|
|
234
236
|
}))
|
package/lib/ProUpload/index.js
CHANGED
|
@@ -19,8 +19,17 @@ var _DragRender = _interopRequireDefault(require("./components/DragRender"));
|
|
|
19
19
|
var _ButtonRender = _interopRequireDefault(require("./components/ButtonRender"));
|
|
20
20
|
var _ImageRender = _interopRequireDefault(require("./components/ImageRender"));
|
|
21
21
|
var _uitls = require("./uitls");
|
|
22
|
+
var _locale = _interopRequireDefault(require("../locale"));
|
|
22
23
|
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"];
|
|
24
|
+
/*
|
|
25
|
+
* @Author: wangshengqiang
|
|
26
|
+
* @Date: 2023-02-03 14:18:59
|
|
27
|
+
* @LastEditTime: 2023-11-07 18:49:49
|
|
28
|
+
* @LastEditors: wangshengqiang
|
|
29
|
+
* @Description: 上传控件
|
|
30
|
+
*/
|
|
23
31
|
var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
32
|
+
var _locale$ProUpload;
|
|
24
33
|
var _useState = (0, _react.useState)([]),
|
|
25
34
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
26
35
|
_fileList = _useState2[0],
|
|
@@ -57,7 +66,7 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
57
66
|
otherProps = props.otherProps,
|
|
58
67
|
transformResponse = props.transformResponse,
|
|
59
68
|
_props$exampleTitle = props.exampleTitle,
|
|
60
|
-
exampleTitle = _props$exampleTitle === void 0 ?
|
|
69
|
+
exampleTitle = _props$exampleTitle === void 0 ? _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload = _locale.default.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.exampleTitle : _props$exampleTitle,
|
|
61
70
|
exampleContent = props.exampleContent,
|
|
62
71
|
exampleModalProps = props.exampleModalProps,
|
|
63
72
|
buttonText = props.buttonText,
|
|
@@ -70,13 +79,11 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
70
79
|
distance: 10
|
|
71
80
|
}
|
|
72
81
|
});
|
|
73
|
-
// 文件格式
|
|
74
82
|
var extExt = accept ? accept.split(',').map(function (i) {
|
|
75
83
|
return i.toLocaleUpperCase();
|
|
76
84
|
}) : [];
|
|
77
85
|
var uploadResTransform = function uploadResTransform(fileList) {
|
|
78
86
|
var _list = fileList.map(function (file) {
|
|
79
|
-
// 组件负责上传 内部处理
|
|
80
87
|
if (file.status === 'done' && file.response) {
|
|
81
88
|
var nfile = {
|
|
82
89
|
name: file.name,
|
|
@@ -176,11 +183,13 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
176
183
|
var handleBeforeUpload = function handleBeforeUpload(file, fileList) {
|
|
177
184
|
// TODO
|
|
178
185
|
if (!(0, _uitls.validateFileExt)(extExt, file)) {
|
|
179
|
-
|
|
186
|
+
var _locale$ProUpload2;
|
|
187
|
+
_antd.message.error("".concat(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload2 = _locale.default.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.errorInfoExt, "\u3010").concat(extExt.join('、'), "\u3011"));
|
|
180
188
|
return false;
|
|
181
189
|
}
|
|
182
190
|
if (!(0, _uitls.validateSize)(size, file)) {
|
|
183
|
-
|
|
191
|
+
var _locale$ProUpload3;
|
|
192
|
+
_antd.message.error("".concat(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload3 = _locale.default.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.errorInfoSize).concat(size, "M"));
|
|
184
193
|
return false;
|
|
185
194
|
}
|
|
186
195
|
if (beforeUpload) {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
background : #F8F9FA;
|
|
8
8
|
border-radius: var(--zaui-border-radius, 4px);
|
|
9
9
|
padding : var(--zaui-space-size-sm, 8px);
|
|
10
|
+
|
|
10
11
|
.ant-upload.ant-upload-drag {
|
|
11
12
|
background-color: var(--zaui-base-bg, #fff);
|
|
12
13
|
}
|
|
@@ -27,17 +28,14 @@
|
|
|
27
28
|
align-items: center;
|
|
28
29
|
|
|
29
30
|
.icon-upload {
|
|
30
|
-
display
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
font-size : 30px;
|
|
34
|
-
color : #C5C7CD;
|
|
35
|
-
// background: #c5c7cd;
|
|
31
|
+
display : inline-block;
|
|
32
|
+
font-size: 30px;
|
|
33
|
+
color : #C5C7CD;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
.dragger-txt {
|
|
39
37
|
margin-left: 9px;
|
|
40
|
-
font-size : 14px;
|
|
38
|
+
font-size : var(--zaui-font-size, 14px);
|
|
41
39
|
|
|
42
40
|
|
|
43
41
|
color : rgba(0, 0, 0, 0.85);
|
|
@@ -50,9 +48,9 @@
|
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
.file-ext {
|
|
53
|
-
text-align
|
|
54
|
-
margin-top
|
|
55
|
-
font-size
|
|
51
|
+
text-align: center;
|
|
52
|
+
margin-top: 10px;
|
|
53
|
+
font-size : var(--zaui-font-size-sm, 12px);
|
|
56
54
|
|
|
57
55
|
|
|
58
56
|
color : #939599;
|
|
@@ -88,11 +86,11 @@
|
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
.file-name {
|
|
91
|
-
display
|
|
92
|
-
overflow
|
|
89
|
+
display : box;
|
|
90
|
+
overflow : hidden;
|
|
93
91
|
line-clamp: 1;
|
|
94
92
|
box-orient: vertical;
|
|
95
|
-
word-break
|
|
93
|
+
word-break: break-all;
|
|
96
94
|
}
|
|
97
95
|
|
|
98
96
|
.file-ext {
|
|
@@ -133,6 +131,7 @@
|
|
|
133
131
|
width : 100%;
|
|
134
132
|
display: block;
|
|
135
133
|
}
|
|
134
|
+
|
|
136
135
|
.pro-upload-button-inner {
|
|
137
136
|
display: flex;
|
|
138
137
|
|
|
@@ -145,10 +144,10 @@
|
|
|
145
144
|
.upload-tip-txt {
|
|
146
145
|
margin-left: 10px;
|
|
147
146
|
line-height: 32px;
|
|
148
|
-
font-size : 12px;
|
|
147
|
+
font-size : var(--zaui-font-size-sm, 12px);
|
|
149
148
|
|
|
150
149
|
|
|
151
|
-
color
|
|
150
|
+
color: #939599;
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
153
|
|
|
@@ -182,20 +181,20 @@
|
|
|
182
181
|
}
|
|
183
182
|
|
|
184
183
|
.file-item-image {
|
|
185
|
-
position
|
|
186
|
-
overflow
|
|
184
|
+
position : relative;
|
|
185
|
+
overflow : hidden;
|
|
187
186
|
// height : 100%;
|
|
188
|
-
height
|
|
189
|
-
width: 126px
|
|
190
|
-
border
|
|
191
|
-
overflow
|
|
192
|
-
border-radius: 8px;
|
|
187
|
+
height : 126px;
|
|
188
|
+
width : 126px;
|
|
189
|
+
border : 1px dashed #d9d9d9;
|
|
190
|
+
overflow : hidden;
|
|
191
|
+
border-radius : 8px;
|
|
193
192
|
|
|
194
193
|
.file-type-icon-img {
|
|
195
|
-
position: absolute;
|
|
196
|
-
width: 30px;
|
|
197
|
-
top: 50%;
|
|
198
|
-
left: 50%;
|
|
194
|
+
position : absolute;
|
|
195
|
+
width : 30px;
|
|
196
|
+
top : 50%;
|
|
197
|
+
left : 50%;
|
|
199
198
|
transform: translate(-50%, -50%);
|
|
200
199
|
|
|
201
200
|
}
|
|
@@ -238,10 +237,9 @@
|
|
|
238
237
|
|
|
239
238
|
.action-item {
|
|
240
239
|
color : #fff;
|
|
241
|
-
font-size: 12px;
|
|
240
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
242
241
|
opacity : 0.8;
|
|
243
242
|
|
|
244
|
-
// cursor: pointer;
|
|
245
243
|
.action-icon {
|
|
246
244
|
margin-right: 10px;
|
|
247
245
|
transform : translate(0, 3px);
|
|
@@ -276,29 +274,33 @@
|
|
|
276
274
|
.ant-space-item {
|
|
277
275
|
display: inline-flex;
|
|
278
276
|
}
|
|
279
|
-
|
|
277
|
+
|
|
278
|
+
.pro-upload-image-footer {
|
|
280
279
|
margin-top: -8px;
|
|
281
280
|
}
|
|
282
281
|
}
|
|
282
|
+
|
|
283
283
|
.file-actions {
|
|
284
284
|
.file-action-item {
|
|
285
285
|
padding-top: var(--zaui-space-size-xs, 4px) !important;
|
|
286
286
|
}
|
|
287
|
+
|
|
287
288
|
.action-icon {
|
|
288
|
-
display: inline-flex;
|
|
289
|
-
align-items: center;
|
|
290
|
-
color: inherit;
|
|
291
|
-
font-style: normal;
|
|
292
|
-
text-align: center;
|
|
289
|
+
display : inline-flex;
|
|
290
|
+
align-items : center;
|
|
291
|
+
color : inherit;
|
|
292
|
+
font-style : normal;
|
|
293
|
+
text-align : center;
|
|
293
294
|
text-transform: none;
|
|
294
295
|
vertical-align: -0.15em;
|
|
295
296
|
text-rendering: optimizeLegibility;
|
|
297
|
+
|
|
296
298
|
span {
|
|
297
|
-
display: inline-flex;
|
|
298
|
-
align-items: center;
|
|
299
|
-
color: inherit;
|
|
300
|
-
font-style: normal;
|
|
301
|
-
text-align: center;
|
|
299
|
+
display : inline-flex;
|
|
300
|
+
align-items : center;
|
|
301
|
+
color : inherit;
|
|
302
|
+
font-style : normal;
|
|
303
|
+
text-align : center;
|
|
302
304
|
text-transform: none;
|
|
303
305
|
vertical-align: -0.15em;
|
|
304
306
|
text-rendering: optimizeLegibility;
|
package/lib/index.d.ts
CHANGED
|
@@ -21,7 +21,8 @@ export { default as ProUpload } from './ProUpload';
|
|
|
21
21
|
export { default as ProThemeTools } from './ProThemeTools';
|
|
22
22
|
export { default as ProAction } from './ProAction';
|
|
23
23
|
export * from './ProConfigProvider';
|
|
24
|
-
export
|
|
24
|
+
export * from './locale';
|
|
25
|
+
export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
|
|
25
26
|
export { default as ProEditableTable } from './old/ProEditableTable';
|
|
26
27
|
export { default as ProCertValidity } from './old/ProCertValidity';
|
|
27
28
|
export * from './ProForm/propsType';
|
package/lib/index.js
CHANGED
|
@@ -214,7 +214,19 @@ Object.keys(_ProConfigProvider).forEach(function (key) {
|
|
|
214
214
|
var _ProUpload = _interopRequireDefault(require("./ProUpload"));
|
|
215
215
|
var _ProThemeTools = _interopRequireDefault(require("./ProThemeTools"));
|
|
216
216
|
var _ProAction = _interopRequireDefault(require("./ProAction"));
|
|
217
|
-
var
|
|
217
|
+
var _locale = require("./locale");
|
|
218
|
+
Object.keys(_locale).forEach(function (key) {
|
|
219
|
+
if (key === "default" || key === "__esModule") return;
|
|
220
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
221
|
+
if (key in exports && exports[key] === _locale[key]) return;
|
|
222
|
+
Object.defineProperty(exports, key, {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function get() {
|
|
225
|
+
return _locale[key];
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
var _ProBackBtn = _interopRequireDefault(require("./ProLayout/components/ProHeader/components/ProBackBtn"));
|
|
218
230
|
var _ProEditableTable = _interopRequireDefault(require("./old/ProEditableTable"));
|
|
219
231
|
var _ProCertValidity = _interopRequireDefault(require("./old/ProCertValidity"));
|
|
220
232
|
var _propsType = require("./ProForm/propsType");
|