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.
Files changed (276) hide show
  1. package/README.md +11 -7
  2. package/dist/Approval/demos/basic.d.ts +1 -0
  3. package/dist/LmFilter/components/InputFilter.d.ts +2 -2
  4. package/dist/LmFilter/filterFns/index.d.ts +1 -1
  5. package/dist/LmFilter/localization.d.ts +1 -0
  6. package/dist/LmFilter/utils.d.ts +1 -1
  7. package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
  8. package/dist/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  9. package/dist/LmUpload/UploadList/ItemText.d.ts +2 -1
  10. package/dist/LmUpload/UploadList/RenderItem.d.ts +1 -5
  11. package/dist/LmUpload/demos/card.d.ts +2 -0
  12. package/dist/LmUpload/demos/picture.d.ts +2 -0
  13. package/dist/LmUpload/fns/index.d.ts +2 -0
  14. package/dist/LmUpload/utils.d.ts +1 -0
  15. package/dist/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  16. package/dist/index.umd.js +1 -1
  17. package/dist/index.umd.min.js +1 -1
  18. package/es/Affix/style/index.css +6 -0
  19. package/es/Alert/style/index.css +6 -0
  20. package/es/Approval/index.js +4 -4
  21. package/es/Approval/style/index.css +18 -4
  22. package/es/AutoComplete/style/index.css +6 -0
  23. package/es/Avatar/style/index.css +6 -0
  24. package/es/Breadcrumb/style/index.css +6 -0
  25. package/es/ButtonTags/style/index.css +6 -0
  26. package/es/Calendar/style/index.css +6 -0
  27. package/es/Card/style/index.css +6 -0
  28. package/es/CardTable/fns/index.js +5 -8
  29. package/es/CardTable/table/TableRoot.js +2 -1
  30. package/es/Carousel/style/index.css +6 -0
  31. package/es/Cascader/style/index.css +6 -0
  32. package/es/CkFilter/complexFilter/drawer.js +1 -4
  33. package/es/CkFilter/complexFilter/saveModal.js +5 -7
  34. package/es/CkFilter/components/CustomModal.js +2 -3
  35. package/es/CkFilter/components/filterTypes.js +1 -3
  36. package/es/CkFilter/components/modal.js +2 -5
  37. package/es/CkFilter/components/modalBack.js +2 -3
  38. package/es/CkFilter/customFilter/drawer.js +6 -11
  39. package/es/CkFilter/style/index.css +6 -0
  40. package/es/Col/style/index.css +6 -0
  41. package/es/Collapse/style/index.css +6 -0
  42. package/es/Comment/style/index.css +6 -0
  43. package/es/CustomTableOption/style/index.css +6 -0
  44. package/es/CustomerService/style/index.css +6 -0
  45. package/es/DatePicker/style/index.css +6 -0
  46. package/es/Descriptions/style/index.css +6 -0
  47. package/es/Drawer/style/index.css +6 -0
  48. package/es/Dropdown/style/index.css +6 -0
  49. package/es/EditTable/style/index.css +6 -0
  50. package/es/Empty/style/index.css +6 -0
  51. package/es/Filter/baseFilter/Popover.js +0 -1
  52. package/es/Filter/baseFilter/ToggleFilter.js +0 -1
  53. package/es/Filter/edit/editFilter.js +2 -6
  54. package/es/Filter/remember.js +0 -1
  55. package/es/Filter/style/index.css +6 -0
  56. package/es/Form/style/index.css +6 -0
  57. package/es/Grid/style/index.css +6 -0
  58. package/es/Icon/style/index.css +6 -0
  59. package/es/IconFont/font/iconfont.js +1 -1
  60. package/es/Image/style/index.css +6 -0
  61. package/es/Input/style/index.css +6 -0
  62. package/es/InputNumber/style/index.css +6 -0
  63. package/es/Layout/style/index.css +6 -0
  64. package/es/LeftTable/style/index.css +6 -0
  65. package/es/List/style/index.css +6 -0
  66. package/es/LmEditTable/style/index.css +6 -0
  67. package/es/LmFilter/complexFilter/drawer.js +2 -7
  68. package/es/LmFilter/complexFilter/valueDrawer.js +2 -5
  69. package/es/LmFilter/components/CascaderFilter.js +0 -1
  70. package/es/LmFilter/components/DropdownFIlter.js +17 -19
  71. package/es/LmFilter/components/InputFilter.js +1 -2
  72. package/es/LmFilter/components/SelectFilter.js +2 -2
  73. package/es/LmFilter/components/index.js +1 -1
  74. package/es/LmFilter/customFilter/drawer.js +7 -25
  75. package/es/LmFilter/customFilter/saveModal.js +2 -3
  76. package/es/LmFilter/customFilter/valueDrawer.js +2 -5
  77. package/es/LmFilter/filterFns/index.js +3 -5
  78. package/es/LmFilter/localization.d.ts +1 -0
  79. package/es/LmFilter/localization.js +2 -1
  80. package/es/LmFilter/utils.js +39 -22
  81. package/es/LmFilter/wrapper/FilterRoot.js +0 -2
  82. package/es/LmSelect/style/index.css +6 -0
  83. package/es/LmSelect/useCheckboxOptions.d.ts +1 -0
  84. package/es/LmSelect/useCheckboxOptions.js +4 -3
  85. package/es/LmTable/Table.js +0 -1
  86. package/es/LmTable/autosize.js +0 -3
  87. package/es/LmTable/style/index.css +6 -0
  88. package/es/LmUpload/LmUpload.js +44 -21
  89. package/es/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  90. package/es/LmUpload/UploadList/ItemPicture.js +14 -8
  91. package/es/LmUpload/UploadList/ItemPictureCard.js +18 -9
  92. package/es/LmUpload/UploadList/ItemText.d.ts +2 -1
  93. package/es/LmUpload/UploadList/ItemText.js +12 -7
  94. package/es/LmUpload/UploadList/RenderItem.d.ts +1 -5
  95. package/es/LmUpload/UploadList/RenderItem.js +3 -3
  96. package/es/LmUpload/UploadList/index.js +9 -4
  97. package/es/LmUpload/body/Progress.js +2 -2
  98. package/es/LmUpload/body/UploadCore.js +10 -5
  99. package/es/LmUpload/body/UploadPicture.js +4 -4
  100. package/es/LmUpload/fns/index.d.ts +2 -0
  101. package/es/LmUpload/fns/index.js +61 -16
  102. package/es/LmUpload/utils.d.ts +1 -0
  103. package/es/LmUpload/utils.js +14 -1
  104. package/es/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  105. package/es/LmUpload/wrapper/UploadContainer.js +19 -3
  106. package/es/LmUpload/wrapper/UploadRoot.js +30 -3
  107. package/es/LmUpload/wrapper/UploadWrapper.js +4 -8
  108. package/es/LmUpload/wrapper/reducer.js +2 -1
  109. package/es/Mentions/style/index.css +6 -0
  110. package/es/Menu/style/index.css +6 -0
  111. package/es/Modal/style/index.css +6 -0
  112. package/es/PageHeader/style/index.css +6 -0
  113. package/es/Pagination/style/index.css +6 -0
  114. package/es/PopTable/style/index.css +6 -0
  115. package/es/Popconfirm/style/index.css +6 -0
  116. package/es/Popover/style/index.css +6 -0
  117. package/es/ProTable/Table.js +0 -1
  118. package/es/ProTable/autosize.js +0 -3
  119. package/es/ProTable/style/index.css +6 -0
  120. package/es/Progress/style/index.css +6 -0
  121. package/es/QuickMenu/style/index.css +6 -0
  122. package/es/Rate/style/index.css +6 -0
  123. package/es/Row/style/index.css +6 -0
  124. package/es/Segmented/style/index.css +6 -0
  125. package/es/Select/style/index.css +6 -0
  126. package/es/Slider/style/index.css +6 -0
  127. package/es/Space/style/index.css +6 -0
  128. package/es/Spin/style/index.css +6 -0
  129. package/es/Statistic/style/index.css +6 -0
  130. package/es/Steps/style/index.css +6 -0
  131. package/es/Switch/style/index.css +6 -0
  132. package/es/Table/style/index.css +6 -0
  133. package/es/Tabs/style/index.css +6 -0
  134. package/es/Tag/style/index.css +6 -0
  135. package/es/TimePicker/style/index.css +6 -0
  136. package/es/Timeline/style/index.css +6 -0
  137. package/es/Tooltip/style/index.css +6 -0
  138. package/es/Transfer/style/index.css +6 -0
  139. package/es/Tree/style/index.css +6 -0
  140. package/es/TreeSelect/style/index.css +6 -0
  141. package/es/Typography/style/index.css +6 -0
  142. package/es/Upload/style/index.css +6 -0
  143. package/es/message/style/index.css +6 -0
  144. package/es/notification/style/index.css +6 -0
  145. package/es/styles/main.css +6 -0
  146. package/es/styles/resetAntd.css +3 -0
  147. package/lib/Affix/style/index.css +6 -0
  148. package/lib/Alert/style/index.css +6 -0
  149. package/lib/Approval/index.js +4 -4
  150. package/lib/Approval/style/index.css +18 -4
  151. package/lib/AutoComplete/style/index.css +6 -0
  152. package/lib/Avatar/style/index.css +6 -0
  153. package/lib/Breadcrumb/style/index.css +6 -0
  154. package/lib/ButtonTags/style/index.css +6 -0
  155. package/lib/Calendar/style/index.css +6 -0
  156. package/lib/Card/style/index.css +6 -0
  157. package/lib/CardTable/fns/index.js +5 -8
  158. package/lib/CardTable/table/TableRoot.js +2 -1
  159. package/lib/Carousel/style/index.css +6 -0
  160. package/lib/Cascader/style/index.css +6 -0
  161. package/lib/CkFilter/complexFilter/drawer.js +1 -4
  162. package/lib/CkFilter/complexFilter/saveModal.js +5 -7
  163. package/lib/CkFilter/components/CustomModal.js +2 -3
  164. package/lib/CkFilter/components/filterTypes.js +1 -3
  165. package/lib/CkFilter/components/modal.js +2 -5
  166. package/lib/CkFilter/components/modalBack.js +2 -3
  167. package/lib/CkFilter/customFilter/drawer.js +6 -11
  168. package/lib/CkFilter/style/index.css +6 -0
  169. package/lib/Col/style/index.css +6 -0
  170. package/lib/Collapse/style/index.css +6 -0
  171. package/lib/Comment/style/index.css +6 -0
  172. package/lib/CustomTableOption/style/index.css +6 -0
  173. package/lib/CustomerService/style/index.css +6 -0
  174. package/lib/DatePicker/style/index.css +6 -0
  175. package/lib/Descriptions/style/index.css +6 -0
  176. package/lib/Drawer/style/index.css +6 -0
  177. package/lib/Dropdown/style/index.css +6 -0
  178. package/lib/EditTable/style/index.css +6 -0
  179. package/lib/Empty/style/index.css +6 -0
  180. package/lib/Filter/baseFilter/Popover.js +0 -1
  181. package/lib/Filter/baseFilter/ToggleFilter.js +0 -1
  182. package/lib/Filter/edit/editFilter.js +2 -6
  183. package/lib/Filter/remember.js +0 -1
  184. package/lib/Filter/style/index.css +6 -0
  185. package/lib/Form/style/index.css +6 -0
  186. package/lib/Grid/style/index.css +6 -0
  187. package/lib/Icon/style/index.css +6 -0
  188. package/lib/IconFont/font/iconfont.js +1 -1
  189. package/lib/Image/style/index.css +6 -0
  190. package/lib/Input/style/index.css +6 -0
  191. package/lib/InputNumber/style/index.css +6 -0
  192. package/lib/Layout/style/index.css +6 -0
  193. package/lib/LeftTable/style/index.css +6 -0
  194. package/lib/List/style/index.css +6 -0
  195. package/lib/LmEditTable/style/index.css +6 -0
  196. package/lib/LmFilter/complexFilter/drawer.js +2 -7
  197. package/lib/LmFilter/complexFilter/valueDrawer.js +2 -5
  198. package/lib/LmFilter/components/CascaderFilter.js +0 -1
  199. package/lib/LmFilter/components/DropdownFIlter.js +17 -19
  200. package/lib/LmFilter/components/InputFilter.js +1 -2
  201. package/lib/LmFilter/components/SelectFilter.js +2 -2
  202. package/lib/LmFilter/components/index.js +1 -1
  203. package/lib/LmFilter/customFilter/drawer.js +7 -25
  204. package/lib/LmFilter/customFilter/saveModal.js +2 -3
  205. package/lib/LmFilter/customFilter/valueDrawer.js +2 -5
  206. package/lib/LmFilter/filterFns/index.js +3 -5
  207. package/lib/LmFilter/localization.d.ts +1 -0
  208. package/lib/LmFilter/localization.js +4 -2
  209. package/lib/LmFilter/utils.js +39 -22
  210. package/lib/LmFilter/wrapper/FilterRoot.js +0 -2
  211. package/lib/LmSelect/style/index.css +6 -0
  212. package/lib/LmSelect/useCheckboxOptions.d.ts +1 -0
  213. package/lib/LmSelect/useCheckboxOptions.js +7 -5
  214. package/lib/LmTable/Table.js +0 -1
  215. package/lib/LmTable/autosize.js +0 -3
  216. package/lib/LmTable/style/index.css +6 -0
  217. package/lib/LmUpload/LmUpload.js +43 -21
  218. package/lib/LmUpload/UploadList/ItemPicture.d.ts +2 -1
  219. package/lib/LmUpload/UploadList/ItemPicture.js +14 -8
  220. package/lib/LmUpload/UploadList/ItemPictureCard.js +18 -9
  221. package/lib/LmUpload/UploadList/ItemText.d.ts +2 -1
  222. package/lib/LmUpload/UploadList/ItemText.js +12 -7
  223. package/lib/LmUpload/UploadList/RenderItem.d.ts +1 -5
  224. package/lib/LmUpload/UploadList/RenderItem.js +3 -3
  225. package/lib/LmUpload/UploadList/index.js +9 -4
  226. package/lib/LmUpload/body/Progress.js +2 -2
  227. package/lib/LmUpload/body/UploadCore.js +15 -8
  228. package/lib/LmUpload/body/UploadPicture.js +4 -4
  229. package/lib/LmUpload/fns/index.d.ts +2 -0
  230. package/lib/LmUpload/fns/index.js +61 -16
  231. package/lib/LmUpload/utils.d.ts +1 -0
  232. package/lib/LmUpload/utils.js +16 -1
  233. package/lib/LmUpload/wrapper/UploadContainer.d.ts +4 -3
  234. package/lib/LmUpload/wrapper/UploadContainer.js +21 -3
  235. package/lib/LmUpload/wrapper/UploadRoot.js +30 -3
  236. package/lib/LmUpload/wrapper/UploadWrapper.js +5 -12
  237. package/lib/LmUpload/wrapper/reducer.js +2 -1
  238. package/lib/Mentions/style/index.css +6 -0
  239. package/lib/Menu/style/index.css +6 -0
  240. package/lib/Modal/style/index.css +6 -0
  241. package/lib/PageHeader/style/index.css +6 -0
  242. package/lib/Pagination/style/index.css +6 -0
  243. package/lib/PopTable/style/index.css +6 -0
  244. package/lib/Popconfirm/style/index.css +6 -0
  245. package/lib/Popover/style/index.css +6 -0
  246. package/lib/ProTable/Table.js +0 -1
  247. package/lib/ProTable/autosize.js +0 -3
  248. package/lib/ProTable/style/index.css +6 -0
  249. package/lib/Progress/style/index.css +6 -0
  250. package/lib/QuickMenu/style/index.css +6 -0
  251. package/lib/Rate/style/index.css +6 -0
  252. package/lib/Row/style/index.css +6 -0
  253. package/lib/Segmented/style/index.css +6 -0
  254. package/lib/Select/style/index.css +6 -0
  255. package/lib/Slider/style/index.css +6 -0
  256. package/lib/Space/style/index.css +6 -0
  257. package/lib/Spin/style/index.css +6 -0
  258. package/lib/Statistic/style/index.css +6 -0
  259. package/lib/Steps/style/index.css +6 -0
  260. package/lib/Switch/style/index.css +6 -0
  261. package/lib/Table/style/index.css +6 -0
  262. package/lib/Tabs/style/index.css +6 -0
  263. package/lib/Tag/style/index.css +6 -0
  264. package/lib/TimePicker/style/index.css +6 -0
  265. package/lib/Timeline/style/index.css +6 -0
  266. package/lib/Tooltip/style/index.css +6 -0
  267. package/lib/Transfer/style/index.css +6 -0
  268. package/lib/Tree/style/index.css +6 -0
  269. package/lib/TreeSelect/style/index.css +6 -0
  270. package/lib/Typography/style/index.css +6 -0
  271. package/lib/Upload/style/index.css +6 -0
  272. package/lib/message/style/index.css +6 -0
  273. package/lib/notification/style/index.css +6 -0
  274. package/lib/styles/main.css +6 -0
  275. package/lib/styles/resetAntd.css +3 -0
  276. package/package.json +2 -1
@@ -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);
@@ -1,4 +1,5 @@
1
- declare const LmUploadContainer: ({ instance }: {
1
+ import * as React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ instance }: {
2
3
  instance: any;
3
- }) => JSX.Element;
4
- export default LmUploadContainer;
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
- return /*#__PURE__*/React.createElement(_Upload.default, {
20
- instance: instance
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
+ upload: /*#__PURE__*/React.createElement(_Upload.default, {
33
+ instance: instance
34
+ }),
35
+ fileList: /*#__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;
@@ -19,7 +19,22 @@ var _fns = _interopRequireDefault(require("../fns"));
19
19
 
20
20
  var _UploadWrapper = _interopRequireDefault(require("./UploadWrapper"));
21
21
 
22
- // 根文件 => 参数聚合
22
+ var _utils = require("../utils");
23
+
24
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
25
+ var t = {};
26
+
27
+ for (var p in s) {
28
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
29
+ }
30
+
31
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
32
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ }; // 根文件 => 参数聚合
36
+
37
+
23
38
  var LmUploadRoot = function LmUploadRoot(props, ref) {
24
39
  var initialState = (0, _react.useMemo)(function () {
25
40
  return (0, _reducer.initialState)(props);
@@ -28,8 +43,20 @@ var LmUploadRoot = function LmUploadRoot(props, ref) {
28
43
  var _useReducer = (0, _react.useReducer)(_reducer.default, initialState),
29
44
  _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
30
45
  state = _useReducer2[0],
31
- dispatch = _useReducer2[1]; // 获取核心Methods
46
+ dispatch = _useReducer2[1]; // 格式化接收参数值
47
+
48
+
49
+ var configProps = (0, _react.useMemo)(function () {
50
+ var fileList = props.fileList,
51
+ resetProps = __rest(props // 受控/非受控时的数据收集
52
+ , ["fileList"]); // 受控/非受控时的数据收集
53
+
32
54
 
55
+ var aliveValue = (0, _utils.getIsHas)(fileList) ? fileList : state.fileList;
56
+ return Object.assign(Object.assign({}, resetProps), {
57
+ fileList: aliveValue
58
+ });
59
+ }, [props, state.fileList]); // 获取核心Methods
33
60
 
34
61
  var _useCoreOptions = (0, _fns.default)({
35
62
  state: state,
@@ -40,7 +67,7 @@ var LmUploadRoot = function LmUploadRoot(props, ref) {
40
67
  RefMethods = _useCoreOptions.RefMethods; // 组件实例
41
68
 
42
69
 
43
- var instance = Object.assign(Object.assign(Object.assign(Object.assign({}, props), CoreMethods), RefMethods), {
70
+ var instance = Object.assign(Object.assign(Object.assign(Object.assign({}, configProps), CoreMethods), RefMethods), {
44
71
  state: state,
45
72
  dispatch: dispatch
46
73
  }); // 向外暴露出的方法
@@ -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 React = _interopRequireWildcard(require("react"));
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
- var wrapper = instance.components.wrapper;
24
- return /*#__PURE__*/React.createElement("div", {
25
- className: 'lm_upload_wrapper'
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
- })), /*#__PURE__*/React.createElement(_view.default, {
23
+ }), /*#__PURE__*/_react.default.createElement(_view.default, {
31
24
  instance: instance
32
25
  }));
33
26
  };
@@ -36,7 +36,8 @@ var initialState = function initialState(props) {
36
36
  upload: upload,
37
37
  process: 0,
38
38
  status: 'done',
39
- fileList: defaultFileList
39
+ fileList: defaultFileList // 用于非受控模式时的数据收集
40
+
40
41
  };
41
42
  };
42
43
 
@@ -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
+ }
@@ -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
+ }
@@ -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;
@@ -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;
@@ -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
+ }
@@ -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_select.ant-select {
507
513
  font-size: 12px;
508
514
  }
@@ -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
+ }
@@ -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
+ }
@@ -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
  .ant-switch.lm-switch {
507
513
  width: 48px;
508
514
  height: 24px;
@@ -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_tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
507
513
  color: var(--primary-color);
508
514
  }
@@ -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_tag.ant-tag {
507
513
  padding: 0 8px;
508
514
  }
@@ -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
+ }