linkmore-design 1.0.68 → 1.0.69
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/README.md +11 -7
- package/dist/Approval/demos/basic.d.ts +1 -0
- package/dist/LmFilter/components/InputFilter.d.ts +2 -2
- package/dist/LmFilter/filterFns/index.d.ts +1 -1
- package/dist/LmFilter/localization.d.ts +1 -0
- package/dist/LmFilter/utils.d.ts +1 -1
- package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/dist/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/dist/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/dist/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/dist/LmUpload/demos/card.d.ts +2 -0
- package/dist/LmUpload/demos/picture.d.ts +2 -0
- package/dist/LmUpload/fns/index.d.ts +2 -0
- package/dist/LmUpload/utils.d.ts +1 -0
- package/dist/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.min.js +1 -1
- package/es/Affix/style/index.css +6 -0
- package/es/Alert/style/index.css +6 -0
- package/es/Approval/index.js +4 -4
- package/es/Approval/style/index.css +18 -4
- package/es/AutoComplete/style/index.css +6 -0
- package/es/Avatar/style/index.css +6 -0
- package/es/Breadcrumb/style/index.css +6 -0
- package/es/ButtonTags/style/index.css +6 -0
- package/es/Calendar/style/index.css +6 -0
- package/es/Card/style/index.css +6 -0
- package/es/CardTable/fns/index.js +5 -8
- package/es/CardTable/table/TableRoot.js +2 -1
- package/es/Carousel/style/index.css +6 -0
- package/es/Cascader/style/index.css +6 -0
- package/es/CkFilter/complexFilter/drawer.js +1 -4
- package/es/CkFilter/complexFilter/saveModal.js +5 -7
- package/es/CkFilter/components/CustomModal.js +2 -3
- package/es/CkFilter/components/filterTypes.js +1 -3
- package/es/CkFilter/components/modal.js +2 -5
- package/es/CkFilter/components/modalBack.js +2 -3
- package/es/CkFilter/customFilter/drawer.js +6 -11
- package/es/CkFilter/style/index.css +6 -0
- package/es/Col/style/index.css +6 -0
- package/es/Collapse/style/index.css +6 -0
- package/es/Comment/style/index.css +6 -0
- package/es/CustomTableOption/style/index.css +6 -0
- package/es/CustomerService/style/index.css +6 -0
- package/es/DatePicker/style/index.css +6 -0
- package/es/Descriptions/style/index.css +6 -0
- package/es/Drawer/style/index.css +6 -0
- package/es/Dropdown/style/index.css +6 -0
- package/es/EditTable/style/index.css +6 -0
- package/es/Empty/style/index.css +6 -0
- package/es/Filter/baseFilter/Popover.js +0 -1
- package/es/Filter/baseFilter/ToggleFilter.js +0 -1
- package/es/Filter/edit/editFilter.js +2 -6
- package/es/Filter/remember.js +0 -1
- package/es/Filter/style/index.css +6 -0
- package/es/Form/style/index.css +6 -0
- package/es/Grid/style/index.css +6 -0
- package/es/Icon/style/index.css +6 -0
- package/es/IconFont/font/iconfont.js +1 -1
- package/es/Image/style/index.css +6 -0
- package/es/Input/style/index.css +6 -0
- package/es/InputNumber/style/index.css +6 -0
- package/es/Layout/style/index.css +6 -0
- package/es/LeftTable/style/index.css +6 -0
- package/es/List/style/index.css +6 -0
- package/es/LmEditTable/style/index.css +6 -0
- package/es/LmFilter/complexFilter/drawer.js +2 -7
- package/es/LmFilter/complexFilter/valueDrawer.js +2 -5
- package/es/LmFilter/components/CascaderFilter.js +0 -1
- package/es/LmFilter/components/DropdownFIlter.js +17 -19
- package/es/LmFilter/components/InputFilter.js +1 -2
- package/es/LmFilter/components/SelectFilter.js +2 -2
- package/es/LmFilter/components/index.js +1 -1
- package/es/LmFilter/customFilter/drawer.js +7 -25
- package/es/LmFilter/customFilter/saveModal.js +2 -3
- package/es/LmFilter/customFilter/valueDrawer.js +2 -5
- package/es/LmFilter/filterFns/index.js +3 -5
- package/es/LmFilter/localization.d.ts +1 -0
- package/es/LmFilter/localization.js +2 -1
- package/es/LmFilter/utils.js +39 -22
- package/es/LmFilter/wrapper/FilterRoot.js +0 -2
- package/es/LmSelect/style/index.css +6 -0
- package/es/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/es/LmSelect/useCheckboxOptions.js +4 -3
- package/es/LmTable/Table.js +0 -1
- package/es/LmTable/autosize.js +0 -3
- package/es/LmTable/style/index.css +6 -0
- package/es/LmUpload/LmUpload.js +44 -21
- package/es/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/es/LmUpload/UploadList/ItemPicture.js +14 -8
- package/es/LmUpload/UploadList/ItemPictureCard.js +18 -9
- package/es/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/es/LmUpload/UploadList/ItemText.js +12 -7
- package/es/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/es/LmUpload/UploadList/RenderItem.js +3 -3
- package/es/LmUpload/UploadList/index.js +9 -4
- package/es/LmUpload/body/Progress.js +2 -2
- package/es/LmUpload/body/UploadCore.js +10 -5
- package/es/LmUpload/body/UploadPicture.js +4 -4
- package/es/LmUpload/fns/index.d.ts +2 -0
- package/es/LmUpload/fns/index.js +61 -16
- package/es/LmUpload/utils.d.ts +1 -0
- package/es/LmUpload/utils.js +14 -1
- package/es/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/es/LmUpload/wrapper/UploadContainer.js +19 -3
- package/es/LmUpload/wrapper/UploadRoot.js +30 -3
- package/es/LmUpload/wrapper/UploadWrapper.js +4 -8
- package/es/LmUpload/wrapper/reducer.js +2 -1
- package/es/Mentions/style/index.css +6 -0
- package/es/Menu/style/index.css +6 -0
- package/es/Modal/style/index.css +6 -0
- package/es/PageHeader/style/index.css +6 -0
- package/es/Pagination/style/index.css +6 -0
- package/es/PopTable/style/index.css +6 -0
- package/es/Popconfirm/style/index.css +6 -0
- package/es/Popover/style/index.css +6 -0
- package/es/ProTable/Table.js +0 -1
- package/es/ProTable/autosize.js +0 -3
- package/es/ProTable/style/index.css +6 -0
- package/es/Progress/style/index.css +6 -0
- package/es/QuickMenu/style/index.css +6 -0
- package/es/Rate/style/index.css +6 -0
- package/es/Row/style/index.css +6 -0
- package/es/Segmented/style/index.css +6 -0
- package/es/Select/style/index.css +6 -0
- package/es/Slider/style/index.css +6 -0
- package/es/Space/style/index.css +6 -0
- package/es/Spin/style/index.css +6 -0
- package/es/Statistic/style/index.css +6 -0
- package/es/Steps/style/index.css +6 -0
- package/es/Switch/style/index.css +6 -0
- package/es/Table/style/index.css +6 -0
- package/es/Tabs/style/index.css +6 -0
- package/es/Tag/style/index.css +6 -0
- package/es/TimePicker/style/index.css +6 -0
- package/es/Timeline/style/index.css +6 -0
- package/es/Tooltip/style/index.css +6 -0
- package/es/Transfer/style/index.css +6 -0
- package/es/Tree/style/index.css +6 -0
- package/es/TreeSelect/style/index.css +6 -0
- package/es/Typography/style/index.css +6 -0
- package/es/Upload/style/index.css +6 -0
- package/es/message/style/index.css +6 -0
- package/es/notification/style/index.css +6 -0
- package/es/styles/main.css +6 -0
- package/es/styles/resetAntd.css +3 -0
- package/lib/Affix/style/index.css +6 -0
- package/lib/Alert/style/index.css +6 -0
- package/lib/Approval/index.js +4 -4
- package/lib/Approval/style/index.css +18 -4
- package/lib/AutoComplete/style/index.css +6 -0
- package/lib/Avatar/style/index.css +6 -0
- package/lib/Breadcrumb/style/index.css +6 -0
- package/lib/ButtonTags/style/index.css +6 -0
- package/lib/Calendar/style/index.css +6 -0
- package/lib/Card/style/index.css +6 -0
- package/lib/CardTable/fns/index.js +5 -8
- package/lib/CardTable/table/TableRoot.js +2 -1
- package/lib/Carousel/style/index.css +6 -0
- package/lib/Cascader/style/index.css +6 -0
- package/lib/CkFilter/complexFilter/drawer.js +1 -4
- package/lib/CkFilter/complexFilter/saveModal.js +5 -7
- package/lib/CkFilter/components/CustomModal.js +2 -3
- package/lib/CkFilter/components/filterTypes.js +1 -3
- package/lib/CkFilter/components/modal.js +2 -5
- package/lib/CkFilter/components/modalBack.js +2 -3
- package/lib/CkFilter/customFilter/drawer.js +6 -11
- package/lib/CkFilter/style/index.css +6 -0
- package/lib/Col/style/index.css +6 -0
- package/lib/Collapse/style/index.css +6 -0
- package/lib/Comment/style/index.css +6 -0
- package/lib/CustomTableOption/style/index.css +6 -0
- package/lib/CustomerService/style/index.css +6 -0
- package/lib/DatePicker/style/index.css +6 -0
- package/lib/Descriptions/style/index.css +6 -0
- package/lib/Drawer/style/index.css +6 -0
- package/lib/Dropdown/style/index.css +6 -0
- package/lib/EditTable/style/index.css +6 -0
- package/lib/Empty/style/index.css +6 -0
- package/lib/Filter/baseFilter/Popover.js +0 -1
- package/lib/Filter/baseFilter/ToggleFilter.js +0 -1
- package/lib/Filter/edit/editFilter.js +2 -6
- package/lib/Filter/remember.js +0 -1
- package/lib/Filter/style/index.css +6 -0
- package/lib/Form/style/index.css +6 -0
- package/lib/Grid/style/index.css +6 -0
- package/lib/Icon/style/index.css +6 -0
- package/lib/IconFont/font/iconfont.js +1 -1
- package/lib/Image/style/index.css +6 -0
- package/lib/Input/style/index.css +6 -0
- package/lib/InputNumber/style/index.css +6 -0
- package/lib/Layout/style/index.css +6 -0
- package/lib/LeftTable/style/index.css +6 -0
- package/lib/List/style/index.css +6 -0
- package/lib/LmEditTable/style/index.css +6 -0
- package/lib/LmFilter/complexFilter/drawer.js +2 -7
- package/lib/LmFilter/complexFilter/valueDrawer.js +2 -5
- package/lib/LmFilter/components/CascaderFilter.js +0 -1
- package/lib/LmFilter/components/DropdownFIlter.js +17 -19
- package/lib/LmFilter/components/InputFilter.js +1 -2
- package/lib/LmFilter/components/SelectFilter.js +2 -2
- package/lib/LmFilter/components/index.js +1 -1
- package/lib/LmFilter/customFilter/drawer.js +7 -25
- package/lib/LmFilter/customFilter/saveModal.js +2 -3
- package/lib/LmFilter/customFilter/valueDrawer.js +2 -5
- package/lib/LmFilter/filterFns/index.js +3 -5
- package/lib/LmFilter/localization.d.ts +1 -0
- package/lib/LmFilter/localization.js +4 -2
- package/lib/LmFilter/utils.js +39 -22
- package/lib/LmFilter/wrapper/FilterRoot.js +0 -2
- package/lib/LmSelect/style/index.css +6 -0
- package/lib/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/lib/LmSelect/useCheckboxOptions.js +7 -5
- package/lib/LmTable/Table.js +0 -1
- package/lib/LmTable/autosize.js +0 -3
- package/lib/LmTable/style/index.css +6 -0
- package/lib/LmUpload/LmUpload.js +43 -21
- package/lib/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/lib/LmUpload/UploadList/ItemPicture.js +14 -8
- package/lib/LmUpload/UploadList/ItemPictureCard.js +18 -9
- package/lib/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/lib/LmUpload/UploadList/ItemText.js +12 -7
- package/lib/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/lib/LmUpload/UploadList/RenderItem.js +3 -3
- package/lib/LmUpload/UploadList/index.js +9 -4
- package/lib/LmUpload/body/Progress.js +2 -2
- package/lib/LmUpload/body/UploadCore.js +15 -8
- package/lib/LmUpload/body/UploadPicture.js +4 -4
- package/lib/LmUpload/fns/index.d.ts +2 -0
- package/lib/LmUpload/fns/index.js +61 -16
- package/lib/LmUpload/utils.d.ts +1 -0
- package/lib/LmUpload/utils.js +16 -1
- package/lib/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/lib/LmUpload/wrapper/UploadContainer.js +21 -3
- package/lib/LmUpload/wrapper/UploadRoot.js +30 -3
- package/lib/LmUpload/wrapper/UploadWrapper.js +5 -12
- package/lib/LmUpload/wrapper/reducer.js +2 -1
- package/lib/Mentions/style/index.css +6 -0
- package/lib/Menu/style/index.css +6 -0
- package/lib/Modal/style/index.css +6 -0
- package/lib/PageHeader/style/index.css +6 -0
- package/lib/Pagination/style/index.css +6 -0
- package/lib/PopTable/style/index.css +6 -0
- package/lib/Popconfirm/style/index.css +6 -0
- package/lib/Popover/style/index.css +6 -0
- package/lib/ProTable/Table.js +0 -1
- package/lib/ProTable/autosize.js +0 -3
- package/lib/ProTable/style/index.css +6 -0
- package/lib/Progress/style/index.css +6 -0
- package/lib/QuickMenu/style/index.css +6 -0
- package/lib/Rate/style/index.css +6 -0
- package/lib/Row/style/index.css +6 -0
- package/lib/Segmented/style/index.css +6 -0
- package/lib/Select/style/index.css +6 -0
- package/lib/Slider/style/index.css +6 -0
- package/lib/Space/style/index.css +6 -0
- package/lib/Spin/style/index.css +6 -0
- package/lib/Statistic/style/index.css +6 -0
- package/lib/Steps/style/index.css +6 -0
- package/lib/Switch/style/index.css +6 -0
- package/lib/Table/style/index.css +6 -0
- package/lib/Tabs/style/index.css +6 -0
- package/lib/Tag/style/index.css +6 -0
- package/lib/TimePicker/style/index.css +6 -0
- package/lib/Timeline/style/index.css +6 -0
- package/lib/Tooltip/style/index.css +6 -0
- package/lib/Transfer/style/index.css +6 -0
- package/lib/Tree/style/index.css +6 -0
- package/lib/TreeSelect/style/index.css +6 -0
- package/lib/Typography/style/index.css +6 -0
- package/lib/Upload/style/index.css +6 -0
- package/lib/message/style/index.css +6 -0
- package/lib/notification/style/index.css +6 -0
- package/lib/styles/main.css +6 -0
- package/lib/styles/resetAntd.css +3 -0
- package/package.json +2 -1
|
@@ -113,15 +113,14 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
113
113
|
})
|
|
114
114
|
});
|
|
115
115
|
onClose();
|
|
116
|
-
_context.next =
|
|
116
|
+
_context.next = 20;
|
|
117
117
|
break;
|
|
118
118
|
|
|
119
119
|
case 18:
|
|
120
120
|
_context.prev = 18;
|
|
121
121
|
_context.t0 = _context["catch"](0);
|
|
122
|
-
console.log('校验错误!', _context.t0);
|
|
123
122
|
|
|
124
|
-
case
|
|
123
|
+
case 20:
|
|
125
124
|
case "end":
|
|
126
125
|
return _context.stop();
|
|
127
126
|
}
|
|
@@ -135,8 +134,6 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
135
134
|
}();
|
|
136
135
|
|
|
137
136
|
var onValuesChange = function onValuesChange(values) {
|
|
138
|
-
console.log('values', values);
|
|
139
|
-
|
|
140
137
|
if (values.field) {
|
|
141
138
|
form.setFieldsValue({
|
|
142
139
|
value: []
|
|
@@ -55,8 +55,6 @@ var initLocalization = function initLocalization(props) {
|
|
|
55
55
|
}, {});
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
;
|
|
59
|
-
|
|
60
58
|
if ((0, _utils.getIsHas)(basicFilter)) {
|
|
61
59
|
var _Object$keys;
|
|
62
60
|
|
|
@@ -123,7 +121,6 @@ var initLocalization = function initLocalization(props) {
|
|
|
123
121
|
}, {});
|
|
124
122
|
}
|
|
125
123
|
|
|
126
|
-
;
|
|
127
124
|
return {
|
|
128
125
|
basicFilter: basicFilter,
|
|
129
126
|
basicQuery: basicQuery,
|
|
@@ -248,6 +245,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
248
245
|
if (type === 'complex') {
|
|
249
246
|
var _Object$keys5, _Object$keys6;
|
|
250
247
|
|
|
248
|
+
// eslint-disable-next-line no-shadow
|
|
251
249
|
var _basicQuery = (_Object$keys5 = Object.keys(complexFilter)) === null || _Object$keys5 === void 0 ? void 0 : _Object$keys5.reduce(function (pre, cur) {
|
|
252
250
|
var item = dataSource.find(function (v) {
|
|
253
251
|
return cur === v.field;
|
|
@@ -255,6 +253,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
255
253
|
var itemValue = complexFilter[cur].value;
|
|
256
254
|
|
|
257
255
|
if ((0, _utils.getIsHas)(itemValue) && !!item) {
|
|
256
|
+
// eslint-disable-next-line no-param-reassign
|
|
258
257
|
pre[cur] = {
|
|
259
258
|
fieldName: cur,
|
|
260
259
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
@@ -384,9 +383,8 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
384
383
|
if (!(0, _utils.getIsHas)(itemValue)) {
|
|
385
384
|
delete basicFilter[field];
|
|
386
385
|
delete basicQuery[field];
|
|
387
|
-
}
|
|
386
|
+
} // 触发外部事件
|
|
388
387
|
|
|
389
|
-
; // 触发外部事件
|
|
390
388
|
|
|
391
389
|
onQuery === null || onQuery === void 0 ? void 0 : onQuery({
|
|
392
390
|
basicFilter: basicFilter,
|
package/es/LmFilter/utils.js
CHANGED
|
@@ -15,6 +15,8 @@ exports.uniqueFunc = uniqueFunc;
|
|
|
15
15
|
|
|
16
16
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
17
17
|
|
|
18
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
19
|
+
|
|
18
20
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
|
|
19
21
|
|
|
20
22
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
@@ -55,27 +57,37 @@ function uniqueFunc(arr, guid) {
|
|
|
55
57
|
|
|
56
58
|
function getRanges() {
|
|
57
59
|
return {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
近一周: [(0, _dayjs.default)().subtract(7, 'day').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')],
|
|
61
|
+
近一月: [(0, _dayjs.default)().subtract(1, 'month').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')],
|
|
62
|
+
近一年: [(0, _dayjs.default)().subtract(1, 'year').format('YYYY-MM-DD'), (0, _dayjs.default)().format('YYYY-MM-DD')]
|
|
61
63
|
};
|
|
62
64
|
} // 级联选择器获取深层结构数据 type: 遍历子/父结构
|
|
63
65
|
|
|
64
66
|
|
|
65
|
-
function getFlatItem(
|
|
67
|
+
function getFlatItem(getItem, checkedValue) {
|
|
68
|
+
var _getItem$props, _getItem$props2;
|
|
69
|
+
|
|
66
70
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
|
|
71
|
+
var filterValues = (getItem === null || getItem === void 0 ? void 0 : (_getItem$props = getItem.props) === null || _getItem$props === void 0 ? void 0 : _getItem$props.multiple) ? checkedValue : [checkedValue];
|
|
72
|
+
var originArr = (getItem === null || getItem === void 0 ? void 0 : getItem.data) || []; // 用于自定义读取的字段
|
|
73
|
+
|
|
74
|
+
var fieldNames = (0, _objectSpread2.default)({
|
|
75
|
+
label: 'label',
|
|
76
|
+
value: 'value',
|
|
77
|
+
children: 'children'
|
|
78
|
+
}, (getItem === null || getItem === void 0 ? void 0 : (_getItem$props2 = getItem.props) === null || _getItem$props2 === void 0 ? void 0 : _getItem$props2.fieldNames) || {});
|
|
67
79
|
var nArr = []; // 获取子级项
|
|
68
80
|
|
|
69
81
|
var getChildren = function getChildren(item) {
|
|
70
|
-
var _item$
|
|
82
|
+
var _item$fieldNames$chil;
|
|
71
83
|
|
|
72
84
|
if (type === 'parent') {
|
|
73
85
|
nArr.push(item);
|
|
74
86
|
return;
|
|
75
87
|
}
|
|
76
88
|
|
|
77
|
-
if (item === null || item === void 0 ? void 0 : (_item$
|
|
78
|
-
item === null || item === void 0 ? void 0 : item.children.forEach(function (v) {
|
|
89
|
+
if (item === null || item === void 0 ? void 0 : (_item$fieldNames$chil = item[fieldNames.children]) === null || _item$fieldNames$chil === void 0 ? void 0 : _item$fieldNames$chil.length) {
|
|
90
|
+
item === null || item === void 0 ? void 0 : item[fieldNames.children].forEach(function (v) {
|
|
79
91
|
return getChildren(v);
|
|
80
92
|
});
|
|
81
93
|
} else {
|
|
@@ -86,35 +98,39 @@ function getFlatItem(filterValues, originArr) {
|
|
|
86
98
|
|
|
87
99
|
filterValues.forEach(function (item) {
|
|
88
100
|
if (item.length === 1) {
|
|
89
|
-
var findItem = originArr.find(function (v) {
|
|
90
|
-
return v.value === item[item.length - 1];
|
|
101
|
+
var findItem = originArr === null || originArr === void 0 ? void 0 : originArr.find(function (v) {
|
|
102
|
+
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
|
|
91
103
|
});
|
|
92
104
|
getChildren(findItem);
|
|
93
105
|
}
|
|
94
106
|
|
|
95
107
|
if (item.length === 2) {
|
|
96
|
-
var
|
|
97
|
-
return v.value === item[0];
|
|
98
|
-
}).children;
|
|
108
|
+
var _originArr$find;
|
|
99
109
|
|
|
100
|
-
var
|
|
101
|
-
return v.value === item[
|
|
110
|
+
var findArr1 = originArr === null || originArr === void 0 ? void 0 : (_originArr$find = originArr.find(function (v) {
|
|
111
|
+
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[0];
|
|
112
|
+
})) === null || _originArr$find === void 0 ? void 0 : _originArr$find[fieldNames.children];
|
|
113
|
+
|
|
114
|
+
var _findItem = findArr1 === null || findArr1 === void 0 ? void 0 : findArr1.find(function (v) {
|
|
115
|
+
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
|
|
102
116
|
});
|
|
103
117
|
|
|
104
118
|
getChildren(_findItem);
|
|
105
119
|
}
|
|
106
120
|
|
|
107
121
|
if (item.length === 3) {
|
|
108
|
-
var _findArr
|
|
109
|
-
|
|
110
|
-
|
|
122
|
+
var _originArr$find2, _findArr$find;
|
|
123
|
+
|
|
124
|
+
var _findArr = originArr === null || originArr === void 0 ? void 0 : (_originArr$find2 = originArr.find(function (v) {
|
|
125
|
+
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[0];
|
|
126
|
+
})) === null || _originArr$find2 === void 0 ? void 0 : _originArr$find2[fieldNames.children];
|
|
111
127
|
|
|
112
|
-
var findArr2 = _findArr.find(function (v) {
|
|
113
|
-
return v.value === item[1];
|
|
114
|
-
}).children;
|
|
128
|
+
var findArr2 = _findArr === null || _findArr === void 0 ? void 0 : (_findArr$find = _findArr.find(function (v) {
|
|
129
|
+
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[1];
|
|
130
|
+
})) === null || _findArr$find === void 0 ? void 0 : _findArr$find[fieldNames.children];
|
|
115
131
|
|
|
116
|
-
var _findItem2 = findArr2.find(function (v) {
|
|
117
|
-
return v.value === item[item.length - 1];
|
|
132
|
+
var _findItem2 = findArr2 === null || findArr2 === void 0 ? void 0 : findArr2.find(function (v) {
|
|
133
|
+
return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
|
|
118
134
|
});
|
|
119
135
|
|
|
120
136
|
nArr.push(_findItem2);
|
|
@@ -131,6 +147,7 @@ function getFilterShow(basicFilter, dataSource) {
|
|
|
131
147
|
if (dataSource.some(function (v) {
|
|
132
148
|
return v.field === cur && (v.show || typeof v.show !== 'boolean');
|
|
133
149
|
})) {
|
|
150
|
+
// eslint-disable-next-line no-param-reassign
|
|
134
151
|
pre[cur] = value;
|
|
135
152
|
}
|
|
136
153
|
|
|
@@ -19,8 +19,6 @@ var _FilterWrapper = _interopRequireDefault(require("./FilterWrapper"));
|
|
|
19
19
|
|
|
20
20
|
var _filterFns = _interopRequireWildcard(require("../filterFns"));
|
|
21
21
|
|
|
22
|
-
var _utils = require("../utils");
|
|
23
|
-
|
|
24
22
|
// 根文件 => 参数聚合
|
|
25
23
|
var reducer = function reducer(state, action) {
|
|
26
24
|
var basicFilter = action.basicFilter,
|
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
.ant-notification-notice .ant-notification-notice-description {
|
|
82
82
|
font-size: 12px;
|
|
83
83
|
}
|
|
84
|
+
.ant-collapse {
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
}
|
|
84
87
|
@font-face {
|
|
85
88
|
font-family: 'iconfont';
|
|
86
89
|
/* Project id 2966019 */
|
|
@@ -503,6 +506,9 @@ html {
|
|
|
503
506
|
.card_cell_content:hover .card_cell_body .card_cell_checkbox {
|
|
504
507
|
opacity: 1;
|
|
505
508
|
}
|
|
509
|
+
p {
|
|
510
|
+
margin-bottom: 0;
|
|
511
|
+
}
|
|
506
512
|
.lm_select.ant-select {
|
|
507
513
|
font-size: 12px;
|
|
508
514
|
}
|
|
@@ -14,11 +14,11 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
14
14
|
return t;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
import { useEvent } from '../hooks';
|
|
18
17
|
import { useControllableValue } from 'ahooks';
|
|
19
18
|
import classNames from 'classnames';
|
|
20
19
|
import { Checkbox, VirtualList } from 'linkmore-design';
|
|
21
20
|
import React, { useMemo } from 'react';
|
|
21
|
+
import { useEvent } from '../hooks';
|
|
22
22
|
import { onStringSearch } from './utils';
|
|
23
23
|
|
|
24
24
|
var imgEmpty = require('./icon_placeholder.png');
|
|
@@ -53,7 +53,7 @@ export var useCheckboxOptions = function useCheckboxOptions(options, _ref) {
|
|
|
53
53
|
|
|
54
54
|
var renderOptions = useMemo(function () {
|
|
55
55
|
return options.filter(function (v) {
|
|
56
|
-
return onStringSearch(filter, v.label);
|
|
56
|
+
return !v.disabled && onStringSearch(filter, v.label);
|
|
57
57
|
});
|
|
58
58
|
}, [options, filter]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
59
59
|
|
|
@@ -124,4 +124,5 @@ export var useCheckboxOptions = function useCheckboxOptions(options, _ref) {
|
|
|
124
124
|
className: "filter_item-content"
|
|
125
125
|
}, item.label));
|
|
126
126
|
}), !renderOptions.length && /*#__PURE__*/React.createElement(FilterEmpty, null)));
|
|
127
|
-
};
|
|
127
|
+
};
|
|
128
|
+
export default useCheckboxOptions;
|
package/es/LmTable/Table.js
CHANGED
|
@@ -158,7 +158,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
158
158
|
var newIndex = columns.findIndex(function (item) {
|
|
159
159
|
return item.dataIndex === over;
|
|
160
160
|
});
|
|
161
|
-
console.log((0, _sortable.arrayMove)(columns, oldIndex, newIndex), 222);
|
|
162
161
|
filterChange === null || filterChange === void 0 ? void 0 : filterChange((0, _sortable.arrayMove)(columns, oldIndex, newIndex).map(function (item, index) {
|
|
163
162
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
|
|
164
163
|
order: index
|
package/es/LmTable/autosize.js
CHANGED
|
@@ -48,7 +48,6 @@ var AutoSizer = /*#__PURE__*/function (_React$Component) {
|
|
|
48
48
|
_this._detectElementResize = void 0;
|
|
49
49
|
|
|
50
50
|
_this._onResize = function () {
|
|
51
|
-
console.log(11);
|
|
52
51
|
var _this$props = _this.props,
|
|
53
52
|
disableHeight = _this$props.disableHeight,
|
|
54
53
|
disableWidth = _this$props.disableWidth,
|
|
@@ -109,8 +108,6 @@ var AutoSizer = /*#__PURE__*/function (_React$Component) {
|
|
|
109
108
|
|
|
110
109
|
this._detectElementResize.addResizeListener(this._parentNode, this.handleResize);
|
|
111
110
|
|
|
112
|
-
console.log(3);
|
|
113
|
-
|
|
114
111
|
this._onResize();
|
|
115
112
|
}
|
|
116
113
|
}
|
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
.ant-notification-notice .ant-notification-notice-description {
|
|
82
82
|
font-size: 12px;
|
|
83
83
|
}
|
|
84
|
+
.ant-collapse {
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
}
|
|
84
87
|
@font-face {
|
|
85
88
|
font-family: 'iconfont';
|
|
86
89
|
/* Project id 2966019 */
|
|
@@ -503,6 +506,9 @@ html {
|
|
|
503
506
|
.card_cell_content:hover .card_cell_body .card_cell_checkbox {
|
|
504
507
|
opacity: 1;
|
|
505
508
|
}
|
|
509
|
+
p {
|
|
510
|
+
margin-bottom: 0;
|
|
511
|
+
}
|
|
506
512
|
.z_container {
|
|
507
513
|
position: relative;
|
|
508
514
|
display: flex;
|
package/es/LmUpload/LmUpload.js
CHANGED
|
@@ -11,17 +11,41 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
import React, { useRef, forwardRef } from 'react';
|
|
14
|
+
import React, { useRef, useMemo, forwardRef } from 'react';
|
|
15
15
|
import LmFilterRoot from './wrapper/UploadRoot';
|
|
16
|
-
var stsToken = 'CAISjgJ1q6Ft5B2yfSjIr5eDGdHdi5RigKuYR2fGhUcBaOEfmKHYijz2IH5IenZuA+gYtf8ymm1Q5v8ZloAvFs4YbR3KPJco48QJtA/9aoGE5cW7tfkIhJasXDPCBRPyjJ+OaLn0RYseuA94rQiW+BVoyJ7WKB+APTX8Q7Dr5LdjatMIJHraCRNNGNZRICZ7tcYeLgG/HP2xMxns8AGyZQgSzWgas25k7rmlycCx8wfXiEaAqtUYvIPsOJOpHaIOVdVdK47tgr0pLfeRinQNukYSpPhM4fYaqWudjLa0GEJM5hiKCe3Q/+B0IRVxDqpAQPAY8qeiz6Um4beOydmvm08WJ49SSD/FTYWwXwx6zT9crb8agAE/AmQIq01ud7Oe11GaycEGpfRMjSM7w3GYv7WZPtY7dlVJemeghJDOuoOjPuu+WigsrFqJr4LCXB44EvoV4tTBz9NrFdJ8T1JPD5nCQ15TSifXJMjym4tWeOTVRiZk04N27cXgD3YYj7s9wOFMsUsenZR6WulrHhyUEwyjb9fGcQ==';
|
|
17
16
|
|
|
18
17
|
var LmUpload = function LmUpload(_a, ref) {
|
|
19
|
-
var
|
|
18
|
+
var _ossConfig = _a.ossConfig,
|
|
20
19
|
resetProps = __rest(_a, ["ossConfig"]);
|
|
21
20
|
|
|
22
|
-
var defaultRef = useRef(null);
|
|
21
|
+
var defaultRef = useRef(null); // 仅在初始化触发一次
|
|
22
|
+
|
|
23
|
+
var initConfig = useMemo(function () {
|
|
24
|
+
return {
|
|
25
|
+
// 文件配置单独存储
|
|
26
|
+
fileConfig: {
|
|
27
|
+
size: 10,
|
|
28
|
+
type: ['jpg', 'jpeg', 'png'],
|
|
29
|
+
maxCount: 99
|
|
30
|
+
},
|
|
31
|
+
// 初始化
|
|
32
|
+
components: {
|
|
33
|
+
itemRender: null,
|
|
34
|
+
wrapper: null // 结构定义
|
|
35
|
+
// 包装结构体: 上传, 列表
|
|
36
|
+
// wrapper: (upload, fileList) => (
|
|
37
|
+
// <>
|
|
38
|
+
// {upload}
|
|
39
|
+
// {fileList}
|
|
40
|
+
// </>
|
|
41
|
+
// ),
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
23
46
|
var defaultProps = {
|
|
24
|
-
|
|
47
|
+
uid: 'uid',
|
|
48
|
+
fileList: [],
|
|
25
49
|
type: ['jpg', 'jpeg', 'png'],
|
|
26
50
|
accept: '',
|
|
27
51
|
fileSize: 10,
|
|
@@ -32,27 +56,26 @@ var LmUpload = function LmUpload(_a, ref) {
|
|
|
32
56
|
children: null,
|
|
33
57
|
defaultFileList: [],
|
|
34
58
|
itemRender: null,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
wrapper: function wrapper(upload, fileList) {
|
|
38
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, upload, fileList);
|
|
39
|
-
}
|
|
59
|
+
onRemove: function onRemove() {
|
|
60
|
+
return true;
|
|
40
61
|
},
|
|
62
|
+
enabledOss: false,
|
|
41
63
|
// oss配置
|
|
42
|
-
ossConfig:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
64
|
+
ossConfig: function ossConfig() {
|
|
65
|
+
return Object.assign({
|
|
66
|
+
dir: '/BizFile/4595/Supplier/',
|
|
67
|
+
region: 'oss-cn-hangzhou',
|
|
68
|
+
accessKeyId: '',
|
|
69
|
+
accessKeySecret: '',
|
|
70
|
+
stsToken: '',
|
|
71
|
+
bucket: 'linkmore-scm-test',
|
|
72
|
+
shortlink: 'https://linkmore-scm-test.oss-cn-hangzhou.aliyuncs.com'
|
|
73
|
+
}, typeof _ossConfig === 'function' ? _ossConfig() : _ossConfig);
|
|
74
|
+
}
|
|
52
75
|
};
|
|
53
76
|
return /*#__PURE__*/React.createElement(LmFilterRoot, Object.assign({
|
|
54
77
|
ref: ref || defaultRef
|
|
55
|
-
}, defaultProps, resetProps));
|
|
78
|
+
}, initConfig, defaultProps, resetProps));
|
|
56
79
|
};
|
|
57
80
|
|
|
58
81
|
export default /*#__PURE__*/forwardRef(LmUpload);
|
|
@@ -2,21 +2,27 @@ import * as React from 'react';
|
|
|
2
2
|
import { IconFont } from 'linkmore-design'; // 图片列表项
|
|
3
3
|
|
|
4
4
|
var PictureItem = function PictureItem(_ref) {
|
|
5
|
-
var file = _ref.file
|
|
5
|
+
var file = _ref.file,
|
|
6
|
+
instance = _ref.instance;
|
|
7
|
+
var remove = instance.remove;
|
|
6
8
|
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
className:
|
|
9
|
+
className: "lm_upload_item lm_upload_item_picture"
|
|
8
10
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9
|
-
className:
|
|
11
|
+
className: "picture_left"
|
|
10
12
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11
|
-
className:
|
|
13
|
+
className: "lm_upload_item_thumb"
|
|
12
14
|
}, /*#__PURE__*/React.createElement("img", {
|
|
13
|
-
src: file.url
|
|
15
|
+
src: file.url,
|
|
16
|
+
alt: ""
|
|
14
17
|
})), /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className:
|
|
18
|
+
className: "lm_upload_item_name"
|
|
16
19
|
}, file.fileName)), /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className:
|
|
20
|
+
className: "picture_right lm_upload_item_action"
|
|
18
21
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
className:
|
|
22
|
+
className: "action_delete",
|
|
23
|
+
onClick: function onClick() {
|
|
24
|
+
return remove(file);
|
|
25
|
+
}
|
|
20
26
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
21
27
|
type: "lmweb-delete"
|
|
22
28
|
}))));
|
|
@@ -14,11 +14,11 @@ var renderThumb = function renderThumb(file) {
|
|
|
14
14
|
case 'png':
|
|
15
15
|
case 'jpg':
|
|
16
16
|
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className:
|
|
17
|
+
className: "lm_upload_item_error"
|
|
18
18
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
19
19
|
type: "lmweb-image"
|
|
20
20
|
}), /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className:
|
|
21
|
+
className: "lm_upload_item_name"
|
|
22
22
|
}, file.realFileName));
|
|
23
23
|
|
|
24
24
|
case 'doc':
|
|
@@ -55,7 +55,9 @@ var renderThumb = function renderThumb(file) {
|
|
|
55
55
|
var PictureItem = function PictureItem(_ref) {
|
|
56
56
|
var file = _ref.file,
|
|
57
57
|
instance = _ref.instance;
|
|
58
|
-
var size = instance.size
|
|
58
|
+
var size = instance.size,
|
|
59
|
+
remove = instance.remove,
|
|
60
|
+
preview = instance.preview;
|
|
59
61
|
|
|
60
62
|
var _useState = useState(false),
|
|
61
63
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -72,7 +74,8 @@ var PictureItem = function PictureItem(_ref) {
|
|
|
72
74
|
|
|
73
75
|
var thumbUrl = useMemo(function () {
|
|
74
76
|
return "".concat(file.url, "?x-oss-process=image/resize,w_").concat(size);
|
|
75
|
-
}, [file.url, size]);
|
|
77
|
+
}, [file.url, size]); // 根据文件名后缀判断
|
|
78
|
+
|
|
76
79
|
var isImg = useMemo(function () {
|
|
77
80
|
return ['jpg', 'jpeg', 'png', 'gif', 'bmp'].includes(resetFile.fileExtension);
|
|
78
81
|
}, [resetFile]); // 重置尺寸大小
|
|
@@ -94,7 +97,7 @@ var PictureItem = function PictureItem(_ref) {
|
|
|
94
97
|
width: size
|
|
95
98
|
}
|
|
96
99
|
}, /*#__PURE__*/React.createElement("div", {
|
|
97
|
-
className:
|
|
100
|
+
className: "lm_upload_item_thumb"
|
|
98
101
|
}, isError || !isImg ? renderThumb(resetFile) : /*#__PURE__*/React.createElement(Image, {
|
|
99
102
|
width: resetSize.width,
|
|
100
103
|
height: resetSize.width,
|
|
@@ -103,18 +106,24 @@ var PictureItem = function PictureItem(_ref) {
|
|
|
103
106
|
return setIsError(true);
|
|
104
107
|
}
|
|
105
108
|
})), /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className:
|
|
109
|
+
className: "lm_upload_item_mask"
|
|
107
110
|
}, /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
className:
|
|
111
|
+
className: "lm_upload_item_action"
|
|
109
112
|
}, /*#__PURE__*/React.createElement("div", {
|
|
110
|
-
className:
|
|
113
|
+
className: "action_preview",
|
|
114
|
+
onClick: function onClick() {
|
|
115
|
+
return preview(file);
|
|
116
|
+
}
|
|
111
117
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
112
118
|
type: "lmweb-eye",
|
|
113
119
|
style: {
|
|
114
120
|
fontSize: size > 48 ? 16 : 12
|
|
115
121
|
}
|
|
116
122
|
})), /*#__PURE__*/React.createElement("div", {
|
|
117
|
-
className:
|
|
123
|
+
className: "action_delete",
|
|
124
|
+
onClick: function onClick() {
|
|
125
|
+
return remove(file);
|
|
126
|
+
}
|
|
118
127
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
119
128
|
type: "lmweb-delete",
|
|
120
129
|
style: {
|
|
@@ -2,21 +2,26 @@ import * as React from 'react';
|
|
|
2
2
|
import { IconFont } from 'linkmore-design';
|
|
3
3
|
|
|
4
4
|
var TextItem = function TextItem(_ref) {
|
|
5
|
-
var file = _ref.file
|
|
5
|
+
var file = _ref.file,
|
|
6
|
+
instance = _ref.instance;
|
|
7
|
+
var remove = instance.remove;
|
|
6
8
|
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
className:
|
|
9
|
+
className: "lm_upload_item lm_upload_item_text"
|
|
8
10
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9
|
-
className:
|
|
11
|
+
className: "text_left"
|
|
10
12
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11
|
-
className:
|
|
13
|
+
className: "prefix"
|
|
12
14
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
13
15
|
type: "lmweb-attachment"
|
|
14
16
|
})), /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className:
|
|
17
|
+
className: "lm_upload_item_name"
|
|
16
18
|
}, file.fileName)), /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className:
|
|
19
|
+
className: "text_right lm_upload_item_text_action"
|
|
18
20
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
className:
|
|
21
|
+
className: "action_delete",
|
|
22
|
+
onClick: function onClick() {
|
|
23
|
+
return remove(file);
|
|
24
|
+
}
|
|
20
25
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
21
26
|
type: "lmweb-delete"
|
|
22
27
|
}))));
|
|
@@ -21,9 +21,9 @@ var RenderCell = function RenderCell(props) {
|
|
|
21
21
|
resetProsp = __rest(props, ["type"]);
|
|
22
22
|
|
|
23
23
|
var types = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
text: TextItem,
|
|
25
|
+
picture: PictureItem,
|
|
26
|
+
card: PictureCardItem
|
|
27
27
|
};
|
|
28
28
|
return render(types[type] || PictureItem, resetProsp);
|
|
29
29
|
};
|
|
@@ -4,14 +4,19 @@ import RenderItem from './RenderItem';
|
|
|
4
4
|
|
|
5
5
|
var LmUploadList = function LmUploadList(_ref) {
|
|
6
6
|
var instance = _ref.instance;
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
var _a;
|
|
9
|
+
|
|
10
|
+
var uid = instance.uid,
|
|
11
|
+
fileList = instance.fileList,
|
|
8
12
|
itemRender = instance.itemRender,
|
|
9
13
|
listType = instance.listType;
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (_a = fileList === null || fileList === void 0 ? void 0 : fileList.sort(function (a, b) {
|
|
15
|
+
return a.seq - b.seq;
|
|
16
|
+
})) === null || _a === void 0 ? void 0 : _a.map(function (file, idx) {
|
|
12
17
|
return render(itemRender || RenderItem, {
|
|
13
18
|
type: listType,
|
|
14
|
-
key: idx,
|
|
19
|
+
key: file[uid] || idx,
|
|
15
20
|
file: file,
|
|
16
21
|
fileList: fileList,
|
|
17
22
|
instance: instance
|
|
@@ -4,9 +4,9 @@ var Progress = function Progress(_ref) {
|
|
|
4
4
|
var instance = _ref.instance;
|
|
5
5
|
var state = instance.state;
|
|
6
6
|
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
className:
|
|
7
|
+
className: "lm_upload_progress"
|
|
8
8
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9
|
-
className:
|
|
9
|
+
className: "line",
|
|
10
10
|
style: {
|
|
11
11
|
width: "".concat(state.percent || 0, "%")
|
|
12
12
|
}
|