linkmore-design 1.0.36 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cascader/demos/basic.d.ts +2 -0
- package/dist/Cascader/index.d.ts +4 -0
- package/dist/Cascader/style/index.d.ts +1 -0
- package/dist/Form/demos/basic.d.ts +2 -0
- package/dist/Form/demos/drawer1152-triple.d.ts +3 -0
- package/dist/Form/demos/drawer440-double.d.ts +3 -0
- package/dist/Form/demos/drawer440.d.ts +3 -0
- package/dist/Form/demos/drawer720-double.d.ts +3 -0
- package/dist/Form/demos/modal416.d.ts +3 -0
- package/dist/Form/demos/modal552-double.d.ts +3 -0
- package/dist/Form/index.d.ts +24 -0
- package/dist/Form/style/index.d.ts +1 -0
- package/dist/LmSelect/GhostSelect.d.ts +2 -0
- package/dist/LmSelect/NormalSelect.d.ts +11 -0
- package/dist/LmSelect/demos/basic.d.ts +2 -0
- package/dist/LmSelect/demos/checkbox.d.ts +2 -0
- package/dist/LmSelect/demos/ghost.d.ts +2 -0
- package/dist/LmSelect/index.d.ts +14 -0
- package/dist/LmSelect/style/index.d.ts +1 -0
- package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/dist/LmSelect/utils.d.ts +10 -0
- package/dist/VirtualList/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useEvent/index.d.ts +2 -0
- package/dist/hooks/useFullscreen/demos/basic.d.ts +2 -0
- package/dist/hooks/useFullscreen/index.d.ts +15 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.umd.js +1213 -229
- package/dist/index.umd.min.js +7 -7
- package/es/Cascader/index.d.ts +4 -0
- package/es/Cascader/index.js +37 -0
- package/es/Cascader/style/index.css +520 -0
- package/es/Cascader/style/index.d.ts +1 -0
- package/es/Cascader/style/index.js +1 -0
- package/es/Form/index.d.ts +24 -0
- package/es/Form/index.js +56 -0
- package/es/Form/style/index.css +531 -0
- package/es/Form/style/index.d.ts +1 -0
- package/es/Form/style/index.js +1 -0
- package/es/LmSelect/GhostSelect.d.ts +2 -0
- package/es/LmSelect/GhostSelect.js +523 -0
- package/es/LmSelect/NormalSelect.d.ts +11 -0
- package/es/LmSelect/NormalSelect.js +97 -0
- package/es/LmSelect/icon_placeholder.png +0 -0
- package/es/LmSelect/index.d.ts +14 -0
- package/es/LmSelect/index.js +34 -0
- package/es/LmSelect/style/index.css +751 -0
- package/es/LmSelect/style/index.d.ts +1 -0
- package/es/LmSelect/style/index.js +1 -0
- package/es/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/es/LmSelect/useCheckboxOptions.js +120 -0
- package/es/LmSelect/utils.d.ts +10 -0
- package/es/LmSelect/utils.js +66 -0
- package/es/LmTable/Table.js +15 -14
- package/es/VirtualList/index.js +2 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/hooks/useEvent/index.d.ts +2 -0
- package/es/hooks/useEvent/index.js +16 -0
- package/es/hooks/useFullscreen/index.d.ts +15 -0
- package/es/hooks/useFullscreen/index.js +99 -0
- package/es/index.d.ts +4 -1
- package/es/index.js +4 -1
- package/lib/Cascader/index.d.ts +4 -0
- package/lib/Cascader/index.js +50 -0
- package/lib/Cascader/style/index.css +520 -0
- package/lib/Cascader/style/index.d.ts +1 -0
- package/lib/Cascader/style/index.js +3 -0
- package/lib/Form/index.d.ts +24 -0
- package/lib/Form/index.js +75 -0
- package/lib/Form/style/index.css +531 -0
- package/lib/Form/style/index.d.ts +1 -0
- package/lib/Form/style/index.js +3 -0
- package/lib/LmSelect/GhostSelect.d.ts +2 -0
- package/lib/LmSelect/GhostSelect.js +545 -0
- package/lib/LmSelect/NormalSelect.d.ts +11 -0
- package/lib/LmSelect/NormalSelect.js +116 -0
- package/lib/LmSelect/icon_placeholder.png +0 -0
- package/lib/LmSelect/index.d.ts +14 -0
- package/lib/LmSelect/index.js +50 -0
- package/lib/LmSelect/style/index.css +751 -0
- package/lib/LmSelect/style/index.d.ts +1 -0
- package/lib/LmSelect/style/index.js +3 -0
- package/lib/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/lib/LmSelect/useCheckboxOptions.js +139 -0
- package/lib/LmSelect/utils.d.ts +10 -0
- package/lib/LmSelect/utils.js +103 -0
- package/lib/LmTable/Table.js +15 -14
- package/lib/VirtualList/index.js +2 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +23 -0
- package/lib/hooks/useEvent/index.d.ts +2 -0
- package/lib/hooks/useEvent/index.js +25 -0
- package/lib/hooks/useFullscreen/index.d.ts +15 -0
- package/lib/hooks/useFullscreen/index.js +113 -0
- package/lib/index.d.ts +4 -1
- package/lib/index.js +25 -1
- package/package.json +5 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd/es/button/style'), require('antd/es/button'), require('react'), require('antd/es/card/style'), require('antd/es/card'), require('antd/es/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'antd/es/button/style', 'antd/es/button', 'react', 'antd/es/card/style', 'antd/es/card', 'antd/es/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.linkmoreDesign = {}, null, global._Button, global.React, null, global._Card, null, global.
|
|
5
|
-
}(this, (function (exports, style, _Button, React, style$1, _Card, style$2,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd/es/button/style'), require('antd/es/button'), require('react'), require('antd/es/card/style'), require('antd/es/card'), require('antd/es/cascader/style'), require('antd/es/cascader'), require('antd/es/checkbox/style'), require('antd/es/checkbox'), require('antd/es/date-picker/style'), require('antd/es/date-picker'), require('react-dom'), require('antd/es/drawer/style'), require('antd/es/drawer'), require('antd/es/space/style'), require('antd/es/space'), require('antd/es/tag/style'), require('antd/es/tag'), require('antd/es/form/style'), require('antd/es/form'), require('antd/es/input/style'), require('antd/es/input'), require('antd/es/dropdown/style'), require('antd/es/dropdown'), require('antd/es/table/style'), require('antd/es/table'), require('antd/es/radio/style'), require('antd/es/radio'), require('antd/es/select/style'), require('antd/es/select'), require('antd/es/input-number/style'), require('antd/es/input-number'), require('antd/es/spin/style'), require('antd/es/spin'), require('antd/es/message/style'), require('antd/es/message'), require('antd/es/image/style'), require('antd/es/image'), require('antd/es/empty/style'), require('antd/es/empty'), require('antd/es/modal/style'), require('antd/es/modal'), require('antd/es/row/style'), require('antd/es/row'), require('antd/es/col/style'), require('antd/es/col'), require('antd/es/divider/style'), require('antd/es/divider'), require('antd/es/list/style'), require('antd/es/list'), require('antd/es/popover/style'), require('antd/es/popover'), require('antd/es/tree/style'), require('antd/es/tree'), require('antd/es/time-picker/style'), require('antd/es/time-picker'), require('antd/es/config-provider/style'), require('antd/es/config-provider'), require('antd/es/avatar/style'), require('antd/es/avatar'), require('react/jsx-runtime'), require('antd/es/locale/zh_CN'), require('antd/es/result/style'), require('antd/es/result'), require('antd/es/tooltip/style'), require('antd/es/tooltip'), require('antd/es/typography/style'), require('antd/es/typography'), require('antd/es/popconfirm/style'), require('antd/es/popconfirm'), require('antd/es/table/hooks/useLazyKVMap'), require('antd/es/badge/style'), require('antd/es/badge'), require('antd/es/progress/style'), require('antd/es/progress'), require('antd/es/rate/style'), require('antd/es/rate'), require('antd/es/switch/style'), require('antd/es/switch'), require('antd/es/tree-select/style'), require('antd/es/tree-select'), require('antd/es/tabs/style'), require('antd/es/tabs'), require('antd/es/grid/style'), require('antd/es/grid'), require('antd/es/steps/style'), require('antd/es/steps'), require('antd/es/upload/style'), require('antd/es/upload'), require('antd/es/alert/style'), require('antd/es/alert'), require('antd/es/menu/style'), require('antd/es/menu'), require('antd/es/pagination/style'), require('antd/es/pagination'), require('antd/es/notification/style'), require('antd/es/notification'), require('antd/lib/form/hooks/useFormInstance'), require('antd/lib/form/context'), require('antd/lib/form/Form')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'antd/es/button/style', 'antd/es/button', 'react', 'antd/es/card/style', 'antd/es/card', 'antd/es/cascader/style', 'antd/es/cascader', 'antd/es/checkbox/style', 'antd/es/checkbox', 'antd/es/date-picker/style', 'antd/es/date-picker', 'react-dom', 'antd/es/drawer/style', 'antd/es/drawer', 'antd/es/space/style', 'antd/es/space', 'antd/es/tag/style', 'antd/es/tag', 'antd/es/form/style', 'antd/es/form', 'antd/es/input/style', 'antd/es/input', 'antd/es/dropdown/style', 'antd/es/dropdown', 'antd/es/table/style', 'antd/es/table', 'antd/es/radio/style', 'antd/es/radio', 'antd/es/select/style', 'antd/es/select', 'antd/es/input-number/style', 'antd/es/input-number', 'antd/es/spin/style', 'antd/es/spin', 'antd/es/message/style', 'antd/es/message', 'antd/es/image/style', 'antd/es/image', 'antd/es/empty/style', 'antd/es/empty', 'antd/es/modal/style', 'antd/es/modal', 'antd/es/row/style', 'antd/es/row', 'antd/es/col/style', 'antd/es/col', 'antd/es/divider/style', 'antd/es/divider', 'antd/es/list/style', 'antd/es/list', 'antd/es/popover/style', 'antd/es/popover', 'antd/es/tree/style', 'antd/es/tree', 'antd/es/time-picker/style', 'antd/es/time-picker', 'antd/es/config-provider/style', 'antd/es/config-provider', 'antd/es/avatar/style', 'antd/es/avatar', 'react/jsx-runtime', 'antd/es/locale/zh_CN', 'antd/es/result/style', 'antd/es/result', 'antd/es/tooltip/style', 'antd/es/tooltip', 'antd/es/typography/style', 'antd/es/typography', 'antd/es/popconfirm/style', 'antd/es/popconfirm', 'antd/es/table/hooks/useLazyKVMap', 'antd/es/badge/style', 'antd/es/badge', 'antd/es/progress/style', 'antd/es/progress', 'antd/es/rate/style', 'antd/es/rate', 'antd/es/switch/style', 'antd/es/switch', 'antd/es/tree-select/style', 'antd/es/tree-select', 'antd/es/tabs/style', 'antd/es/tabs', 'antd/es/grid/style', 'antd/es/grid', 'antd/es/steps/style', 'antd/es/steps', 'antd/es/upload/style', 'antd/es/upload', 'antd/es/alert/style', 'antd/es/alert', 'antd/es/menu/style', 'antd/es/menu', 'antd/es/pagination/style', 'antd/es/pagination', 'antd/es/notification/style', 'antd/es/notification', 'antd/lib/form/hooks/useFormInstance', 'antd/lib/form/context', 'antd/lib/form/Form'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.linkmoreDesign = {}, null, global._Button, global.React, null, global._Card, null, global._Cascader, null, global._Checkbox, null, global._DatePicker, global.require$$2, null, global._Drawer, null, global._Space, null, global._Tag, null, global._Form, null, global._Input, null, global._Dropdown, null, global._Table, null, global._Radio, null, global._Select, null, global._InputNumber, null, global._Spin, null, global._message, null, global._Image, null, global._Empty, null, global._Modal, null, global._Row, null, global._Col, null, global._Divider, null, global._List, null, global._Popover, null, global._Tree, null, global._TimePicker, null, global._ConfigProvider, null, global._Avatar, global.jsxRuntime, global.zh_CN, null, global._Result, null, global._Tooltip, null, global._Typography, null, global._Popconfirm, global.useLazyKVMap, null, global._Badge, null, global._Progress, null, global._Rate, null, global._Switch, null, global._TreeSelect, null, global._Tabs, null, global._Grid, null, global._Steps, null, global._Upload, null, global._Alert, null, global._Menu, null, global._Pagination, null, global._notification, global.useFormInstance, global.context$2, global.Form$2));
|
|
5
|
+
}(this, (function (exports, style, _Button, React, style$1, _Card, style$2, _Cascader, style$3, _Checkbox, style$4, _DatePicker, require$$2, style$5, _Drawer, style$6, _Space, style$7, _Tag, style$8, _Form, style$9, _Input, style$a, _Dropdown, style$b, _Table, style$c, _Radio, style$d, _Select, style$e, _InputNumber, style$f, _Spin, style$g, _message, style$h, _Image, style$i, _Empty, style$j, _Modal, style$k, _Row, style$l, _Col, style$m, _Divider, style$n, _List, style$o, _Popover, style$p, _Tree, style$q, _TimePicker, style$r, _ConfigProvider, style$s, _Avatar, jsxRuntime, zh_CN, style$t, _Result, style$u, _Tooltip, style$v, _Typography, style$w, _Popconfirm, useLazyKVMap, style$x, _Badge, style$y, _Progress, style$z, _Rate, style$A, _Switch, style$B, _TreeSelect, style$C, _Tabs, style$D, _Grid, style$E, _Steps, style$F, _Upload, style$G, _Alert, style$H, _Menu, style$I, _Pagination, style$J, _notification, useFormInstance, context$2, Form$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
9
|
var _Button__default = /*#__PURE__*/_interopDefaultLegacy(_Button);
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
var _Card__default = /*#__PURE__*/_interopDefaultLegacy(_Card);
|
|
12
|
-
var _Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(_Checkbox);
|
|
13
12
|
var _Cascader__default = /*#__PURE__*/_interopDefaultLegacy(_Cascader);
|
|
13
|
+
var _Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(_Checkbox);
|
|
14
14
|
var _DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(_DatePicker);
|
|
15
15
|
var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
|
|
16
16
|
var _Drawer__default = /*#__PURE__*/_interopDefaultLegacy(_Drawer);
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
var _Menu__default = /*#__PURE__*/_interopDefaultLegacy(_Menu);
|
|
57
57
|
var _Pagination__default = /*#__PURE__*/_interopDefaultLegacy(_Pagination);
|
|
58
58
|
var _notification__default = /*#__PURE__*/_interopDefaultLegacy(_notification);
|
|
59
|
+
var useFormInstance__default = /*#__PURE__*/_interopDefaultLegacy(useFormInstance);
|
|
59
60
|
|
|
60
61
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
61
62
|
|
|
@@ -374,6 +375,25 @@
|
|
|
374
375
|
}));
|
|
375
376
|
};
|
|
376
377
|
|
|
378
|
+
var _excluded$1 = ["children", "className", "dropdownClassName", "placeholder"];
|
|
379
|
+
var prefixCls = 'lm_cascader';
|
|
380
|
+
var prefixDropdownCls = 'lm_cascader_dropdown';
|
|
381
|
+
|
|
382
|
+
var LMCascader = function LMCascader(props) {
|
|
383
|
+
var children = props.children,
|
|
384
|
+
className = props.className,
|
|
385
|
+
dropdownClassName = props.dropdownClassName,
|
|
386
|
+
_props$placeholder = props.placeholder,
|
|
387
|
+
placeholder = _props$placeholder === void 0 ? '请选择' : _props$placeholder,
|
|
388
|
+
others = _objectWithoutProperties(props, _excluded$1);
|
|
389
|
+
|
|
390
|
+
return /*#__PURE__*/React__default['default'].createElement(_Cascader__default['default'], _objectSpread({
|
|
391
|
+
placeholder: placeholder,
|
|
392
|
+
className: classnames(prefixCls, className),
|
|
393
|
+
dropdownClassName: classnames(prefixDropdownCls, dropdownClassName)
|
|
394
|
+
}, others));
|
|
395
|
+
};
|
|
396
|
+
|
|
377
397
|
var _extends_1 = createCommonjsModule(function (module) {
|
|
378
398
|
function _extends() {
|
|
379
399
|
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -397,12 +417,12 @@
|
|
|
397
417
|
|
|
398
418
|
var _extends = /*@__PURE__*/getDefaultExportFromCjs(_extends_1);
|
|
399
419
|
|
|
400
|
-
var _excluded$
|
|
420
|
+
var _excluded$2 = ["children"],
|
|
401
421
|
_excluded2 = ["children", "size", "buttonStyle", "direction"];
|
|
402
422
|
|
|
403
423
|
var LMCheckBox = function LMCheckBox(props) {
|
|
404
424
|
var children = props.children,
|
|
405
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
425
|
+
restProps = _objectWithoutProperties(props, _excluded$2);
|
|
406
426
|
|
|
407
427
|
var classString = classnames(restProps.className, 'lm-checkbox');
|
|
408
428
|
return /*#__PURE__*/React__default['default'].createElement(_Checkbox__default['default'], _extends({}, restProps, {
|
|
@@ -1826,7 +1846,7 @@
|
|
|
1826
1846
|
}, []);
|
|
1827
1847
|
};
|
|
1828
1848
|
|
|
1829
|
-
var _excluded$
|
|
1849
|
+
var _excluded$3 = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
|
|
1830
1850
|
var twoToneColorPalette = {
|
|
1831
1851
|
primaryColor: '#333',
|
|
1832
1852
|
secondaryColor: '#E6E6E6',
|
|
@@ -1852,7 +1872,7 @@
|
|
|
1852
1872
|
style = props.style,
|
|
1853
1873
|
primaryColor = props.primaryColor,
|
|
1854
1874
|
secondaryColor = props.secondaryColor,
|
|
1855
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
1875
|
+
restProps = _objectWithoutProperties$1(props, _excluded$3);
|
|
1856
1876
|
|
|
1857
1877
|
var colors = twoToneColorPalette;
|
|
1858
1878
|
|
|
@@ -1915,7 +1935,7 @@
|
|
|
1915
1935
|
return [colors.primaryColor, colors.secondaryColor];
|
|
1916
1936
|
}
|
|
1917
1937
|
|
|
1918
|
-
var _excluded$
|
|
1938
|
+
var _excluded$4 = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
1919
1939
|
// should move it to antd main repo?
|
|
1920
1940
|
|
|
1921
1941
|
setTwoToneColor('#1890ff');
|
|
@@ -1929,7 +1949,7 @@
|
|
|
1929
1949
|
tabIndex = props.tabIndex,
|
|
1930
1950
|
onClick = props.onClick,
|
|
1931
1951
|
twoToneColor = props.twoToneColor,
|
|
1932
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
1952
|
+
restProps = _objectWithoutProperties$1(props, _excluded$4);
|
|
1933
1953
|
|
|
1934
1954
|
var _React$useContext = React.useContext(IconContext),
|
|
1935
1955
|
_React$useContext$pre = _React$useContext.prefixCls,
|
|
@@ -2465,7 +2485,7 @@
|
|
|
2465
2485
|
VerticalAlignTopOutlined$1.displayName = 'VerticalAlignTopOutlined';
|
|
2466
2486
|
var VerticalAlignTopOutlined$2 = /*#__PURE__*/React.forwardRef(VerticalAlignTopOutlined$1);
|
|
2467
2487
|
|
|
2468
|
-
var _excluded$
|
|
2488
|
+
var _excluded$5 = ["className", "component", "viewBox", "spin", "rotate", "tabIndex", "onClick", "children"];
|
|
2469
2489
|
var Icon$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
2470
2490
|
var className = props.className,
|
|
2471
2491
|
Component = props.component,
|
|
@@ -2475,7 +2495,7 @@
|
|
|
2475
2495
|
tabIndex = props.tabIndex,
|
|
2476
2496
|
onClick = props.onClick,
|
|
2477
2497
|
children = props.children,
|
|
2478
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
2498
|
+
restProps = _objectWithoutProperties$1(props, _excluded$5);
|
|
2479
2499
|
|
|
2480
2500
|
warning$1(Boolean(Component || children), 'Should have `component` prop or `children`.');
|
|
2481
2501
|
useInsertStyles();
|
|
@@ -2534,7 +2554,7 @@
|
|
|
2534
2554
|
});
|
|
2535
2555
|
Icon$1.displayName = 'AntdIcon';
|
|
2536
2556
|
|
|
2537
|
-
var _excluded$
|
|
2557
|
+
var _excluded$6 = ["type", "children"];
|
|
2538
2558
|
var customCache = new Set();
|
|
2539
2559
|
|
|
2540
2560
|
function isValidCustomScriptUrl(scriptUrl) {
|
|
@@ -2589,7 +2609,7 @@
|
|
|
2589
2609
|
var Iconfont = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
2590
2610
|
var type = props.type,
|
|
2591
2611
|
children = props.children,
|
|
2592
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
2612
|
+
restProps = _objectWithoutProperties$1(props, _excluded$6); // children > type
|
|
2593
2613
|
|
|
2594
2614
|
|
|
2595
2615
|
var content = null;
|
|
@@ -25981,7 +26001,8 @@
|
|
|
25981
26001
|
children = _ref.children,
|
|
25982
26002
|
_ref$size = _ref.size,
|
|
25983
26003
|
size = _ref$size === void 0 ? 32 : _ref$size,
|
|
25984
|
-
parentRef = _ref.parentRef,
|
|
26004
|
+
_ref$parentRef = _ref.parentRef,
|
|
26005
|
+
parentRef = _ref$parentRef === void 0 ? null : _ref$parentRef,
|
|
25985
26006
|
className = _ref.className,
|
|
25986
26007
|
_ref$maxHeight = _ref.maxHeight,
|
|
25987
26008
|
maxHeight = _ref$maxHeight === void 0 ? 224 : _ref$maxHeight;
|
|
@@ -29753,7 +29774,7 @@
|
|
|
29753
29774
|
}, children);
|
|
29754
29775
|
};
|
|
29755
29776
|
|
|
29756
|
-
var _excluded$
|
|
29777
|
+
var _excluded$7 = ["item", "filters", "options", "checkedValues", "setFilterValue", "setCheckedValues"];
|
|
29757
29778
|
|
|
29758
29779
|
var SortableItem = function SortableItem(props) {
|
|
29759
29780
|
var virItem = props.item,
|
|
@@ -29762,7 +29783,7 @@
|
|
|
29762
29783
|
checkedValues = props.checkedValues,
|
|
29763
29784
|
setFilterValue = props.setFilterValue,
|
|
29764
29785
|
setCheckedValues = props.setCheckedValues,
|
|
29765
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
29786
|
+
resetProps = _objectWithoutProperties(props, _excluded$7);
|
|
29766
29787
|
|
|
29767
29788
|
var _useSortable = useSortable({
|
|
29768
29789
|
id: "drag".concat(virItem.field),
|
|
@@ -29831,7 +29852,7 @@
|
|
|
29831
29852
|
})))));
|
|
29832
29853
|
};
|
|
29833
29854
|
|
|
29834
|
-
var _excluded$
|
|
29855
|
+
var _excluded$8 = ["options", "checkedValues", "setFilterValue"];
|
|
29835
29856
|
|
|
29836
29857
|
var Drag = function Drag(_ref) {
|
|
29837
29858
|
var _ref$options = _ref.options,
|
|
@@ -29839,7 +29860,7 @@
|
|
|
29839
29860
|
_ref$checkedValues = _ref.checkedValues,
|
|
29840
29861
|
checkedValues = _ref$checkedValues === void 0 ? [] : _ref$checkedValues,
|
|
29841
29862
|
setFilterValue = _ref.setFilterValue,
|
|
29842
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
29863
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
29843
29864
|
|
|
29844
29865
|
var move = function move(active, over) {
|
|
29845
29866
|
setFilterValue({
|
|
@@ -29871,7 +29892,7 @@
|
|
|
29871
29892
|
|
|
29872
29893
|
var imgEmpty = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKIAAABkCAYAAAAFQ+uyAAAABHNCSVQICAgIfAhkiAAAC5NJREFUeJztnUtsG8cdxr/ZmSW5fOhZyXJruVKd1IGNJg5qxIcAtgS4UaMqcJCDbgWcS3NznAIFekhRFiiKnlwV7UWX2ChQoGAObSGDMOCg8qEQYECC04OTIJUfSGPZ8VMSKS33MTM9SExoWRIf2uUuV/MDBInkcPej5uN/5j8zu0MQQXK5XAwADMNgb7zxxuoWZbpSqVQGAEqlEjjnd8fHx+1m6qyVbDarvfLKKzqllC0sLHAASKVSzvj4OA9am1eQoAV4zaVLl/ZyzveUH3POHSnlF6dOnSoAQC6Xo6lU6gCAZOX7XNcVmqbNb2XcZpPP59scx+kFAMZYerMynHOHUloUQqwAQDqdXhweHnabqdMrImXEXC7XbhjGwGavmab5OQAkEokeQkjnZmUIIfbY2NinPkqsSi6Xo4lEYj8hpK3e93LOBSHk/rVr1x5ks1nhhz6/0IIWoFAAEYuIU1NTzzPGjC1ettZ/x7c7hpTyLgCMjo4+8FJbNfL5fBwAKKWDQojYTo7luq5NKb0FAKOjo1a18mEgMkacmZkxCoXCAQ8O5QLAyMjIZx4cqyby+XycUjq4/pB5cUxN0zgACCG+GBkZWfHimH4SeiPmcjlqGMZTUcw0TWtjxnj58uX9nPOMV+d1XXdhbGzsiVfH24rJyUl9//793yOEeGLAjRBC+O3bt2+88847jh/H9wpfPvxOOX/+fKK3t3cPABBCUhtfT6fTuHjxYknTNLtcgY7jJAFIrzQwxroB+G7EgYGBfZxzKqX0TPsGtIGBgX0Abvl0fE9QyYoiFISuaZ6ZmTFWV1f7KaVh+JI8HB4efrhdgWw2q504cSJpWVYsHo+XkwwGwLUsy15eXjYBYHx83Nz43kuXLu2Nx+Pt3st+Fs75g5MnTz5qxrkaIVRGnJ6eZgAGpJQ0aC1lCoXCQnkwvMzs7Ky+uLjYBQBCiDbGWNUvDWPs8fHjxx8AwOXLl9sBgFLa54fmzbBtm4+MjNwAAEKIX92AhgmVET/66KM9AJoSIeqBc74IAKlUyrQsq01K+Uy/tRZM03xMKS1omtYPALUY2EtKpdIDAGhGElYvoUhW1iMhAGQAhG5GgFLaBgCO47RpmgY0qDGdTndompYR4uu3N/Wz6rresf5n6IwYhn6YQhGOiMg5bwfC2XfxGiGEBg+Hmeqh3BWYnJzUwzauGAojxuPxFACIijZL4R/9/f2hawkDN+LU1FTSdd3yPybyETEMGIah45u591AQuBH37t2btCxLGbCJcM4NAMWgdVQSuhCt2J0EFhGllNrVq1fTQghD13XVN2wiuq4npJQaISQ0//emDmhfv349trS0VF72bmiaFqoB9d0EIcQ8duxYaKb8mmKEmZkZw3XdNGNsRws+Fd6SSqUWX3rppVCsVfTNiNPT04lMJlOOfrpf51E0jhBC9vT0LALA4OBgKUgtKllRhALPI2I+n4/39vZmhBCBDw0pakcIsXrs2LFCULNbnhgxl8vRnp6eDABsXNavaB1s2xamaa6+9tprq0Bzp1x3bMTZ2dmkpmkNLYtShBMhhAQAXddNx3Hso0eP+j4v3ZARpZQaAMzNzWWgEpHdggMAuq67d+7ccYvFouvlLU9UsqIIBXVHxNnZWd227QwAUErVgLQClFIXgHPz5s1nLvOtlbqMdP369RjnXPUHFVtCKXUA4NChQyv1JDs1G3F2dlanlCoTKmrCsixRz3BQ1bG+cmJy9epVA2q9oKJGGGNkbm7OAFDTbf5UsqIIBVUj4t27dxMA0NHRIaEioqI+ar4+fVsjSinpJ598opbxKxpGSklq6Sdua8T5+Xnmuq4yoKIhHMeRniUrXV1doVnFq2gtlpeXax5TVMmKIhRUjYiqaVY0yocffljzDgfbDmhLKRlU1FQ0hiCE1GzEahGRz83NqflkRc0UCgUJAPXu91LVZLlcjgJAT0+PMqSiKsPDw+UEpa4unWp2FaGg5ihXnnNWKLZiJxfs19XcSilV86zYlN1wS0GFQqFQKBQKRXNRyQeAt35X+IMk8k0CMuD3uaTEx1IjFwDgH79M/9Hv87UKu9qIp367dH7tL3k6iPMLyPem3u+cCOLcYWPXGnHsN48mCPBu0Dog5dtT2W9dCFpG0KhBakUo2JURcfRX908TgvNB61hnUWoYzmd7Pw5aSJDsOiP++P27Q0RiOmgdTyMXJScvA8Cl3++9HbCYQNg1RvzRL748AgCEyGlCSEe18s1GSnwMALadGr4y0bkYtJ5msytupjl09laHlO55AJAyfCZc5wgAMLb0dwDDAWtpOipZUYSCXdE0D5+9eY2QtYjTEkh54V8TB94OWkYzibwRh96dP0+A09XK/eC5DF490on2jH/3Hf3qkYX8v+/j/mO7alkpyHtX/nRg1wx2R9qIQ2f+myWE/LpauRefz2DseG8zJKFkcfw1vwAA+KqKISXB2wBwZeK5C74LC5hIGnHo7PxpACBy+7HCPd1r+w/99CffRiJe821adkzJWrus489/+wIle+tFzRJYy54JHb4yMRjpcUaVrChCQeQi4tDZW0eI5NeqlevIMPzsrX0A0NRoWMm9hxb+cnFh26gIrEdGQl++MjF4uznKmk/kxhEPDrZNxWPbG0vTgL7uOD79X/nKR45EjODgPgad+ffdNC2BG3c5Snb58g6CV4/21ZK8dBSK1sQV4E3fxAVM5IyYSbN0JlV970nLBSz3m0hUMAGqSRz+rn/7Vn72pYvF4sboR9DdWX2PJM5luz+qwkHkjKhrgN5gS7tiSmg+9ZodV2LFFA1rY8H0HpqGSlYUoSByEZFSAtZgP8+VwPLKWtPZkfb2O/qkKBrWBQBaxCNi9Iy4g6YZAD6/s7btXHebhoS+88SlWFpLTB4XGm+WASDqWytF0ohe9KceF7y9Ue5ONVEVEVuLjgy7oVP8MGgdXrOnU/9P0Br8RCUrilAQuYhoxLUiIdHrUGXSeqRXbUfOiLHIfaJ1In6vrchVW9QHfqMKA4Bz584ZiTVa3pg6kbpv0yNBIuzkBx980BO0DK8pFovWmTNnliNYY4pWhJ07d87o6+sr78Pc8j0RyoAI5ioAgEQi0fL1s5F0Os0AgL3wwgu6pmmR2ebMZURGrrYAQNNkMrrb0RFWLBZFMpmMRN25biYd15CI4vANt+1uU+idTvHREwCISp2tIxkAM5VKtWSSYtuxmKCJPgDgEntpjCaZtOYJS0ZuZgWwHjLW/WKyp9sBAFs496nFFwzDLAatbCcYhiEANbOiCAkEAKanp5lpmkld92C5SZNgrKvHlfEDmiae+TLRzgM/BwBCYyebr8x7hFP6p1i6NbnZa4zQe7a9cLPZmrziyZMn9vj4uPm18SYnJ/X+/n4jSFG1kkp9p1vS+EDVgtRIa7H0c/4r8gdhPqjpEtKSvfoYAETp3i1/FXnP66+/XiCEPL2Bz/T0NAOArq6uONvJKk6fWTZj34/H9OoXeuwSpFwbKNDE4mexWKyuzRiD4tChQyUAKO9guqnZcrkcPXjwYKKZwurB0dvbmERf0DrCQlI3lgDANO99FbSWWmCMOYcPH37q0kWVrChCwZbNbzab1U6cOBHLZDKhNKuu62mSaOsiURw0rAfNLVqLi4+CllErhULB3mwv53r2a9bj8XioKj0WixEgkwQAw2BJXWctOR5aD5wLAQC6zlcty1pdWlri1d4TNJZlSQAYGhqyt9rBtN7dSTUAFOFt0jUA+voPVlbAEIHbqkgJnk7DBuAACL3xKpAAOCGkquaGKqliu9yyIUnFscJW8QRrOstatYrnwoIEUI4UouKnFafxypp5Pfs3h6kyFLsYX6LXesSsjJLY5HEY2UrfZs9XPrdV5Kr3+VZGABCNbiAemDEqmveNGqpVuiIcfN118GL3+pat4Aojl9kYfRXeICt/e2G6zVAVVgebmL8l8ctMO0ElKwqFQlHm/1pwrIuiAlBWAAAAAElFTkSuQmCC";
|
|
29873
29894
|
|
|
29874
|
-
var _excluded$
|
|
29895
|
+
var _excluded$9 = ["item"],
|
|
29875
29896
|
_excluded2$1 = ["item"],
|
|
29876
29897
|
_excluded3 = ["item"],
|
|
29877
29898
|
_excluded4 = ["item"],
|
|
@@ -29970,7 +29991,7 @@
|
|
|
29970
29991
|
className: "filter_list"
|
|
29971
29992
|
}, function (_ref3) {
|
|
29972
29993
|
var item = _ref3.item,
|
|
29973
|
-
resetProps = _objectWithoutProperties(_ref3, _excluded$
|
|
29994
|
+
resetProps = _objectWithoutProperties(_ref3, _excluded$9);
|
|
29974
29995
|
|
|
29975
29996
|
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, resetProps, {
|
|
29976
29997
|
className: classnames('filter_item', {
|
|
@@ -31564,7 +31585,7 @@
|
|
|
31564
31585
|
})));
|
|
31565
31586
|
};
|
|
31566
31587
|
|
|
31567
|
-
var _excluded$
|
|
31588
|
+
var _excluded$a = ["value", "onChange", "options"];
|
|
31568
31589
|
|
|
31569
31590
|
var Nested = function Nested(_ref) {
|
|
31570
31591
|
var _aliveActive$body;
|
|
@@ -31572,7 +31593,7 @@
|
|
|
31572
31593
|
var value = _ref.value,
|
|
31573
31594
|
onChange = _ref.onChange,
|
|
31574
31595
|
options = _ref.options,
|
|
31575
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
31596
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
31576
31597
|
|
|
31577
31598
|
var _useState = React.useState({}),
|
|
31578
31599
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -31629,12 +31650,12 @@
|
|
|
31629
31650
|
})));
|
|
31630
31651
|
};
|
|
31631
31652
|
|
|
31632
|
-
var _excluded$
|
|
31653
|
+
var _excluded$b = ["type", "options"];
|
|
31633
31654
|
|
|
31634
31655
|
var Controls = function Controls(props) {
|
|
31635
31656
|
var type = props.type,
|
|
31636
31657
|
options = props.options,
|
|
31637
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
31658
|
+
resetProps = _objectWithoutProperties(props, _excluded$b);
|
|
31638
31659
|
|
|
31639
31660
|
var obj = {
|
|
31640
31661
|
'select': /*#__PURE__*/React__default['default'].createElement(CheckboxTags, _extends({
|
|
@@ -31891,13 +31912,13 @@
|
|
|
31891
31912
|
name: "field",
|
|
31892
31913
|
label: "\u9009\u62E9\u5B57\u6BB5",
|
|
31893
31914
|
noStyle: true
|
|
31894
|
-
}, /*#__PURE__*/React__default['default'].createElement(LMSelect, {
|
|
31915
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMSelect$1, {
|
|
31895
31916
|
size: "default",
|
|
31896
31917
|
getPopupContainer: function getPopupContainer() {
|
|
31897
31918
|
return document.getElementById('area');
|
|
31898
31919
|
}
|
|
31899
31920
|
}, state.instance.fullData.map(function (v) {
|
|
31900
|
-
return /*#__PURE__*/React__default['default'].createElement(LMSelect.Option, {
|
|
31921
|
+
return /*#__PURE__*/React__default['default'].createElement(LMSelect$1.Option, {
|
|
31901
31922
|
key: v.field,
|
|
31902
31923
|
value: v.field
|
|
31903
31924
|
}, v.title);
|
|
@@ -31913,7 +31934,7 @@
|
|
|
31913
31934
|
}, DynamicSelect))));
|
|
31914
31935
|
};
|
|
31915
31936
|
|
|
31916
|
-
var _excluded$
|
|
31937
|
+
var _excluded$c = ["item"],
|
|
31917
31938
|
_excluded2$2 = ["item"];
|
|
31918
31939
|
|
|
31919
31940
|
var ListItemChecked = function ListItemChecked(props) {
|
|
@@ -32133,7 +32154,7 @@
|
|
|
32133
32154
|
className: "filter_drawer_group_list"
|
|
32134
32155
|
}, function (_ref2) {
|
|
32135
32156
|
var item = _ref2.item,
|
|
32136
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
32157
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$c);
|
|
32137
32158
|
|
|
32138
32159
|
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, resetProps, {
|
|
32139
32160
|
className: "filter_drawer_group_item"
|
|
@@ -32295,7 +32316,7 @@
|
|
|
32295
32316
|
}, "\u9AD8\u7EA7\u7B5B\u9009"))), /*#__PURE__*/React__default['default'].createElement(Index, null));
|
|
32296
32317
|
};
|
|
32297
32318
|
|
|
32298
|
-
var _excluded$
|
|
32319
|
+
var _excluded$d = ["item"];
|
|
32299
32320
|
|
|
32300
32321
|
var ListItem = function ListItem(props) {
|
|
32301
32322
|
var _useStore = useStore(),
|
|
@@ -32637,7 +32658,7 @@
|
|
|
32637
32658
|
className: "filter_drawer_group_list"
|
|
32638
32659
|
}, function (_ref2) {
|
|
32639
32660
|
var item = _ref2.item,
|
|
32640
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
32661
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$d);
|
|
32641
32662
|
|
|
32642
32663
|
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, resetProps, {
|
|
32643
32664
|
className: "filter_drawer_group_item"
|
|
@@ -33268,15 +33289,15 @@
|
|
|
33268
33289
|
}))));
|
|
33269
33290
|
};
|
|
33270
33291
|
|
|
33271
|
-
var _excluded$
|
|
33272
|
-
var prefixCls = 'lm_drawer';
|
|
33292
|
+
var _excluded$e = ["children", "className", "size"];
|
|
33293
|
+
var prefixCls$1 = 'lm_drawer';
|
|
33273
33294
|
|
|
33274
33295
|
var LMDrawer = function LMDrawer(props) {
|
|
33275
33296
|
var children = props.children,
|
|
33276
33297
|
className = props.className,
|
|
33277
33298
|
_props$size = props.size,
|
|
33278
33299
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
33279
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
33300
|
+
others = _objectWithoutProperties(props, _excluded$e);
|
|
33280
33301
|
|
|
33281
33302
|
var sizeMap = {
|
|
33282
33303
|
'default': 440,
|
|
@@ -33284,7 +33305,7 @@
|
|
|
33284
33305
|
'vlarge': 1152
|
|
33285
33306
|
};
|
|
33286
33307
|
return /*#__PURE__*/React__default['default'].createElement(_Drawer__default['default'], _objectSpread({
|
|
33287
|
-
className: classnames(className, prefixCls),
|
|
33308
|
+
className: classnames(className, prefixCls$1),
|
|
33288
33309
|
width: sizeMap[size] || 440,
|
|
33289
33310
|
push: {
|
|
33290
33311
|
distance: size === 'vlarge' ? 0 : 120
|
|
@@ -33292,8 +33313,8 @@
|
|
|
33292
33313
|
}, others), children);
|
|
33293
33314
|
};
|
|
33294
33315
|
|
|
33295
|
-
var _excluded$
|
|
33296
|
-
var prefixCls$
|
|
33316
|
+
var _excluded$f = ["children", "className", "overlayClassName", "dropdownmatchwidth", "onlyIcon"];
|
|
33317
|
+
var prefixCls$2 = 'lm_dropdown';
|
|
33297
33318
|
|
|
33298
33319
|
var CLMDropdown = function CLMDropdown(props) {
|
|
33299
33320
|
var children = props.children,
|
|
@@ -33303,7 +33324,7 @@
|
|
|
33303
33324
|
dropdownmatchwidth = _props$dropdownmatchw === void 0 ? false : _props$dropdownmatchw,
|
|
33304
33325
|
_props$onlyIcon = props.onlyIcon,
|
|
33305
33326
|
onlyIcon = _props$onlyIcon === void 0 ? false : _props$onlyIcon,
|
|
33306
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
33327
|
+
others = _objectWithoutProperties(props, _excluded$f);
|
|
33307
33328
|
|
|
33308
33329
|
var dropdownRef = React.useRef(null);
|
|
33309
33330
|
|
|
@@ -33328,7 +33349,7 @@
|
|
|
33328
33349
|
|
|
33329
33350
|
if (!dropdownmatchwidth) {
|
|
33330
33351
|
return /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'], _objectSpread(_objectSpread({
|
|
33331
|
-
className: classnames(className, prefixCls$
|
|
33352
|
+
className: classnames(className, prefixCls$2, onlyIcon && 'only_icon')
|
|
33332
33353
|
}, others), {}, {
|
|
33333
33354
|
overlayClassName: classnames(overlayClassName, 'lm_dropdown_overlay')
|
|
33334
33355
|
}), children);
|
|
@@ -33337,7 +33358,7 @@
|
|
|
33337
33358
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
33338
33359
|
ref: dropdownRef
|
|
33339
33360
|
}, /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'], _objectSpread(_objectSpread({
|
|
33340
|
-
className: classnames(className, prefixCls$
|
|
33361
|
+
className: classnames(className, prefixCls$2, onlyIcon && 'only_icon')
|
|
33341
33362
|
}, others), {}, {
|
|
33342
33363
|
overlayClassName: classnames(overlayClassName, 'lm_dropdown_overlay'),
|
|
33343
33364
|
overlayStyle: minwidth ? _objectSpread({
|
|
@@ -33758,7 +33779,7 @@
|
|
|
33758
33779
|
UploadOss.UploadBtn = Index$2;
|
|
33759
33780
|
UploadOss.UploadImg = Index$3;
|
|
33760
33781
|
|
|
33761
|
-
var _excluded$
|
|
33782
|
+
var _excluded$g = ["value", "onChange"],
|
|
33762
33783
|
_excluded2$3 = ["index"],
|
|
33763
33784
|
_excluded3$1 = ["isEdit", "isHoverEdit", "editEnum", "valueType", "editable", "children", "dataIndex", "record", "handleSave", "rowKey", "handleAdd", "handleDelete", "getLength", "itemProps", "setValid", "reWriteOriginSource"],
|
|
33764
33785
|
_excluded4$1 = ["value", "onChange", "columns", "isEdit", "isAdd", "rowKey", "isHoverEdit"];
|
|
@@ -33803,7 +33824,7 @@
|
|
|
33803
33824
|
var _ref$value = _ref.value,
|
|
33804
33825
|
value = _ref$value === void 0 ? ['', ''] : _ref$value,
|
|
33805
33826
|
onChange = _ref.onChange,
|
|
33806
|
-
editEnum = _objectWithoutProperties(_ref, _excluded$
|
|
33827
|
+
editEnum = _objectWithoutProperties(_ref, _excluded$g);
|
|
33807
33828
|
|
|
33808
33829
|
// 输入值改变
|
|
33809
33830
|
var handleInput = function handleInput(e, type) {
|
|
@@ -38895,7 +38916,7 @@
|
|
|
38895
38916
|
glyphs: glyphs
|
|
38896
38917
|
};
|
|
38897
38918
|
|
|
38898
|
-
var _excluded$
|
|
38919
|
+
var _excluded$h = ["item"];
|
|
38899
38920
|
// visible: boolean
|
|
38900
38921
|
// onClose: fn
|
|
38901
38922
|
// value: string
|
|
@@ -38962,7 +38983,7 @@
|
|
|
38962
38983
|
options: options
|
|
38963
38984
|
}, function (_ref2) {
|
|
38964
38985
|
var item = _ref2.item,
|
|
38965
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
38986
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
38966
38987
|
|
|
38967
38988
|
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, resetProps, {
|
|
38968
38989
|
className: "lm-icon_row"
|
|
@@ -38983,12 +39004,12 @@
|
|
|
38983
39004
|
}))));
|
|
38984
39005
|
};
|
|
38985
39006
|
|
|
38986
|
-
var _excluded$
|
|
39007
|
+
var _excluded$i = ["allowClear"],
|
|
38987
39008
|
_excluded2$4 = ["allowClear"],
|
|
38988
39009
|
_excluded3$2 = ["allowClear"];
|
|
38989
39010
|
var LmInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
38990
39011
|
var _props$allowClear = props.allowClear,
|
|
38991
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
39012
|
+
rest = _objectWithoutProperties(props, _excluded$i);
|
|
38992
39013
|
|
|
38993
39014
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'], _objectSpread(_objectSpread({
|
|
38994
39015
|
ref: ref,
|
|
@@ -39032,16 +39053,16 @@
|
|
|
39032
39053
|
}));
|
|
39033
39054
|
};
|
|
39034
39055
|
|
|
39035
|
-
var _excluded$
|
|
39036
|
-
var prefixCls$
|
|
39056
|
+
var _excluded$j = ["children", "className"];
|
|
39057
|
+
var prefixCls$3 = 'lm_input-number';
|
|
39037
39058
|
|
|
39038
39059
|
var LMInputNumber = function LMInputNumber(props) {
|
|
39039
39060
|
var children = props.children,
|
|
39040
39061
|
className = props.className,
|
|
39041
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
39062
|
+
others = _objectWithoutProperties(props, _excluded$j);
|
|
39042
39063
|
|
|
39043
39064
|
return /*#__PURE__*/React__default['default'].createElement(_InputNumber__default['default'], _objectSpread({
|
|
39044
|
-
className: classnames(className, prefixCls$
|
|
39065
|
+
className: classnames(className, prefixCls$3),
|
|
39045
39066
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
39046
39067
|
}, others));
|
|
39047
39068
|
};
|
|
@@ -42267,7 +42288,7 @@
|
|
|
42267
42288
|
});
|
|
42268
42289
|
};
|
|
42269
42290
|
|
|
42270
|
-
var _excluded$
|
|
42291
|
+
var _excluded$k = ["label", "rules", "name", "children", "popoverProps"],
|
|
42271
42292
|
_excluded2$5 = ["errorType", "rules", "name", "popoverProps", "children"];
|
|
42272
42293
|
var FIX_INLINE_STYLE = {
|
|
42273
42294
|
marginTop: -5,
|
|
@@ -42329,7 +42350,7 @@
|
|
|
42329
42350
|
name = _ref2.name,
|
|
42330
42351
|
children = _ref2.children,
|
|
42331
42352
|
popoverProps = _ref2.popoverProps,
|
|
42332
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
42353
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$k);
|
|
42333
42354
|
|
|
42334
42355
|
return jsxRuntime.jsx(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
|
42335
42356
|
preserve: false,
|
|
@@ -43943,7 +43964,7 @@
|
|
|
43943
43964
|
return [state, setState];
|
|
43944
43965
|
}
|
|
43945
43966
|
|
|
43946
|
-
var _excluded$
|
|
43967
|
+
var _excluded$l = ["map_row_parentKey", "map_row_key"],
|
|
43947
43968
|
_excluded2$6 = ["map_row_key"];
|
|
43948
43969
|
var recordKeyToString = function recordKeyToString(rowKey) {
|
|
43949
43970
|
if (Array.isArray(rowKey)) return rowKey.join(',');
|
|
@@ -44019,7 +44040,7 @@
|
|
|
44019
44040
|
// @ts-ignore
|
|
44020
44041
|
var map_row_parentKey = value.map_row_parentKey,
|
|
44021
44042
|
map_row_key = value.map_row_key,
|
|
44022
|
-
reset = _objectWithoutProperties$1(value, _excluded$
|
|
44043
|
+
reset = _objectWithoutProperties$1(value, _excluded$l);
|
|
44023
44044
|
|
|
44024
44045
|
if (kvArrayMap.has(map_row_key)) {
|
|
44025
44046
|
reset[childrenColumnName] = kvArrayMap.get(map_row_key);
|
|
@@ -44820,7 +44841,7 @@
|
|
|
44820
44841
|
});
|
|
44821
44842
|
};
|
|
44822
44843
|
|
|
44823
|
-
var _excluded$
|
|
44844
|
+
var _excluded$m = ["label", "prefixCls", "onChange", "value", "mode", "children", "defaultValue", "size", "showSearch", "disabled", "style", "className", "bordered", "options", "onSearch", "allowClear", "labelInValue", "fieldNames", "lightLabel", "labelTrigger"];
|
|
44824
44845
|
/**
|
|
44825
44846
|
* 如果有 label 就优先使用 label
|
|
44826
44847
|
*
|
|
@@ -44857,7 +44878,7 @@
|
|
|
44857
44878
|
fieldNames = props.fieldNames,
|
|
44858
44879
|
lightLabel = props.lightLabel,
|
|
44859
44880
|
labelTrigger = props.labelTrigger,
|
|
44860
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
44881
|
+
restProps = _objectWithoutProperties$1(props, _excluded$m);
|
|
44861
44882
|
|
|
44862
44883
|
var _props$placeholder = props.placeholder,
|
|
44863
44884
|
placeholder = _props$placeholder === void 0 ? label : _props$placeholder;
|
|
@@ -44995,7 +45016,7 @@
|
|
|
44995
45016
|
|
|
44996
45017
|
var LightSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(LightSelect);
|
|
44997
45018
|
|
|
44998
|
-
var _excluded$
|
|
45019
|
+
var _excluded$n = ["optionItemRender", "mode", "onSearch", "onFocus", "onChange", "autoClearSearchValue", "searchOnFocus", "resetAfterSelect", "fetchDataOnSearch", "optionFilterProp", "optionLabelProp", "className", "disabled", "options", "fetchData", "resetData", "prefixCls", "onClear", "searchValue", "showSearch", "fieldNames"];
|
|
44999
45020
|
var Option$1 = _Select__default['default'].Option,
|
|
45000
45021
|
OptGroup = _Select__default['default'].OptGroup;
|
|
45001
45022
|
|
|
@@ -45026,7 +45047,7 @@
|
|
|
45026
45047
|
propsSearchValue = props.searchValue,
|
|
45027
45048
|
showSearch = props.showSearch,
|
|
45028
45049
|
fieldNames = props.fieldNames,
|
|
45029
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
45050
|
+
restProps = _objectWithoutProperties$1(props, _excluded$n);
|
|
45030
45051
|
|
|
45031
45052
|
var _ref = fieldNames || {},
|
|
45032
45053
|
_ref$label = _ref.label,
|
|
@@ -45176,7 +45197,7 @@
|
|
|
45176
45197
|
|
|
45177
45198
|
var SearchSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(SearchSelect);
|
|
45178
45199
|
|
|
45179
|
-
var _excluded$
|
|
45200
|
+
var _excluded$o = ["value", "text"],
|
|
45180
45201
|
_excluded2$7 = ["mode", "valueEnum", "render", "renderFormItem", "request", "fieldProps", "plain", "children", "light", "proFieldKey", "params", "label", "bordered", "id", "lightLabel", "labelTrigger"];
|
|
45181
45202
|
var ObjToMap = function ObjToMap(value) {
|
|
45182
45203
|
if (getType(value) === 'map') {
|
|
@@ -45387,7 +45408,7 @@
|
|
|
45387
45408
|
return proFieldParsingValueEnumToArray(ObjToMap(coverValueEnum)).map(function (_ref2) {
|
|
45388
45409
|
var value = _ref2.value,
|
|
45389
45410
|
text = _ref2.text,
|
|
45390
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
45411
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$o);
|
|
45391
45412
|
|
|
45392
45413
|
return _objectSpread2({
|
|
45393
45414
|
label: text,
|
|
@@ -45649,7 +45670,7 @@
|
|
|
45649
45670
|
|
|
45650
45671
|
var FieldSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldSelect);
|
|
45651
45672
|
|
|
45652
|
-
var _excluded$
|
|
45673
|
+
var _excluded$p = ["radioType", "renderFormItem", "mode", "render", "label", "light"];
|
|
45653
45674
|
/**
|
|
45654
45675
|
* 级联选择组件
|
|
45655
45676
|
*
|
|
@@ -45666,7 +45687,7 @@
|
|
|
45666
45687
|
render = _ref.render,
|
|
45667
45688
|
label = _ref.label,
|
|
45668
45689
|
light = _ref.light,
|
|
45669
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
45690
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$p);
|
|
45670
45691
|
|
|
45671
45692
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
45672
45693
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -45803,7 +45824,7 @@
|
|
|
45803
45824
|
|
|
45804
45825
|
var FieldCascader$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldCascader);
|
|
45805
45826
|
|
|
45806
|
-
var _excluded$
|
|
45827
|
+
var _excluded$q = ["layout", "renderFormItem", "mode", "render"];
|
|
45807
45828
|
/**
|
|
45808
45829
|
* 多选组件
|
|
45809
45830
|
*
|
|
@@ -45817,7 +45838,7 @@
|
|
|
45817
45838
|
renderFormItem = _ref.renderFormItem,
|
|
45818
45839
|
mode = _ref.mode,
|
|
45819
45840
|
render = _ref.render,
|
|
45820
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
45841
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$q);
|
|
45821
45842
|
|
|
45822
45843
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
45823
45844
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -54000,14 +54021,14 @@
|
|
|
54000
54021
|
};
|
|
54001
54022
|
var SketchPicker = ColorWrap(Sketch);
|
|
54002
54023
|
|
|
54003
|
-
var _excluded$
|
|
54024
|
+
var _excluded$r = ["mode", "popoverProps"];
|
|
54004
54025
|
var DEFAULT_COLORS = ['#FF9D4E', '#5BD8A6', '#5B8FF9', '#F7664E', '#FF86B7', '#2B9E9D', '#9270CA', '#6DC8EC', '#667796', '#F6BD16' // 9 - 黄色
|
|
54005
54026
|
];
|
|
54006
54027
|
|
|
54007
54028
|
var ColorPicker = function ColorPicker(_ref) {
|
|
54008
54029
|
var mode = _ref.mode,
|
|
54009
54030
|
popoverProps = _ref.popoverProps,
|
|
54010
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
54031
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$r);
|
|
54011
54032
|
|
|
54012
54033
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
54013
54034
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -54607,7 +54628,7 @@
|
|
|
54607
54628
|
return shallowCopy;
|
|
54608
54629
|
}
|
|
54609
54630
|
|
|
54610
|
-
var _excluded$
|
|
54631
|
+
var _excluded$s = ["content", "numberFormatOptions", "numberPopoverRender"],
|
|
54611
54632
|
_excluded2$8 = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey", "plain", "valueEnum", "placeholder", "locale", "customSymbol", "numberFormatOptions", "numberPopoverRender"];
|
|
54612
54633
|
var defaultMoneyIntl = new Intl.NumberFormat('zh-Hans-CN', {
|
|
54613
54634
|
currency: 'CNY',
|
|
@@ -54664,7 +54685,7 @@
|
|
|
54664
54685
|
var content = _ref.content,
|
|
54665
54686
|
numberFormatOptions = _ref.numberFormatOptions,
|
|
54666
54687
|
numberPopoverRender = _ref.numberPopoverRender,
|
|
54667
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
54688
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$s);
|
|
54668
54689
|
|
|
54669
54690
|
var _useMergedState = useMergedState(function () {
|
|
54670
54691
|
return rest.defaultValue;
|
|
@@ -54886,7 +54907,7 @@
|
|
|
54886
54907
|
|
|
54887
54908
|
var FieldOptions$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldOptions);
|
|
54888
54909
|
|
|
54889
|
-
var _excluded$
|
|
54910
|
+
var _excluded$t = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey"];
|
|
54890
54911
|
/**
|
|
54891
54912
|
* 最基本的组件,就是个普通的 Input.Password
|
|
54892
54913
|
*
|
|
@@ -54900,7 +54921,7 @@
|
|
|
54900
54921
|
renderFormItem = _ref.renderFormItem,
|
|
54901
54922
|
fieldProps = _ref.fieldProps,
|
|
54902
54923
|
proFieldKey = _ref.proFieldKey,
|
|
54903
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
54924
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$t);
|
|
54904
54925
|
|
|
54905
54926
|
var intl = useIntl();
|
|
54906
54927
|
|
|
@@ -55324,7 +55345,7 @@
|
|
|
55324
55345
|
|
|
55325
55346
|
var FieldProgress$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldProgress);
|
|
55326
55347
|
|
|
55327
|
-
var _excluded$
|
|
55348
|
+
var _excluded$u = ["radioType", "renderFormItem", "mode", "render"];
|
|
55328
55349
|
/**
|
|
55329
55350
|
* 单选组件
|
|
55330
55351
|
*
|
|
@@ -55337,7 +55358,7 @@
|
|
|
55337
55358
|
renderFormItem = _ref.renderFormItem,
|
|
55338
55359
|
mode = _ref.mode,
|
|
55339
55360
|
render = _ref.render,
|
|
55340
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
55361
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$u);
|
|
55341
55362
|
|
|
55342
55363
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
55343
55364
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -56021,7 +56042,7 @@
|
|
|
56021
56042
|
};
|
|
56022
56043
|
var FieldTimePicker$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldTimePicker);
|
|
56023
56044
|
|
|
56024
|
-
var _excluded$
|
|
56045
|
+
var _excluded$v = ["radioType", "renderFormItem", "mode", "light", "label", "render"],
|
|
56025
56046
|
_excluded2$9 = ["onSearch", "onClear", "onChange", "onBlur", "showSearch", "autoClearSearchValue", "treeData", "searchValue"];
|
|
56026
56047
|
/**
|
|
56027
56048
|
* Tree select
|
|
@@ -56036,7 +56057,7 @@
|
|
|
56036
56057
|
light = _ref.light,
|
|
56037
56058
|
label = _ref.label,
|
|
56038
56059
|
render = _ref.render,
|
|
56039
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
56060
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$v);
|
|
56040
56061
|
|
|
56041
56062
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
56042
56063
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -56283,7 +56304,7 @@
|
|
|
56283
56304
|
});
|
|
56284
56305
|
}
|
|
56285
56306
|
|
|
56286
|
-
var _excluded$
|
|
56307
|
+
var _excluded$w = ["text", "valueType", "mode", "onChange", "renderFormItem", "value", "readonly"];
|
|
56287
56308
|
var REQUEST_VALUE_TYPE = ['select', 'radio', 'radioButton', 'checkbook'];
|
|
56288
56309
|
/**
|
|
56289
56310
|
* Render valueType object
|
|
@@ -56697,7 +56718,7 @@
|
|
|
56697
56718
|
renderFormItem = _ref.renderFormItem,
|
|
56698
56719
|
value = _ref.value,
|
|
56699
56720
|
readonly = _ref.readonly,
|
|
56700
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
56721
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$w);
|
|
56701
56722
|
|
|
56702
56723
|
var intl = useIntl();
|
|
56703
56724
|
var context = React.useContext(ConfigContext);
|
|
@@ -57849,7 +57870,7 @@
|
|
|
57849
57870
|
});
|
|
57850
57871
|
};
|
|
57851
57872
|
|
|
57852
|
-
var _excluded$
|
|
57873
|
+
var _excluded$x = ["className", "style", "bodyStyle", "headStyle", "title", "subTitle", "extra", "tip", "wrap", "layout", "loading", "gutter", "tooltip", "split", "headerBordered", "bordered", "children", "size", "actions", "ghost", "hoverable", "direction", "collapsed", "collapsible", "collapsibleIconRender", "defaultCollapsed", "onCollapse", "checked", "onChecked", "tabs", "type"];
|
|
57853
57874
|
var useBreakpoint = _Grid__default['default'].useBreakpoint;
|
|
57854
57875
|
var Card = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) {
|
|
57855
57876
|
var _classNames2, _classNames3, _classNames4;
|
|
@@ -57895,7 +57916,7 @@
|
|
|
57895
57916
|
onChecked = props.onChecked,
|
|
57896
57917
|
tabs = props.tabs,
|
|
57897
57918
|
type = props.type,
|
|
57898
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
57919
|
+
rest = _objectWithoutProperties$1(props, _excluded$x);
|
|
57899
57920
|
|
|
57900
57921
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
57901
57922
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -58100,7 +58121,7 @@
|
|
|
58100
58121
|
});
|
|
58101
58122
|
};
|
|
58102
58123
|
|
|
58103
|
-
var _excluded$
|
|
58124
|
+
var _excluded$y = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
|
|
58104
58125
|
|
|
58105
58126
|
var TabPane = function TabPane(props) {
|
|
58106
58127
|
var key = props.key,
|
|
@@ -58112,7 +58133,7 @@
|
|
|
58112
58133
|
className = props.className,
|
|
58113
58134
|
style = props.style,
|
|
58114
58135
|
cardProps = props.cardProps,
|
|
58115
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
58136
|
+
rest = _objectWithoutProperties$1(props, _excluded$y);
|
|
58116
58137
|
|
|
58117
58138
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
58118
58139
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -60276,7 +60297,7 @@
|
|
|
60276
60297
|
return _finishOnFirstFailed.apply(this, arguments);
|
|
60277
60298
|
}
|
|
60278
60299
|
|
|
60279
|
-
var _excluded$
|
|
60300
|
+
var _excluded$z = ["name"];
|
|
60280
60301
|
var EMPTY_ERRORS = [];
|
|
60281
60302
|
|
|
60282
60303
|
function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
@@ -60886,7 +60907,7 @@
|
|
|
60886
60907
|
|
|
60887
60908
|
function WrapperField(_ref5) {
|
|
60888
60909
|
var name = _ref5.name,
|
|
60889
|
-
restProps = _objectWithoutProperties$1(_ref5, _excluded$
|
|
60910
|
+
restProps = _objectWithoutProperties$1(_ref5, _excluded$z);
|
|
60890
60911
|
|
|
60891
60912
|
var fieldContext = React.useContext(Context$3);
|
|
60892
60913
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -61186,7 +61207,7 @@
|
|
|
61186
61207
|
return NameMap;
|
|
61187
61208
|
}();
|
|
61188
61209
|
|
|
61189
|
-
var _excluded$
|
|
61210
|
+
var _excluded$A = ["name", "errors"];
|
|
61190
61211
|
var FormStore = /*#__PURE__*/_createClass(function FormStore(forceRootUpdate) {
|
|
61191
61212
|
var _this = this;
|
|
61192
61213
|
|
|
@@ -61687,7 +61708,7 @@
|
|
|
61687
61708
|
fields.forEach(function (fieldData) {
|
|
61688
61709
|
var name = fieldData.name,
|
|
61689
61710
|
errors = fieldData.errors,
|
|
61690
|
-
data = _objectWithoutProperties$1(fieldData, _excluded$
|
|
61711
|
+
data = _objectWithoutProperties$1(fieldData, _excluded$A);
|
|
61691
61712
|
|
|
61692
61713
|
var namePath = getNamePath(name);
|
|
61693
61714
|
namePathList.push(namePath); // Value
|
|
@@ -62200,7 +62221,7 @@
|
|
|
62200
62221
|
}, children);
|
|
62201
62222
|
};
|
|
62202
62223
|
|
|
62203
|
-
var _excluded$
|
|
62224
|
+
var _excluded$B = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
62204
62225
|
|
|
62205
62226
|
var Form = function Form(_ref, ref) {
|
|
62206
62227
|
var name = _ref.name,
|
|
@@ -62218,7 +62239,7 @@
|
|
|
62218
62239
|
_onFieldsChange = _ref.onFieldsChange,
|
|
62219
62240
|
_onFinish = _ref.onFinish,
|
|
62220
62241
|
onFinishFailed = _ref.onFinishFailed,
|
|
62221
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
62242
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$B);
|
|
62222
62243
|
|
|
62223
62244
|
var formContext = React.useContext(FormContext); // We customize handle event since Context will makes all the consumer re-render:
|
|
62224
62245
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -62448,7 +62469,7 @@
|
|
|
62448
62469
|
|
|
62449
62470
|
var FieldContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
62450
62471
|
|
|
62451
|
-
var _excluded$
|
|
62472
|
+
var _excluded$C = ["children", "Wrapper"],
|
|
62452
62473
|
_excluded2$a = ["children", "Wrapper"];
|
|
62453
62474
|
var GridContext = /*#__PURE__*/React.createContext({
|
|
62454
62475
|
grid: false,
|
|
@@ -62465,7 +62486,7 @@
|
|
|
62465
62486
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
62466
62487
|
children = _ref2.children,
|
|
62467
62488
|
Wrapper = _ref2.Wrapper,
|
|
62468
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
62489
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$C);
|
|
62469
62490
|
|
|
62470
62491
|
if (!grid) {
|
|
62471
62492
|
return Wrapper ? jsxRuntime.jsx(Wrapper, {
|
|
@@ -62541,7 +62562,7 @@
|
|
|
62541
62562
|
JSON.stringify([colProps, config === null || config === void 0 ? void 0 : config.colProps, config === null || config === void 0 ? void 0 : config.rowProps])]);
|
|
62542
62563
|
};
|
|
62543
62564
|
|
|
62544
|
-
var _excluded$
|
|
62565
|
+
var _excluded$D = ["valueType", "customLightMode", "lightFilterLabelFormatter", "valuePropName", "ignoreWidth", "defaultProps"],
|
|
62545
62566
|
_excluded2$b = ["label", "tooltip", "placeholder", "width", "bordered", "messageVariables", "ignoreFormItem", "transform", "convertValue", "readonly", "allowClear", "colSize", "getFormItemProps", "getFieldProps", "filedConfig", "cacheForSwr", "proFieldProps"];
|
|
62546
62567
|
var WIDTH_SIZE_ENUM = {
|
|
62547
62568
|
// 适用于短数字,短文本或者选项
|
|
@@ -62581,7 +62602,7 @@
|
|
|
62581
62602
|
valuePropName = _ref$valuePropName === void 0 ? 'value' : _ref$valuePropName,
|
|
62582
62603
|
ignoreWidth = _ref.ignoreWidth,
|
|
62583
62604
|
defaultProps = _ref.defaultProps,
|
|
62584
|
-
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
62605
|
+
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$D);
|
|
62585
62606
|
|
|
62586
62607
|
var _defaultProps$props = _objectSpread2(_objectSpread2({}, defaultProps), props),
|
|
62587
62608
|
label = _defaultProps$props.label,
|
|
@@ -62787,7 +62808,7 @@
|
|
|
62787
62808
|
return DependencyWrapper;
|
|
62788
62809
|
}
|
|
62789
62810
|
|
|
62790
|
-
var _excluded$
|
|
62811
|
+
var _excluded$E = ["fieldProps", "children", "labelCol", "label", "autoFocus", "isDefaultDom", "render", "proFieldProps", "renderFormItem", "valueType", "initialValue", "onChange", "valueEnum", "params", "name", "dependenciesValues", "cacheForSwr", "valuePropName"];
|
|
62791
62812
|
|
|
62792
62813
|
var BaseProFormField = function BaseProFormField(props) {
|
|
62793
62814
|
var fieldProps = props.fieldProps,
|
|
@@ -62810,7 +62831,7 @@
|
|
|
62810
62831
|
cacheForSwr = _props$cacheForSwr === void 0 ? false : _props$cacheForSwr,
|
|
62811
62832
|
_props$valuePropName = props.valuePropName,
|
|
62812
62833
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
62813
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
62834
|
+
restProps = _objectWithoutProperties$1(props, _excluded$E);
|
|
62814
62835
|
|
|
62815
62836
|
var propsParams = React.useMemo(function () {
|
|
62816
62837
|
// 使用dependencies时 dependenciesValues是有值的
|
|
@@ -62884,7 +62905,7 @@
|
|
|
62884
62905
|
return isDeepEqualReact(nextProps, prevProps, ['onChange', 'onBlur']);
|
|
62885
62906
|
}));
|
|
62886
62907
|
|
|
62887
|
-
var _excluded$
|
|
62908
|
+
var _excluded$F = ["creatorButtonProps", "deleteIconProps", "copyIconProps", "itemContainerRender", "itemRender", "alwaysShowItemLabel", "prefixCls", "creatorRecord", "action", "actionGuard", "children", "actionRender", "fields", "meta", "field", "index", "formInstance", "originName", "min", "max", "count"];
|
|
62888
62909
|
/** Antd 自带的toArray 不支持方法,所以需要自己搞一个 */
|
|
62889
62910
|
|
|
62890
62911
|
var listToArray = function listToArray(children) {
|
|
@@ -62923,7 +62944,7 @@
|
|
|
62923
62944
|
min = props.min,
|
|
62924
62945
|
max = props.max,
|
|
62925
62946
|
count = props.count,
|
|
62926
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
62947
|
+
rest = _objectWithoutProperties$1(props, _excluded$F);
|
|
62927
62948
|
|
|
62928
62949
|
var listContext = React.useContext(FormListContext);
|
|
62929
62950
|
var unmountedRef = React.useRef(false);
|
|
@@ -63323,7 +63344,7 @@
|
|
|
63323
63344
|
});
|
|
63324
63345
|
};
|
|
63325
63346
|
|
|
63326
|
-
var _excluded$
|
|
63347
|
+
var _excluded$G = ["actionRender", "creatorButtonProps", "label", "alwaysShowItemLabel", "tooltip", "creatorRecord", "itemRender", "rules", "itemContainerRender", "fieldExtraRender", "copyIconProps", "children", "deleteIconProps", "actionRef", "style", "prefixCls", "actionGuard", "min", "max", "colProps", "rowProps"];
|
|
63327
63348
|
var FormListContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
63328
63349
|
|
|
63329
63350
|
function ProFormList(_ref) {
|
|
@@ -63356,7 +63377,7 @@
|
|
|
63356
63377
|
max = _ref.max,
|
|
63357
63378
|
colProps = _ref.colProps,
|
|
63358
63379
|
rowProps = _ref.rowProps,
|
|
63359
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
63380
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$G);
|
|
63360
63381
|
|
|
63361
63382
|
var actionRefs = React.useRef();
|
|
63362
63383
|
var context = React.useContext(_ConfigProvider__default['default'].ConfigContext);
|
|
@@ -63448,13 +63469,13 @@
|
|
|
63448
63469
|
});
|
|
63449
63470
|
}
|
|
63450
63471
|
|
|
63451
|
-
var _excluded$
|
|
63472
|
+
var _excluded$H = ["name", "children", "ignoreFormListField"];
|
|
63452
63473
|
|
|
63453
63474
|
var ProFormDependency = function ProFormDependency(_ref) {
|
|
63454
63475
|
var names = _ref.name,
|
|
63455
63476
|
_children = _ref.children,
|
|
63456
63477
|
ignoreFormListField = _ref.ignoreFormListField,
|
|
63457
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
63478
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$H);
|
|
63458
63479
|
|
|
63459
63480
|
var context = React.useContext(ProFormContext); // ProFromList 的 field,里面有name和key
|
|
63460
63481
|
|
|
@@ -63523,7 +63544,7 @@
|
|
|
63523
63544
|
}));
|
|
63524
63545
|
};
|
|
63525
63546
|
|
|
63526
|
-
var _excluded$
|
|
63547
|
+
var _excluded$I = ["children", "value", "valuePropName", "onChange", "fieldProps", "space", "type", "transform", "convertValue"],
|
|
63527
63548
|
_excluded2$c = ["children", "space", "valuePropName"];
|
|
63528
63549
|
var FieldSetType = {
|
|
63529
63550
|
space: _Space__default['default'],
|
|
@@ -63551,7 +63572,7 @@
|
|
|
63551
63572
|
type = _ref$type === void 0 ? 'space' : _ref$type,
|
|
63552
63573
|
transform = _ref.transform,
|
|
63553
63574
|
convertValue = _ref.convertValue,
|
|
63554
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
63575
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$I);
|
|
63555
63576
|
|
|
63556
63577
|
/**
|
|
63557
63578
|
* 使用方法的引用防止闭包
|
|
@@ -63651,7 +63672,7 @@
|
|
|
63651
63672
|
});
|
|
63652
63673
|
var ProFormFieldSet = createField(BaseProFormFieldSet);
|
|
63653
63674
|
|
|
63654
|
-
var _excluded$
|
|
63675
|
+
var _excluded$J = ["children", "onChange", "onBlur", "ignoreFormItem", "valuePropName"],
|
|
63655
63676
|
_excluded2$d = ["children", "addonAfter", "addonBefore", "valuePropName", "convertValue"],
|
|
63656
63677
|
_excluded3$3 = ["valueType", "transform", "dataFormat", "ignoreFormItem", "lightProps", "children"];
|
|
63657
63678
|
var FormItemProvide = /*#__PURE__*/React__default['default'].createContext({});
|
|
@@ -63669,7 +63690,7 @@
|
|
|
63669
63690
|
ignoreFormItem = formFieldProps.ignoreFormItem,
|
|
63670
63691
|
_formFieldProps$value = formFieldProps.valuePropName,
|
|
63671
63692
|
valuePropName = _formFieldProps$value === void 0 ? 'value' : _formFieldProps$value,
|
|
63672
|
-
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$
|
|
63693
|
+
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$J);
|
|
63673
63694
|
|
|
63674
63695
|
var onChangeMemo = React.useCallback(function () {
|
|
63675
63696
|
var _filedChildren$type, _filedChildren$props, _filedChildren$props$, _filedChildren$props2, _filedChildren$props3, _filedChildren$props4;
|
|
@@ -66019,7 +66040,7 @@
|
|
|
66019
66040
|
module.exports = merge;
|
|
66020
66041
|
});
|
|
66021
66042
|
|
|
66022
|
-
var _excluded$
|
|
66043
|
+
var _excluded$K = ["children", "trigger", "onVisibleChange", "drawerProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
66023
66044
|
|
|
66024
66045
|
function DrawerForm(_ref) {
|
|
66025
66046
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -66033,7 +66054,7 @@
|
|
|
66033
66054
|
title = _ref.title,
|
|
66034
66055
|
width = _ref.width,
|
|
66035
66056
|
propVisible = _ref.visible,
|
|
66036
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
66057
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$K);
|
|
66037
66058
|
|
|
66038
66059
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
66039
66060
|
!rest['footer'] || !(drawerProps === null || drawerProps === void 0 ? void 0 : drawerProps.footer), 'DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -66251,7 +66272,7 @@
|
|
|
66251
66272
|
});
|
|
66252
66273
|
}
|
|
66253
66274
|
|
|
66254
|
-
var _excluded$
|
|
66275
|
+
var _excluded$L = ["size", "collapse", "collapseLabel", "initialValues", "onValuesChange", "form", "placement", "formRef", "bordered", "ignoreRules", "footerRender"];
|
|
66255
66276
|
/**
|
|
66256
66277
|
* 单行的查询表单,一般用于配合 table 或者 list使用 有时也会用于 card 的额外区域
|
|
66257
66278
|
*
|
|
@@ -66421,7 +66442,7 @@
|
|
|
66421
66442
|
bordered = props.bordered,
|
|
66422
66443
|
ignoreRules = props.ignoreRules,
|
|
66423
66444
|
footerRender = props.footerRender,
|
|
66424
|
-
reset = _objectWithoutProperties$1(props, _excluded$
|
|
66445
|
+
reset = _objectWithoutProperties$1(props, _excluded$L);
|
|
66425
66446
|
|
|
66426
66447
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
66427
66448
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -66494,7 +66515,7 @@
|
|
|
66494
66515
|
}));
|
|
66495
66516
|
}
|
|
66496
66517
|
|
|
66497
|
-
var _excluded$
|
|
66518
|
+
var _excluded$M = ["children", "trigger", "onVisibleChange", "modalProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
66498
66519
|
|
|
66499
66520
|
function ModalForm(_ref) {
|
|
66500
66521
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -66508,7 +66529,7 @@
|
|
|
66508
66529
|
title = _ref.title,
|
|
66509
66530
|
width = _ref.width,
|
|
66510
66531
|
propVisible = _ref.visible,
|
|
66511
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
66532
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$M);
|
|
66512
66533
|
|
|
66513
66534
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
66514
66535
|
!rest['footer'] || !(modalProps === null || modalProps === void 0 ? void 0 : modalProps.footer), 'ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -67981,7 +68002,7 @@
|
|
|
67981
68002
|
});
|
|
67982
68003
|
};
|
|
67983
68004
|
|
|
67984
|
-
var _excluded$
|
|
68005
|
+
var _excluded$N = ["collapsed", "layout", "defaultCollapsed", "defaultColsNumber", "span", "searchGutter", "searchText", "resetText", "optionRender", "collapseRender", "onReset", "onCollapse", "labelWidth", "style", "split", "preserve", "ignoreRules", "showHiddenNum"];
|
|
67985
68006
|
|
|
67986
68007
|
var _document, _document$body;
|
|
67987
68008
|
var CONFIG_SPAN_BREAKPOINTS = {
|
|
@@ -68252,7 +68273,7 @@
|
|
|
68252
68273
|
ignoreRules = props.ignoreRules,
|
|
68253
68274
|
_props$showHiddenNum = props.showHiddenNum,
|
|
68254
68275
|
showHiddenNum = _props$showHiddenNum === void 0 ? false : _props$showHiddenNum,
|
|
68255
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
68276
|
+
rest = _objectWithoutProperties$1(props, _excluded$N);
|
|
68256
68277
|
|
|
68257
68278
|
var context = React.useContext(_ConfigProvider__default['default'].ConfigContext);
|
|
68258
68279
|
var baseClassName = context.getPrefixCls('pro-form-query-filter');
|
|
@@ -68346,7 +68367,7 @@
|
|
|
68346
68367
|
}, "resize-observer");
|
|
68347
68368
|
}
|
|
68348
68369
|
|
|
68349
|
-
var _excluded$
|
|
68370
|
+
var _excluded$O = ["onFinish", "step", "formRef", "title", "stepProps"];
|
|
68350
68371
|
|
|
68351
68372
|
function StepForm(props) {
|
|
68352
68373
|
var formRef = React.useRef();
|
|
@@ -68357,7 +68378,7 @@
|
|
|
68357
68378
|
propFormRef = props.formRef,
|
|
68358
68379
|
title = props.title,
|
|
68359
68380
|
stepProps = props.stepProps,
|
|
68360
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
68381
|
+
restProps = _objectWithoutProperties$1(props, _excluded$O); // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
68361
68382
|
|
|
68362
68383
|
|
|
68363
68384
|
noteOnce(!restProps['submitter'], 'StepForm 不包含提交按钮,请在 StepsForm 上');
|
|
@@ -68435,7 +68456,7 @@
|
|
|
68435
68456
|
}, restProps));
|
|
68436
68457
|
}
|
|
68437
68458
|
|
|
68438
|
-
var _excluded$
|
|
68459
|
+
var _excluded$P = ["current", "onCurrentChange", "submitter", "stepsFormRender", "stepsRender", "stepFormRender", "stepsProps", "onFinish", "formProps", "containerStyle", "formRef", "formMapRef"];
|
|
68439
68460
|
var StepsFormProvide = /*#__PURE__*/React__default['default'].createContext(undefined);
|
|
68440
68461
|
var StepsLayoutStrategy = {
|
|
68441
68462
|
horizontal: function horizontal(_ref) {
|
|
@@ -68521,7 +68542,7 @@
|
|
|
68521
68542
|
containerStyle = props.containerStyle,
|
|
68522
68543
|
formRef = props.formRef,
|
|
68523
68544
|
propsFormMapRef = props.formMapRef,
|
|
68524
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
68545
|
+
rest = _objectWithoutProperties$1(props, _excluded$P);
|
|
68525
68546
|
|
|
68526
68547
|
var formDataRef = React.useRef(new Map());
|
|
68527
68548
|
var formMapRef = React.useRef(new Map());
|
|
@@ -68853,14 +68874,14 @@
|
|
|
68853
68874
|
});
|
|
68854
68875
|
};
|
|
68855
68876
|
|
|
68856
|
-
var _excluded$
|
|
68877
|
+
var _excluded$Q = ["steps", "columns", "forceUpdate", "grid"];
|
|
68857
68878
|
|
|
68858
68879
|
var StepsForm$1 = function StepsForm(_ref) {
|
|
68859
68880
|
var steps = _ref.steps,
|
|
68860
68881
|
columns = _ref.columns,
|
|
68861
68882
|
forceUpdate = _ref.forceUpdate,
|
|
68862
68883
|
grid = _ref.grid,
|
|
68863
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
68884
|
+
props = _objectWithoutProperties$1(_ref, _excluded$Q);
|
|
68864
68885
|
|
|
68865
68886
|
var propsRef = useLatest(props);
|
|
68866
68887
|
/**
|
|
@@ -69073,7 +69094,7 @@
|
|
|
69073
69094
|
return field(item, helpers);
|
|
69074
69095
|
};
|
|
69075
69096
|
|
|
69076
|
-
var _excluded$
|
|
69097
|
+
var _excluded$R = ["columns", "layoutType", "type", "action", "shouldUpdate"];
|
|
69077
69098
|
var FormLayoutType = {
|
|
69078
69099
|
DrawerForm: DrawerForm,
|
|
69079
69100
|
QueryFilter: QueryFilter,
|
|
@@ -69098,7 +69119,7 @@
|
|
|
69098
69119
|
action = props.action,
|
|
69099
69120
|
_props$shouldUpdate = props.shouldUpdate,
|
|
69100
69121
|
shouldUpdate = _props$shouldUpdate === void 0 ? true : _props$shouldUpdate,
|
|
69101
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
69122
|
+
restProps = _objectWithoutProperties$1(props, _excluded$R);
|
|
69102
69123
|
|
|
69103
69124
|
var FormRenderComponents = FormLayoutType[layoutType] || ProForm;
|
|
69104
69125
|
|
|
@@ -69325,7 +69346,7 @@
|
|
|
69325
69346
|
return renderDom;
|
|
69326
69347
|
};
|
|
69327
69348
|
|
|
69328
|
-
var _excluded$
|
|
69349
|
+
var _excluded$S = ["children", "contentRender", "submitter", "fieldProps", "formItemProps", "groupProps", "dateFormatter", "formRef", "onInit", "form", "formComponentType", "extraUrlParams", "syncToUrl", "syncToUrlAsImportant", "syncToInitialValues", "onReset", "omitNil", "isKeyPressSubmit", "autoFocusFirstInput", "grid", "rowProps", "colProps"],
|
|
69329
69350
|
_excluded2$e = ["request", "params", "initialValues", "formKey"];
|
|
69330
69351
|
|
|
69331
69352
|
var genParams = function genParams(syncUrl, params, type) {
|
|
@@ -69380,7 +69401,7 @@
|
|
|
69380
69401
|
grid = props.grid,
|
|
69381
69402
|
rowProps = props.rowProps,
|
|
69382
69403
|
colProps = props.colProps,
|
|
69383
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
69404
|
+
rest = _objectWithoutProperties$1(props, _excluded$S);
|
|
69384
69405
|
|
|
69385
69406
|
var sizeContextValue = React.useContext(_ConfigProvider__default['default'].SizeContext);
|
|
69386
69407
|
|
|
@@ -69840,7 +69861,7 @@
|
|
|
69840
69861
|
});
|
|
69841
69862
|
}
|
|
69842
69863
|
|
|
69843
|
-
var _excluded$
|
|
69864
|
+
var _excluded$T = ["label", "size", "disabled", "onChange", "className", "style", "children", "valuePropName", "placeholder", "labelFormatter", "bordered", "footerRender", "allowClear", "otherFieldProps", "valueType", "placement"];
|
|
69844
69865
|
|
|
69845
69866
|
var LightWrapper = function LightWrapper(props) {
|
|
69846
69867
|
var _objectSpread2$1;
|
|
@@ -69861,7 +69882,7 @@
|
|
|
69861
69882
|
otherFieldProps = props.otherFieldProps,
|
|
69862
69883
|
valueType = props.valueType,
|
|
69863
69884
|
placement = props.placement,
|
|
69864
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
69885
|
+
rest = _objectWithoutProperties$1(props, _excluded$T);
|
|
69865
69886
|
|
|
69866
69887
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
69867
69888
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -70898,7 +70919,7 @@
|
|
|
70898
70919
|
|
|
70899
70920
|
var Container = createContainer(useContainer);
|
|
70900
70921
|
|
|
70901
|
-
var _excluded$
|
|
70922
|
+
var _excluded$U = ["key", "dataIndex", "children"];
|
|
70902
70923
|
|
|
70903
70924
|
var ToolTipIcon = function ToolTipIcon(_ref) {
|
|
70904
70925
|
var title = _ref.title,
|
|
@@ -71007,7 +71028,7 @@
|
|
|
71007
71028
|
var key = _ref4.key,
|
|
71008
71029
|
dataIndex = _ref4.dataIndex,
|
|
71009
71030
|
children = _ref4.children,
|
|
71010
|
-
rest = _objectWithoutProperties$1(_ref4, _excluded$
|
|
71031
|
+
rest = _objectWithoutProperties$1(_ref4, _excluded$U);
|
|
71011
71032
|
|
|
71012
71033
|
var columnKey = genColumnKey(key, rest.index);
|
|
71013
71034
|
var config = columnsMap[columnKey || 'null'] || {
|
|
@@ -71469,7 +71490,7 @@
|
|
|
71469
71490
|
return colSpan;
|
|
71470
71491
|
};
|
|
71471
71492
|
|
|
71472
|
-
var _excluded$
|
|
71493
|
+
var _excluded$V = ["label", "key"];
|
|
71473
71494
|
|
|
71474
71495
|
var HeaderMenu = function HeaderMenu(props) {
|
|
71475
71496
|
var _props$items = props.items,
|
|
@@ -71519,7 +71540,7 @@
|
|
|
71519
71540
|
children: items.map(function (_ref, index) {
|
|
71520
71541
|
var label = _ref.label,
|
|
71521
71542
|
key = _ref.key,
|
|
71522
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
71543
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$V);
|
|
71523
71544
|
|
|
71524
71545
|
return jsxRuntime.jsx(_Tabs__default['default'].TabPane, _objectSpread2({
|
|
71525
71546
|
tab: label
|
|
@@ -71870,7 +71891,7 @@
|
|
|
71870
71891
|
|
|
71871
71892
|
var FullScreenIcon$1 = /*#__PURE__*/React__default['default'].memo(FullScreenIcon);
|
|
71872
71893
|
|
|
71873
|
-
var _excluded$
|
|
71894
|
+
var _excluded$W = ["headerTitle", "tooltip", "toolBarRender", "action", "options", "selectedRowKeys", "selectedRows", "toolbar", "onSearch", "columns"];
|
|
71874
71895
|
|
|
71875
71896
|
function getButtonText(_ref) {
|
|
71876
71897
|
var intl = _ref.intl;
|
|
@@ -71962,7 +71983,7 @@
|
|
|
71962
71983
|
toolbar = _ref2.toolbar,
|
|
71963
71984
|
onSearch = _ref2.onSearch,
|
|
71964
71985
|
columns = _ref2.columns,
|
|
71965
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
71986
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$W);
|
|
71966
71987
|
|
|
71967
71988
|
var counter = Container.useContainer();
|
|
71968
71989
|
var intl = useIntl();
|
|
@@ -72164,7 +72185,7 @@
|
|
|
72164
72185
|
return _createClass(ToolbarRender);
|
|
72165
72186
|
}(React__default['default'].Component);
|
|
72166
72187
|
|
|
72167
|
-
var _excluded$
|
|
72188
|
+
var _excluded$X = ["data", "success", "total"];
|
|
72168
72189
|
/**
|
|
72169
72190
|
* 组合用户的配置和默认值
|
|
72170
72191
|
*
|
|
@@ -72339,7 +72360,7 @@
|
|
|
72339
72360
|
success = _ref6.success;
|
|
72340
72361
|
_ref6$total = _ref6.total;
|
|
72341
72362
|
total = _ref6$total === void 0 ? 0 : _ref6$total;
|
|
72342
|
-
rest = _objectWithoutProperties$1(_ref6, _excluded$
|
|
72363
|
+
rest = _objectWithoutProperties$1(_ref6, _excluded$X);
|
|
72343
72364
|
|
|
72344
72365
|
if (!(success === false)) {
|
|
72345
72366
|
_context.next = 24;
|
|
@@ -72617,7 +72638,7 @@
|
|
|
72617
72638
|
};
|
|
72618
72639
|
};
|
|
72619
72640
|
|
|
72620
|
-
var _excluded$
|
|
72641
|
+
var _excluded$Y = ["children"];
|
|
72621
72642
|
var SHOW_EMPTY_TEXT_LIST = ['', null, undefined];
|
|
72622
72643
|
/**
|
|
72623
72644
|
* 拼接用于编辑的 key
|
|
@@ -72680,7 +72701,7 @@
|
|
|
72680
72701
|
}, [columnProps, editableForm, index, rowName]);
|
|
72681
72702
|
var InlineItem = React.useCallback(function (_ref3) {
|
|
72682
72703
|
var children = _ref3.children,
|
|
72683
|
-
restProps = _objectWithoutProperties$1(_ref3, _excluded$
|
|
72704
|
+
restProps = _objectWithoutProperties$1(_ref3, _excluded$Y);
|
|
72684
72705
|
|
|
72685
72706
|
return jsxRuntime.jsx(InlineErrorFormItem$1, _objectSpread2(_objectSpread2({
|
|
72686
72707
|
popoverProps: {
|
|
@@ -72822,7 +72843,7 @@
|
|
|
72822
72843
|
}), config.recordKey);
|
|
72823
72844
|
}
|
|
72824
72845
|
|
|
72825
|
-
var _excluded$
|
|
72846
|
+
var _excluded$Z = ["children"],
|
|
72826
72847
|
_excluded2$f = ["children"];
|
|
72827
72848
|
/**
|
|
72828
72849
|
* 增加了 icon 的功能 render title
|
|
@@ -72887,7 +72908,7 @@
|
|
|
72887
72908
|
value: function shouldComponentUpdate(nextProps) {
|
|
72888
72909
|
var _this$props = this.props,
|
|
72889
72910
|
children = _this$props.children,
|
|
72890
|
-
restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
72911
|
+
restProps = _objectWithoutProperties$1(_this$props, _excluded$Z);
|
|
72891
72912
|
|
|
72892
72913
|
var nextChildren = nextProps.children,
|
|
72893
72914
|
restNextProps = _objectWithoutProperties$1(nextProps, _excluded2$f);
|
|
@@ -73131,7 +73152,7 @@
|
|
|
73131
73152
|
});
|
|
73132
73153
|
}
|
|
73133
73154
|
|
|
73134
|
-
var _excluded$
|
|
73155
|
+
var _excluded$_ = ["rowKey", "tableClassName", "action", "tableColumn", "type", "pagination", "rowSelection", "size", "defaultSize", "tableStyle", "toolbarDom", "searchNode", "style", "cardProps", "alertDom", "name", "onSortChange", "onFilterChange", "options", "isLightFilter", "className", "cardBordered", "editableUtils", "getRowKey"],
|
|
73135
73156
|
_excluded2$g = ["cardBordered", "request", "className", "params", "defaultData", "headerTitle", "postData", "ghost", "pagination", "actionRef", "columns", "toolBarRender", "onLoad", "onRequestError", "style", "cardProps", "tableStyle", "tableClassName", "columnsStateMap", "onColumnsStateChange", "options", "search", "name", "onLoadingChange", "rowSelection", "beforeSearchSubmit", "tableAlertRender", "defaultClassName", "formRef", "type", "columnEmptyText", "toolbar", "rowKey", "manualRequest", "polling", "tooltip", "revalidateOnFocus"];
|
|
73136
73157
|
|
|
73137
73158
|
function TableRender(props) {
|
|
@@ -73159,7 +73180,7 @@
|
|
|
73159
73180
|
cardBordered = props.cardBordered,
|
|
73160
73181
|
editableUtils = props.editableUtils,
|
|
73161
73182
|
getRowKey = props.getRowKey,
|
|
73162
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
73183
|
+
rest = _objectWithoutProperties$1(props, _excluded$_);
|
|
73163
73184
|
|
|
73164
73185
|
var counter = Container.useContainer();
|
|
73165
73186
|
/** 需要遍历一下,不然不支持嵌套表格 */
|
|
@@ -73972,7 +73993,7 @@
|
|
|
73972
73993
|
editConfig: editConfig
|
|
73973
73994
|
};
|
|
73974
73995
|
|
|
73975
|
-
var _excluded
|
|
73996
|
+
var _excluded$$ = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck", "rowSelection", "columnsState", "tableRowType"];
|
|
73976
73997
|
var Summary = ProviderWarp.Summary;
|
|
73977
73998
|
var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
73978
73999
|
var dataSource = props.dataSource,
|
|
@@ -73992,7 +74013,7 @@
|
|
|
73992
74013
|
columnsState = props.columnsState,
|
|
73993
74014
|
_props$tableRowType = props.tableRowType,
|
|
73994
74015
|
tableRowType = _props$tableRowType === void 0 ? 'default' : _props$tableRowType,
|
|
73995
|
-
resetProps = _objectWithoutProperties(props, _excluded
|
|
74016
|
+
resetProps = _objectWithoutProperties(props, _excluded$$);
|
|
73996
74017
|
|
|
73997
74018
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
73998
74019
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -74355,24 +74376,25 @@
|
|
|
74355
74376
|
|
|
74356
74377
|
var handResize = lodash.throttle(changeSize, 600);
|
|
74357
74378
|
React.useEffect(function () {
|
|
74358
|
-
var _tableWarpRef$current8;
|
|
74359
|
-
|
|
74360
74379
|
var hiddenPage = props.hiddenPage,
|
|
74361
74380
|
customCheck = props.customCheck,
|
|
74362
74381
|
summary = props.summary;
|
|
74382
|
+
setTimeout(function () {
|
|
74383
|
+
var _tableWarpRef$current8;
|
|
74363
74384
|
|
|
74364
|
-
|
|
74365
|
-
|
|
74366
|
-
|
|
74367
|
-
|
|
74368
|
-
|
|
74385
|
+
var _tableWarpRef$current5 = (_tableWarpRef$current8 = tableWarpRef.current) === null || _tableWarpRef$current8 === void 0 ? void 0 : _tableWarpRef$current8.getBoundingClientRect(),
|
|
74386
|
+
_tableWarpRef$current6 = _tableWarpRef$current5.width,
|
|
74387
|
+
width = _tableWarpRef$current6 === void 0 ? '100%' : _tableWarpRef$current6,
|
|
74388
|
+
_tableWarpRef$current7 = _tableWarpRef$current5.height,
|
|
74389
|
+
height = _tableWarpRef$current7 === void 0 ? '100%' : _tableWarpRef$current7;
|
|
74369
74390
|
|
|
74370
|
-
|
|
74391
|
+
var value = summary ? 48 : 0;
|
|
74392
|
+
setTableSize({
|
|
74393
|
+
width: width,
|
|
74394
|
+
height: typeof height === 'string' ? "calc(".concat(height, " - ").concat(value, "px)") : height - value
|
|
74395
|
+
});
|
|
74396
|
+
}, 100);
|
|
74371
74397
|
resizeRef.current = window.addEventListener('resize', handResize);
|
|
74372
|
-
setTableSize({
|
|
74373
|
-
width: width,
|
|
74374
|
-
height: typeof height === 'string' ? "calc(".concat(height, " - ").concat(value, "px)") : height - value
|
|
74375
|
-
});
|
|
74376
74398
|
return function () {
|
|
74377
74399
|
window.removeEventListener('resize', handResize);
|
|
74378
74400
|
};
|
|
@@ -75982,7 +76004,7 @@
|
|
|
75982
76004
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, icon());
|
|
75983
76005
|
};
|
|
75984
76006
|
|
|
75985
|
-
var _excluded
|
|
76007
|
+
var _excluded$10 = ["desc"];
|
|
75986
76008
|
var Paragraph = _Typography__default['default'].Paragraph;
|
|
75987
76009
|
|
|
75988
76010
|
var Access = function Access(props) {
|
|
@@ -76012,7 +76034,7 @@
|
|
|
76012
76034
|
|
|
76013
76035
|
var defaultConfig = React.useMemo(function () {
|
|
76014
76036
|
var desc = config.desc,
|
|
76015
|
-
resetConfig = _objectWithoutProperties(config, _excluded
|
|
76037
|
+
resetConfig = _objectWithoutProperties(config, _excluded$10);
|
|
76016
76038
|
|
|
76017
76039
|
return _objectSpread({
|
|
76018
76040
|
title: 'title',
|
|
@@ -76388,7 +76410,7 @@
|
|
|
76388
76410
|
}, config));
|
|
76389
76411
|
};
|
|
76390
76412
|
|
|
76391
|
-
var _excluded$
|
|
76413
|
+
var _excluded$11 = ["style", "defaultPage"];
|
|
76392
76414
|
var initialState$2 = {
|
|
76393
76415
|
// 选中的数据
|
|
76394
76416
|
checkList: [],
|
|
@@ -76429,7 +76451,7 @@
|
|
|
76429
76451
|
var ImgTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
76430
76452
|
var style = props.style,
|
|
76431
76453
|
defaultPage = props.defaultPage,
|
|
76432
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
76454
|
+
resetProps = _objectWithoutProperties(props, _excluded$11);
|
|
76433
76455
|
|
|
76434
76456
|
var _useReducer = React.useReducer(reducer$3, initialState$2),
|
|
76435
76457
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
@@ -76472,6 +76494,932 @@
|
|
|
76472
76494
|
Table.ImgTable = ImgTable;
|
|
76473
76495
|
Table.Summary = Summary;
|
|
76474
76496
|
|
|
76497
|
+
function useEvent$2(handler) {
|
|
76498
|
+
var handlerRef = React.useRef(null); // 同步,运行时间在布局前
|
|
76499
|
+
|
|
76500
|
+
React.useLayoutEffect(function () {
|
|
76501
|
+
handlerRef.current = handler;
|
|
76502
|
+
}); // 存储方法函数
|
|
76503
|
+
|
|
76504
|
+
return React.useCallback(function () {
|
|
76505
|
+
var fn = handlerRef.current;
|
|
76506
|
+
return fn.apply(void 0, arguments);
|
|
76507
|
+
}, []);
|
|
76508
|
+
}
|
|
76509
|
+
|
|
76510
|
+
var isFunction$3 = function isFunction(value) {
|
|
76511
|
+
return typeof value === 'function';
|
|
76512
|
+
};
|
|
76513
|
+
|
|
76514
|
+
function useMemoizedFn(fn) {
|
|
76515
|
+
{
|
|
76516
|
+
if (!isFunction$3(fn)) {
|
|
76517
|
+
console.error("useMemoizedFn expected parameter is a function, got " + typeof fn);
|
|
76518
|
+
}
|
|
76519
|
+
}
|
|
76520
|
+
|
|
76521
|
+
var fnRef = React.useRef(fn); // why not write `fnRef.current = fn`?
|
|
76522
|
+
// https://github.com/alibaba/hooks/issues/728
|
|
76523
|
+
|
|
76524
|
+
fnRef.current = React.useMemo(function () {
|
|
76525
|
+
return fn;
|
|
76526
|
+
}, [fn]);
|
|
76527
|
+
var memoizedFn = React.useRef();
|
|
76528
|
+
|
|
76529
|
+
if (!memoizedFn.current) {
|
|
76530
|
+
memoizedFn.current = function () {
|
|
76531
|
+
var args = [];
|
|
76532
|
+
|
|
76533
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
76534
|
+
args[_i] = arguments[_i];
|
|
76535
|
+
}
|
|
76536
|
+
|
|
76537
|
+
return fnRef.current.apply(this, args);
|
|
76538
|
+
};
|
|
76539
|
+
}
|
|
76540
|
+
|
|
76541
|
+
return memoizedFn.current;
|
|
76542
|
+
}
|
|
76543
|
+
|
|
76544
|
+
var __read = undefined && undefined.__read || function (o, n) {
|
|
76545
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
76546
|
+
if (!m) return o;
|
|
76547
|
+
var i = m.call(o),
|
|
76548
|
+
r,
|
|
76549
|
+
ar = [],
|
|
76550
|
+
e;
|
|
76551
|
+
|
|
76552
|
+
try {
|
|
76553
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
76554
|
+
ar.push(r.value);
|
|
76555
|
+
}
|
|
76556
|
+
} catch (error) {
|
|
76557
|
+
e = {
|
|
76558
|
+
error: error
|
|
76559
|
+
};
|
|
76560
|
+
} finally {
|
|
76561
|
+
try {
|
|
76562
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
76563
|
+
} finally {
|
|
76564
|
+
if (e) throw e.error;
|
|
76565
|
+
}
|
|
76566
|
+
}
|
|
76567
|
+
|
|
76568
|
+
return ar;
|
|
76569
|
+
};
|
|
76570
|
+
|
|
76571
|
+
var useUpdate = function useUpdate() {
|
|
76572
|
+
var _a = __read(React.useState({}), 2),
|
|
76573
|
+
setState = _a[1];
|
|
76574
|
+
|
|
76575
|
+
return React.useCallback(function () {
|
|
76576
|
+
return setState({});
|
|
76577
|
+
}, []);
|
|
76578
|
+
};
|
|
76579
|
+
|
|
76580
|
+
var __read$1 = undefined && undefined.__read || function (o, n) {
|
|
76581
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
76582
|
+
if (!m) return o;
|
|
76583
|
+
var i = m.call(o),
|
|
76584
|
+
r,
|
|
76585
|
+
ar = [],
|
|
76586
|
+
e;
|
|
76587
|
+
|
|
76588
|
+
try {
|
|
76589
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
76590
|
+
ar.push(r.value);
|
|
76591
|
+
}
|
|
76592
|
+
} catch (error) {
|
|
76593
|
+
e = {
|
|
76594
|
+
error: error
|
|
76595
|
+
};
|
|
76596
|
+
} finally {
|
|
76597
|
+
try {
|
|
76598
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
76599
|
+
} finally {
|
|
76600
|
+
if (e) throw e.error;
|
|
76601
|
+
}
|
|
76602
|
+
}
|
|
76603
|
+
|
|
76604
|
+
return ar;
|
|
76605
|
+
};
|
|
76606
|
+
|
|
76607
|
+
var __spread = undefined && undefined.__spread || function () {
|
|
76608
|
+
for (var ar = [], i = 0; i < arguments.length; i++) {
|
|
76609
|
+
ar = ar.concat(__read$1(arguments[i]));
|
|
76610
|
+
}
|
|
76611
|
+
|
|
76612
|
+
return ar;
|
|
76613
|
+
};
|
|
76614
|
+
|
|
76615
|
+
function useControllableValue(props, options) {
|
|
76616
|
+
if (props === void 0) {
|
|
76617
|
+
props = {};
|
|
76618
|
+
}
|
|
76619
|
+
|
|
76620
|
+
if (options === void 0) {
|
|
76621
|
+
options = {};
|
|
76622
|
+
}
|
|
76623
|
+
|
|
76624
|
+
var defaultValue = options.defaultValue,
|
|
76625
|
+
_a = options.defaultValuePropName,
|
|
76626
|
+
defaultValuePropName = _a === void 0 ? 'defaultValue' : _a,
|
|
76627
|
+
_b = options.valuePropName,
|
|
76628
|
+
valuePropName = _b === void 0 ? 'value' : _b,
|
|
76629
|
+
_c = options.trigger,
|
|
76630
|
+
trigger = _c === void 0 ? 'onChange' : _c;
|
|
76631
|
+
var value = props[valuePropName];
|
|
76632
|
+
var isControlled = props.hasOwnProperty(valuePropName);
|
|
76633
|
+
var initialValue = React.useMemo(function () {
|
|
76634
|
+
if (isControlled) {
|
|
76635
|
+
return value;
|
|
76636
|
+
}
|
|
76637
|
+
|
|
76638
|
+
if (props.hasOwnProperty(defaultValuePropName)) {
|
|
76639
|
+
return props[defaultValuePropName];
|
|
76640
|
+
}
|
|
76641
|
+
|
|
76642
|
+
return defaultValue;
|
|
76643
|
+
}, []);
|
|
76644
|
+
var stateRef = React.useRef(initialValue);
|
|
76645
|
+
|
|
76646
|
+
if (isControlled) {
|
|
76647
|
+
stateRef.current = value;
|
|
76648
|
+
}
|
|
76649
|
+
|
|
76650
|
+
var update = useUpdate();
|
|
76651
|
+
|
|
76652
|
+
function setState(v) {
|
|
76653
|
+
var args = [];
|
|
76654
|
+
|
|
76655
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
76656
|
+
args[_i - 1] = arguments[_i];
|
|
76657
|
+
}
|
|
76658
|
+
|
|
76659
|
+
var r = isFunction$3(v) ? v(stateRef.current) : v;
|
|
76660
|
+
|
|
76661
|
+
if (!isControlled) {
|
|
76662
|
+
stateRef.current = r;
|
|
76663
|
+
update();
|
|
76664
|
+
}
|
|
76665
|
+
|
|
76666
|
+
if (props[trigger]) {
|
|
76667
|
+
props[trigger].apply(props, __spread([r], args));
|
|
76668
|
+
}
|
|
76669
|
+
}
|
|
76670
|
+
|
|
76671
|
+
return [stateRef.current, useMemoizedFn(setState)];
|
|
76672
|
+
}
|
|
76673
|
+
|
|
76674
|
+
function getArray(val) {
|
|
76675
|
+
if (!val) return [];
|
|
76676
|
+
return Array.isArray(val) ? val : [val];
|
|
76677
|
+
} // 判断是否符合options格式
|
|
76678
|
+
|
|
76679
|
+
var isOptions = function isOptions(key) {
|
|
76680
|
+
return ['label', 'value'].includes(key);
|
|
76681
|
+
}; // 查询搜索, 都转成小写用于匹配
|
|
76682
|
+
|
|
76683
|
+
var onStringSearch = function onStringSearch() {
|
|
76684
|
+
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
76685
|
+
var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
76686
|
+
return str.toLowerCase().includes(key.toLowerCase());
|
|
76687
|
+
}; // 将options和children都转成options
|
|
76688
|
+
|
|
76689
|
+
function getOptions(children) {
|
|
76690
|
+
var array = getArray(children);
|
|
76691
|
+
return array.map(function (item) {
|
|
76692
|
+
if (Object.keys(item).every(isOptions)) return item;
|
|
76693
|
+
return {
|
|
76694
|
+
label: item.props.children,
|
|
76695
|
+
value: item.props.value,
|
|
76696
|
+
disabled: !!item.props.disabled
|
|
76697
|
+
};
|
|
76698
|
+
});
|
|
76699
|
+
} // 检查是否存在内容
|
|
76700
|
+
|
|
76701
|
+
function getIsHas$1(val) {
|
|
76702
|
+
// 检查是否数字类型, 是否布尔类型
|
|
76703
|
+
var flag = !!val || typeof val === 'number' || typeof val === 'boolean'; // 检查空对象和空数组
|
|
76704
|
+
|
|
76705
|
+
if (!!val && _typeof(val) === 'object') {
|
|
76706
|
+
var _Object$keys;
|
|
76707
|
+
|
|
76708
|
+
flag = Array.isArray(val) ? !!val.length : !!((_Object$keys = Object.keys(val)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length);
|
|
76709
|
+
}
|
|
76710
|
+
|
|
76711
|
+
return flag;
|
|
76712
|
+
} // 检查是否类组件
|
|
76713
|
+
|
|
76714
|
+
function isClassComponent$1(component) {
|
|
76715
|
+
return typeof component === 'function' && function () {
|
|
76716
|
+
var proto = Object.getPrototypeOf(component);
|
|
76717
|
+
return proto.prototype && proto.prototype.isReactComponent;
|
|
76718
|
+
}();
|
|
76719
|
+
} // 检查是否自定义组件
|
|
76720
|
+
|
|
76721
|
+
function isExoticComponent$1(component) {
|
|
76722
|
+
return _typeof(component) === 'object' && _typeof(component.$$typeof) === 'symbol' && ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description);
|
|
76723
|
+
} // 检查是否React组件
|
|
76724
|
+
|
|
76725
|
+
function isReactComponent$1(component) {
|
|
76726
|
+
return isClassComponent$1(component) || typeof component === 'function' || isExoticComponent$1(component);
|
|
76727
|
+
}
|
|
76728
|
+
var render$2 = function render(Comp) {
|
|
76729
|
+
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
76730
|
+
return !Comp ? null : isReactComponent$1(Comp) ? /*#__PURE__*/React__default['default'].createElement(Comp, _objectSpread({}, props)) : Comp;
|
|
76731
|
+
};
|
|
76732
|
+
|
|
76733
|
+
var _excluded$12 = ["item"],
|
|
76734
|
+
_excluded2$h = ["item"],
|
|
76735
|
+
_excluded3$4 = ["type"];
|
|
76736
|
+
|
|
76737
|
+
var imgEmpty$1 = require('./icon_placeholder.png');
|
|
76738
|
+
|
|
76739
|
+
var FilterEmpty$1 = function FilterEmpty() {
|
|
76740
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76741
|
+
className: "filter_empty"
|
|
76742
|
+
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
76743
|
+
src: imgEmpty$1,
|
|
76744
|
+
alt: "empty",
|
|
76745
|
+
width: 81
|
|
76746
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76747
|
+
className: "filter_empty_text"
|
|
76748
|
+
}, "\u6682\u65E0\u6570\u636E"));
|
|
76749
|
+
}; // 下拉单选过滤器
|
|
76750
|
+
|
|
76751
|
+
|
|
76752
|
+
var SelectFilter$1 = function SelectFilter(_ref) {
|
|
76753
|
+
var _ref$filters = _ref.filters,
|
|
76754
|
+
filters = _ref$filters === void 0 ? [] : _ref$filters,
|
|
76755
|
+
getFilterValue = _ref.getFilterValue,
|
|
76756
|
+
setFilterValue = _ref.setFilterValue;
|
|
76757
|
+
var inputRef = React.useRef(null); // 搜索后的筛选项
|
|
76758
|
+
|
|
76759
|
+
var _useState = React.useState(filters),
|
|
76760
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
76761
|
+
options = _useState2[0],
|
|
76762
|
+
setOptions = _useState2[1]; // 是否存在搜索, 当数据大于8时存在搜索
|
|
76763
|
+
|
|
76764
|
+
|
|
76765
|
+
var isSearch = React.useMemo(function () {
|
|
76766
|
+
return filters.length > 8;
|
|
76767
|
+
}, [filters.length]); // 搜索
|
|
76768
|
+
|
|
76769
|
+
var handleFilter = useEvent$2(function (val) {
|
|
76770
|
+
return setOptions(filters.filter(function (v) {
|
|
76771
|
+
return onStringSearch(val, v.label);
|
|
76772
|
+
}));
|
|
76773
|
+
}); // 单选事件
|
|
76774
|
+
|
|
76775
|
+
var onChange = function onChange(e, item) {
|
|
76776
|
+
e.preventDefault();
|
|
76777
|
+
setFilterValue(item.value);
|
|
76778
|
+
};
|
|
76779
|
+
|
|
76780
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76781
|
+
className: "filter_dropdown"
|
|
76782
|
+
}, isSearch && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76783
|
+
className: "filter_header"
|
|
76784
|
+
}, /*#__PURE__*/React__default['default'].createElement(LmInput.Search, {
|
|
76785
|
+
ref: inputRef,
|
|
76786
|
+
allowClear: true,
|
|
76787
|
+
size: "small",
|
|
76788
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
76789
|
+
onSearch: handleFilter,
|
|
76790
|
+
onChange: function onChange(e) {
|
|
76791
|
+
return handleFilter(e.target.value);
|
|
76792
|
+
}
|
|
76793
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76794
|
+
className: "filter_body"
|
|
76795
|
+
}, /*#__PURE__*/React__default['default'].createElement(VirList, {
|
|
76796
|
+
options: options,
|
|
76797
|
+
className: "filter_list"
|
|
76798
|
+
}, function (_ref2) {
|
|
76799
|
+
var item = _ref2.item,
|
|
76800
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$12);
|
|
76801
|
+
|
|
76802
|
+
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
76803
|
+
className: classnames('filter_item', {
|
|
76804
|
+
checked: item.value === getFilterValue
|
|
76805
|
+
}),
|
|
76806
|
+
onClick: function onClick(e) {
|
|
76807
|
+
return onChange(e, item);
|
|
76808
|
+
}
|
|
76809
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76810
|
+
className: "filter_item-content"
|
|
76811
|
+
}, item.label));
|
|
76812
|
+
}), !options.length && /*#__PURE__*/React__default['default'].createElement(FilterEmpty$1, null)));
|
|
76813
|
+
}; // 下拉多选过滤器: 要过滤的数据, 当前选中项, 触发过滤, 过滤前的数据
|
|
76814
|
+
|
|
76815
|
+
|
|
76816
|
+
var CheckboxFilter$1 = function CheckboxFilter(_ref3) {
|
|
76817
|
+
var _ref3$filters = _ref3.filters,
|
|
76818
|
+
filters = _ref3$filters === void 0 ? [] : _ref3$filters,
|
|
76819
|
+
_ref3$getFilterValue = _ref3.getFilterValue,
|
|
76820
|
+
getFilterValue = _ref3$getFilterValue === void 0 ? [] : _ref3$getFilterValue,
|
|
76821
|
+
setFilterValue = _ref3.setFilterValue;
|
|
76822
|
+
var onValuesChange = useEvent$2(function (checkedValues) {
|
|
76823
|
+
return setFilterValue(checkedValues, false);
|
|
76824
|
+
}); // 父组件和子组件同步checked状态
|
|
76825
|
+
|
|
76826
|
+
var _useControllableValue = useControllableValue({
|
|
76827
|
+
value: getFilterValue,
|
|
76828
|
+
onChange: onValuesChange
|
|
76829
|
+
}),
|
|
76830
|
+
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
76831
|
+
checkedValues = _useControllableValue2[0],
|
|
76832
|
+
setCheckedValues = _useControllableValue2[1]; // 搜索后的筛选项:[{value: '', ... }, ...]
|
|
76833
|
+
|
|
76834
|
+
|
|
76835
|
+
var _useState3 = React.useState(filters),
|
|
76836
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
76837
|
+
options = _useState4[0],
|
|
76838
|
+
setOptions = _useState4[1]; // 是否存在搜索, 当数据大于8时存在搜索
|
|
76839
|
+
|
|
76840
|
+
|
|
76841
|
+
var isSearch = React.useMemo(function () {
|
|
76842
|
+
return filters.length > 8;
|
|
76843
|
+
}, [filters.length]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
76844
|
+
|
|
76845
|
+
var checkAll = React.useMemo(function () {
|
|
76846
|
+
var isLen = checkedValues.length >= options.length;
|
|
76847
|
+
return isLen && options.every(function (_ref4) {
|
|
76848
|
+
var value = _ref4.value;
|
|
76849
|
+
return checkedValues.includes(value);
|
|
76850
|
+
});
|
|
76851
|
+
}, [checkedValues.length, options]); // 是否半选: 存在选中的数据 && 未全选
|
|
76852
|
+
|
|
76853
|
+
var indeterminate = React.useMemo(function () {
|
|
76854
|
+
return checkedValues.length && !checkAll;
|
|
76855
|
+
}, [checkedValues.length, checkAll]); // 全选事件
|
|
76856
|
+
|
|
76857
|
+
var onCheckAllChange = function onCheckAllChange(e) {
|
|
76858
|
+
var nValue = checkAll ? checkedValues.filter(function (v) {
|
|
76859
|
+
return !options.some(function (_ref5) {
|
|
76860
|
+
var value = _ref5.value;
|
|
76861
|
+
return v === value;
|
|
76862
|
+
});
|
|
76863
|
+
}) : Array.from(new Set([].concat(_toConsumableArray(checkedValues), _toConsumableArray(options.map(function (v) {
|
|
76864
|
+
return v.value;
|
|
76865
|
+
})))));
|
|
76866
|
+
setCheckedValues(nValue);
|
|
76867
|
+
}; // 搜索
|
|
76868
|
+
|
|
76869
|
+
|
|
76870
|
+
var handleFilter = useEvent$2(function (val) {
|
|
76871
|
+
return setOptions(filters.filter(function (v) {
|
|
76872
|
+
return onStringSearch(val, v.label);
|
|
76873
|
+
}));
|
|
76874
|
+
}); // 单选事件
|
|
76875
|
+
|
|
76876
|
+
var onChange = function onChange(e, item) {
|
|
76877
|
+
e.preventDefault();
|
|
76878
|
+
e.stopPropagation();
|
|
76879
|
+
var arr = checkedValues.includes(item.value) ? checkedValues.filter(function (v) {
|
|
76880
|
+
return v !== item.value;
|
|
76881
|
+
}) : [].concat(_toConsumableArray(checkedValues), [item.value]);
|
|
76882
|
+
setCheckedValues(arr || undefined);
|
|
76883
|
+
};
|
|
76884
|
+
|
|
76885
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76886
|
+
className: "select_dropdown"
|
|
76887
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76888
|
+
className: "filter_header"
|
|
76889
|
+
}, isSearch && /*#__PURE__*/React__default['default'].createElement(LmInput.Search, {
|
|
76890
|
+
allowClear: true,
|
|
76891
|
+
size: "small",
|
|
76892
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
76893
|
+
onSearch: handleFilter,
|
|
76894
|
+
onChange: function onChange(e) {
|
|
76895
|
+
var _e$target;
|
|
76896
|
+
|
|
76897
|
+
return handleFilter(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
|
|
76898
|
+
}
|
|
76899
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76900
|
+
className: "filter_header_operate"
|
|
76901
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
76902
|
+
indeterminate: indeterminate,
|
|
76903
|
+
onChange: onCheckAllChange,
|
|
76904
|
+
checked: checkAll,
|
|
76905
|
+
className: "filter_tip"
|
|
76906
|
+
}, "\u5168\u90E8"), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
76907
|
+
className: "filter_tip"
|
|
76908
|
+
}, "\u5DF2\u9009: ", checkedValues.length)))), /*#__PURE__*/React__default['default'].createElement(LMCheckBox.Group, {
|
|
76909
|
+
value: checkedValues,
|
|
76910
|
+
className: "filter_body"
|
|
76911
|
+
}, /*#__PURE__*/React__default['default'].createElement(VirList, {
|
|
76912
|
+
options: options,
|
|
76913
|
+
className: "filter_list"
|
|
76914
|
+
}, function (_ref6) {
|
|
76915
|
+
var item = _ref6.item,
|
|
76916
|
+
resetProps = _objectWithoutProperties(_ref6, _excluded2$h);
|
|
76917
|
+
|
|
76918
|
+
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
76919
|
+
className: classnames('filter_item', {
|
|
76920
|
+
checked: checkedValues.includes(item.value)
|
|
76921
|
+
}),
|
|
76922
|
+
onClick: function onClick(e) {
|
|
76923
|
+
return onChange(e, item);
|
|
76924
|
+
}
|
|
76925
|
+
}), /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
76926
|
+
value: item.value,
|
|
76927
|
+
className: "filter_item-content"
|
|
76928
|
+
}, item.label));
|
|
76929
|
+
}), !options.length && /*#__PURE__*/React__default['default'].createElement(FilterEmpty$1, null)));
|
|
76930
|
+
}; // 级联选择器
|
|
76931
|
+
|
|
76932
|
+
|
|
76933
|
+
var CascaderFilter$2 = function CascaderFilter(props) {
|
|
76934
|
+
var title = props.title,
|
|
76935
|
+
filters = props.filters,
|
|
76936
|
+
getFilterValue = props.getFilterValue,
|
|
76937
|
+
setFilterValue = props.setFilterValue,
|
|
76938
|
+
_props$itemProps = props.itemProps,
|
|
76939
|
+
itemProps = _props$itemProps === void 0 ? {} : _props$itemProps,
|
|
76940
|
+
isFiltering = props.isFiltering;
|
|
76941
|
+
|
|
76942
|
+
var _useState5 = React.useState(false),
|
|
76943
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
76944
|
+
visible = _useState6[0],
|
|
76945
|
+
setVisible = _useState6[1];
|
|
76946
|
+
|
|
76947
|
+
var _useState7 = React.useState(filters),
|
|
76948
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
76949
|
+
options = _useState8[0],
|
|
76950
|
+
setOptions = _useState8[1];
|
|
76951
|
+
|
|
76952
|
+
var _useState9 = React.useState('全部'),
|
|
76953
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
76954
|
+
text = _useState10[0],
|
|
76955
|
+
setText = _useState10[1];
|
|
76956
|
+
|
|
76957
|
+
var _useState11 = React.useState(getFilterValue || itemProps.multiple ? [] : ''),
|
|
76958
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
76959
|
+
checkedValues = _useState12[0],
|
|
76960
|
+
setCheckedValues = _useState12[1]; // const isSearch = useMemo(() => filters.length > 8, [filters.length]);
|
|
76961
|
+
|
|
76962
|
+
|
|
76963
|
+
var handleFilter = useEvent$2(function (val) {
|
|
76964
|
+
return setOptions(filters.filter(function (v) {
|
|
76965
|
+
return onStringSearch(val, v.label);
|
|
76966
|
+
}));
|
|
76967
|
+
}); // 重置级联弹框
|
|
76968
|
+
|
|
76969
|
+
var dropdownRender = function dropdownRender(menus) {
|
|
76970
|
+
var inputRef = React.useRef(null); // 确定
|
|
76971
|
+
|
|
76972
|
+
var handleSure = function handleSure() {
|
|
76973
|
+
setFilterValue(itemProps.multiple ? checkedValues.map(function (v) {
|
|
76974
|
+
return v[v.length - 1];
|
|
76975
|
+
}) : checkedValues);
|
|
76976
|
+
setVisible(false);
|
|
76977
|
+
}; // 取消
|
|
76978
|
+
|
|
76979
|
+
|
|
76980
|
+
var handleReset = function handleReset() {
|
|
76981
|
+
if (inputRef.current) {
|
|
76982
|
+
inputRef.current.input.value = '';
|
|
76983
|
+
}
|
|
76984
|
+
|
|
76985
|
+
setFilterValue(undefined);
|
|
76986
|
+
setCheckedValues(itemProps.multiple ? [] : '');
|
|
76987
|
+
};
|
|
76988
|
+
|
|
76989
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76990
|
+
className: "filter_cascader_container filter_dropdown"
|
|
76991
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76992
|
+
className: "filter_header"
|
|
76993
|
+
}, /*#__PURE__*/React__default['default'].createElement(LmInput.Search, {
|
|
76994
|
+
ref: inputRef,
|
|
76995
|
+
allowClear: true,
|
|
76996
|
+
size: "small",
|
|
76997
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
76998
|
+
onSearch: handleFilter,
|
|
76999
|
+
onChange: function onChange(e) {
|
|
77000
|
+
return handleFilter(e.target.value);
|
|
77001
|
+
}
|
|
77002
|
+
})), menus, itemProps.multiple && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77003
|
+
className: "filter_footer"
|
|
77004
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77005
|
+
className: "footer_clear",
|
|
77006
|
+
onClick: handleReset
|
|
77007
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
77008
|
+
type: "primary",
|
|
77009
|
+
size: "small",
|
|
77010
|
+
onClick: handleSure
|
|
77011
|
+
}, "\u786E\u5B9A")));
|
|
77012
|
+
};
|
|
77013
|
+
|
|
77014
|
+
var onChange = function onChange(item, selectedOptions) {
|
|
77015
|
+
if (!item.length) {
|
|
77016
|
+
setText('全部');
|
|
77017
|
+
setCheckedValues(itemProps.multiple ? [] : '');
|
|
77018
|
+
setFilterValue(undefined);
|
|
77019
|
+
return;
|
|
77020
|
+
}
|
|
77021
|
+
|
|
77022
|
+
if (itemProps.multiple) {
|
|
77023
|
+
var arr = [];
|
|
77024
|
+
selectedOptions.map(function (vals) {
|
|
77025
|
+
return vals.length > 1 ? arr.push(vals.map(function (v) {
|
|
77026
|
+
return v.label;
|
|
77027
|
+
}).join('/')) : vals[0].children.map(function (v) {
|
|
77028
|
+
return arr.push("".concat(vals[0].label, "/").concat(v.label));
|
|
77029
|
+
});
|
|
77030
|
+
});
|
|
77031
|
+
var showLabel = arr.length < 3 ? arr.join('、') : "".concat(arr[0], "\u3001+").concat(arr.length);
|
|
77032
|
+
setText(showLabel);
|
|
77033
|
+
setCheckedValues(item);
|
|
77034
|
+
} else {
|
|
77035
|
+
setText(selectedOptions.map(function (v) {
|
|
77036
|
+
return v.label;
|
|
77037
|
+
}).join('/'));
|
|
77038
|
+
setFilterValue(item);
|
|
77039
|
+
setCheckedValues(item);
|
|
77040
|
+
}
|
|
77041
|
+
};
|
|
77042
|
+
|
|
77043
|
+
var handleClear = function handleClear(e) {
|
|
77044
|
+
if (isFiltering) {
|
|
77045
|
+
e.stopPropagation();
|
|
77046
|
+
setText('全部');
|
|
77047
|
+
setCheckedValues(itemProps.multiple ? [] : '');
|
|
77048
|
+
setFilterValue(undefined);
|
|
77049
|
+
}
|
|
77050
|
+
};
|
|
77051
|
+
|
|
77052
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Cascader__default['default'], _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
77053
|
+
options: options,
|
|
77054
|
+
value: checkedValues,
|
|
77055
|
+
onChange: onChange,
|
|
77056
|
+
open: visible,
|
|
77057
|
+
// showCheckedStrategy="Cascader.SHOW_CHILD"
|
|
77058
|
+
dropdownRender: dropdownRender,
|
|
77059
|
+
onDropdownVisibleChange: function onDropdownVisibleChange(v) {
|
|
77060
|
+
return setVisible(v);
|
|
77061
|
+
}
|
|
77062
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77063
|
+
className: classnames('filter_item', {
|
|
77064
|
+
isfiltering: isFiltering || visible,
|
|
77065
|
+
active: !isFiltering && visible
|
|
77066
|
+
})
|
|
77067
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77068
|
+
className: "filter_item_label"
|
|
77069
|
+
}, title, ":"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77070
|
+
className: "filter_item_value"
|
|
77071
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77072
|
+
className: "checked"
|
|
77073
|
+
}, isFiltering ? text : '全部'), /*#__PURE__*/React__default['default'].createElement(IconFont$1, {
|
|
77074
|
+
type: isFiltering ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
77075
|
+
className: "addonAfter",
|
|
77076
|
+
onClick: handleClear
|
|
77077
|
+
})))));
|
|
77078
|
+
};
|
|
77079
|
+
|
|
77080
|
+
var FilterComp$1 = function FilterComp(props) {
|
|
77081
|
+
var type = props.type,
|
|
77082
|
+
resetProps = _objectWithoutProperties(props, _excluded3$4);
|
|
77083
|
+
|
|
77084
|
+
switch (type) {
|
|
77085
|
+
case 'select':
|
|
77086
|
+
return /*#__PURE__*/React__default['default'].createElement(SelectFilter$1, _objectSpread({}, resetProps));
|
|
77087
|
+
|
|
77088
|
+
case 'checkbox':
|
|
77089
|
+
return /*#__PURE__*/React__default['default'].createElement(CheckboxFilter$1, _objectSpread({}, resetProps));
|
|
77090
|
+
|
|
77091
|
+
case 'cascader':
|
|
77092
|
+
return /*#__PURE__*/React__default['default'].createElement(CascaderFilter$2, _objectSpread({}, resetProps));
|
|
77093
|
+
|
|
77094
|
+
default:
|
|
77095
|
+
return /*#__PURE__*/React__default['default'].createElement(SelectFilter$1, _objectSpread({}, resetProps));
|
|
77096
|
+
}
|
|
77097
|
+
};
|
|
77098
|
+
|
|
77099
|
+
var Index$i = function Index(props) {
|
|
77100
|
+
var className = props.className,
|
|
77101
|
+
dropdownClassName = props.dropdownClassName,
|
|
77102
|
+
title = props.title,
|
|
77103
|
+
type = props.type,
|
|
77104
|
+
options = props.options,
|
|
77105
|
+
children = props.children,
|
|
77106
|
+
style = props.style,
|
|
77107
|
+
comProps = props.props;
|
|
77108
|
+
|
|
77109
|
+
var _useState13 = React.useState(false),
|
|
77110
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
77111
|
+
visible = _useState14[0],
|
|
77112
|
+
setVisible = _useState14[1];
|
|
77113
|
+
|
|
77114
|
+
var _useState15 = React.useState(),
|
|
77115
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
77116
|
+
value = _useState16[0],
|
|
77117
|
+
setValue = _useState16[1];
|
|
77118
|
+
|
|
77119
|
+
var data = React.useMemo(function () {
|
|
77120
|
+
if (options) return options;
|
|
77121
|
+
return getArray(children).map(function (item) {
|
|
77122
|
+
return {
|
|
77123
|
+
label: item.props.children,
|
|
77124
|
+
value: item.props.value
|
|
77125
|
+
};
|
|
77126
|
+
});
|
|
77127
|
+
}, [options, children]); // 判断是否正在过滤,普通过滤 && 嵌套过滤
|
|
77128
|
+
|
|
77129
|
+
var isFiltering = React.useMemo(function () {
|
|
77130
|
+
return getIsHas$1(value);
|
|
77131
|
+
}, [value]); // 设置过滤的内容 filterType: 'single' 存在时 单个勾选时触发, 默认按钮触发
|
|
77132
|
+
|
|
77133
|
+
var setFilterValue = useEvent$2(function (val) {
|
|
77134
|
+
var _props$onChange;
|
|
77135
|
+
|
|
77136
|
+
var close = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
77137
|
+
setValue(val);
|
|
77138
|
+
props === null || props === void 0 ? void 0 : (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, val);
|
|
77139
|
+
close && setVisible(false);
|
|
77140
|
+
}); // 展示的内容
|
|
77141
|
+
|
|
77142
|
+
var checkedValue = React.useMemo(function () {
|
|
77143
|
+
if (!isFiltering) return '全部'; // select & checkbox
|
|
77144
|
+
|
|
77145
|
+
if (['select', 'checkbox'].includes(type)) {
|
|
77146
|
+
var findItem = data.find(function (v) {
|
|
77147
|
+
return Array.isArray(value) ? value.includes(v.value) : value === v.value;
|
|
77148
|
+
});
|
|
77149
|
+
|
|
77150
|
+
if (!findItem) {
|
|
77151
|
+
setFilterValue(type === 'checkbox' ? [] : '');
|
|
77152
|
+
return '全部';
|
|
77153
|
+
}
|
|
77154
|
+
|
|
77155
|
+
var filterLabel = findItem.label;
|
|
77156
|
+
|
|
77157
|
+
if (Array.isArray(value)) {
|
|
77158
|
+
if (value.length > 1) {
|
|
77159
|
+
return "".concat(filterLabel, "\u3001+").concat(value.length - 1, "...");
|
|
77160
|
+
}
|
|
77161
|
+
|
|
77162
|
+
return filterLabel;
|
|
77163
|
+
}
|
|
77164
|
+
|
|
77165
|
+
return filterLabel;
|
|
77166
|
+
}
|
|
77167
|
+
|
|
77168
|
+
return value;
|
|
77169
|
+
}, [comProps, data, isFiltering, setFilterValue, type, value]); // 下拉组件渲染
|
|
77170
|
+
|
|
77171
|
+
var FilterControl = function FilterControl() {
|
|
77172
|
+
var obj = {
|
|
77173
|
+
filters: data,
|
|
77174
|
+
getFilterValue: value,
|
|
77175
|
+
setFilterValue: setFilterValue
|
|
77176
|
+
};
|
|
77177
|
+
return render$2(function () {
|
|
77178
|
+
return /*#__PURE__*/React__default['default'].createElement(FilterComp$1, _objectSpread({
|
|
77179
|
+
type: type
|
|
77180
|
+
}, obj));
|
|
77181
|
+
}());
|
|
77182
|
+
}; // 清除筛选项
|
|
77183
|
+
|
|
77184
|
+
|
|
77185
|
+
var handleClear = function handleClear(e) {
|
|
77186
|
+
if (isFiltering) {
|
|
77187
|
+
e.stopPropagation();
|
|
77188
|
+
setFilterValue(type === 'checkbox' ? [] : '');
|
|
77189
|
+
}
|
|
77190
|
+
};
|
|
77191
|
+
|
|
77192
|
+
if (['cascader'].includes(type)) {
|
|
77193
|
+
return /*#__PURE__*/React__default['default'].createElement(FilterComp$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
77194
|
+
itemProps: comProps,
|
|
77195
|
+
filters: data,
|
|
77196
|
+
isFiltering: isFiltering,
|
|
77197
|
+
getFilterValue: value,
|
|
77198
|
+
setFilterValue: setFilterValue,
|
|
77199
|
+
handleClear: handleClear
|
|
77200
|
+
}));
|
|
77201
|
+
}
|
|
77202
|
+
|
|
77203
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77204
|
+
className: classnames('lm_select_dropdown_base', className),
|
|
77205
|
+
style: style
|
|
77206
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMDropdown, {
|
|
77207
|
+
trigger: ['click'],
|
|
77208
|
+
visible: visible,
|
|
77209
|
+
placement: "bottomLeft",
|
|
77210
|
+
overlay: FilterControl,
|
|
77211
|
+
onVisibleChange: setVisible,
|
|
77212
|
+
className: classnames(dropdownClassName)
|
|
77213
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77214
|
+
className: classnames('filter_item', {
|
|
77215
|
+
isfiltering: isFiltering || visible,
|
|
77216
|
+
active: !isFiltering && visible
|
|
77217
|
+
})
|
|
77218
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77219
|
+
className: "filter_item_label"
|
|
77220
|
+
}, title && "".concat(title, ":")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77221
|
+
className: "filter_item_value"
|
|
77222
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
77223
|
+
className: "checked"
|
|
77224
|
+
}, checkedValue), /*#__PURE__*/React__default['default'].createElement(IconFont$1, {
|
|
77225
|
+
type: isFiltering ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
77226
|
+
className: "addonAfter",
|
|
77227
|
+
onClick: handleClear
|
|
77228
|
+
})))));
|
|
77229
|
+
};
|
|
77230
|
+
|
|
77231
|
+
var _excluded$13 = ["item"];
|
|
77232
|
+
|
|
77233
|
+
var imgEmpty$2 = require('./icon_placeholder.png');
|
|
77234
|
+
|
|
77235
|
+
var FilterEmpty$2 = function FilterEmpty() {
|
|
77236
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77237
|
+
className: "filter_empty"
|
|
77238
|
+
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
77239
|
+
src: imgEmpty$2,
|
|
77240
|
+
alt: "empty",
|
|
77241
|
+
width: 81
|
|
77242
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77243
|
+
className: "filter_empty_text"
|
|
77244
|
+
}, "\u6682\u65E0\u6570\u636E"));
|
|
77245
|
+
}; // todo 抽取出来, 后续做统一处理, 项目中多处用到类似的功能
|
|
77246
|
+
|
|
77247
|
+
|
|
77248
|
+
var useCheckboxOptions = function useCheckboxOptions(options, controllable) {
|
|
77249
|
+
var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
77250
|
+
|
|
77251
|
+
// 将value和onChange改为受控,和父组件共享
|
|
77252
|
+
var _useControllableValue = useControllableValue(controllable),
|
|
77253
|
+
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
77254
|
+
checkedValues = _useControllableValue2[0],
|
|
77255
|
+
setCheckedValues = _useControllableValue2[1];
|
|
77256
|
+
|
|
77257
|
+
var renderOptions = React.useMemo(function () {
|
|
77258
|
+
return options.filter(function (v) {
|
|
77259
|
+
return onStringSearch(filter, v.label);
|
|
77260
|
+
});
|
|
77261
|
+
}, [options, filter]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
77262
|
+
|
|
77263
|
+
var checkAll = React.useMemo(function () {
|
|
77264
|
+
var isLen = checkedValues.length >= renderOptions.length;
|
|
77265
|
+
return isLen && renderOptions.every(function (_ref) {
|
|
77266
|
+
var value = _ref.value;
|
|
77267
|
+
return checkedValues.includes(value);
|
|
77268
|
+
});
|
|
77269
|
+
}, [checkedValues.length, renderOptions]); // 是否半选: 存在选中的数据 && 未全选
|
|
77270
|
+
|
|
77271
|
+
var indeterminate = React.useMemo(function () {
|
|
77272
|
+
return checkedValues.length && !checkAll;
|
|
77273
|
+
}, [checkedValues.length, checkAll]); // 全选事件
|
|
77274
|
+
|
|
77275
|
+
var onCheckAllChange = useEvent$2(function () {
|
|
77276
|
+
var nValue = checkAll ? checkedValues.filter(function (v) {
|
|
77277
|
+
return !renderOptions.some(function (_ref2) {
|
|
77278
|
+
var value = _ref2.value;
|
|
77279
|
+
return v === value;
|
|
77280
|
+
});
|
|
77281
|
+
}) : Array.from(new Set([].concat(_toConsumableArray(checkedValues), _toConsumableArray(renderOptions.map(function (v) {
|
|
77282
|
+
return v.value;
|
|
77283
|
+
})))));
|
|
77284
|
+
setCheckedValues(nValue);
|
|
77285
|
+
});
|
|
77286
|
+
var onChange = useEvent$2(function (e, item) {
|
|
77287
|
+
e.preventDefault();
|
|
77288
|
+
e.stopPropagation();
|
|
77289
|
+
var arr = checkedValues.includes(item.value) ? checkedValues.filter(function (v) {
|
|
77290
|
+
return v !== item.value;
|
|
77291
|
+
}) : [].concat(_toConsumableArray(checkedValues), [item.value]);
|
|
77292
|
+
setCheckedValues(arr || undefined);
|
|
77293
|
+
});
|
|
77294
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77295
|
+
className: "select_dropdown"
|
|
77296
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77297
|
+
className: "filter_header"
|
|
77298
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77299
|
+
className: "filter_header_operate"
|
|
77300
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
77301
|
+
indeterminate: indeterminate,
|
|
77302
|
+
onChange: onCheckAllChange,
|
|
77303
|
+
checked: checkAll,
|
|
77304
|
+
className: "filter_tip"
|
|
77305
|
+
}, "\u5168\u90E8"), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
77306
|
+
className: "filter_tip"
|
|
77307
|
+
}, "\u5DF2\u9009: ", checkedValues.length)))), /*#__PURE__*/React__default['default'].createElement(LMCheckBox.Group, {
|
|
77308
|
+
value: checkedValues,
|
|
77309
|
+
className: "filter_body"
|
|
77310
|
+
}, /*#__PURE__*/React__default['default'].createElement(VirList, {
|
|
77311
|
+
options: renderOptions,
|
|
77312
|
+
className: "filter_list"
|
|
77313
|
+
}, function (_ref3) {
|
|
77314
|
+
var item = _ref3.item,
|
|
77315
|
+
resetProps = _objectWithoutProperties(_ref3, _excluded$13);
|
|
77316
|
+
|
|
77317
|
+
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
77318
|
+
className: classnames('filter_item', {
|
|
77319
|
+
checked: checkedValues.includes(item.value)
|
|
77320
|
+
}),
|
|
77321
|
+
onClick: function onClick(e) {
|
|
77322
|
+
return onChange(e, item);
|
|
77323
|
+
}
|
|
77324
|
+
}), /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
77325
|
+
value: item.value,
|
|
77326
|
+
className: "filter_item-content"
|
|
77327
|
+
}, item.label));
|
|
77328
|
+
}), !renderOptions.length && /*#__PURE__*/React__default['default'].createElement(FilterEmpty$2, null)));
|
|
77329
|
+
};
|
|
77330
|
+
|
|
77331
|
+
var _excluded$14 = ["children", "className", "dropdownClassName", "type", "options", "showSearch"];
|
|
77332
|
+
var prefixCls$4 = 'lm_select'; // 不同类型Select, 不同的默认配置
|
|
77333
|
+
|
|
77334
|
+
var config = {
|
|
77335
|
+
select: {
|
|
77336
|
+
placeholder: '请选择',
|
|
77337
|
+
size: 'middle'
|
|
77338
|
+
},
|
|
77339
|
+
checkbox: {
|
|
77340
|
+
mode: 'multiple',
|
|
77341
|
+
placeholder: '请选择',
|
|
77342
|
+
size: 'middle'
|
|
77343
|
+
},
|
|
77344
|
+
cascader: {}
|
|
77345
|
+
}; // 基于 antd 的 Select 组件
|
|
77346
|
+
|
|
77347
|
+
var NormalSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
77348
|
+
var children = props.children,
|
|
77349
|
+
className = props.className,
|
|
77350
|
+
dropdownClassName = props.dropdownClassName,
|
|
77351
|
+
_props$type = props.type,
|
|
77352
|
+
type = _props$type === void 0 ? 'select' : _props$type,
|
|
77353
|
+
options = props.options,
|
|
77354
|
+
showSearch = props.showSearch,
|
|
77355
|
+
others = _objectWithoutProperties(props, _excluded$14);
|
|
77356
|
+
|
|
77357
|
+
var _React$useState = React__default['default'].useState([]),
|
|
77358
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
77359
|
+
checkedValues = _React$useState2[0],
|
|
77360
|
+
setCheckedValues = _React$useState2[1];
|
|
77361
|
+
|
|
77362
|
+
var _React$useState3 = React__default['default'].useState(''),
|
|
77363
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
77364
|
+
search = _React$useState4[0],
|
|
77365
|
+
setSearch = _React$useState4[1]; // 支持options和children渲染,优先级options > children, 计算时需要把children转换为options
|
|
77366
|
+
|
|
77367
|
+
|
|
77368
|
+
var renderOptions = React.useMemo(function () {
|
|
77369
|
+
return options || getOptions(children);
|
|
77370
|
+
}, [options, children]);
|
|
77371
|
+
var onChange = useEvent$2(function (v) {
|
|
77372
|
+
var _props$onChange;
|
|
77373
|
+
|
|
77374
|
+
setCheckedValues(v);
|
|
77375
|
+
props === null || props === void 0 ? void 0 : (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, v, renderOptions.filter(function (item) {
|
|
77376
|
+
return v.includes(item.value);
|
|
77377
|
+
}));
|
|
77378
|
+
});
|
|
77379
|
+
var isSearch = React.useMemo(function () {
|
|
77380
|
+
return showSearch || renderOptions.length > 8;
|
|
77381
|
+
}, [renderOptions.length, showSearch]); // 获取dropdown
|
|
77382
|
+
|
|
77383
|
+
var _dropdownRender = useCheckboxOptions(renderOptions, {
|
|
77384
|
+
value: checkedValues,
|
|
77385
|
+
onChange: onChange
|
|
77386
|
+
}, search);
|
|
77387
|
+
|
|
77388
|
+
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread(_objectSpread(_objectSpread({
|
|
77389
|
+
allowClear: true,
|
|
77390
|
+
showArrow: true,
|
|
77391
|
+
className: classnames(className, prefixCls$4),
|
|
77392
|
+
ref: ref,
|
|
77393
|
+
options: options,
|
|
77394
|
+
showSearch: isSearch,
|
|
77395
|
+
dropdownRender: function dropdownRender(o) {
|
|
77396
|
+
return type === 'checkbox' ? _dropdownRender : o;
|
|
77397
|
+
},
|
|
77398
|
+
value: checkedValues,
|
|
77399
|
+
searchValue: search,
|
|
77400
|
+
onSearch: isSearch && setSearch
|
|
77401
|
+
}, config[type]), others), {}, {
|
|
77402
|
+
onChange: onChange,
|
|
77403
|
+
dropdownClassName: classnames('lm_select_dropdown', dropdownClassName)
|
|
77404
|
+
}), children);
|
|
77405
|
+
});
|
|
77406
|
+
|
|
77407
|
+
var _excluded$15 = ["ghost"];
|
|
77408
|
+
var CLMSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
77409
|
+
var ghost = props.ghost,
|
|
77410
|
+
others = _objectWithoutProperties(props, _excluded$15);
|
|
77411
|
+
|
|
77412
|
+
if (ghost) {
|
|
77413
|
+
return /*#__PURE__*/React__default['default'].createElement(Index$i, _objectSpread({}, others));
|
|
77414
|
+
}
|
|
77415
|
+
|
|
77416
|
+
return /*#__PURE__*/React__default['default'].createElement(NormalSelect, _objectSpread({}, others));
|
|
77417
|
+
});
|
|
77418
|
+
var LMSelect = CLMSelect;
|
|
77419
|
+
LMSelect.GhostSelect = Index$i;
|
|
77420
|
+
LMSelect.Option = _Select__default['default'].Option;
|
|
77421
|
+
LMSelect.OptGroup = _Select__default['default'].OptGroup;
|
|
77422
|
+
|
|
76475
77423
|
var LoadingPage = function LoadingPage(_ref) {
|
|
76476
77424
|
var _ref$height = _ref.height,
|
|
76477
77425
|
height = _ref$height === void 0 ? '100%' : _ref$height;
|
|
@@ -76488,8 +77436,8 @@
|
|
|
76488
77436
|
}));
|
|
76489
77437
|
};
|
|
76490
77438
|
|
|
76491
|
-
var _excluded$
|
|
76492
|
-
var prefixCls$
|
|
77439
|
+
var _excluded$16 = ["wrapClassName", "size", "onOk", "onCancel", "okText", "cancelText"];
|
|
77440
|
+
var prefixCls$5 = 'lm_modal';
|
|
76493
77441
|
|
|
76494
77442
|
var CLMModal = function CLMModal(props) {
|
|
76495
77443
|
var wrapClassName = props.wrapClassName,
|
|
@@ -76501,10 +77449,10 @@
|
|
|
76501
77449
|
okText = _props$okText === void 0 ? '确定' : _props$okText,
|
|
76502
77450
|
_props$cancelText = props.cancelText,
|
|
76503
77451
|
cancelText = _props$cancelText === void 0 ? '取消' : _props$cancelText,
|
|
76504
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
77452
|
+
other = _objectWithoutProperties(props, _excluded$16);
|
|
76505
77453
|
|
|
76506
77454
|
return /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _objectSpread(_objectSpread({
|
|
76507
|
-
wrapClassName: classnames(wrapClassName, prefixCls$
|
|
77455
|
+
wrapClassName: classnames(wrapClassName, prefixCls$5),
|
|
76508
77456
|
width: size === 'default' ? 552 : 416,
|
|
76509
77457
|
footer: [/*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
76510
77458
|
onClick: onCancel,
|
|
@@ -76527,51 +77475,51 @@
|
|
|
76527
77475
|
|
|
76528
77476
|
LMModal.info = function (props) {
|
|
76529
77477
|
return _Modal__default['default'].info(_objectSpread(_objectSpread({}, props), {}, {
|
|
76530
|
-
wrapClassName: classnames(props.wrapClassName, prefixCls$
|
|
77478
|
+
wrapClassName: classnames(props.wrapClassName, prefixCls$5, 'lm_modal_info')
|
|
76531
77479
|
}));
|
|
76532
77480
|
};
|
|
76533
77481
|
|
|
76534
77482
|
LMModal.success = function (props) {
|
|
76535
77483
|
return _Modal__default['default'].success(_objectSpread(_objectSpread({}, props), {}, {
|
|
76536
|
-
wrapClassName: classnames(props.wrapClassName, prefixCls$
|
|
77484
|
+
wrapClassName: classnames(props.wrapClassName, prefixCls$5, 'lm_modal_info')
|
|
76537
77485
|
}));
|
|
76538
77486
|
};
|
|
76539
77487
|
|
|
76540
77488
|
LMModal.error = function (props) {
|
|
76541
77489
|
return _Modal__default['default'].error(_objectSpread(_objectSpread({}, props), {}, {
|
|
76542
|
-
wrapClassName: classnames(props.wrapClassName, prefixCls$
|
|
77490
|
+
wrapClassName: classnames(props.wrapClassName, prefixCls$5, 'lm_modal_info')
|
|
76543
77491
|
}));
|
|
76544
77492
|
};
|
|
76545
77493
|
|
|
76546
77494
|
LMModal.warning = function (props) {
|
|
76547
77495
|
return _Modal__default['default'].warning(_objectSpread(_objectSpread({}, props), {}, {
|
|
76548
|
-
wrapClassName: classnames(props.wrapClassName, prefixCls$
|
|
77496
|
+
wrapClassName: classnames(props.wrapClassName, prefixCls$5, 'lm_modal_info')
|
|
76549
77497
|
}));
|
|
76550
77498
|
};
|
|
76551
77499
|
|
|
76552
77500
|
LMModal.warn = function (props) {
|
|
76553
77501
|
return _Modal__default['default'].warn(_objectSpread(_objectSpread({}, props), {}, {
|
|
76554
|
-
wrapClassName: classnames(props.wrapClassName, prefixCls$
|
|
77502
|
+
wrapClassName: classnames(props.wrapClassName, prefixCls$5, 'lm_modal_info')
|
|
76555
77503
|
}));
|
|
76556
77504
|
};
|
|
76557
77505
|
|
|
76558
77506
|
LMModal.confirm = function (props) {
|
|
76559
77507
|
return _Modal__default['default'].confirm(_objectSpread(_objectSpread({}, props), {}, {
|
|
76560
|
-
wrapClassName: classnames(props.wrapClassName, prefixCls$
|
|
77508
|
+
wrapClassName: classnames(props.wrapClassName, prefixCls$5, 'lm_modal_info')
|
|
76561
77509
|
}));
|
|
76562
77510
|
};
|
|
76563
77511
|
|
|
76564
77512
|
LMModal.destroyAll = _Modal__default['default'].destroyAll;
|
|
76565
77513
|
LMModal.config = _Modal__default['default'].config;
|
|
76566
77514
|
|
|
76567
|
-
var _excluded$
|
|
77515
|
+
var _excluded$17 = ["visible", "wrapClassName", "onClose", "children"];
|
|
76568
77516
|
|
|
76569
|
-
var Index$
|
|
77517
|
+
var Index$j = function Index(props) {
|
|
76570
77518
|
var visible = props.visible,
|
|
76571
77519
|
wrapClassName = props.wrapClassName,
|
|
76572
77520
|
onClose = props.onClose,
|
|
76573
77521
|
children = props.children,
|
|
76574
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
77522
|
+
reset = _objectWithoutProperties(props, _excluded$17);
|
|
76575
77523
|
|
|
76576
77524
|
var handleClose = function handleClose() {
|
|
76577
77525
|
onClose();
|
|
@@ -76605,7 +77553,7 @@
|
|
|
76605
77553
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
76606
77554
|
};
|
|
76607
77555
|
|
|
76608
|
-
var _excluded$
|
|
77556
|
+
var _excluded$18 = ["type"];
|
|
76609
77557
|
/*
|
|
76610
77558
|
增加参数:
|
|
76611
77559
|
type: 指定图片类型
|
|
@@ -76613,7 +77561,7 @@
|
|
|
76613
77561
|
|
|
76614
77562
|
var Confirm = function Confirm(_ref) {
|
|
76615
77563
|
var type = _ref.type,
|
|
76616
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
77564
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$18);
|
|
76617
77565
|
|
|
76618
77566
|
var Icon = function Icon() {
|
|
76619
77567
|
switch (type) {
|
|
@@ -76670,13 +77618,13 @@
|
|
|
76670
77618
|
}, resetProps));
|
|
76671
77619
|
};
|
|
76672
77620
|
|
|
76673
|
-
var _excluded$
|
|
77621
|
+
var _excluded$19 = ["visible", "wrapClassName", "children"];
|
|
76674
77622
|
|
|
76675
|
-
var Index$
|
|
77623
|
+
var Index$k = function Index(props) {
|
|
76676
77624
|
var visible = props.visible,
|
|
76677
77625
|
wrapClassName = props.wrapClassName,
|
|
76678
77626
|
children = props.children,
|
|
76679
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
77627
|
+
reset = _objectWithoutProperties(props, _excluded$19);
|
|
76680
77628
|
|
|
76681
77629
|
var config = {
|
|
76682
77630
|
title: '编辑',
|
|
@@ -76694,7 +77642,7 @@
|
|
|
76694
77642
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
76695
77643
|
};
|
|
76696
77644
|
|
|
76697
|
-
var _excluded$
|
|
77645
|
+
var _excluded$1a = ["visible", "onClose", "onSure", "down", "desc", "downEvent", "isType", "renderFileType"];
|
|
76698
77646
|
var downLink = [{
|
|
76699
77647
|
id: '1',
|
|
76700
77648
|
label: '成衣',
|
|
@@ -76788,7 +77736,7 @@
|
|
|
76788
77736
|
}, "\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20")));
|
|
76789
77737
|
};
|
|
76790
77738
|
|
|
76791
|
-
var Index$
|
|
77739
|
+
var Index$l = function Index(_ref2) {
|
|
76792
77740
|
var visible = _ref2.visible,
|
|
76793
77741
|
onClose = _ref2.onClose,
|
|
76794
77742
|
onSure = _ref2.onSure,
|
|
@@ -76799,7 +77747,7 @@
|
|
|
76799
77747
|
downEvent = _ref2.downEvent,
|
|
76800
77748
|
isType = _ref2.isType,
|
|
76801
77749
|
renderFileType = _ref2.renderFileType,
|
|
76802
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
77750
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$1a);
|
|
76803
77751
|
|
|
76804
77752
|
var _useState = React.useState({
|
|
76805
77753
|
files: []
|
|
@@ -76866,7 +77814,7 @@
|
|
|
76866
77814
|
size: "middle"
|
|
76867
77815
|
}, "\u786E\u5B9A")]
|
|
76868
77816
|
};
|
|
76869
|
-
return /*#__PURE__*/React__default['default'].createElement(Index$
|
|
77817
|
+
return /*#__PURE__*/React__default['default'].createElement(Index$k, config, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76870
77818
|
className: "lm_file_body"
|
|
76871
77819
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76872
77820
|
className: "file_down file_item"
|
|
@@ -76948,21 +77896,21 @@
|
|
|
76948
77896
|
};
|
|
76949
77897
|
|
|
76950
77898
|
var Modal = {};
|
|
76951
|
-
Modal.AddMoal = Index$
|
|
76952
|
-
Modal.EditModal = Index$
|
|
76953
|
-
Modal.ExportModal = Index$
|
|
77899
|
+
Modal.AddMoal = Index$j;
|
|
77900
|
+
Modal.EditModal = Index$k;
|
|
77901
|
+
Modal.ExportModal = Index$l;
|
|
76954
77902
|
Modal.Confirm = Confirm;
|
|
76955
77903
|
|
|
76956
|
-
var _excluded$
|
|
76957
|
-
var prefixCls$
|
|
77904
|
+
var _excluded$1b = ["children", "className"];
|
|
77905
|
+
var prefixCls$6 = 'lm_pagination';
|
|
76958
77906
|
|
|
76959
77907
|
var LMPagination = function LMPagination(props) {
|
|
76960
77908
|
var children = props.children,
|
|
76961
77909
|
className = props.className,
|
|
76962
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
77910
|
+
others = _objectWithoutProperties(props, _excluded$1b);
|
|
76963
77911
|
|
|
76964
77912
|
return /*#__PURE__*/React__default['default'].createElement(_Pagination__default['default'], _objectSpread(_objectSpread({
|
|
76965
|
-
className: classnames(className, prefixCls$
|
|
77913
|
+
className: classnames(className, prefixCls$6),
|
|
76966
77914
|
size: "small"
|
|
76967
77915
|
}, others), {}, {
|
|
76968
77916
|
locale: {
|
|
@@ -76972,14 +77920,14 @@
|
|
|
76972
77920
|
}));
|
|
76973
77921
|
};
|
|
76974
77922
|
|
|
76975
|
-
var _excluded$
|
|
77923
|
+
var _excluded$1c = ["columns", "dataSource", "total", "onClick", "onDoubleClick", "rowSelection", "rowKey", "scroll", "defaultActive", "onChange"];
|
|
76976
77924
|
|
|
76977
77925
|
/*
|
|
76978
77926
|
接收参数:
|
|
76979
77927
|
total: 数据总数
|
|
76980
77928
|
rowSelection: 选择框类型 单选 多选 checkbox/radio
|
|
76981
77929
|
*/
|
|
76982
|
-
var Index$
|
|
77930
|
+
var Index$m = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
76983
77931
|
var columns = props.columns,
|
|
76984
77932
|
dataSource = props.dataSource,
|
|
76985
77933
|
total = props.total,
|
|
@@ -76992,7 +77940,7 @@
|
|
|
76992
77940
|
scroll = props.scroll,
|
|
76993
77941
|
defaultActive = props.defaultActive,
|
|
76994
77942
|
onChange = props.onChange,
|
|
76995
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
77943
|
+
resetProps = _objectWithoutProperties(props, _excluded$1c); // 行单击选中,增加高亮
|
|
76996
77944
|
|
|
76997
77945
|
|
|
76998
77946
|
var _useState = React.useState(defaultActive),
|
|
@@ -77059,7 +78007,7 @@
|
|
|
77059
78007
|
}));
|
|
77060
78008
|
});
|
|
77061
78009
|
|
|
77062
|
-
var _excluded$
|
|
78010
|
+
var _excluded$1d = ["columns", "data", "total", "rowSelection", "onChange", "getCheckboxRecords"];
|
|
77063
78011
|
|
|
77064
78012
|
var Demo = function Demo(props) {
|
|
77065
78013
|
var inputRef = React__default['default'].useRef();
|
|
@@ -77077,7 +78025,7 @@
|
|
|
77077
78025
|
rowSelection = _props$rowSelection === void 0 ? true : _props$rowSelection,
|
|
77078
78026
|
onChange = props.onChange,
|
|
77079
78027
|
getCheckboxRecords = props.getCheckboxRecords,
|
|
77080
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
78028
|
+
resetProps = _objectWithoutProperties(props, _excluded$1d);
|
|
77081
78029
|
|
|
77082
78030
|
var _useState3 = React.useState('base'),
|
|
77083
78031
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -77154,7 +78102,7 @@
|
|
|
77154
78102
|
onClick: onClick
|
|
77155
78103
|
}, "\u786E\u8BA4"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77156
78104
|
className: "lm_grid"
|
|
77157
|
-
}, /*#__PURE__*/React__default['default'].createElement(Index$
|
|
78105
|
+
}, /*#__PURE__*/React__default['default'].createElement(Index$m, _extends({
|
|
77158
78106
|
key: activeKey,
|
|
77159
78107
|
ref: tableRef,
|
|
77160
78108
|
columns: columns,
|
|
@@ -79565,9 +80513,9 @@
|
|
|
79565
80513
|
var Resizable = Resizable_1.default;
|
|
79566
80514
|
var ResizableBox = ResizableBox_1.default;
|
|
79567
80515
|
|
|
79568
|
-
var _excluded$
|
|
79569
|
-
_excluded2$
|
|
79570
|
-
_excluded3$
|
|
80516
|
+
var _excluded$1e = ["width", "onResize", "children"],
|
|
80517
|
+
_excluded2$i = ["children"],
|
|
80518
|
+
_excluded3$5 = ["children", "style"],
|
|
79571
80519
|
_excluded4$2 = ["children"],
|
|
79572
80520
|
_excluded5$1 = ["style", "children"],
|
|
79573
80521
|
_excluded6 = ["width"];
|
|
@@ -79681,7 +80629,7 @@
|
|
|
79681
80629
|
var width = props.width,
|
|
79682
80630
|
onResize = props.onResize,
|
|
79683
80631
|
children = props.children,
|
|
79684
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
80632
|
+
restProps = _objectWithoutProperties(props, _excluded$1e);
|
|
79685
80633
|
|
|
79686
80634
|
var _useState3 = React.useState(width || 0),
|
|
79687
80635
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -79733,7 +80681,7 @@
|
|
|
79733
80681
|
|
|
79734
80682
|
var VCell = function VCell(props) {
|
|
79735
80683
|
var children = props.children,
|
|
79736
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
80684
|
+
restProps = _objectWithoutProperties(props, _excluded2$i);
|
|
79737
80685
|
|
|
79738
80686
|
return /*#__PURE__*/React__default['default'].createElement("td", restProps, children);
|
|
79739
80687
|
};
|
|
@@ -79747,7 +80695,7 @@
|
|
|
79747
80695
|
|
|
79748
80696
|
var children = props.children,
|
|
79749
80697
|
style = props.style,
|
|
79750
|
-
restProps = _objectWithoutProperties(props, _excluded3$
|
|
80698
|
+
restProps = _objectWithoutProperties(props, _excluded3$5);
|
|
79751
80699
|
|
|
79752
80700
|
var trRef = React.useRef(null);
|
|
79753
80701
|
React.useEffect(function () {
|
|
@@ -80143,7 +81091,7 @@
|
|
|
80143
81091
|
editConfig: editConfig$1
|
|
80144
81092
|
};
|
|
80145
81093
|
|
|
80146
|
-
var _excluded$
|
|
81094
|
+
var _excluded$1f = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
|
|
80147
81095
|
var Summary$1 = ProviderWarp.Summary;
|
|
80148
81096
|
var ResetTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
80149
81097
|
var dataSource = props.dataSource,
|
|
@@ -80159,7 +81107,7 @@
|
|
|
80159
81107
|
_props$virtual = props.virtual,
|
|
80160
81108
|
virtual = _props$virtual === void 0 ? true : _props$virtual,
|
|
80161
81109
|
customCheck = props.customCheck,
|
|
80162
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
81110
|
+
resetProps = _objectWithoutProperties(props, _excluded$1f);
|
|
80163
81111
|
|
|
80164
81112
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
80165
81113
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -80443,7 +81391,7 @@
|
|
|
80443
81391
|
|
|
80444
81392
|
var Context$6 = /*#__PURE__*/React.createContext();
|
|
80445
81393
|
|
|
80446
|
-
var _excluded$
|
|
81394
|
+
var _excluded$1g = ["desc"];
|
|
80447
81395
|
var Paragraph$2 = _Typography__default['default'].Paragraph;
|
|
80448
81396
|
|
|
80449
81397
|
var Access$1 = function Access(props) {
|
|
@@ -80473,7 +81421,7 @@
|
|
|
80473
81421
|
|
|
80474
81422
|
var defaultConfig = React.useMemo(function () {
|
|
80475
81423
|
var desc = config.desc,
|
|
80476
|
-
resetConfig = _objectWithoutProperties(config, _excluded$
|
|
81424
|
+
resetConfig = _objectWithoutProperties(config, _excluded$1g);
|
|
80477
81425
|
|
|
80478
81426
|
return _objectSpread({
|
|
80479
81427
|
title: 'title',
|
|
@@ -80849,7 +81797,7 @@
|
|
|
80849
81797
|
}, config));
|
|
80850
81798
|
};
|
|
80851
81799
|
|
|
80852
|
-
var _excluded$
|
|
81800
|
+
var _excluded$1h = ["style", "defaultPage"];
|
|
80853
81801
|
var initialState$4 = {
|
|
80854
81802
|
// 选中的数据
|
|
80855
81803
|
checkList: [],
|
|
@@ -80890,7 +81838,7 @@
|
|
|
80890
81838
|
var ImgTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
80891
81839
|
var style = props.style,
|
|
80892
81840
|
defaultPage = props.defaultPage,
|
|
80893
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
81841
|
+
resetProps = _objectWithoutProperties(props, _excluded$1h);
|
|
80894
81842
|
|
|
80895
81843
|
var _useReducer = React.useReducer(reducer$5, initialState$4),
|
|
80896
81844
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
@@ -80933,12 +81881,12 @@
|
|
|
80933
81881
|
ResizeSize$2.ImgTable = ImgTable$1;
|
|
80934
81882
|
ResizeSize$2.Summary = Summary$1;
|
|
80935
81883
|
|
|
80936
|
-
var _excluded$
|
|
80937
|
-
_excluded2$
|
|
81884
|
+
var _excluded$1i = ["children"],
|
|
81885
|
+
_excluded2$j = ["children", "size", "buttonStyle", "direction", "className"];
|
|
80938
81886
|
|
|
80939
81887
|
var LMRadio = function LMRadio(props) {
|
|
80940
81888
|
var children = props.children,
|
|
80941
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
81889
|
+
restProps = _objectWithoutProperties(props, _excluded$1i);
|
|
80942
81890
|
|
|
80943
81891
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _extends({
|
|
80944
81892
|
className: "lm-radio"
|
|
@@ -80953,7 +81901,7 @@
|
|
|
80953
81901
|
_props$direction = props.direction,
|
|
80954
81902
|
direction = _props$direction === void 0 ? 'row' : _props$direction,
|
|
80955
81903
|
className = props.className,
|
|
80956
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
81904
|
+
restProps = _objectWithoutProperties(props, _excluded2$j);
|
|
80957
81905
|
|
|
80958
81906
|
console.log(children, 'rrr');
|
|
80959
81907
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Group, _extends({
|
|
@@ -80964,73 +81912,73 @@
|
|
|
80964
81912
|
|
|
80965
81913
|
LMRadio.Button = _Radio__default['default'].Button;
|
|
80966
81914
|
|
|
80967
|
-
var _excluded$
|
|
80968
|
-
var prefixCls$
|
|
80969
|
-
var CLMSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
81915
|
+
var _excluded$1j = ["children", "className", "size", "dropdownClassName"];
|
|
81916
|
+
var prefixCls$7 = 'lm_select';
|
|
81917
|
+
var CLMSelect$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
80970
81918
|
var children = props.children,
|
|
80971
81919
|
className = props.className,
|
|
80972
81920
|
_props$size = props.size,
|
|
80973
81921
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
80974
81922
|
dropdownClassName = props.dropdownClassName,
|
|
80975
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
81923
|
+
others = _objectWithoutProperties(props, _excluded$1j);
|
|
80976
81924
|
|
|
80977
81925
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread(_objectSpread({
|
|
80978
|
-
className: classnames(className, prefixCls$
|
|
81926
|
+
className: classnames(className, prefixCls$7),
|
|
80979
81927
|
size: size,
|
|
80980
81928
|
ref: ref
|
|
80981
81929
|
}, others), {}, {
|
|
80982
81930
|
dropdownClassName: classnames('lm_select_dropdown', dropdownClassName)
|
|
80983
81931
|
}), children);
|
|
80984
81932
|
});
|
|
80985
|
-
var LMSelect = CLMSelect;
|
|
80986
|
-
LMSelect.Option = _Select__default['default'].Option;
|
|
80987
|
-
LMSelect.OptGroup = _Select__default['default'].OptGroup;
|
|
81933
|
+
var LMSelect$1 = CLMSelect$1;
|
|
81934
|
+
LMSelect$1.Option = _Select__default['default'].Option;
|
|
81935
|
+
LMSelect$1.OptGroup = _Select__default['default'].OptGroup;
|
|
80988
81936
|
|
|
80989
|
-
var _excluded$
|
|
80990
|
-
var prefixCls$
|
|
81937
|
+
var _excluded$1k = ["className"];
|
|
81938
|
+
var prefixCls$8 = 'lm_tree';
|
|
80991
81939
|
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
80992
81940
|
var className = props.className,
|
|
80993
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
81941
|
+
rest = _objectWithoutProperties(props, _excluded$1k);
|
|
80994
81942
|
|
|
80995
81943
|
return /*#__PURE__*/React__default['default'].createElement(_Tree__default['default'], _objectSpread(_objectSpread({
|
|
80996
81944
|
ref: ref
|
|
80997
81945
|
}, rest), {}, {
|
|
80998
|
-
className: classnames(prefixCls$
|
|
81946
|
+
className: classnames(prefixCls$8, className)
|
|
80999
81947
|
}));
|
|
81000
81948
|
});
|
|
81001
81949
|
LmTree.TreeNode = _Tree__default['default'].TreeNode;
|
|
81002
81950
|
LmTree.DirectoryTree = _Tree__default['default'].DirectoryTree;
|
|
81003
81951
|
|
|
81004
|
-
var _excluded$
|
|
81952
|
+
var _excluded$1l = ["className", "color"];
|
|
81005
81953
|
var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime', 'theme'];
|
|
81006
|
-
var prefixCls$
|
|
81954
|
+
var prefixCls$9 = 'lm_tag';
|
|
81007
81955
|
var LmTag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
81008
81956
|
var className = props.className,
|
|
81009
81957
|
color = props.color,
|
|
81010
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
81958
|
+
rest = _objectWithoutProperties(props, _excluded$1l);
|
|
81011
81959
|
|
|
81012
81960
|
return /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], _objectSpread(_objectSpread({
|
|
81013
81961
|
ref: ref
|
|
81014
81962
|
}, rest), {}, {
|
|
81015
81963
|
color: color,
|
|
81016
|
-
className: classnames(prefixCls$
|
|
81964
|
+
className: classnames(prefixCls$9, {
|
|
81017
81965
|
lm_tag_noborder: !!props.noborder
|
|
81018
81966
|
}, className, PresetColorTypes.includes(color) && "lm_tag_main_color lm_tag_main_".concat(color))
|
|
81019
81967
|
}));
|
|
81020
81968
|
});
|
|
81021
81969
|
LmTag.CheckableTag = _Tag__default['default'].CheckableTag;
|
|
81022
81970
|
|
|
81023
|
-
var _excluded$
|
|
81024
|
-
var prefixCls$
|
|
81971
|
+
var _excluded$1m = ["className", "noBorder"];
|
|
81972
|
+
var prefixCls$a = 'lm_tabs';
|
|
81025
81973
|
|
|
81026
81974
|
var LMTabs = function LMTabs(props) {
|
|
81027
81975
|
var className = props.className,
|
|
81028
81976
|
_props$noBorder = props.noBorder,
|
|
81029
81977
|
noBorder = _props$noBorder === void 0 ? false : _props$noBorder,
|
|
81030
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
81978
|
+
others = _objectWithoutProperties(props, _excluded$1m);
|
|
81031
81979
|
|
|
81032
81980
|
return /*#__PURE__*/React__default['default'].createElement(_Tabs__default['default'], _objectSpread(_objectSpread({}, others), {}, {
|
|
81033
|
-
className: classnames(className, prefixCls$
|
|
81981
|
+
className: classnames(className, prefixCls$a, noBorder && 'lm_tabs_noborder')
|
|
81034
81982
|
}));
|
|
81035
81983
|
};
|
|
81036
81984
|
|
|
@@ -81611,7 +82559,7 @@
|
|
|
81611
82559
|
value: 'middle',
|
|
81612
82560
|
imgUrl: MiddleImg
|
|
81613
82561
|
}];
|
|
81614
|
-
var prefixCls$
|
|
82562
|
+
var prefixCls$b = 'lm_custom-table-option';
|
|
81615
82563
|
var LMCustomTableOption = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
81616
82564
|
var className = props.className;
|
|
81617
82565
|
var filterRef = React.useRef(null);
|
|
@@ -81680,7 +82628,7 @@
|
|
|
81680
82628
|
},
|
|
81681
82629
|
onClick: openSetting
|
|
81682
82630
|
}), /*#__PURE__*/React__default['default'].createElement(LMDrawer, {
|
|
81683
|
-
className: classnames(className, prefixCls$
|
|
82631
|
+
className: classnames(className, prefixCls$b),
|
|
81684
82632
|
title: "\u4E2A\u6027\u5316\u8BBE\u7F6E",
|
|
81685
82633
|
visible: visible,
|
|
81686
82634
|
extra: /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], null, /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
@@ -81763,6 +82711,39 @@
|
|
|
81763
82711
|
}, props));
|
|
81764
82712
|
};
|
|
81765
82713
|
|
|
82714
|
+
var _excluded$1n = ["children", "className"];
|
|
82715
|
+
var classNamePrefix = 'lm_form';
|
|
82716
|
+
|
|
82717
|
+
var LMForm = function LMForm(props, ref) {
|
|
82718
|
+
var children = props.children,
|
|
82719
|
+
className = props.className,
|
|
82720
|
+
restProps = _objectWithoutProperties(props, _excluded$1n);
|
|
82721
|
+
|
|
82722
|
+
return /*#__PURE__*/React__default['default'].createElement(_Form__default['default'], _objectSpread({
|
|
82723
|
+
ref: ref,
|
|
82724
|
+
className: classnames(classNamePrefix, className),
|
|
82725
|
+
colon: false
|
|
82726
|
+
}, restProps), children);
|
|
82727
|
+
};
|
|
82728
|
+
|
|
82729
|
+
var Reform = /*#__PURE__*/React__default['default'].forwardRef(LMForm);
|
|
82730
|
+
var Form$1 = Reform;
|
|
82731
|
+
Form$1.Item = _Form__default['default'].Item;
|
|
82732
|
+
Form$1.List = _List__default['default'];
|
|
82733
|
+
Form$1.ErrorList = _Form__default['default'].ErrorList;
|
|
82734
|
+
Form$1.useForm = Form$2.useForm;
|
|
82735
|
+
Form$1.useFormInstance = useFormInstance__default['default'];
|
|
82736
|
+
Form$1.useWatch = Form$2.useWatch;
|
|
82737
|
+
Form$1.Provider = context$2.FormProvider;
|
|
82738
|
+
|
|
82739
|
+
Form$1.create = function () {
|
|
82740
|
+
warning$3();
|
|
82741
|
+
};
|
|
82742
|
+
|
|
82743
|
+
function warning$3(arg0, arg1, arg2) {
|
|
82744
|
+
throw new Error('Function not implemented.');
|
|
82745
|
+
}
|
|
82746
|
+
|
|
81766
82747
|
Object.defineProperty(exports, 'Card', {
|
|
81767
82748
|
enumerable: true,
|
|
81768
82749
|
get: function () {
|
|
@@ -81825,6 +82806,7 @@
|
|
|
81825
82806
|
});
|
|
81826
82807
|
exports.Button = LMButton;
|
|
81827
82808
|
exports.ButtonTags = ButtonTags;
|
|
82809
|
+
exports.Cascader = LMCascader;
|
|
81828
82810
|
exports.Checkbox = LMCheckBox;
|
|
81829
82811
|
exports.CkFilter = Filter$1;
|
|
81830
82812
|
exports.CustomTableOption = LMCustomTableOption;
|
|
@@ -81834,12 +82816,14 @@
|
|
|
81834
82816
|
exports.EditTable = EditTable;
|
|
81835
82817
|
exports.EnlargeImg = EnlargeImg;
|
|
81836
82818
|
exports.Filter = Index$g;
|
|
82819
|
+
exports.Form = Form$1;
|
|
81837
82820
|
exports.Icon = Icon$2;
|
|
81838
82821
|
exports.IconFont = IconFont$1;
|
|
81839
82822
|
exports.IconSelect = IconSelect;
|
|
81840
82823
|
exports.Input = LmInput;
|
|
81841
82824
|
exports.InputNumber = CInputNumber;
|
|
81842
82825
|
exports.LeftTable = LeftSide;
|
|
82826
|
+
exports.LmSelect = LMSelect;
|
|
81843
82827
|
exports.LmTable = Table;
|
|
81844
82828
|
exports.LoadingPage = LoadingPage;
|
|
81845
82829
|
exports.Modal = LMModal;
|
|
@@ -81848,7 +82832,7 @@
|
|
|
81848
82832
|
exports.PopTable = Demo;
|
|
81849
82833
|
exports.ProTable = ResizeSize$2;
|
|
81850
82834
|
exports.Radio = LMRadio;
|
|
81851
|
-
exports.Select = LMSelect;
|
|
82835
|
+
exports.Select = LMSelect$1;
|
|
81852
82836
|
exports.TableRender = Index$h;
|
|
81853
82837
|
exports.Tabs = LMTabs;
|
|
81854
82838
|
exports.Tag = LmTag;
|