@zat-design/sisyphus-react 3.4.10 → 3.4.11-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 +64 -50
- package/dist/less.esm.css +64 -50
- package/es/ProEditTable/components/DndWrapper/index.d.ts +1 -0
- package/es/ProEditTable/components/DndWrapper/index.js +4 -3
- package/es/ProEditTable/components/RenderField/index.js +6 -10
- package/es/ProEditTable/index.js +49 -56
- package/es/ProEditTable/propsType.d.ts +5 -0
- package/es/ProEditTable/style/index.less +10 -0
- package/es/ProForm/components/base/DatePicker/useDateLimit.d.ts +9 -0
- package/es/ProForm/components/base/DatePicker/useDateLimit.js +15 -0
- package/es/ProForm/components/base/InputNumber/index.js +42 -28
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +35 -29
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +28 -20
- package/es/ProForm/components/combination/FormList/propsType.d.ts +4 -4
- package/es/ProForm/components/combination/Group/component/ComRender.d.ts +3 -0
- package/es/ProForm/components/combination/Group/index.js +2 -2
- package/es/ProForm/components/combination/Group/style/index.less +1 -1
- package/es/ProForm/components/combination/Group/utils.d.ts +1 -1
- package/es/ProForm/components/combination/Group/utils.js +40 -5
- package/es/ProForm/components/combination/ProCascader/utils/index.js +5 -3
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProRangeLimit/index.js +4 -3
- package/es/ProForm/index.js +3 -2
- package/es/ProForm/utils/useDeepCompareMemo.d.ts +1 -1
- package/es/ProForm/utils/useDeepCompareMemo.js +2 -1
- package/es/ProForm/utils/useForm.js +11 -2
- package/es/ProForm/utils/useShouldUpdate.js +8 -2
- package/es/ProIcon/index.d.ts +1 -0
- package/es/ProIcon/index.js +2 -3
- package/es/ProIcon/symbolIcon.js +43 -0
- package/es/ProTree/components/ProTree.js +18 -10
- package/es/ProTree/components/ProTreeSelect/index.js +2 -2
- package/es/ProTree/components/Tree.js +11 -6
- package/es/ProTree/index.js +2 -1
- package/es/ProUpload/components/ButtonRender.d.ts +1 -0
- package/es/ProUpload/components/ButtonRender.js +3 -1
- package/es/ProUpload/components/FileItem.d.ts +1 -0
- package/es/ProUpload/components/FileItem.js +21 -3
- package/es/ProUpload/index.js +4 -2
- package/es/ProUpload/propsType.d.ts +5 -0
- package/es/ProUpload/style/index.less +101 -111
- package/lib/ProEditTable/components/DndWrapper/index.d.ts +1 -0
- package/lib/ProEditTable/components/DndWrapper/index.js +4 -3
- package/lib/ProEditTable/components/RenderField/index.js +6 -10
- package/lib/ProEditTable/index.js +48 -55
- package/lib/ProEditTable/propsType.d.ts +5 -0
- package/lib/ProEditTable/style/index.less +10 -0
- package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +9 -0
- package/lib/ProForm/components/base/DatePicker/useDateLimit.js +22 -0
- package/lib/ProForm/components/base/InputNumber/index.js +41 -27
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +35 -29
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +28 -20
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +4 -4
- package/lib/ProForm/components/combination/Group/component/ComRender.d.ts +3 -0
- package/lib/ProForm/components/combination/Group/index.js +1 -1
- package/lib/ProForm/components/combination/Group/style/index.less +1 -1
- package/lib/ProForm/components/combination/Group/utils.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/utils.js +40 -5
- package/lib/ProForm/components/combination/ProCascader/utils/index.js +5 -3
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +4 -3
- package/lib/ProForm/index.js +3 -2
- package/lib/ProForm/utils/useDeepCompareMemo.d.ts +1 -1
- package/lib/ProForm/utils/useDeepCompareMemo.js +2 -1
- package/lib/ProForm/utils/useForm.js +11 -2
- package/lib/ProForm/utils/useShouldUpdate.js +8 -2
- package/lib/ProIcon/index.d.ts +1 -0
- package/lib/ProIcon/index.js +1 -2
- package/lib/ProIcon/symbolIcon.js +45 -0
- package/lib/ProTree/components/ProTree.js +17 -9
- package/lib/ProTree/components/ProTreeSelect/index.js +2 -2
- package/lib/ProTree/components/Tree.js +11 -6
- package/lib/ProTree/index.js +2 -1
- package/lib/ProUpload/components/ButtonRender.d.ts +1 -0
- package/lib/ProUpload/components/ButtonRender.js +3 -1
- package/lib/ProUpload/components/FileItem.d.ts +1 -0
- package/lib/ProUpload/components/FileItem.js +19 -3
- package/lib/ProUpload/index.js +4 -2
- package/lib/ProUpload/propsType.d.ts +5 -0
- package/lib/ProUpload/style/index.less +101 -111
- package/package.json +1 -1
|
@@ -62,7 +62,7 @@ function List(props) {
|
|
|
62
62
|
var fieldNameLabel = fieldNames.label;
|
|
63
63
|
var fieldNameValue = fieldNames.value;
|
|
64
64
|
var _useSetState = (0, _ahooks.useSetState)({
|
|
65
|
-
expandedKeys:
|
|
65
|
+
expandedKeys: undefined,
|
|
66
66
|
autoExpandParent: true,
|
|
67
67
|
currentClickTreeNode: null,
|
|
68
68
|
handing: false
|
|
@@ -92,9 +92,11 @@ function List(props) {
|
|
|
92
92
|
}
|
|
93
93
|
}, [searchStr]);
|
|
94
94
|
(0, _react.useEffect)(function () {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
if (innerExpandKeys) {
|
|
96
|
+
setState({
|
|
97
|
+
expandedKeys: innerExpandKeys
|
|
98
|
+
});
|
|
99
|
+
}
|
|
98
100
|
}, [innerExpandKeys]);
|
|
99
101
|
(0, _react.useEffect)(function () {
|
|
100
102
|
if (!checkable) {
|
|
@@ -352,16 +354,19 @@ function List(props) {
|
|
|
352
354
|
}
|
|
353
355
|
};
|
|
354
356
|
var others = other;
|
|
357
|
+
var additionProps = {};
|
|
358
|
+
if (expandedKeys) {
|
|
359
|
+
additionProps.expandedKeys = expandedKeys;
|
|
360
|
+
}
|
|
355
361
|
return (0, _jsxRuntime.jsx)("div", {
|
|
356
362
|
className: disabledMode === 'hide' ? 'hide-disable-node' : '',
|
|
357
|
-
children: (_treeData === null || _treeData === void 0 ? void 0 : _treeData.length) ? (0, _jsxRuntime.jsx)(_antd.Tree, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, others), {}, {
|
|
363
|
+
children: (_treeData === null || _treeData === void 0 ? void 0 : _treeData.length) ? (0, _jsxRuntime.jsx)(_antd.Tree, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, others), expandedKeys), {}, {
|
|
358
364
|
disabled: disabled,
|
|
359
365
|
style: {
|
|
360
366
|
width: '100%'
|
|
361
367
|
},
|
|
362
368
|
treeData: _treeData,
|
|
363
369
|
onExpand: onExpand,
|
|
364
|
-
expandedKeys: expandedKeys,
|
|
365
370
|
autoExpandParent: autoExpandParent,
|
|
366
371
|
selectable: false,
|
|
367
372
|
onCheck: onCheck,
|
package/lib/ProTree/index.js
CHANGED
|
@@ -22,7 +22,8 @@ var ProTreeHandle = function ProTreeHandle(props) {
|
|
|
22
22
|
mode = _props$mode === void 0 ? 'tree' : _props$mode;
|
|
23
23
|
if (mode === 'treeSelect') {
|
|
24
24
|
var adaptorProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
25
|
-
treeCheckable: props === null || props === void 0 ? void 0 : props.checkable
|
|
25
|
+
treeCheckable: props === null || props === void 0 ? void 0 : props.checkable,
|
|
26
|
+
treeCheckStrictly: props === null || props === void 0 ? void 0 : props.checkStrictly
|
|
26
27
|
});
|
|
27
28
|
return (0, _jsxRuntime.jsx)(_ProTreeSelect.default, (0, _objectSpread2.default)({}, adaptorProps));
|
|
28
29
|
}
|
|
@@ -13,6 +13,7 @@ interface DragRenderProps extends Pick<ProUploadProps, 'buttonProps' | 'disabled
|
|
|
13
13
|
onDownload: any;
|
|
14
14
|
afterRender: string | ReactNode;
|
|
15
15
|
extExt: any[];
|
|
16
|
+
isConfirmDelete?: boolean;
|
|
16
17
|
}
|
|
17
18
|
declare const ButtonRender: FC<DragRenderProps>;
|
|
18
19
|
export default ButtonRender;
|
|
@@ -29,7 +29,8 @@ var ButtonRender = function ButtonRender(props) {
|
|
|
29
29
|
extraTipText = props.extraTipText,
|
|
30
30
|
afterRender = props.afterRender,
|
|
31
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
|
|
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,
|
|
33
|
+
isConfirmDelete = props.isConfirmDelete;
|
|
33
34
|
// 按钮类型的props
|
|
34
35
|
var buttonUploadProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, baseUploadProps), {}, {
|
|
35
36
|
fileList: fileList,
|
|
@@ -39,6 +40,7 @@ var ButtonRender = function ButtonRender(props) {
|
|
|
39
40
|
children: (0, _jsxRuntime.jsx)(_FileItem.FileItem, {
|
|
40
41
|
disabled: disabled || isView,
|
|
41
42
|
file: file,
|
|
43
|
+
isConfirmDelete: isConfirmDelete,
|
|
42
44
|
onPreview: onPreview,
|
|
43
45
|
onRemove: actions.remove,
|
|
44
46
|
onDownload: onDownload
|
|
@@ -56,7 +56,8 @@ var FileItem = exports.FileItem = function FileItem(props) {
|
|
|
56
56
|
onDownload = props.onDownload,
|
|
57
57
|
onPreview = props.onPreview,
|
|
58
58
|
_props$showRemoveIcon = props.showRemoveIcon,
|
|
59
|
-
showRemoveIcon = _props$showRemoveIcon === void 0 ? true : _props$showRemoveIcon
|
|
59
|
+
showRemoveIcon = _props$showRemoveIcon === void 0 ? true : _props$showRemoveIcon,
|
|
60
|
+
isConfirmDelete = props.isConfirmDelete;
|
|
60
61
|
var _onPreview = function _onPreview() {
|
|
61
62
|
if (onPreview) {
|
|
62
63
|
return onPreview(file);
|
|
@@ -119,7 +120,22 @@ var FileItem = exports.FileItem = function FileItem(props) {
|
|
|
119
120
|
color: "#006aff",
|
|
120
121
|
src: _look.default
|
|
121
122
|
})
|
|
122
|
-
}), _showRemoveIcon && !disabled && (0, _jsxRuntime.jsx)(_antd.
|
|
123
|
+
}), _showRemoveIcon && !disabled && (isConfirmDelete ? (0, _jsxRuntime.jsx)(_antd.Popconfirm, {
|
|
124
|
+
title: "\u786E\u5B9A\u5220\u9664?",
|
|
125
|
+
onConfirm: _onRemove,
|
|
126
|
+
okText: "\u786E\u8BA4",
|
|
127
|
+
cancelText: "\u53D6\u6D88",
|
|
128
|
+
children: (0, _jsxRuntime.jsx)(_antd.Button, {
|
|
129
|
+
type: "link",
|
|
130
|
+
className: "file-action-item",
|
|
131
|
+
disabled: disabled,
|
|
132
|
+
children: (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
|
133
|
+
className: "action-icon",
|
|
134
|
+
wrapper: "span",
|
|
135
|
+
src: _delete.default
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
}) : (0, _jsxRuntime.jsx)(_antd.Button, {
|
|
123
139
|
type: "link",
|
|
124
140
|
className: "file-action-item",
|
|
125
141
|
disabled: disabled,
|
|
@@ -129,7 +145,7 @@ var FileItem = exports.FileItem = function FileItem(props) {
|
|
|
129
145
|
wrapper: "span",
|
|
130
146
|
src: _delete.default
|
|
131
147
|
})
|
|
132
|
-
})]
|
|
148
|
+
}))]
|
|
133
149
|
})
|
|
134
150
|
})]
|
|
135
151
|
}), file.status === 'uploading' && (0, _jsxRuntime.jsx)("div", {
|
package/lib/ProUpload/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var _ButtonRender = _interopRequireDefault(require("./components/ButtonRender"))
|
|
|
21
21
|
var _ImageRender = _interopRequireDefault(require("./components/ImageRender"));
|
|
22
22
|
var _uitls = require("./uitls");
|
|
23
23
|
var _locale = _interopRequireDefault(require("../locale"));
|
|
24
|
-
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"];
|
|
24
|
+
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", "isConfirmDelete"];
|
|
25
25
|
/*
|
|
26
26
|
* @Author: wangshengqiang
|
|
27
27
|
* @Date: 2023-02-03 14:18:59
|
|
@@ -75,6 +75,7 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
75
75
|
buttonText = props.buttonText,
|
|
76
76
|
afterRender = props.afterRender,
|
|
77
77
|
fieldNames = props.fieldNames,
|
|
78
|
+
isConfirmDelete = props.isConfirmDelete,
|
|
78
79
|
residueProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
79
80
|
var isView = otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView;
|
|
80
81
|
var sensor = (0, _core.useSensor)(_core.PointerSensor, {
|
|
@@ -270,7 +271,8 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
270
271
|
disabled: disabled || isView,
|
|
271
272
|
buttonText: buttonText,
|
|
272
273
|
extraTipText: extraTipText,
|
|
273
|
-
afterRender: afterRender
|
|
274
|
+
afterRender: afterRender,
|
|
275
|
+
isConfirmDelete: isConfirmDelete
|
|
274
276
|
};
|
|
275
277
|
(0, _react.useEffect)(function () {
|
|
276
278
|
if (fieldNames && value.length > 0) {
|
|
@@ -184,6 +184,11 @@ export interface ProUploadProps {
|
|
|
184
184
|
* @default true
|
|
185
185
|
*/
|
|
186
186
|
fieldNames?: fieldNamesProps;
|
|
187
|
+
/**
|
|
188
|
+
* @description 删除已经上传的文件时是否二次提示
|
|
189
|
+
* @default false
|
|
190
|
+
*/
|
|
191
|
+
isConfirmDelete?: boolean;
|
|
187
192
|
}
|
|
188
193
|
export interface DraggableUploadListItemProps {
|
|
189
194
|
file: UploadFile<any>;
|
|
@@ -7,70 +7,67 @@
|
|
|
7
7
|
// 拖拽上传
|
|
8
8
|
.pro-upload-dragger {
|
|
9
9
|
.pro-upload-handle-box {
|
|
10
|
-
|
|
10
|
+
padding: var(--zaui-space-size-sm, 8px);
|
|
11
|
+
background: #f8f9fa;
|
|
11
12
|
border-radius: var(--zaui-border-radius, 8px);
|
|
12
|
-
padding : var(--zaui-space-size-sm, 8px);
|
|
13
13
|
|
|
14
14
|
.@{ant-prefix}-upload.@{ant-prefix}-upload-drag {
|
|
15
15
|
background-color: var(--zaui-base-bg, #fff);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.drag-upload-inner {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
display : flex;
|
|
22
|
-
align-items : center;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
23
21
|
justify-content: center;
|
|
22
|
+
min-width: 392px;
|
|
23
|
+
height: 110px;
|
|
24
24
|
|
|
25
25
|
.upload-dragger-control {
|
|
26
26
|
background-color: var(--zaui-base-bg, #fff);
|
|
27
27
|
|
|
28
28
|
.dragger-txt-line1 {
|
|
29
|
-
display
|
|
30
|
-
line-height: 26px;
|
|
29
|
+
display: flex;
|
|
31
30
|
align-items: center;
|
|
31
|
+
line-height: 26px;
|
|
32
32
|
|
|
33
33
|
.icon-upload {
|
|
34
|
-
display
|
|
34
|
+
display: inline-block;
|
|
35
|
+
color: #c5c7cd;
|
|
35
36
|
font-size: 30px;
|
|
36
|
-
color : #C5C7CD;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.dragger-txt {
|
|
40
40
|
margin-left: 9px;
|
|
41
|
-
font-size : var(--zaui-font-size, 14px);
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
color: rgba(0, 0, 0, 0.85);
|
|
43
|
+
font-size: var(--zaui-font-size, 14px);
|
|
45
44
|
line-height: 20px;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.click-txt {
|
|
49
|
-
color: var(--zaui-brand, #
|
|
48
|
+
color: var(--zaui-brand, #006aff);
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
.file-ext {
|
|
54
|
-
text-align: center;
|
|
55
53
|
margin-top: 10px;
|
|
56
|
-
font-size : var(--zaui-font-size-sm, 12px);
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
color: #939599;
|
|
56
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
60
57
|
line-height: 14px;
|
|
61
|
-
|
|
58
|
+
text-align: center;
|
|
62
59
|
}
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
// 单个文件展示样式
|
|
66
63
|
.dragger-single-file {
|
|
67
|
-
display
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
68
66
|
justify-content: center;
|
|
69
|
-
|
|
70
|
-
padding : 0 var(--zaui-space-size-lg, 32px);
|
|
67
|
+
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
71
68
|
|
|
72
69
|
.file-type-icon {
|
|
73
|
-
width
|
|
70
|
+
width: 18px;
|
|
74
71
|
height: 22px;
|
|
75
72
|
margin: 0 auto;
|
|
76
73
|
}
|
|
@@ -79,21 +76,20 @@
|
|
|
79
76
|
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
80
77
|
}
|
|
81
78
|
|
|
82
|
-
|
|
83
79
|
.file-info-box {
|
|
80
|
+
display: flex;
|
|
84
81
|
margin-top: 11px;
|
|
85
|
-
display : flex;
|
|
86
82
|
|
|
87
83
|
&.file-box-error {
|
|
88
84
|
color: var(--zaui-danger);
|
|
89
85
|
}
|
|
90
86
|
|
|
91
87
|
.file-name {
|
|
92
|
-
display
|
|
93
|
-
overflow
|
|
88
|
+
display: box;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
word-break: break-all;
|
|
94
91
|
line-clamp: 1;
|
|
95
92
|
box-orient: vertical;
|
|
96
|
-
word-break: break-all;
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
.file-ext {
|
|
@@ -104,148 +100,143 @@
|
|
|
104
100
|
word-break: keep-all;
|
|
105
101
|
}
|
|
106
102
|
|
|
107
|
-
|
|
108
103
|
.file-download {
|
|
109
104
|
margin-left: var(--zaui-space-size-sm, 8px);
|
|
110
105
|
}
|
|
111
106
|
}
|
|
112
107
|
|
|
113
108
|
.file-action-box {
|
|
114
|
-
display
|
|
109
|
+
display: flex;
|
|
115
110
|
justify-content: center;
|
|
116
|
-
margin-top
|
|
117
|
-
|
|
111
|
+
margin-top: 3px;
|
|
112
|
+
color: #1890ff;
|
|
113
|
+
& > div {
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
118
116
|
.file-del {
|
|
119
|
-
margin-left: 30px
|
|
117
|
+
margin-left: 30px;
|
|
120
118
|
}
|
|
121
119
|
}
|
|
122
120
|
}
|
|
123
|
-
|
|
124
121
|
}
|
|
125
122
|
}
|
|
126
|
-
|
|
127
123
|
}
|
|
128
124
|
|
|
129
125
|
// 按钮上传
|
|
130
126
|
.pro-upload-button {
|
|
131
127
|
display: flex;
|
|
132
128
|
|
|
133
|
-
>span {
|
|
134
|
-
width : 100%;
|
|
129
|
+
> span {
|
|
135
130
|
display: block;
|
|
131
|
+
width: 100%;
|
|
136
132
|
}
|
|
137
133
|
|
|
138
134
|
.pro-upload-button-inner {
|
|
139
135
|
display: flex;
|
|
140
136
|
|
|
141
137
|
.pro-upload-button-inner-right {
|
|
142
|
-
line-height: 32px;
|
|
143
138
|
margin-left: 10px;
|
|
139
|
+
line-height: 32px;
|
|
144
140
|
}
|
|
145
141
|
}
|
|
146
142
|
|
|
147
143
|
.upload-tip-txt {
|
|
148
144
|
margin-left: 10px;
|
|
149
|
-
line-height: 32px;
|
|
150
|
-
font-size : var(--zaui-font-size-sm, 12px);
|
|
151
|
-
|
|
152
145
|
|
|
153
146
|
color: #939599;
|
|
147
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
148
|
+
line-height: 32px;
|
|
154
149
|
}
|
|
155
150
|
}
|
|
156
151
|
|
|
157
|
-
|
|
158
152
|
// 图片
|
|
159
153
|
.pro-upload-image {
|
|
160
|
-
|
|
161
154
|
position: relative;
|
|
162
|
-
display
|
|
155
|
+
display: inline-flex;
|
|
163
156
|
|
|
164
157
|
.@{ant-prefix}-upload-list-picture-card-container,
|
|
165
158
|
.@{ant-prefix}-upload-select-picture-card {
|
|
166
|
-
width
|
|
159
|
+
width: 126px;
|
|
167
160
|
height: 126px;
|
|
168
161
|
}
|
|
169
162
|
|
|
170
163
|
.image-example {
|
|
171
|
-
position
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
height
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
164
|
+
position: absolute;
|
|
165
|
+
top: 0;
|
|
166
|
+
right: -10px;
|
|
167
|
+
width: 88px;
|
|
168
|
+
height: 32px;
|
|
169
|
+
line-height: 32px;
|
|
170
|
+
text-align: center;
|
|
171
|
+
word-break: keep-all;
|
|
172
|
+
background: #ffffff;
|
|
173
|
+
border: 1px solid #dcdcdc;
|
|
181
174
|
border-radius: var(--zaui-border-radius, 8px);
|
|
182
|
-
|
|
183
|
-
|
|
175
|
+
transform: translate(100%, 0);
|
|
184
176
|
}
|
|
185
177
|
|
|
186
178
|
.file-item-image {
|
|
187
|
-
position
|
|
188
|
-
|
|
179
|
+
position: relative;
|
|
180
|
+
width: 126px;
|
|
189
181
|
// height : 100%;
|
|
190
|
-
height
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
border-radius
|
|
182
|
+
height: 126px;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
border: 1px dashed #d9d9d9;
|
|
186
|
+
border-radius: 8px;
|
|
195
187
|
|
|
196
188
|
.file-type-icon-img {
|
|
197
|
-
position
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
189
|
+
position: absolute;
|
|
190
|
+
top: 50%;
|
|
191
|
+
left: 50%;
|
|
192
|
+
width: 30px;
|
|
201
193
|
transform: translate(-50%, -50%);
|
|
202
|
-
|
|
203
194
|
}
|
|
204
195
|
|
|
205
196
|
.image-con {
|
|
206
197
|
display: block;
|
|
207
|
-
width
|
|
208
|
-
height
|
|
198
|
+
width: 100%;
|
|
199
|
+
height: 100%;
|
|
209
200
|
}
|
|
210
201
|
|
|
211
202
|
&:hover .actions-wrap {
|
|
212
|
-
display
|
|
203
|
+
display: block;
|
|
213
204
|
background-color: rgba(0, 0, 0, 0.75);
|
|
214
205
|
}
|
|
215
206
|
|
|
216
207
|
.actions-wrap {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
bottom : 0;
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 0;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
display: none;
|
|
212
|
+
width: 100%;
|
|
223
213
|
background-color: rgba(0, 0, 0, 0.5);
|
|
214
|
+
transition: all 2s;
|
|
224
215
|
|
|
225
216
|
.action-top {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
height : calc(100% - 36px);
|
|
217
|
+
display: flex;
|
|
218
|
+
flex: 1;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
align-items: center;
|
|
231
221
|
justify-content: center;
|
|
222
|
+
height: calc(100% - 36px);
|
|
232
223
|
}
|
|
233
224
|
|
|
234
225
|
.action-button {
|
|
235
|
-
height
|
|
226
|
+
height: 36px;
|
|
236
227
|
line-height: 36px;
|
|
237
|
-
|
|
238
|
-
|
|
228
|
+
text-align: center;
|
|
229
|
+
background: #ffffff;
|
|
239
230
|
}
|
|
240
231
|
|
|
241
232
|
.action-item {
|
|
242
|
-
color
|
|
233
|
+
color: #fff;
|
|
243
234
|
font-size: var(--zaui-font-size-sm, 12px);
|
|
244
|
-
opacity
|
|
235
|
+
opacity: 0.8;
|
|
245
236
|
|
|
246
237
|
.action-icon {
|
|
247
238
|
margin-right: 10px;
|
|
248
|
-
transform
|
|
239
|
+
transform: translate(0, 3px);
|
|
249
240
|
}
|
|
250
241
|
|
|
251
242
|
&:hover {
|
|
@@ -255,21 +246,21 @@
|
|
|
255
246
|
|
|
256
247
|
.action-button {
|
|
257
248
|
.action-item {
|
|
258
|
-
color: var(--zaui-danger, #
|
|
249
|
+
color: var(--zaui-danger, #ff005f);
|
|
259
250
|
}
|
|
260
251
|
}
|
|
261
252
|
}
|
|
262
253
|
}
|
|
263
254
|
|
|
264
255
|
.file-item-image.actions-wrap-error {
|
|
265
|
-
border: 1px solid #
|
|
256
|
+
border: 1px solid #ff005f;
|
|
266
257
|
}
|
|
267
258
|
|
|
268
259
|
.image-uploading {
|
|
269
|
-
|
|
270
|
-
display : flex;
|
|
260
|
+
display: flex;
|
|
271
261
|
align-items: center;
|
|
272
|
-
height
|
|
262
|
+
height: inherit;
|
|
263
|
+
padding: 20px;
|
|
273
264
|
}
|
|
274
265
|
}
|
|
275
266
|
|
|
@@ -289,38 +280,37 @@
|
|
|
289
280
|
}
|
|
290
281
|
|
|
291
282
|
.action-icon {
|
|
292
|
-
display
|
|
293
|
-
align-items
|
|
294
|
-
color
|
|
295
|
-
font-style
|
|
296
|
-
text-align
|
|
283
|
+
display: inline-flex;
|
|
284
|
+
align-items: center;
|
|
285
|
+
color: inherit;
|
|
286
|
+
font-style: normal;
|
|
287
|
+
text-align: center;
|
|
297
288
|
text-transform: none;
|
|
298
289
|
vertical-align: -0.15em;
|
|
299
290
|
text-rendering: optimizeLegibility;
|
|
300
291
|
|
|
301
292
|
span {
|
|
302
|
-
display
|
|
303
|
-
align-items
|
|
304
|
-
color
|
|
305
|
-
font-style
|
|
306
|
-
text-align
|
|
293
|
+
display: inline-flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
color: inherit;
|
|
296
|
+
font-style: normal;
|
|
297
|
+
text-align: center;
|
|
307
298
|
text-transform: none;
|
|
308
299
|
vertical-align: -0.15em;
|
|
309
300
|
text-rendering: optimizeLegibility;
|
|
310
301
|
}
|
|
311
|
-
|
|
312
302
|
}
|
|
313
303
|
}
|
|
314
304
|
}
|
|
315
305
|
|
|
316
306
|
.pro-upload-example {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
min-height : 200px;
|
|
320
|
-
overflow-y : auto;
|
|
321
|
-
display : flex;
|
|
322
|
-
align-items : center;
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: center;
|
|
323
309
|
justify-content: center;
|
|
310
|
+
width: 100%;
|
|
311
|
+
min-height: 200px;
|
|
312
|
+
max-height: 400px;
|
|
313
|
+
overflow-y: auto;
|
|
324
314
|
}
|
|
325
315
|
|
|
326
316
|
.proupload-modal-preview {
|