linkmore-design 1.0.68 → 1.0.71
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/ImageViewer/LmImageViewer.d.ts +5 -0
- package/dist/ImageViewer/demos/basic.d.ts +2 -0
- package/dist/ImageViewer/index.d.ts +2 -0
- package/dist/ImageViewer/style/index.d.ts +1 -0
- package/dist/ImageViewer/wrapeer/Root.d.ts +3 -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/LmUpload.d.ts +2 -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/UploadList/index.d.ts +4 -3
- 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 +5 -0
- package/dist/LmUpload/utils.d.ts +1 -0
- package/dist/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +4081 -603
- package/dist/index.umd.min.js +6 -6
- 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/ImageViewer/LmImageViewer.d.ts +5 -0
- package/es/ImageViewer/LmImageViewer.js +26 -0
- package/es/ImageViewer/index.d.ts +2 -0
- package/es/ImageViewer/index.js +2 -0
- package/es/ImageViewer/style/index.css +211 -0
- package/es/ImageViewer/style/index.js +3 -0
- package/es/ImageViewer/wrapeer/Root.d.ts +3 -0
- package/es/ImageViewer/wrapeer/Root.js +12 -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 +3 -2
- package/es/LmFilter/components/CheckboxFilter.js +3 -3
- package/es/LmFilter/components/DropdownFIlter.js +71 -65
- package/es/LmFilter/components/InputFilter.js +1 -2
- package/es/LmFilter/components/SelectFilter.js +2 -2
- package/es/LmFilter/components/index.js +7 -5
- 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 +4 -6
- package/es/LmFilter/localization.d.ts +1 -0
- package/es/LmFilter/localization.js +2 -1
- package/es/LmFilter/utils.js +41 -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.d.ts +2 -0
- package/es/LmUpload/LmUpload.js +54 -22
- package/es/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/es/LmUpload/UploadList/ItemPicture.js +23 -8
- package/es/LmUpload/UploadList/ItemPictureCard.js +18 -9
- package/es/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/es/LmUpload/UploadList/ItemText.js +13 -7
- package/es/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/es/LmUpload/UploadList/RenderItem.js +3 -3
- package/es/LmUpload/UploadList/index.d.ts +4 -3
- package/es/LmUpload/UploadList/index.js +14 -8
- package/es/LmUpload/body/Progress.js +2 -2
- package/es/LmUpload/body/UploadCore.js +5 -4
- package/es/LmUpload/body/UploadPicture.js +4 -4
- package/es/LmUpload/fns/index.d.ts +5 -0
- package/es/LmUpload/fns/index.js +138 -42
- package/es/LmUpload/style/index.css +6 -0
- package/es/LmUpload/utils.d.ts +1 -0
- package/es/LmUpload/utils.js +14 -1
- package/es/LmUpload/view/index.js +2 -2
- package/es/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/es/LmUpload/wrapper/UploadContainer.js +19 -3
- package/es/LmUpload/wrapper/UploadRoot.js +9 -1
- 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/index.d.ts +1 -0
- package/es/index.js +1 -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/ImageViewer/LmImageViewer.d.ts +5 -0
- package/lib/ImageViewer/LmImageViewer.js +40 -0
- package/lib/ImageViewer/index.d.ts +2 -0
- package/lib/ImageViewer/index.js +13 -0
- package/lib/ImageViewer/style/index.css +211 -0
- package/lib/ImageViewer/style/index.js +3 -0
- package/lib/ImageViewer/wrapeer/Root.d.ts +3 -0
- package/lib/ImageViewer/wrapeer/Root.js +23 -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 +3 -2
- package/lib/LmFilter/components/CheckboxFilter.js +3 -3
- package/lib/LmFilter/components/DropdownFIlter.js +71 -65
- package/lib/LmFilter/components/InputFilter.js +1 -2
- package/lib/LmFilter/components/SelectFilter.js +2 -2
- package/lib/LmFilter/components/index.js +7 -5
- 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 +4 -6
- package/lib/LmFilter/localization.d.ts +1 -0
- package/lib/LmFilter/localization.js +4 -2
- package/lib/LmFilter/utils.js +41 -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.d.ts +2 -0
- package/lib/LmUpload/LmUpload.js +53 -22
- package/lib/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/lib/LmUpload/UploadList/ItemPicture.js +26 -8
- package/lib/LmUpload/UploadList/ItemPictureCard.js +18 -9
- package/lib/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/lib/LmUpload/UploadList/ItemText.js +16 -7
- package/lib/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/lib/LmUpload/UploadList/RenderItem.js +3 -3
- package/lib/LmUpload/UploadList/index.d.ts +4 -3
- package/lib/LmUpload/UploadList/index.js +15 -10
- package/lib/LmUpload/body/Progress.js +2 -2
- package/lib/LmUpload/body/UploadCore.js +10 -9
- package/lib/LmUpload/body/UploadPicture.js +4 -4
- package/lib/LmUpload/fns/index.d.ts +5 -0
- package/lib/LmUpload/fns/index.js +138 -42
- package/lib/LmUpload/style/index.css +6 -0
- package/lib/LmUpload/utils.d.ts +1 -0
- package/lib/LmUpload/utils.js +16 -1
- package/lib/LmUpload/view/index.js +2 -2
- package/lib/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/lib/LmUpload/wrapper/UploadContainer.js +21 -3
- package/lib/LmUpload/wrapper/UploadRoot.js +9 -1
- 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/index.d.ts +1 -0
- package/lib/index.js +8 -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
|
@@ -53,13 +53,30 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
53
53
|
var state = _ref.state,
|
|
54
54
|
dispatch = _ref.dispatch,
|
|
55
55
|
props = _ref.props;
|
|
56
|
-
var
|
|
56
|
+
var uid = props.uid,
|
|
57
|
+
onChange = props.onChange,
|
|
57
58
|
type = props.type,
|
|
58
59
|
fileSize = props.fileSize,
|
|
59
|
-
|
|
60
|
+
enabledOss = props.enabledOss,
|
|
61
|
+
ossConfig = props.ossConfig; // 获取当前的文件列表
|
|
60
62
|
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
+
var getFileList = (0, _react.useCallback)(function () {
|
|
64
|
+
return props.fileList || state.fileList;
|
|
65
|
+
}, [props.fileList, state.fileList]); // 获取上传状态
|
|
66
|
+
|
|
67
|
+
var getUploadStatus = (0, _react.useCallback)(function () {
|
|
68
|
+
var uploading = typeof state.percent === 'number';
|
|
69
|
+
return {
|
|
70
|
+
uploading: uploading
|
|
71
|
+
};
|
|
72
|
+
}, [state.percent]); // 获取是否达到最大上传数量
|
|
73
|
+
|
|
74
|
+
var getIsMaxCount = (0, _react.useCallback)(function () {
|
|
75
|
+
return typeof props.maxCount === 'number' && !(getFileList().length < props.maxCount);
|
|
76
|
+
}, [getFileList, props.maxCount]); // 上传完成
|
|
77
|
+
|
|
78
|
+
var uploadDone = (0, _react.useCallback)(function (file) {
|
|
79
|
+
var fileList = [file].concat((0, _toConsumableArray2.default)(getFileList()));
|
|
63
80
|
dispatch({
|
|
64
81
|
type: 'changeFileList',
|
|
65
82
|
fileList: fileList
|
|
@@ -73,17 +90,38 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
73
90
|
file: file,
|
|
74
91
|
fileList: fileList
|
|
75
92
|
});
|
|
76
|
-
}, [
|
|
93
|
+
}, [getFileList]); // 上传进度事件
|
|
94
|
+
|
|
95
|
+
var uploadProgress = (0, _react.useCallback)(function (file, _ref2) {
|
|
96
|
+
var progress = _ref2.progress,
|
|
97
|
+
checkPoint = _ref2.checkPoint,
|
|
98
|
+
result = _ref2.result;
|
|
99
|
+
onChange({
|
|
100
|
+
file: file,
|
|
101
|
+
fileList: getFileList(),
|
|
102
|
+
event: {
|
|
103
|
+
progress: progress,
|
|
104
|
+
checkPoint: checkPoint,
|
|
105
|
+
result: result,
|
|
106
|
+
status: typeof progress !== 'number' ? 'done' : 'uploading'
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
dispatch({
|
|
110
|
+
type: 'changePercent',
|
|
111
|
+
percent: Number((progress * 100).toFixed(2))
|
|
112
|
+
});
|
|
113
|
+
}, [getFileList]); // 上传至ali-oss
|
|
77
114
|
|
|
78
115
|
var uploadOss = (0, _react.useCallback)(function (file) {
|
|
79
116
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
80
|
-
var _a, dir, shortlink, region, accessKeyId, accessKeySecret, stsToken, bucket, client, fileName, pathName, url,
|
|
117
|
+
var _a, _ossConfig, _ossConfig$dir, dir, shortlink, _ossConfig$region, region, accessKeyId, accessKeySecret, stsToken, _ossConfig$bucket, bucket, client, timestamp, fileName, pathName, url, seq, params;
|
|
81
118
|
|
|
82
119
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
83
120
|
while (1) {
|
|
84
121
|
switch (_context.prev = _context.next) {
|
|
85
122
|
case 0:
|
|
86
|
-
|
|
123
|
+
_context.prev = 0;
|
|
124
|
+
_ossConfig = ossConfig(), _ossConfig$dir = _ossConfig.dir, dir = _ossConfig$dir === void 0 ? '/BizFile/4595/Supplier/' : _ossConfig$dir, shortlink = _ossConfig.shortlink, _ossConfig$region = _ossConfig.region, region = _ossConfig$region === void 0 ? 'oss-cn-hangzhou' : _ossConfig$region, accessKeyId = _ossConfig.accessKeyId, accessKeySecret = _ossConfig.accessKeySecret, stsToken = _ossConfig.stsToken, _ossConfig$bucket = _ossConfig.bucket, bucket = _ossConfig$bucket === void 0 ? 'linkmore-scm-test' : _ossConfig$bucket;
|
|
87
125
|
client = new _aliOss.default({
|
|
88
126
|
region: region,
|
|
89
127
|
accessKeyId: accessKeyId,
|
|
@@ -91,24 +129,18 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
91
129
|
stsToken: stsToken,
|
|
92
130
|
bucket: bucket
|
|
93
131
|
});
|
|
94
|
-
|
|
95
|
-
fileName = "".concat(
|
|
132
|
+
timestamp = Date.now();
|
|
133
|
+
fileName = "".concat(timestamp, "-").concat(file.name);
|
|
96
134
|
pathName = dir.slice(-1) === '/' ? "".concat(dir).concat(fileName) : "".concat(dir, "/").concat(fileName);
|
|
97
135
|
url = "".concat(shortlink).concat(pathName) || '';
|
|
98
|
-
_context.next =
|
|
136
|
+
_context.next = 9;
|
|
99
137
|
return client.multipartUpload(pathName, file, {
|
|
100
138
|
// 获取分片上传进度、断点和返回值。
|
|
101
|
-
progress: function progress(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
result: res
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
dispatch({
|
|
110
|
-
type: 'changePercent',
|
|
111
|
-
percent: Number((p * 100).toFixed(2))
|
|
139
|
+
progress: function progress(_progress, checkPoint, result) {
|
|
140
|
+
return uploadProgress(file, {
|
|
141
|
+
progress: _progress,
|
|
142
|
+
checkPoint: checkPoint,
|
|
143
|
+
result: result
|
|
112
144
|
});
|
|
113
145
|
},
|
|
114
146
|
parallel: 4,
|
|
@@ -116,10 +148,10 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
116
148
|
|
|
117
149
|
});
|
|
118
150
|
|
|
119
|
-
case
|
|
120
|
-
result = _context.sent;
|
|
151
|
+
case 9:
|
|
121
152
|
seq = (((_a = state.fileList) === null || _a === void 0 ? void 0 : _a.length) || 0) + 1;
|
|
122
153
|
params = {
|
|
154
|
+
uid: timestamp,
|
|
123
155
|
fileTypeCode: file.type,
|
|
124
156
|
fileTypeName: file.type,
|
|
125
157
|
fileName: fileName,
|
|
@@ -131,24 +163,39 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
131
163
|
seq: seq,
|
|
132
164
|
url: url
|
|
133
165
|
};
|
|
134
|
-
|
|
135
|
-
console.log('result', result);
|
|
166
|
+
uploadDone(params);
|
|
136
167
|
_context.next = 18;
|
|
137
168
|
break;
|
|
138
169
|
|
|
139
|
-
case
|
|
140
|
-
_context.prev =
|
|
141
|
-
_context.t0 = _context["catch"](
|
|
142
|
-
console.log('
|
|
170
|
+
case 14:
|
|
171
|
+
_context.prev = 14;
|
|
172
|
+
_context.t0 = _context["catch"](0);
|
|
173
|
+
console.log('上传报错:', _context.t0);
|
|
174
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
175
|
+
file: file,
|
|
176
|
+
fileList: getFileList(),
|
|
177
|
+
event: {
|
|
178
|
+
status: 'error'
|
|
179
|
+
}
|
|
180
|
+
});
|
|
143
181
|
|
|
144
182
|
case 18:
|
|
145
183
|
case "end":
|
|
146
184
|
return _context.stop();
|
|
147
185
|
}
|
|
148
186
|
}
|
|
149
|
-
}, _callee, null, [[
|
|
187
|
+
}, _callee, null, [[0, 14]]);
|
|
150
188
|
}));
|
|
151
|
-
}, [ossConfig,
|
|
189
|
+
}, [ossConfig, uploadDone, uploadProgress, getFileList]);
|
|
190
|
+
var customUpload = (0, _react.useCallback)(function (file) {
|
|
191
|
+
var _a;
|
|
192
|
+
|
|
193
|
+
(_a = props.fileUpload) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
194
|
+
file: file,
|
|
195
|
+
value: getFileList(),
|
|
196
|
+
onChange: uploadDone
|
|
197
|
+
});
|
|
198
|
+
}, [props.fileUpload, getFileList, uploadDone]); // 上传前的检测
|
|
152
199
|
|
|
153
200
|
var beforeUpload = (0, _react.useCallback)(function (e) {
|
|
154
201
|
var files = e.target.files; // 循环文件检查是否存在不符合要求的文件
|
|
@@ -165,27 +212,76 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
165
212
|
return _linkmoreDesign.message.warning("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u9644\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(fileSize, "M\uFF01"), 1.5);
|
|
166
213
|
}
|
|
167
214
|
|
|
168
|
-
uploadOss(item); // 单个文件上传
|
|
169
|
-
|
|
215
|
+
enabledOss && uploadOss(item); // 单个文件上传
|
|
216
|
+
|
|
217
|
+
customUpload(item);
|
|
170
218
|
}
|
|
171
219
|
|
|
172
220
|
return false;
|
|
173
|
-
}, [type, fileSize, uploadOss]); //
|
|
221
|
+
}, [type, fileSize, uploadOss, customUpload]); // 删除事件
|
|
174
222
|
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
223
|
+
var remove = (0, _react.useCallback)(function (file) {
|
|
224
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
225
|
+
var _b, _c, res, fileList;
|
|
226
|
+
|
|
227
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
228
|
+
while (1) {
|
|
229
|
+
switch (_context2.prev = _context2.next) {
|
|
230
|
+
case 0:
|
|
231
|
+
_context2.next = 2;
|
|
232
|
+
return (_b = props.onRemove) === null || _b === void 0 ? void 0 : _b.call(props, file);
|
|
233
|
+
|
|
234
|
+
case 2:
|
|
235
|
+
res = _context2.sent;
|
|
236
|
+
|
|
237
|
+
if (res) {
|
|
238
|
+
fileList = (_c = getFileList()) === null || _c === void 0 ? void 0 : _c.filter(function (v) {
|
|
239
|
+
return v[uid] !== file[uid];
|
|
240
|
+
});
|
|
241
|
+
dispatch({
|
|
242
|
+
type: 'changeFileList',
|
|
243
|
+
fileList: fileList
|
|
244
|
+
});
|
|
245
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
246
|
+
file: file,
|
|
247
|
+
fileList: fileList
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
case 4:
|
|
252
|
+
case "end":
|
|
253
|
+
return _context2.stop();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}, _callee2);
|
|
257
|
+
}));
|
|
258
|
+
}, [props.onRemove, getFileList, uid]); // 点击文件链接或预览图标时的回调
|
|
259
|
+
|
|
260
|
+
var preview = (0, _react.useCallback)(function (file) {
|
|
261
|
+
var _a;
|
|
262
|
+
|
|
263
|
+
(_a = props.onPreview) === null || _a === void 0 ? void 0 : _a.call(props, file);
|
|
264
|
+
}, []); // 点击下载文件时的回调
|
|
265
|
+
|
|
266
|
+
var download = (0, _react.useCallback)(function (file) {
|
|
267
|
+
var _a;
|
|
268
|
+
|
|
269
|
+
(_a = props.onDownload) === null || _a === void 0 ? void 0 : _a.call(props, file);
|
|
270
|
+
}, []);
|
|
181
271
|
var CoreMethods = {
|
|
272
|
+
getIsMaxCount: getIsMaxCount,
|
|
182
273
|
beforeUpload: beforeUpload,
|
|
183
|
-
getUploadStatus: getUploadStatus
|
|
274
|
+
getUploadStatus: getUploadStatus,
|
|
275
|
+
remove: remove,
|
|
276
|
+
preview: preview,
|
|
277
|
+
download: download
|
|
184
278
|
};
|
|
185
279
|
var RefMethods = {
|
|
186
280
|
getState: function getState() {
|
|
187
281
|
return state;
|
|
188
|
-
}
|
|
282
|
+
},
|
|
283
|
+
getFileList: getFileList // 获取文件列表
|
|
284
|
+
|
|
189
285
|
};
|
|
190
286
|
return {
|
|
191
287
|
CoreMethods: CoreMethods,
|
|
@@ -96,6 +96,9 @@
|
|
|
96
96
|
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_right .action_delete:hover {
|
|
97
97
|
color: var(--primary-color);
|
|
98
98
|
}
|
|
99
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text.error {
|
|
100
|
+
color: var(--error-color);
|
|
101
|
+
}
|
|
99
102
|
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card {
|
|
100
103
|
position: relative;
|
|
101
104
|
display: inline-flex;
|
|
@@ -203,3 +206,6 @@
|
|
|
203
206
|
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_right .action_delete:hover {
|
|
204
207
|
color: var(--primary-color);
|
|
205
208
|
}
|
|
209
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture.error {
|
|
210
|
+
color: var(--error-color);
|
|
211
|
+
}
|
package/lib/LmUpload/utils.d.ts
CHANGED
package/lib/LmUpload/utils.js
CHANGED
|
@@ -5,6 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.getIsHas = getIsHas;
|
|
8
9
|
exports.isClassComponent = isClassComponent;
|
|
9
10
|
exports.isExoticComponent = isExoticComponent;
|
|
10
11
|
exports.isReactComponent = isReactComponent;
|
|
@@ -14,7 +15,21 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
14
15
|
|
|
15
16
|
var _react = _interopRequireDefault(require("react"));
|
|
16
17
|
|
|
17
|
-
//
|
|
18
|
+
// 检查是否存在内容
|
|
19
|
+
function getIsHas(val) {
|
|
20
|
+
var _a; // 检查是否数字类型, 是否布尔类型
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var flag = !!val || typeof val === 'number' || typeof val === 'boolean'; // 检查空对象和空数组
|
|
24
|
+
|
|
25
|
+
if (!!val && (0, _typeof2.default)(val) === 'object') {
|
|
26
|
+
flag = Array.isArray(val) ? !!val.length : !!((_a = Object.keys(val)) === null || _a === void 0 ? void 0 : _a.length);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return flag;
|
|
30
|
+
} // 检查是否类组件
|
|
31
|
+
|
|
32
|
+
|
|
18
33
|
function isClassComponent(component) {
|
|
19
34
|
return typeof component === 'function' && function () {
|
|
20
35
|
var proto = Object.getPrototypeOf(component);
|
|
@@ -12,8 +12,8 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var LmUploadView = function LmUploadView(_ref) {
|
|
13
13
|
var instance = _ref.instance;
|
|
14
14
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className:
|
|
16
|
-
}
|
|
15
|
+
className: "lm_upload_view"
|
|
16
|
+
});
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var _default = LmUploadView;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: React.MemoExoticComponent<({ instance }: {
|
|
2
3
|
instance: any;
|
|
3
|
-
}) =>
|
|
4
|
-
export default
|
|
4
|
+
}) => any>;
|
|
5
|
+
export default _default;
|
|
@@ -13,13 +13,31 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _Upload = _interopRequireDefault(require("./Upload"));
|
|
15
15
|
|
|
16
|
+
var _UploadList = _interopRequireDefault(require("../UploadList"));
|
|
17
|
+
|
|
16
18
|
// 上传组件主体区域
|
|
17
19
|
var LmUploadContainer = function LmUploadContainer(_ref) {
|
|
18
20
|
var instance = _ref.instance;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
var wrapper = instance.components.wrapper;
|
|
22
|
+
|
|
23
|
+
if (!wrapper) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Upload.default, {
|
|
25
|
+
instance: instance
|
|
26
|
+
}), /*#__PURE__*/React.createElement(_UploadList.default, {
|
|
27
|
+
instance: instance
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return wrapper === null || wrapper === void 0 ? void 0 : wrapper({
|
|
32
|
+
uploadDom: /*#__PURE__*/React.createElement(_Upload.default, {
|
|
33
|
+
instance: instance
|
|
34
|
+
}),
|
|
35
|
+
fileListDom: /*#__PURE__*/React.createElement(_UploadList.default, {
|
|
36
|
+
instance: instance
|
|
37
|
+
})
|
|
21
38
|
});
|
|
22
39
|
};
|
|
23
40
|
|
|
24
|
-
var _default = LmUploadContainer;
|
|
41
|
+
var _default = /*#__PURE__*/React.memo(LmUploadContainer);
|
|
42
|
+
|
|
25
43
|
exports.default = _default;
|
|
@@ -28,7 +28,15 @@ var LmUploadRoot = function LmUploadRoot(props, ref) {
|
|
|
28
28
|
var _useReducer = (0, _react.useReducer)(_reducer.default, initialState),
|
|
29
29
|
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
|
30
30
|
state = _useReducer2[0],
|
|
31
|
-
dispatch = _useReducer2[1]; //
|
|
31
|
+
dispatch = _useReducer2[1]; // 格式化接收参数值
|
|
32
|
+
// const configProps = useMemo(() => {
|
|
33
|
+
// const { ...resetProps } = props
|
|
34
|
+
// // 受控/非受控时的数据收集
|
|
35
|
+
// return {
|
|
36
|
+
// ...resetProps,
|
|
37
|
+
// }
|
|
38
|
+
// }, [props])
|
|
39
|
+
// 获取核心Methods
|
|
32
40
|
|
|
33
41
|
|
|
34
42
|
var _useCoreOptions = (0, _fns.default)({
|
|
@@ -2,32 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = void 0;
|
|
11
9
|
|
|
12
|
-
var
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
14
12
|
var _UploadContainer = _interopRequireDefault(require("./UploadContainer"));
|
|
15
13
|
|
|
16
|
-
var _UploadList = _interopRequireDefault(require("../UploadList"));
|
|
17
|
-
|
|
18
14
|
var _view = _interopRequireDefault(require("../view"));
|
|
19
15
|
|
|
20
16
|
// 包裹上传组件区域: 拓展其他结构
|
|
21
17
|
var LmUploadWrapper = function LmUploadWrapper(_ref) {
|
|
22
18
|
var instance = _ref.instance;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, wrapper === null || wrapper === void 0 ? void 0 : wrapper( /*#__PURE__*/React.createElement(_UploadContainer.default, {
|
|
27
|
-
instance: instance
|
|
28
|
-
}), /*#__PURE__*/React.createElement(_UploadList.default, {
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
20
|
+
className: "lm_upload_wrapper"
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement(_UploadContainer.default, {
|
|
29
22
|
instance: instance
|
|
30
|
-
})
|
|
23
|
+
}), /*#__PURE__*/_react.default.createElement(_view.default, {
|
|
31
24
|
instance: instance
|
|
32
25
|
}));
|
|
33
26
|
};
|
|
@@ -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,3 +506,6 @@ 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
|
+
}
|
package/lib/Menu/style/index.css
CHANGED
|
@@ -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,3 +506,6 @@ 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
|
+
}
|
|
@@ -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_modal.ant-modal-wrap .ant-modal-header > .ant-modal-title {
|
|
507
513
|
font-weight: normal;
|
|
508
514
|
font-size: 14px;
|
|
@@ -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,3 +506,6 @@ 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
|
+
}
|
|
@@ -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_pagination.ant-pagination li {
|
|
507
513
|
font-size: 12px;
|
|
508
514
|
line-height: 24px !important;
|
|
@@ -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_popover_table .btn-dashed {
|
|
507
513
|
font-size: 12px;
|
|
508
514
|
color: #ccc;
|
|
@@ -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,3 +506,6 @@ 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
|
+
}
|
|
@@ -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,3 +506,6 @@ 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
|
+
}
|
package/lib/ProTable/Table.js
CHANGED
|
@@ -297,7 +297,6 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
297
297
|
var throttleSize = (0, _lodash.throttle)(function (_ref) {
|
|
298
298
|
var height = _ref.height,
|
|
299
299
|
width = _ref.width;
|
|
300
|
-
console.log(height, width, 444);
|
|
301
300
|
|
|
302
301
|
var resetHeight = function resetHeight() {
|
|
303
302
|
var h = height - 48;
|
package/lib/ProTable/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;
|
|
@@ -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,3 +506,6 @@ 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
|
+
}
|
|
@@ -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_quick_menu {
|
|
507
513
|
position: fixed;
|
|
508
514
|
right: 16px;
|