linkmore-design 1.0.71 → 1.0.72
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/ImageViewer/wrapeer/Container.d.ts +4 -0
- package/dist/ImageViewer/wrapeer/Wrapper.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1476 -282
- package/dist/index.umd.min.js +6 -6
- package/es/CardTable/table/TableContainer.js +6 -8
- package/es/ImageViewer/LmImageViewer.js +11 -1
- package/es/ImageViewer/style/index.css +3 -209
- package/es/ImageViewer/wrapeer/Container.d.ts +4 -0
- package/es/ImageViewer/wrapeer/Container.js +13 -0
- package/es/ImageViewer/wrapeer/Root.js +7 -2
- package/es/ImageViewer/wrapeer/Wrapper.d.ts +4 -0
- package/es/ImageViewer/wrapeer/Wrapper.js +14 -0
- package/es/LmFilter/wrapper/FilterRoot.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/lib/CardTable/table/TableContainer.js +6 -8
- package/lib/ImageViewer/LmImageViewer.js +11 -1
- package/lib/ImageViewer/style/index.css +3 -209
- package/lib/ImageViewer/wrapeer/Container.d.ts +4 -0
- package/lib/ImageViewer/wrapeer/Container.js +23 -0
- package/lib/ImageViewer/wrapeer/Root.js +10 -2
- package/lib/ImageViewer/wrapeer/Wrapper.d.ts +4 -0
- package/lib/ImageViewer/wrapeer/Wrapper.js +25 -0
- package/lib/LmFilter/wrapper/FilterRoot.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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/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/config-provider'), require('antd/es/locale-provider/LocaleReceiver'), 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/
|
|
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/config-provider', 'antd/es/locale-provider/LocaleReceiver', '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/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/
|
|
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.ReactDOM, 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, global._ConfigProvider, global.LocaleReceiver, 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, null, global._Avatar, global.jsxRuntime, global.zh_CN, null, global._Result, null, global._Tooltip, null, global.
|
|
5
|
-
}(this, (function (exports, style$1, _Button, React, style$2, _Card, style$3, _Cascader, style$4, _Checkbox, style$5, _DatePicker, ReactDOM, style$6, _Drawer, style$7, _Space, style$8, _Tag, style$9, _Form, style$a, _Input, style$b, _Dropdown, style$c, _Table, style$d, _Radio, style$e, _Select, style$f, _InputNumber, style$g, _Spin, style$h, _message, style$i, _Image, style$j, _Empty, _ConfigProvider, LocaleReceiver, style$k, _Modal, style$l, _Row, style$m, _Col, style$n, _Divider, style$o, _List, style$p, _Popover, style$q, _Tree, style$r, _TimePicker, style$s, style$t, _Avatar, jsxRuntime, zh_CN, style$
|
|
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/config-provider'), require('antd/es/locale-provider/LocaleReceiver'), 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/typography/style'), require('antd/es/typography'), require('antd/es/config-provider/style'), 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/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/slider/style'), require('antd/es/slider'), 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/notification/style'), require('antd/es/notification'), require('antd/es/pagination/style'), require('antd/es/pagination'), require('indexof'), require('antd/lib/form/hooks/useFormInstance'), require('antd/lib/form/context'), require('antd/lib/form/Form'), require('antd/es/config-provider/DisabledContext'), require('antd/es/config-provider/SizeContext'), require('antd/es/form/context'), require('antd/es/date-picker/locale/en_US'), require('antd/es/auto-complete/style'), require('antd/es/auto-complete'), require('antd'), require('antd/es/layout/style'), require('antd/es/layout'), require('antd/es/mentions/style'), require('antd/es/mentions'), require('antd/es/transfer/style'), require('antd/es/transfer'), require('antd/es/calendar/style'), require('antd/es/calendar'), require('antd/es/carousel/style'), require('antd/es/carousel')) :
|
|
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/config-provider', 'antd/es/locale-provider/LocaleReceiver', '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/typography/style', 'antd/es/typography', 'antd/es/config-provider/style', '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/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/slider/style', 'antd/es/slider', '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/notification/style', 'antd/es/notification', 'antd/es/pagination/style', 'antd/es/pagination', 'indexof', 'antd/lib/form/hooks/useFormInstance', 'antd/lib/form/context', 'antd/lib/form/Form', 'antd/es/config-provider/DisabledContext', 'antd/es/config-provider/SizeContext', 'antd/es/form/context', 'antd/es/date-picker/locale/en_US', 'antd/es/auto-complete/style', 'antd/es/auto-complete', 'antd', 'antd/es/layout/style', 'antd/es/layout', 'antd/es/mentions/style', 'antd/es/mentions', 'antd/es/transfer/style', 'antd/es/transfer', 'antd/es/calendar/style', 'antd/es/calendar', 'antd/es/carousel/style', 'antd/es/carousel'], 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.ReactDOM, 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, global._ConfigProvider, global.LocaleReceiver, 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._Typography, null, null, global._Avatar, global.jsxRuntime, global.zh_CN, null, global._Result, null, global._Tooltip, null, global._Popconfirm, global.useLazyKVMap, null, global._Badge, null, global._Progress, null, global._Rate, null, global._Slider, 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._notification, null, global._Pagination, global.require$$0$1, global.useFormInstance, global.context$2, global.Form$2, global.DisabledContext, global.SizeContext, global.context$3, global.enUS$1, null, global._AutoComplete, null, null, global._Layout, null, global._Mentions, null, global._Transfer, null, global._Calendar, null, global._Carousel));
|
|
5
|
+
}(this, (function (exports, style$1, _Button, React, style$2, _Card, style$3, _Cascader, style$4, _Checkbox, style$5, _DatePicker, ReactDOM, style$6, _Drawer, style$7, _Space, style$8, _Tag, style$9, _Form, style$a, _Input, style$b, _Dropdown, style$c, _Table, style$d, _Radio, style$e, _Select, style$f, _InputNumber, style$g, _Spin, style$h, _message, style$i, _Image, style$j, _Empty, _ConfigProvider, LocaleReceiver, style$k, _Modal, style$l, _Row, style$m, _Col, style$n, _Divider, style$o, _List, style$p, _Popover, style$q, _Tree, style$r, _TimePicker, style$s, _Typography, style$t, style$u, _Avatar, jsxRuntime, zh_CN, style$v, _Result, style$w, _Tooltip, style$x, _Popconfirm, useLazyKVMap, style$y, _Badge, style$z, _Progress, style$A, _Rate, style$B, _Slider, style$C, _Switch, style$D, _TreeSelect, style$E, _Tabs, style$F, _Grid, style$G, _Steps, style$H, _Upload, style$I, _Alert, style$J, _Menu, style$K, _notification, style$L, _Pagination, require$$0$1, useFormInstance, context$2, Form$2, DisabledContext, SizeContext, context$3, enUS$1, style$M, _AutoComplete, antd, style$N, _Layout, style$O, _Mentions, style$P, _Transfer, style$Q, _Calendar, style$R, _Carousel) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
var _Popover__default = /*#__PURE__*/_interopDefaultLegacy(_Popover);
|
|
59
59
|
var _Tree__default = /*#__PURE__*/_interopDefaultLegacy(_Tree);
|
|
60
60
|
var _TimePicker__default = /*#__PURE__*/_interopDefaultLegacy(_TimePicker);
|
|
61
|
+
var _Typography__default = /*#__PURE__*/_interopDefaultLegacy(_Typography);
|
|
61
62
|
var _Avatar__default = /*#__PURE__*/_interopDefaultLegacy(_Avatar);
|
|
62
63
|
var zh_CN__default = /*#__PURE__*/_interopDefaultLegacy(zh_CN);
|
|
63
64
|
var _Result__default = /*#__PURE__*/_interopDefaultLegacy(_Result);
|
|
64
65
|
var _Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(_Tooltip);
|
|
65
|
-
var _Typography__default = /*#__PURE__*/_interopDefaultLegacy(_Typography);
|
|
66
66
|
var _Popconfirm__default = /*#__PURE__*/_interopDefaultLegacy(_Popconfirm);
|
|
67
67
|
var useLazyKVMap__default = /*#__PURE__*/_interopDefaultLegacy(useLazyKVMap);
|
|
68
68
|
var _Badge__default = /*#__PURE__*/_interopDefaultLegacy(_Badge);
|
|
@@ -39956,7 +39956,7 @@
|
|
|
39956
39956
|
props: props
|
|
39957
39957
|
}),
|
|
39958
39958
|
CoreMethods = _useCoreOptions.CoreMethods,
|
|
39959
|
-
RefMethods = _useCoreOptions.RefMethods; //
|
|
39959
|
+
RefMethods = _useCoreOptions.RefMethods; // 组件实例
|
|
39960
39960
|
|
|
39961
39961
|
|
|
39962
39962
|
var instance = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, props), CoreMethods), RefMethods), {}, {
|
|
@@ -40044,6 +40044,1199 @@
|
|
|
40044
40044
|
|
|
40045
40045
|
LmFilter$2.FilterControl = FilterControl$1;
|
|
40046
40046
|
|
|
40047
|
+
var Paragraph = _Typography__default['default'].Paragraph; // 上图下文
|
|
40048
|
+
|
|
40049
|
+
var PictureTextColumn = function PictureTextColumn(_ref) {
|
|
40050
|
+
var index = _ref.index,
|
|
40051
|
+
cell = _ref.cell,
|
|
40052
|
+
table = _ref.table,
|
|
40053
|
+
checked = _ref.checked;
|
|
40054
|
+
var cellKey = table.cellKey,
|
|
40055
|
+
state = table.state,
|
|
40056
|
+
defaultConfig = table.defaultConfig,
|
|
40057
|
+
cellClick = table.cellClick,
|
|
40058
|
+
cellDoubleClick = table.cellDoubleClick,
|
|
40059
|
+
toggleCheckboxKey = table.toggleCheckboxKey;
|
|
40060
|
+
var trigger = state.checkboxConfig.trigger;
|
|
40061
|
+
var clickFlag = React.useRef(null);
|
|
40062
|
+
|
|
40063
|
+
var resetDefaultConfig = _objectSpread({
|
|
40064
|
+
checkbox: true,
|
|
40065
|
+
imgurl: 'imgurl',
|
|
40066
|
+
title: function title() {
|
|
40067
|
+
return '物料名称';
|
|
40068
|
+
},
|
|
40069
|
+
code: 'code',
|
|
40070
|
+
operate: null,
|
|
40071
|
+
extend: null
|
|
40072
|
+
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
40073
|
+
|
|
40074
|
+
|
|
40075
|
+
var onSelectChange = function onSelectChange(val, trigger) {
|
|
40076
|
+
toggleCheckboxKey(cell[cellKey], {
|
|
40077
|
+
cell: cell,
|
|
40078
|
+
cellIndex: index,
|
|
40079
|
+
trigger: trigger
|
|
40080
|
+
});
|
|
40081
|
+
}; // 单元格单击事件
|
|
40082
|
+
|
|
40083
|
+
|
|
40084
|
+
var onClick = function onClick() {
|
|
40085
|
+
// clearTimeout(clickFlag.current); // 清除第一个单击事件
|
|
40086
|
+
// clickFlag.current = setTimeout(() => {
|
|
40087
|
+
// 触发区域为单元格时仅触发复选事件
|
|
40088
|
+
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
40089
|
+
|
|
40090
|
+
if (trigger === 'cell') {
|
|
40091
|
+
onSelectChange === null || onSelectChange === void 0 ? void 0 : onSelectChange(!checked, trigger);
|
|
40092
|
+
} // }, 200)
|
|
40093
|
+
|
|
40094
|
+
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
40095
|
+
|
|
40096
|
+
|
|
40097
|
+
var onDoubleClick = function onDoubleClick() {
|
|
40098
|
+
// clearTimeout(clickFlag.current); // 清除第一个单击事件
|
|
40099
|
+
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
40100
|
+
};
|
|
40101
|
+
|
|
40102
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40103
|
+
className: "card_PTC"
|
|
40104
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40105
|
+
className: classnames('card_PTC_container', checked && 'checked'),
|
|
40106
|
+
onClick: onClick,
|
|
40107
|
+
onDoubleClick: onDoubleClick
|
|
40108
|
+
}, resetDefaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40109
|
+
className: "card_checkbox",
|
|
40110
|
+
onClick: function onClick(e) {
|
|
40111
|
+
return e.stopPropagation();
|
|
40112
|
+
}
|
|
40113
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
40114
|
+
checked: checked,
|
|
40115
|
+
onChange: function onChange(e) {
|
|
40116
|
+
return onSelectChange(e.target.checked);
|
|
40117
|
+
}
|
|
40118
|
+
})), resetDefaultConfig.operate ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40119
|
+
className: "PTC_operate"
|
|
40120
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMDropdown, {
|
|
40121
|
+
placement: "bottomRight",
|
|
40122
|
+
trigger: "click",
|
|
40123
|
+
overlay: function overlay() {
|
|
40124
|
+
return resetDefaultConfig.operate(cell, table);
|
|
40125
|
+
}
|
|
40126
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
40127
|
+
type: "lmweb-gengduotianchong"
|
|
40128
|
+
}))) : null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40129
|
+
className: "card_PTC_top"
|
|
40130
|
+
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/React__default['default'].createElement(_Image__default['default'], {
|
|
40131
|
+
src: cell[resetDefaultConfig.imgurl],
|
|
40132
|
+
fallback: ""
|
|
40133
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40134
|
+
className: "card_PTC_center"
|
|
40135
|
+
}, resetDefaultConfig.title ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40136
|
+
className: "card_title lm-font-middle-bold"
|
|
40137
|
+
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40138
|
+
className: "card_copy_text"
|
|
40139
|
+
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/React__default['default'].createElement(Paragraph, {
|
|
40140
|
+
copyable: {
|
|
40141
|
+
tooltips: false,
|
|
40142
|
+
onCopy: function onCopy() {
|
|
40143
|
+
return api$1.success('复制成功!', 1.5);
|
|
40144
|
+
}
|
|
40145
|
+
},
|
|
40146
|
+
ellipsis: true
|
|
40147
|
+
}, cell[resetDefaultConfig.code])) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40148
|
+
className: "card_PTC_bottom"
|
|
40149
|
+
}, resetDefaultConfig.extend ? resetDefaultConfig.extend(cell, table) : null)));
|
|
40150
|
+
};
|
|
40151
|
+
|
|
40152
|
+
var Paragraph$1 = _Typography__default['default'].Paragraph; // 左图右文
|
|
40153
|
+
|
|
40154
|
+
var PictureTextRow = function PictureTextRow(_ref) {
|
|
40155
|
+
var index = _ref.index,
|
|
40156
|
+
cell = _ref.cell,
|
|
40157
|
+
table = _ref.table,
|
|
40158
|
+
checked = _ref.checked;
|
|
40159
|
+
var cellKey = table.cellKey,
|
|
40160
|
+
state = table.state,
|
|
40161
|
+
defaultConfig = table.defaultConfig,
|
|
40162
|
+
cellClick = table.cellClick,
|
|
40163
|
+
cellDoubleClick = table.cellDoubleClick,
|
|
40164
|
+
toggleCheckboxKey = table.toggleCheckboxKey,
|
|
40165
|
+
checkboxChange = table.checkboxChange,
|
|
40166
|
+
ellipsis = table.ellipsis;
|
|
40167
|
+
var trigger = state.checkboxConfig.trigger;
|
|
40168
|
+
|
|
40169
|
+
var resetDefaultConfig = _objectSpread({
|
|
40170
|
+
checkbox: true,
|
|
40171
|
+
imgurl: 'imgurl',
|
|
40172
|
+
title: function title() {
|
|
40173
|
+
return '物料名称';
|
|
40174
|
+
},
|
|
40175
|
+
code: 'code',
|
|
40176
|
+
operate: null,
|
|
40177
|
+
extend: null,
|
|
40178
|
+
columns: null
|
|
40179
|
+
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
40180
|
+
|
|
40181
|
+
|
|
40182
|
+
var onSelctChange = function onSelctChange(val) {
|
|
40183
|
+
toggleCheckboxKey(cell[cellKey]);
|
|
40184
|
+
checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange(val, cell, index);
|
|
40185
|
+
}; // 单元格单击事件
|
|
40186
|
+
|
|
40187
|
+
|
|
40188
|
+
var onClick = function onClick() {
|
|
40189
|
+
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
40190
|
+
|
|
40191
|
+
if (trigger === 'cell') {
|
|
40192
|
+
onSelctChange === null || onSelctChange === void 0 ? void 0 : onSelctChange(!checked);
|
|
40193
|
+
}
|
|
40194
|
+
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
40195
|
+
|
|
40196
|
+
|
|
40197
|
+
var onDoubleClick = function onDoubleClick() {
|
|
40198
|
+
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
40199
|
+
};
|
|
40200
|
+
|
|
40201
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40202
|
+
className: "card_PTR"
|
|
40203
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40204
|
+
className: classnames('card_PTR_container', checked && 'checked')
|
|
40205
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40206
|
+
className: "card_PTR_body",
|
|
40207
|
+
onClick: onClick,
|
|
40208
|
+
onDoubleClick: onDoubleClick
|
|
40209
|
+
}, resetDefaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40210
|
+
className: "card_checkbox",
|
|
40211
|
+
onClick: function onClick(e) {
|
|
40212
|
+
return e.stopPropagation();
|
|
40213
|
+
}
|
|
40214
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
40215
|
+
checked: checked,
|
|
40216
|
+
onChange: function onChange(e) {
|
|
40217
|
+
return onSelctChange(e.target.checked);
|
|
40218
|
+
}
|
|
40219
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40220
|
+
className: "card_PTR_left"
|
|
40221
|
+
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/React__default['default'].createElement(_Image__default['default'], {
|
|
40222
|
+
src: cell[resetDefaultConfig.imgurl],
|
|
40223
|
+
fallback: ""
|
|
40224
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40225
|
+
className: "card_PTR_right"
|
|
40226
|
+
}, resetDefaultConfig.title ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40227
|
+
className: "card_title lm-font-middle-bold"
|
|
40228
|
+
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40229
|
+
className: "card_copy_text"
|
|
40230
|
+
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/React__default['default'].createElement(Paragraph$1, {
|
|
40231
|
+
copyable: {
|
|
40232
|
+
tooltips: false,
|
|
40233
|
+
onCopy: function onCopy() {
|
|
40234
|
+
return _message__default['default'].success('复制成功!', 1.5);
|
|
40235
|
+
}
|
|
40236
|
+
},
|
|
40237
|
+
ellipsis: true
|
|
40238
|
+
}, cell[resetDefaultConfig.code])) : null, resetDefaultConfig.columns ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40239
|
+
className: "PTR_column"
|
|
40240
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40241
|
+
className: "PTR_column_box"
|
|
40242
|
+
}, resetDefaultConfig.columns.map(function (v, idx) {
|
|
40243
|
+
var isVisible = v.show || typeof v.show !== 'boolean';
|
|
40244
|
+
return isVisible ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40245
|
+
key: (v === null || v === void 0 ? void 0 : v.dataIndex) || idx
|
|
40246
|
+
}, v.title, "\uFF1A", /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40247
|
+
className: classnames({
|
|
40248
|
+
ellipsis: ellipsis
|
|
40249
|
+
})
|
|
40250
|
+
}, typeof v.render === 'function' ? v.render(cell[v.dataIndex], cell, table) : cell[v.dataIndex])) : null;
|
|
40251
|
+
}))) : null, resetDefaultConfig.extend ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40252
|
+
className: "PTR_extend"
|
|
40253
|
+
}, resetDefaultConfig.extend(cell, table)) : null, resetDefaultConfig.desc ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40254
|
+
className: "PTR_desc"
|
|
40255
|
+
}, typeof resetDefaultConfig.desc === 'function' ? resetDefaultConfig.desc(cell, table) : cell[resetDefaultConfig.desc]) : null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40256
|
+
className: "card_PTR_footer"
|
|
40257
|
+
}, resetDefaultConfig.operate ? resetDefaultConfig.operate(cell, table) : null)));
|
|
40258
|
+
};
|
|
40259
|
+
|
|
40260
|
+
var Paragraph$2 = _Typography__default['default'].Paragraph; // 左图右文
|
|
40261
|
+
|
|
40262
|
+
var PictureTextRowOperate = function PictureTextRowOperate(_ref) {
|
|
40263
|
+
var index = _ref.index,
|
|
40264
|
+
cell = _ref.cell,
|
|
40265
|
+
table = _ref.table,
|
|
40266
|
+
checked = _ref.checked;
|
|
40267
|
+
var cellKey = table.cellKey,
|
|
40268
|
+
state = table.state,
|
|
40269
|
+
defaultConfig = table.defaultConfig,
|
|
40270
|
+
cellClick = table.cellClick,
|
|
40271
|
+
cellDoubleClick = table.cellDoubleClick,
|
|
40272
|
+
toggleCheckboxKey = table.toggleCheckboxKey,
|
|
40273
|
+
checkboxChange = table.checkboxChange;
|
|
40274
|
+
var trigger = state.checkboxConfig.trigger;
|
|
40275
|
+
|
|
40276
|
+
var resetDefaultConfig = _objectSpread({
|
|
40277
|
+
checkbox: true,
|
|
40278
|
+
imgurl: 'imgurl',
|
|
40279
|
+
title: function title() {
|
|
40280
|
+
return '物料名称';
|
|
40281
|
+
},
|
|
40282
|
+
code: 'code',
|
|
40283
|
+
desc: 'desc',
|
|
40284
|
+
operate: null,
|
|
40285
|
+
extend: null,
|
|
40286
|
+
columns: null
|
|
40287
|
+
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
40288
|
+
|
|
40289
|
+
|
|
40290
|
+
var onSelctChange = function onSelctChange(val) {
|
|
40291
|
+
toggleCheckboxKey(cell[cellKey]);
|
|
40292
|
+
checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange(val, cell, index);
|
|
40293
|
+
}; // 单元格单击事件
|
|
40294
|
+
|
|
40295
|
+
|
|
40296
|
+
var onClick = function onClick() {
|
|
40297
|
+
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
40298
|
+
|
|
40299
|
+
if (trigger === 'cell') {
|
|
40300
|
+
onSelctChange === null || onSelctChange === void 0 ? void 0 : onSelctChange(!checked);
|
|
40301
|
+
}
|
|
40302
|
+
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
40303
|
+
|
|
40304
|
+
|
|
40305
|
+
var onDoubleClick = function onDoubleClick() {
|
|
40306
|
+
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
40307
|
+
};
|
|
40308
|
+
|
|
40309
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40310
|
+
className: "card_PTRO"
|
|
40311
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40312
|
+
className: classnames('card_PTRO_container', checked && 'checked')
|
|
40313
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40314
|
+
className: "card_PTRO_body",
|
|
40315
|
+
onClick: onClick,
|
|
40316
|
+
onDoubleClick: onDoubleClick
|
|
40317
|
+
}, resetDefaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40318
|
+
className: "card_checkbox",
|
|
40319
|
+
onClick: function onClick(e) {
|
|
40320
|
+
return e.stopPropagation();
|
|
40321
|
+
}
|
|
40322
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
40323
|
+
checked: checked,
|
|
40324
|
+
onChange: function onChange(e) {
|
|
40325
|
+
return onSelctChange(e.target.checked);
|
|
40326
|
+
}
|
|
40327
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40328
|
+
className: "card_PTRO_left"
|
|
40329
|
+
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/React__default['default'].createElement(_Image__default['default'], {
|
|
40330
|
+
src: cell[resetDefaultConfig.imgurl],
|
|
40331
|
+
fallback: ""
|
|
40332
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40333
|
+
className: "card_PTRO_right"
|
|
40334
|
+
}, resetDefaultConfig.title ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40335
|
+
className: "card_title lm-font-middle-bold"
|
|
40336
|
+
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40337
|
+
className: "card_copy_text"
|
|
40338
|
+
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/React__default['default'].createElement(Paragraph$2, {
|
|
40339
|
+
copyable: {
|
|
40340
|
+
tooltips: false,
|
|
40341
|
+
onCopy: function onCopy() {
|
|
40342
|
+
return _message__default['default'].success('复制成功!', 1.5);
|
|
40343
|
+
}
|
|
40344
|
+
},
|
|
40345
|
+
ellipsis: true
|
|
40346
|
+
}, cell[resetDefaultConfig.code])) : null, resetDefaultConfig.columns ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40347
|
+
className: "PTRO_column"
|
|
40348
|
+
}, resetDefaultConfig.columns.map(function (v, idx) {
|
|
40349
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
40350
|
+
key: (v === null || v === void 0 ? void 0 : v.dataIndex) || idx
|
|
40351
|
+
}, v.title, ": ", cell[v.dataIndex]);
|
|
40352
|
+
})) : null, resetDefaultConfig.extend ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40353
|
+
className: "PTRO_extend"
|
|
40354
|
+
}, resetDefaultConfig.extend(cell, table)) : null, resetDefaultConfig.desc ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40355
|
+
className: "PTRO_desc"
|
|
40356
|
+
}, typeof resetDefaultConfig.desc === 'function' ? resetDefaultConfig.desc(cell, table) : cell[resetDefaultConfig.desc]) : null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40357
|
+
className: "card_PTRO_footer"
|
|
40358
|
+
}, resetDefaultConfig.operate ? resetDefaultConfig.operate(cell, table) : null)));
|
|
40359
|
+
};
|
|
40360
|
+
|
|
40361
|
+
var LmCardTableBodyCell = function LmCardTableBodyCell(_ref) {
|
|
40362
|
+
var index = _ref.index,
|
|
40363
|
+
cell = _ref.cell,
|
|
40364
|
+
table = _ref.table;
|
|
40365
|
+
var state = table.state,
|
|
40366
|
+
type = table.type,
|
|
40367
|
+
components = table.components,
|
|
40368
|
+
cellKey = table.cellKey;
|
|
40369
|
+
var checkKeys = state.checkboxConfig.checkKeys,
|
|
40370
|
+
radioConfig = state.radioConfig; // 渲染的单元格
|
|
40371
|
+
|
|
40372
|
+
var RenderCell = React.useMemo(function () {
|
|
40373
|
+
var types = {
|
|
40374
|
+
'PTC': PictureTextColumn,
|
|
40375
|
+
'PTR': PictureTextRow,
|
|
40376
|
+
'PTRO': PictureTextRowOperate,
|
|
40377
|
+
'TG': PictureTextColumn,
|
|
40378
|
+
'TW': PictureTextColumn
|
|
40379
|
+
};
|
|
40380
|
+
return components.Cell || types[type] || PictureTextColumn;
|
|
40381
|
+
}, [components.Cell, type]); // 是否选中
|
|
40382
|
+
|
|
40383
|
+
var isCheckboxChecked = React.useMemo(function () {
|
|
40384
|
+
return checkKeys.some(function (v) {
|
|
40385
|
+
return v === cell[cellKey];
|
|
40386
|
+
});
|
|
40387
|
+
}, [checkKeys, cellKey]);
|
|
40388
|
+
var isRadioChecked = React.useMemo(function () {
|
|
40389
|
+
return radioConfig.checkKey === cell[cellKey];
|
|
40390
|
+
}, [cellKey, radioConfig.checkKey]);
|
|
40391
|
+
var stateConfig = {
|
|
40392
|
+
checked: isCheckboxChecked
|
|
40393
|
+
};
|
|
40394
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40395
|
+
className: classnames('lm_card_table_body_cell', {
|
|
40396
|
+
'cell_checked': isCheckboxChecked || isRadioChecked
|
|
40397
|
+
})
|
|
40398
|
+
}, /*#__PURE__*/React__default['default'].createElement(RenderCell, _extends({
|
|
40399
|
+
index: index,
|
|
40400
|
+
cell: cell,
|
|
40401
|
+
table: table
|
|
40402
|
+
}, stateConfig)));
|
|
40403
|
+
};
|
|
40404
|
+
|
|
40405
|
+
var LmCardTableBodyRow = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40406
|
+
var row = _ref.row,
|
|
40407
|
+
rowIndex = _ref.rowIndex,
|
|
40408
|
+
table = _ref.table;
|
|
40409
|
+
var state = table.state,
|
|
40410
|
+
rowConfig = table.rowConfig,
|
|
40411
|
+
height = table.cellConfig.height,
|
|
40412
|
+
cellKey = table.cellKey; // 检测是否最后末行
|
|
40413
|
+
|
|
40414
|
+
var isLastRow = React.useMemo(function () {
|
|
40415
|
+
return state.rows.length === rowIndex + 1;
|
|
40416
|
+
}, [state.rows, rowIndex]);
|
|
40417
|
+
var style = {
|
|
40418
|
+
height: isLastRow ? height : height + rowConfig.gap,
|
|
40419
|
+
width: '100%',
|
|
40420
|
+
minWidth: '100%',
|
|
40421
|
+
gridGap: rowConfig.gap,
|
|
40422
|
+
gridTemplateColumns: "repeat(".concat(state.columnCount, ", 1fr)"),
|
|
40423
|
+
paddingBottom: isLastRow ? 0 : rowConfig.gap
|
|
40424
|
+
};
|
|
40425
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40426
|
+
className: classnames('lm_card_table_body_row', isLastRow && 'last_row'),
|
|
40427
|
+
style: style
|
|
40428
|
+
}, row.map(function (cell, index) {
|
|
40429
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyCell, {
|
|
40430
|
+
key: (cell === null || cell === void 0 ? void 0 : cell[cellKey]) || index,
|
|
40431
|
+
index: index,
|
|
40432
|
+
cell: cell,
|
|
40433
|
+
table: table
|
|
40434
|
+
});
|
|
40435
|
+
}));
|
|
40436
|
+
});
|
|
40437
|
+
var LmCardTableBodyRowVirtual = /*#__PURE__*/React__default['default'].memo(function (_ref2) {
|
|
40438
|
+
var row = _ref2.row,
|
|
40439
|
+
start = _ref2.start,
|
|
40440
|
+
rowIndex = _ref2.rowIndex,
|
|
40441
|
+
table = _ref2.table;
|
|
40442
|
+
var state = table.state,
|
|
40443
|
+
rowConfig = table.rowConfig,
|
|
40444
|
+
height = table.cellConfig.height,
|
|
40445
|
+
cellKey = table.cellKey; // 检测是否最后末行
|
|
40446
|
+
|
|
40447
|
+
var isLastRow = React.useMemo(function () {
|
|
40448
|
+
return state.rows.length === rowIndex + 1;
|
|
40449
|
+
});
|
|
40450
|
+
var style = {
|
|
40451
|
+
position: "absolute",
|
|
40452
|
+
top: 0,
|
|
40453
|
+
left: 0,
|
|
40454
|
+
height: isLastRow ? height : height + rowConfig.gap,
|
|
40455
|
+
width: '100%',
|
|
40456
|
+
minWidth: '100%',
|
|
40457
|
+
transform: "translateY(".concat(start, "px)"),
|
|
40458
|
+
gridGap: rowConfig.gap,
|
|
40459
|
+
gridTemplateColumns: "repeat(".concat(state.columnCount, ", 1fr)"),
|
|
40460
|
+
paddingBottom: isLastRow ? 0 : rowConfig.gap
|
|
40461
|
+
};
|
|
40462
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40463
|
+
className: classnames('lm_card_table_body_row', isLastRow && 'last_row'),
|
|
40464
|
+
style: style
|
|
40465
|
+
}, row.map(function (cell, index) {
|
|
40466
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyCell, {
|
|
40467
|
+
key: (cell === null || cell === void 0 ? void 0 : cell[cellKey]) || index,
|
|
40468
|
+
index: index,
|
|
40469
|
+
cell: cell,
|
|
40470
|
+
table: table
|
|
40471
|
+
});
|
|
40472
|
+
}));
|
|
40473
|
+
});
|
|
40474
|
+
|
|
40475
|
+
var TableBody = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40476
|
+
var table = _ref.table,
|
|
40477
|
+
tableContainerRef = _ref.tableContainerRef;
|
|
40478
|
+
var _table$state = table.state,
|
|
40479
|
+
rows = _table$state.rows,
|
|
40480
|
+
checkboxConfig = _table$state.checkboxConfig,
|
|
40481
|
+
rowConfig = table.rowConfig,
|
|
40482
|
+
height = table.cellConfig.height,
|
|
40483
|
+
virtual = table.virtual; // 是否存在选中
|
|
40484
|
+
|
|
40485
|
+
var hasChecked = React.useMemo(function () {
|
|
40486
|
+
return checkboxConfig.checkKeys.length;
|
|
40487
|
+
}, [checkboxConfig.checkKeys.length]);
|
|
40488
|
+
|
|
40489
|
+
var _useVirtual = useVirtual({
|
|
40490
|
+
size: rows.length,
|
|
40491
|
+
parentRef: tableContainerRef,
|
|
40492
|
+
estimateSize: React__default['default'].useCallback(function () {
|
|
40493
|
+
return height + rowConfig.gap;
|
|
40494
|
+
}, [height]),
|
|
40495
|
+
overscan: 2
|
|
40496
|
+
}),
|
|
40497
|
+
totalSize = _useVirtual.totalSize,
|
|
40498
|
+
virtualItems = _useVirtual.virtualItems;
|
|
40499
|
+
|
|
40500
|
+
var virScrollStyles = React.useMemo(function () {
|
|
40501
|
+
return {
|
|
40502
|
+
height: "".concat(totalSize - rowConfig.gap, "px"),
|
|
40503
|
+
width: '100%',
|
|
40504
|
+
position: "relative"
|
|
40505
|
+
};
|
|
40506
|
+
}, [totalSize]);
|
|
40507
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40508
|
+
className: classnames('lm_card_table_body', hasChecked && 'hasChecked')
|
|
40509
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40510
|
+
className: "lm_card_table_body_scroll",
|
|
40511
|
+
style: virScrollStyles
|
|
40512
|
+
}, virtual && rows.length > 10 ? virtualItems.map(function (_ref2) {
|
|
40513
|
+
var index = _ref2.index,
|
|
40514
|
+
start = _ref2.start;
|
|
40515
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyRowVirtual, {
|
|
40516
|
+
key: index,
|
|
40517
|
+
rowIndex: index,
|
|
40518
|
+
start: start,
|
|
40519
|
+
row: rows[index],
|
|
40520
|
+
table: table
|
|
40521
|
+
});
|
|
40522
|
+
}) : rows.map(function (row, index) {
|
|
40523
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyRow, {
|
|
40524
|
+
key: index,
|
|
40525
|
+
rowIndex: index,
|
|
40526
|
+
row: row,
|
|
40527
|
+
table: table
|
|
40528
|
+
});
|
|
40529
|
+
})));
|
|
40530
|
+
});
|
|
40531
|
+
|
|
40532
|
+
// 卡片表格
|
|
40533
|
+
var LmCardTable = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40534
|
+
var table = _ref.table,
|
|
40535
|
+
tableContainerRef = _ref.tableContainerRef;
|
|
40536
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40537
|
+
className: "lm_card_table"
|
|
40538
|
+
}, /*#__PURE__*/React__default['default'].createElement(TableBody, {
|
|
40539
|
+
table: table,
|
|
40540
|
+
tableContainerRef: tableContainerRef
|
|
40541
|
+
}));
|
|
40542
|
+
});
|
|
40543
|
+
|
|
40544
|
+
// 列响应数量处理: (盒子总高宽, 列宽度)
|
|
40545
|
+
var getResizeColumnCount = function getResizeColumnCount() {
|
|
40546
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
40547
|
+
totalWidth = _ref.width;
|
|
40548
|
+
|
|
40549
|
+
var colWidth = arguments.length > 1 ? arguments[1] : undefined;
|
|
40550
|
+
|
|
40551
|
+
if (totalWidth > 1790) {
|
|
40552
|
+
return colWidth > 308 ? 4 : colWidth > 228 ? 5 : colWidth > 200 ? 6 : 7;
|
|
40553
|
+
}
|
|
40554
|
+
|
|
40555
|
+
if (totalWidth > 1390) {
|
|
40556
|
+
return colWidth > 308 ? 3 : colWidth > 228 ? 4 : colWidth > 200 ? 5 : 6;
|
|
40557
|
+
}
|
|
40558
|
+
|
|
40559
|
+
if (totalWidth > 990) {
|
|
40560
|
+
return colWidth > 308 ? 2 : colWidth > 228 ? 3 : colWidth > 200 ? 4 : 5;
|
|
40561
|
+
} // 小于990时
|
|
40562
|
+
|
|
40563
|
+
|
|
40564
|
+
return colWidth > 308 ? 2 : colWidth > 228 ? 3 : colWidth > 200 ? 4 : 5;
|
|
40565
|
+
};
|
|
40566
|
+
|
|
40567
|
+
// 主体区域: 对表格进行包裹
|
|
40568
|
+
var useIsomorphicLayoutEffect$3 = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
40569
|
+
var LmCardTableContainer = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40570
|
+
var table = _ref.table;
|
|
40571
|
+
var dataSource = table.dataSource,
|
|
40572
|
+
dispatch = table.dispatch,
|
|
40573
|
+
cellConfig = table.cellConfig,
|
|
40574
|
+
type = table.type;
|
|
40575
|
+
var tableContainerRef = React.useRef(null); // 行数据计算
|
|
40576
|
+
|
|
40577
|
+
var getRows = React.useCallback(function (columnCount) {
|
|
40578
|
+
var arr = [];
|
|
40579
|
+
var len = Math.ceil(dataSource.length / columnCount);
|
|
40580
|
+
|
|
40581
|
+
for (var i = 0; i < len; i += 1) {
|
|
40582
|
+
var startIndex = columnCount * i;
|
|
40583
|
+
var items = dataSource.slice(startIndex, startIndex + columnCount);
|
|
40584
|
+
arr.push(items);
|
|
40585
|
+
}
|
|
40586
|
+
|
|
40587
|
+
return arr;
|
|
40588
|
+
}, [dataSource]); // 获取容器盒子高宽
|
|
40589
|
+
|
|
40590
|
+
var getResize = React.useCallback(function () {
|
|
40591
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
40592
|
+
blockSize = _ref2.blockSize,
|
|
40593
|
+
inlineSize = _ref2.inlineSize;
|
|
40594
|
+
|
|
40595
|
+
// 列数量
|
|
40596
|
+
var colCount = getResizeColumnCount({
|
|
40597
|
+
width: inlineSize,
|
|
40598
|
+
height: blockSize
|
|
40599
|
+
}, cellConfig.width); // 获取行
|
|
40600
|
+
|
|
40601
|
+
var rows = getRows(colCount);
|
|
40602
|
+
dispatch({
|
|
40603
|
+
type: 'windowResize',
|
|
40604
|
+
resize: {
|
|
40605
|
+
width: inlineSize,
|
|
40606
|
+
height: blockSize
|
|
40607
|
+
}
|
|
40608
|
+
});
|
|
40609
|
+
dispatch({
|
|
40610
|
+
type: 'changeColumnCount',
|
|
40611
|
+
columnCount: colCount
|
|
40612
|
+
});
|
|
40613
|
+
dispatch({
|
|
40614
|
+
type: 'changeRows',
|
|
40615
|
+
rows: rows
|
|
40616
|
+
});
|
|
40617
|
+
}, [getRows]); // 获取表格高度
|
|
40618
|
+
|
|
40619
|
+
useIsomorphicLayoutEffect$3(function () {
|
|
40620
|
+
// 频繁变动可考虑增加防抖
|
|
40621
|
+
var resizeObserver = new ResizeObserver(function (entries) {
|
|
40622
|
+
// console.log("我的resize变化啦");
|
|
40623
|
+
var borderbox = entries[0].borderBoxSize[0];
|
|
40624
|
+
getResize(borderbox);
|
|
40625
|
+
});
|
|
40626
|
+
|
|
40627
|
+
if (tableContainerRef.current) {
|
|
40628
|
+
resizeObserver.observe(tableContainerRef.current);
|
|
40629
|
+
}
|
|
40630
|
+
|
|
40631
|
+
return function () {
|
|
40632
|
+
return resizeObserver.disconnect();
|
|
40633
|
+
};
|
|
40634
|
+
}, [type, getResize]);
|
|
40635
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40636
|
+
ref: tableContainerRef,
|
|
40637
|
+
className: "lm_card_table_container"
|
|
40638
|
+
}, /*#__PURE__*/React__default['default'].createElement(LmCardTable, {
|
|
40639
|
+
table: table,
|
|
40640
|
+
tableContainerRef: tableContainerRef
|
|
40641
|
+
}));
|
|
40642
|
+
});
|
|
40643
|
+
|
|
40644
|
+
var _excluded$r = ["onChange"];
|
|
40645
|
+
|
|
40646
|
+
var LmCardTablePagination = function LmCardTablePagination(_ref) {
|
|
40647
|
+
var table = _ref.table;
|
|
40648
|
+
|
|
40649
|
+
var dispatch = table.dispatch,
|
|
40650
|
+
_table$dataSource = table.dataSource,
|
|
40651
|
+
dataSource = _table$dataSource === void 0 ? [] : _table$dataSource,
|
|
40652
|
+
_table$pagination = table.pagination,
|
|
40653
|
+
onChange = _table$pagination.onChange,
|
|
40654
|
+
paginationProps = _objectWithoutProperties(_table$pagination, _excluded$r); // 分页改变事件
|
|
40655
|
+
|
|
40656
|
+
|
|
40657
|
+
var onPageChange = function onPageChange(pageIndex, pageSize) {
|
|
40658
|
+
dispatch({
|
|
40659
|
+
type: 'changePage',
|
|
40660
|
+
page: {
|
|
40661
|
+
pageIndex: pageIndex,
|
|
40662
|
+
pageSize: pageSize,
|
|
40663
|
+
total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || 0
|
|
40664
|
+
}
|
|
40665
|
+
});
|
|
40666
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(pageIndex, pageSize);
|
|
40667
|
+
}; // 默认的配置
|
|
40668
|
+
|
|
40669
|
+
|
|
40670
|
+
var defaultProps = {
|
|
40671
|
+
size: 'small',
|
|
40672
|
+
showSizeChanger: true,
|
|
40673
|
+
showQuickJumper: true,
|
|
40674
|
+
showTotal: function showTotal(total) {
|
|
40675
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40676
|
+
},
|
|
40677
|
+
total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || 0,
|
|
40678
|
+
defaultPageSize: 20,
|
|
40679
|
+
pageSizeOptions: [20, 50, 100, 500],
|
|
40680
|
+
onChange: onPageChange
|
|
40681
|
+
};
|
|
40682
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40683
|
+
className: "lm_card_table_pagination"
|
|
40684
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMPagination, _extends({}, defaultProps, paginationProps)));
|
|
40685
|
+
};
|
|
40686
|
+
|
|
40687
|
+
var CardTablePager = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40688
|
+
var table = _ref.table;
|
|
40689
|
+
var pagination = table.pagination,
|
|
40690
|
+
pagerConfig = table.pagerConfig; // left || right:插槽
|
|
40691
|
+
|
|
40692
|
+
var left = pagerConfig.left,
|
|
40693
|
+
right = pagerConfig.right; // 底部工具栏左侧插槽: 默认空 div 标签占位
|
|
40694
|
+
|
|
40695
|
+
var LeftSlot = function LeftSlot() {
|
|
40696
|
+
if (!left) {
|
|
40697
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null);
|
|
40698
|
+
}
|
|
40699
|
+
return typeof left === 'function' ? left(table) : left;
|
|
40700
|
+
}; // 底部工具栏右侧插槽
|
|
40701
|
+
|
|
40702
|
+
|
|
40703
|
+
var RighSlot = function RighSlot() {
|
|
40704
|
+
if (!right) {
|
|
40705
|
+
return pagination ? /*#__PURE__*/React__default['default'].createElement(LmCardTablePagination, {
|
|
40706
|
+
table: table
|
|
40707
|
+
}) : null;
|
|
40708
|
+
}
|
|
40709
|
+
|
|
40710
|
+
return typeof right === 'function' ? right(table, LmCardTablePagination) : right;
|
|
40711
|
+
};
|
|
40712
|
+
|
|
40713
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40714
|
+
className: "lm_card_table_pager"
|
|
40715
|
+
}, /*#__PURE__*/React__default['default'].createElement(LeftSlot, null), /*#__PURE__*/React__default['default'].createElement(RighSlot, null));
|
|
40716
|
+
});
|
|
40717
|
+
|
|
40718
|
+
var CardToolBarBottom = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40719
|
+
var table = _ref.table;
|
|
40720
|
+
var pagination = table.pagination,
|
|
40721
|
+
toolbarBottom = table.toolbarConfig.toolbarBottom;
|
|
40722
|
+
|
|
40723
|
+
if (!toolbarBottom) {
|
|
40724
|
+
return null;
|
|
40725
|
+
}
|
|
40726
|
+
|
|
40727
|
+
return typeof toolbarBottom === 'function' ? toolbarBottom(table) : toolbarBottom // <div className='lm_card_table_toolbar_bottom'>
|
|
40728
|
+
// <ToolbarBottomSlot />
|
|
40729
|
+
// </div>
|
|
40730
|
+
;
|
|
40731
|
+
});
|
|
40732
|
+
|
|
40733
|
+
var LmCardTableWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40734
|
+
var table = _ref.table;
|
|
40735
|
+
var height = table.height,
|
|
40736
|
+
style = table.style;
|
|
40737
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40738
|
+
className: "lm_card_table_wrapper",
|
|
40739
|
+
style: _objectSpread({
|
|
40740
|
+
height: height
|
|
40741
|
+
}, style)
|
|
40742
|
+
}, /*#__PURE__*/React__default['default'].createElement(LmCardTableContainer, {
|
|
40743
|
+
table: table
|
|
40744
|
+
}), /*#__PURE__*/React__default['default'].createElement(CardTablePager, {
|
|
40745
|
+
table: table
|
|
40746
|
+
}), /*#__PURE__*/React__default['default'].createElement(CardToolBarBottom, {
|
|
40747
|
+
table: table
|
|
40748
|
+
}));
|
|
40749
|
+
});
|
|
40750
|
+
|
|
40751
|
+
// 操作方法集合
|
|
40752
|
+
var CoreOptions = function CoreOptions(_ref) {
|
|
40753
|
+
var state = _ref.state,
|
|
40754
|
+
dispatch = _ref.dispatch,
|
|
40755
|
+
props = _ref.props;
|
|
40756
|
+
var checkboxConfig = state.checkboxConfig;
|
|
40757
|
+
var dataSource = props.dataSource,
|
|
40758
|
+
cellKey = props.cellKey,
|
|
40759
|
+
checkboxChange = props.checkboxChange,
|
|
40760
|
+
selectionConfig = props.selectionConfig;
|
|
40761
|
+
var checkKeys = checkboxConfig.checkKeys,
|
|
40762
|
+
checkValues = checkboxConfig.checkValues,
|
|
40763
|
+
checkMethod = checkboxConfig.checkMethod; // 设置选中的值: 第一个参数是数据的键,第二个参数是选中与否, 第三个参数控制是否重置
|
|
40764
|
+
// 未做key是否属于数据源校验,用于分页时保存之前的选中状态
|
|
40765
|
+
|
|
40766
|
+
var setCheckboxKeys = function setCheckboxKeys(keys, checked, reset) {
|
|
40767
|
+
var flag = typeof checked === 'boolean' ? checked : true;
|
|
40768
|
+
var nKeys = keys;
|
|
40769
|
+
var nValues = [];
|
|
40770
|
+
|
|
40771
|
+
if (reset) {
|
|
40772
|
+
nValues = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (v) {
|
|
40773
|
+
return nKeys.includes(v[cellKey]);
|
|
40774
|
+
})) || [];
|
|
40775
|
+
dispatch({
|
|
40776
|
+
type: 'changeCheckboxConfig',
|
|
40777
|
+
checkboxConfig: {
|
|
40778
|
+
checkKeys: nKeys,
|
|
40779
|
+
checkValues: nValues
|
|
40780
|
+
}
|
|
40781
|
+
});
|
|
40782
|
+
return;
|
|
40783
|
+
}
|
|
40784
|
+
|
|
40785
|
+
if (flag) {
|
|
40786
|
+
nKeys = Array.from(new Set([].concat(_toConsumableArray(checkKeys), _toConsumableArray(keys))));
|
|
40787
|
+
nValues = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (v) {
|
|
40788
|
+
return nKeys.includes(v[cellKey]);
|
|
40789
|
+
})) || [];
|
|
40790
|
+
} else {
|
|
40791
|
+
nKeys = checkKeys.filter(function (v) {
|
|
40792
|
+
return !keys.includes(v);
|
|
40793
|
+
});
|
|
40794
|
+
nValues = checkValues.filter(function (v) {
|
|
40795
|
+
return !keys.includes(v[cellKey]);
|
|
40796
|
+
});
|
|
40797
|
+
}
|
|
40798
|
+
|
|
40799
|
+
dispatch({
|
|
40800
|
+
type: 'changeCheckboxConfig',
|
|
40801
|
+
checkboxConfig: {
|
|
40802
|
+
checkKeys: nKeys,
|
|
40803
|
+
checkValues: nValues
|
|
40804
|
+
}
|
|
40805
|
+
});
|
|
40806
|
+
dispatch({
|
|
40807
|
+
type: 'changeRadioConfig',
|
|
40808
|
+
radioConfig: {
|
|
40809
|
+
checkKey: '',
|
|
40810
|
+
checkValue: ''
|
|
40811
|
+
}
|
|
40812
|
+
});
|
|
40813
|
+
}; // 切换选中状态: 单个切换/批量切换
|
|
40814
|
+
|
|
40815
|
+
|
|
40816
|
+
var toggleCheckboxKey = function toggleCheckboxKey(k) {
|
|
40817
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
40818
|
+
var _options$trigger = options.trigger,
|
|
40819
|
+
trigger = _options$trigger === void 0 ? 'default' : _options$trigger,
|
|
40820
|
+
cell = options.cell,
|
|
40821
|
+
cellIndex = options.cellIndex;
|
|
40822
|
+
var nKeys = [k];
|
|
40823
|
+
var isCheck = true;
|
|
40824
|
+
var reset = false; // 单个切换
|
|
40825
|
+
|
|
40826
|
+
if (!Array.isArray(k)) {
|
|
40827
|
+
var isCanCheck = checkMethod; // 是否可选中
|
|
40828
|
+
|
|
40829
|
+
isCheck = !(checkKeys === null || checkKeys === void 0 ? void 0 : checkKeys.some(function (v) {
|
|
40830
|
+
return v === k;
|
|
40831
|
+
}));
|
|
40832
|
+
var record = cell || ''; // 检测选中前置阻挡事件
|
|
40833
|
+
|
|
40834
|
+
if (typeof checkMethod === 'function') {
|
|
40835
|
+
record = record || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (v) {
|
|
40836
|
+
return v[cellKey] === k;
|
|
40837
|
+
}));
|
|
40838
|
+
isCanCheck = checkMethod(record, state, trigger);
|
|
40839
|
+
}
|
|
40840
|
+
|
|
40841
|
+
if (!isCanCheck) return; // 触发复选框改变事件: 仅手动触发有效
|
|
40842
|
+
|
|
40843
|
+
if (typeof checkboxChange === 'function') {
|
|
40844
|
+
record = record || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (v) {
|
|
40845
|
+
return v[cellKey] === k;
|
|
40846
|
+
}));
|
|
40847
|
+
checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange({
|
|
40848
|
+
checked: isCheck,
|
|
40849
|
+
cell: record,
|
|
40850
|
+
cellIndex: cellIndex
|
|
40851
|
+
});
|
|
40852
|
+
}
|
|
40853
|
+
} // 多个切换 通过重置去除选中项保留切换项
|
|
40854
|
+
|
|
40855
|
+
|
|
40856
|
+
if (Array.isArray(k)) {
|
|
40857
|
+
var checkArr = checkKeys.filter(function (v) {
|
|
40858
|
+
return !k.includes(v);
|
|
40859
|
+
}); // 选中的值
|
|
40860
|
+
|
|
40861
|
+
var notCheckArr = k.filter(function (v) {
|
|
40862
|
+
return !checkKeys.includes(v);
|
|
40863
|
+
}); // 未选中的值
|
|
40864
|
+
|
|
40865
|
+
nKeys = [].concat(_toConsumableArray(notCheckArr), _toConsumableArray(checkArr)); // 组合新值为选中状态
|
|
40866
|
+
|
|
40867
|
+
reset = true;
|
|
40868
|
+
}
|
|
40869
|
+
|
|
40870
|
+
setCheckboxKeys(nKeys, isCheck, reset);
|
|
40871
|
+
};
|
|
40872
|
+
|
|
40873
|
+
var cellClick = function cellClick(cell, index) {
|
|
40874
|
+
var _props$cellClick;
|
|
40875
|
+
|
|
40876
|
+
if (!checkKeys.length) {
|
|
40877
|
+
// 校验是否存在单选
|
|
40878
|
+
var isRadio = Array.isArray(selectionConfig.type) ? selectionConfig.type.includes('radio') : selectionConfig.type === 'radio';
|
|
40879
|
+
isRadio && dispatch({
|
|
40880
|
+
type: 'changeRadioConfig',
|
|
40881
|
+
radioConfig: {
|
|
40882
|
+
checkKey: cell[cellKey],
|
|
40883
|
+
checkValue: cell
|
|
40884
|
+
}
|
|
40885
|
+
});
|
|
40886
|
+
}
|
|
40887
|
+
|
|
40888
|
+
(_props$cellClick = props.cellClick) === null || _props$cellClick === void 0 ? void 0 : _props$cellClick.call(props, cell, index);
|
|
40889
|
+
};
|
|
40890
|
+
|
|
40891
|
+
return {
|
|
40892
|
+
setCheckboxKeys: setCheckboxKeys,
|
|
40893
|
+
toggleCheckboxKey: toggleCheckboxKey,
|
|
40894
|
+
cellClick: cellClick
|
|
40895
|
+
};
|
|
40896
|
+
};
|
|
40897
|
+
|
|
40898
|
+
var _excluded$s = ["checkKeys", "trigger", "checkMethod"],
|
|
40899
|
+
_excluded2$6 = ["checkKey", "trigger"],
|
|
40900
|
+
_excluded3$2 = ["rowConfig", "cellConfig", "defaultConfig", "checkboxConfig", "radioConfig", "selectionConfig", "pagerConfig", "toolbarConfig"];
|
|
40901
|
+
|
|
40902
|
+
var reducer$4 = function reducer(state, action) {
|
|
40903
|
+
var page = action.page,
|
|
40904
|
+
resize = action.resize,
|
|
40905
|
+
columnCount = action.columnCount,
|
|
40906
|
+
rows = action.rows,
|
|
40907
|
+
checkboxConfig = action.checkboxConfig,
|
|
40908
|
+
radioConfig = action.radioConfig;
|
|
40909
|
+
|
|
40910
|
+
switch (action.type) {
|
|
40911
|
+
case 'changePage':
|
|
40912
|
+
// 分页改变
|
|
40913
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40914
|
+
page: page
|
|
40915
|
+
});
|
|
40916
|
+
|
|
40917
|
+
case 'changeColumnCount':
|
|
40918
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40919
|
+
columnCount: columnCount
|
|
40920
|
+
});
|
|
40921
|
+
|
|
40922
|
+
case 'changeRows':
|
|
40923
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40924
|
+
rows: rows
|
|
40925
|
+
});
|
|
40926
|
+
|
|
40927
|
+
case 'windowResize':
|
|
40928
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40929
|
+
resize: resize
|
|
40930
|
+
});
|
|
40931
|
+
|
|
40932
|
+
case 'changeCheckboxConfig':
|
|
40933
|
+
// 复选中的Key
|
|
40934
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40935
|
+
checkboxConfig: _objectSpread(_objectSpread({}, state.checkboxConfig), checkboxConfig)
|
|
40936
|
+
});
|
|
40937
|
+
|
|
40938
|
+
case 'changeRadioConfig':
|
|
40939
|
+
// 单选中的Key
|
|
40940
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40941
|
+
radioConfig: _objectSpread(_objectSpread({}, state.radioConfig), radioConfig)
|
|
40942
|
+
});
|
|
40943
|
+
|
|
40944
|
+
default:
|
|
40945
|
+
throw new Error();
|
|
40946
|
+
}
|
|
40947
|
+
}; // 仅在初始化时触发一次
|
|
40948
|
+
|
|
40949
|
+
|
|
40950
|
+
var getInitialState$2 = function getInitialState(props) {
|
|
40951
|
+
var _props$checkboxConfig = props.checkboxConfig,
|
|
40952
|
+
checkboxConfig = _props$checkboxConfig === void 0 ? {} : _props$checkboxConfig,
|
|
40953
|
+
_props$radioConfig = props.radioConfig,
|
|
40954
|
+
radioConfig = _props$radioConfig === void 0 ? {} : _props$radioConfig,
|
|
40955
|
+
_props$dataSource = props.dataSource,
|
|
40956
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
40957
|
+
cellKey = props.cellKey;
|
|
40958
|
+
|
|
40959
|
+
var _checkboxConfig$check = checkboxConfig.checkKeys,
|
|
40960
|
+
checkKeys = _checkboxConfig$check === void 0 ? [] : _checkboxConfig$check,
|
|
40961
|
+
_checkboxConfig$trigg = checkboxConfig.trigger,
|
|
40962
|
+
checkboxTrigger = _checkboxConfig$trigg === void 0 ? 'default' : _checkboxConfig$trigg,
|
|
40963
|
+
_checkboxConfig$check2 = checkboxConfig.checkMethod,
|
|
40964
|
+
checkMethod = _checkboxConfig$check2 === void 0 ? true : _checkboxConfig$check2,
|
|
40965
|
+
resetCheckCOnfig = _objectWithoutProperties(checkboxConfig, _excluded$s);
|
|
40966
|
+
|
|
40967
|
+
var _radioConfig$checkKey = radioConfig.checkKey,
|
|
40968
|
+
checkKey = _radioConfig$checkKey === void 0 ? '' : _radioConfig$checkKey,
|
|
40969
|
+
_radioConfig$trigger = radioConfig.trigger,
|
|
40970
|
+
radioTrigger = _radioConfig$trigger === void 0 ? 'default' : _radioConfig$trigger,
|
|
40971
|
+
resetRadioConfig = _objectWithoutProperties(radioConfig, _excluded2$6);
|
|
40972
|
+
|
|
40973
|
+
var checkValues = dataSource.filter(function (v) {
|
|
40974
|
+
return checkKeys.includes(v[cellKey]);
|
|
40975
|
+
}) || [];
|
|
40976
|
+
var checkValue = dataSource.find(function (v) {
|
|
40977
|
+
return checkKey === v[cellKey];
|
|
40978
|
+
});
|
|
40979
|
+
return {
|
|
40980
|
+
// 复选框的配置
|
|
40981
|
+
checkboxConfig: _objectSpread({
|
|
40982
|
+
checkKeys: checkKeys,
|
|
40983
|
+
checkValues: checkValues,
|
|
40984
|
+
trigger: checkboxTrigger,
|
|
40985
|
+
checkMethod: checkMethod
|
|
40986
|
+
}, resetCheckCOnfig),
|
|
40987
|
+
radioConfig: _objectSpread({
|
|
40988
|
+
checkKey: checkKey,
|
|
40989
|
+
checkValue: checkValue,
|
|
40990
|
+
trigger: radioTrigger
|
|
40991
|
+
}, resetRadioConfig),
|
|
40992
|
+
// 分页的配置
|
|
40993
|
+
page: {
|
|
40994
|
+
pageIndex: 1,
|
|
40995
|
+
pageSize: 20,
|
|
40996
|
+
total: 0
|
|
40997
|
+
},
|
|
40998
|
+
// 容器盒子的大小
|
|
40999
|
+
resize: {
|
|
41000
|
+
widht: 0,
|
|
41001
|
+
height: 0
|
|
41002
|
+
},
|
|
41003
|
+
// 列数量
|
|
41004
|
+
columnCount: 5,
|
|
41005
|
+
rows: [] // 行数据
|
|
41006
|
+
|
|
41007
|
+
};
|
|
41008
|
+
};
|
|
41009
|
+
|
|
41010
|
+
var LmCardTableRoot = function LmCardTableRoot(props, ref) {
|
|
41011
|
+
var initialState = React.useMemo(function () {
|
|
41012
|
+
return getInitialState$2(props);
|
|
41013
|
+
}, []);
|
|
41014
|
+
|
|
41015
|
+
var _useReducer = React.useReducer(reducer$4, initialState),
|
|
41016
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
41017
|
+
state = _useReducer2[0],
|
|
41018
|
+
dispatch = _useReducer2[1]; // eslint-disable-next-line no-unused-vars
|
|
41019
|
+
|
|
41020
|
+
|
|
41021
|
+
var _useState = React.useState(false),
|
|
41022
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41023
|
+
isFullScreen = _useState2[0],
|
|
41024
|
+
setIsFullScreen = _useState2[1]; // 配置对象收集
|
|
41025
|
+
|
|
41026
|
+
|
|
41027
|
+
var configProps = React.useMemo(function () {
|
|
41028
|
+
var rowConfig = props.rowConfig,
|
|
41029
|
+
cellConfig = props.cellConfig,
|
|
41030
|
+
defaultConfig = props.defaultConfig,
|
|
41031
|
+
checkboxConfig = props.checkboxConfig,
|
|
41032
|
+
radioConfig = props.radioConfig,
|
|
41033
|
+
selectionConfig = props.selectionConfig,
|
|
41034
|
+
pagerConfig = props.pagerConfig,
|
|
41035
|
+
toolbarConfig = props.toolbarConfig,
|
|
41036
|
+
resetProps = _objectWithoutProperties(props, _excluded3$2);
|
|
41037
|
+
|
|
41038
|
+
return _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
41039
|
+
rowConfig: _objectSpread({
|
|
41040
|
+
// 行配置
|
|
41041
|
+
gap: 16
|
|
41042
|
+
}, rowConfig),
|
|
41043
|
+
cellConfig: _objectSpread({
|
|
41044
|
+
// 单元格配置对象
|
|
41045
|
+
width: 192,
|
|
41046
|
+
height: 282
|
|
41047
|
+
}, cellConfig),
|
|
41048
|
+
selectionConfig: _objectSpread({
|
|
41049
|
+
type: ['checkbox', 'radio']
|
|
41050
|
+
}, selectionConfig),
|
|
41051
|
+
radioConfig: _objectSpread({}, radioConfig),
|
|
41052
|
+
checkboxConfig: _objectSpread({}, checkboxConfig),
|
|
41053
|
+
pagerConfig: _objectSpread({}, pagerConfig),
|
|
41054
|
+
toolbarConfig: _objectSpread({}, toolbarConfig),
|
|
41055
|
+
defaultConfig: defaultConfig
|
|
41056
|
+
});
|
|
41057
|
+
}, [props]); // 方法收集
|
|
41058
|
+
|
|
41059
|
+
var eventProps = React.useMemo(function () {
|
|
41060
|
+
return CoreOptions({
|
|
41061
|
+
state: state,
|
|
41062
|
+
dispatch: dispatch,
|
|
41063
|
+
props: configProps
|
|
41064
|
+
});
|
|
41065
|
+
}, [state, dispatch, configProps]);
|
|
41066
|
+
|
|
41067
|
+
var table = _objectSpread(_objectSpread(_objectSpread({}, configProps), eventProps), {}, {
|
|
41068
|
+
state: state,
|
|
41069
|
+
dispatch: dispatch
|
|
41070
|
+
}); // 向外暴露出的方法
|
|
41071
|
+
|
|
41072
|
+
|
|
41073
|
+
React.useImperativeHandle(ref, function () {
|
|
41074
|
+
return _objectSpread({
|
|
41075
|
+
getCheckboxRecords: function getCheckboxRecords() {
|
|
41076
|
+
return state.checkboxConfig.checkValues;
|
|
41077
|
+
},
|
|
41078
|
+
getRadioRecord: function getRadioRecord() {
|
|
41079
|
+
return state.radioConfig.checkValue;
|
|
41080
|
+
}
|
|
41081
|
+
}, eventProps);
|
|
41082
|
+
});
|
|
41083
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !isFullScreen && /*#__PURE__*/React__default['default'].createElement(LmCardTableWrapper, {
|
|
41084
|
+
table: table
|
|
41085
|
+
}));
|
|
41086
|
+
};
|
|
41087
|
+
|
|
41088
|
+
var LmCardTableRoot$1 = /*#__PURE__*/React.forwardRef(LmCardTableRoot);
|
|
41089
|
+
|
|
41090
|
+
var _excluded$t = ["cellKey", "type", "height", "virtual", "ellipsis", "components", "dataSource", "cellConfig", "checkboxConfig"];
|
|
41091
|
+
// rows: LM_Row<TData>[];
|
|
41092
|
+
// }
|
|
41093
|
+
// 默认抛出
|
|
41094
|
+
|
|
41095
|
+
var LmCardTable$1 = function LmCardTable(_ref, ref) {
|
|
41096
|
+
var _ref$cellKey = _ref.cellKey,
|
|
41097
|
+
cellKey = _ref$cellKey === void 0 ? 'id' : _ref$cellKey,
|
|
41098
|
+
_ref$type = _ref.type,
|
|
41099
|
+
type = _ref$type === void 0 ? 'PTC' : _ref$type,
|
|
41100
|
+
_ref$height = _ref.height,
|
|
41101
|
+
height = _ref$height === void 0 ? '100%' : _ref$height,
|
|
41102
|
+
_ref$virtual = _ref.virtual,
|
|
41103
|
+
virtual = _ref$virtual === void 0 ? true : _ref$virtual,
|
|
41104
|
+
_ref$ellipsis = _ref.ellipsis,
|
|
41105
|
+
ellipsis = _ref$ellipsis === void 0 ? true : _ref$ellipsis,
|
|
41106
|
+
_ref$components = _ref.components,
|
|
41107
|
+
components = _ref$components === void 0 ? {} : _ref$components,
|
|
41108
|
+
_ref$dataSource = _ref.dataSource,
|
|
41109
|
+
dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource,
|
|
41110
|
+
_ref$cellConfig = _ref.cellConfig,
|
|
41111
|
+
cellConfig = _ref$cellConfig === void 0 ? {} : _ref$cellConfig,
|
|
41112
|
+
_ref$checkboxConfig = _ref.checkboxConfig,
|
|
41113
|
+
checkboxConfig = _ref$checkboxConfig === void 0 ? {} : _ref$checkboxConfig,
|
|
41114
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
41115
|
+
|
|
41116
|
+
var defaultRef = React.useRef(null);
|
|
41117
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableRoot$1, _extends({
|
|
41118
|
+
cellKey: cellKey,
|
|
41119
|
+
type: type,
|
|
41120
|
+
height: height,
|
|
41121
|
+
virtual: virtual,
|
|
41122
|
+
ellipsis: ellipsis,
|
|
41123
|
+
components: components,
|
|
41124
|
+
dataSource: dataSource,
|
|
41125
|
+
cellConfig: cellConfig,
|
|
41126
|
+
checkboxConfig: checkboxConfig,
|
|
41127
|
+
ref: ref || defaultRef
|
|
41128
|
+
}, resetProps));
|
|
41129
|
+
};
|
|
41130
|
+
|
|
41131
|
+
var LmCardTable$2 = /*#__PURE__*/React.forwardRef(LmCardTable$1);
|
|
41132
|
+
|
|
41133
|
+
var _excluded$u = ["defaultPageSize", "defaultCurrent", "refreshDeps"];
|
|
41134
|
+
|
|
41135
|
+
var usePagination = function usePagination(service) {
|
|
41136
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
41137
|
+
|
|
41138
|
+
var _options$defaultPageS = options.defaultPageSize,
|
|
41139
|
+
defaultPageSize = _options$defaultPageS === void 0 ? 20 : _options$defaultPageS,
|
|
41140
|
+
_options$defaultCurre = options.defaultCurrent,
|
|
41141
|
+
defaultCurrent = _options$defaultCurre === void 0 ? 1 : _options$defaultCurre,
|
|
41142
|
+
_options$refreshDeps = options.refreshDeps,
|
|
41143
|
+
refreshDeps = _options$refreshDeps === void 0 ? [] : _options$refreshDeps,
|
|
41144
|
+
rest = _objectWithoutProperties(options, _excluded$u);
|
|
41145
|
+
|
|
41146
|
+
var _useState = React.useState({
|
|
41147
|
+
loading: false,
|
|
41148
|
+
data: {
|
|
41149
|
+
pageIndex: defaultCurrent,
|
|
41150
|
+
pageSize: defaultPageSize
|
|
41151
|
+
}
|
|
41152
|
+
}),
|
|
41153
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41154
|
+
result = _useState2[0],
|
|
41155
|
+
setResult = _useState2[1];
|
|
41156
|
+
|
|
41157
|
+
var getRequest = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
41158
|
+
var c,
|
|
41159
|
+
p,
|
|
41160
|
+
res,
|
|
41161
|
+
_args = arguments;
|
|
41162
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
41163
|
+
while (1) {
|
|
41164
|
+
switch (_context.prev = _context.next) {
|
|
41165
|
+
case 0:
|
|
41166
|
+
c = _args.length > 0 && _args[0] !== undefined ? _args[0] : defaultCurrent;
|
|
41167
|
+
p = _args.length > 1 && _args[1] !== undefined ? _args[1] : defaultPageSize;
|
|
41168
|
+
setResult(function (old) {
|
|
41169
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
41170
|
+
loading: true
|
|
41171
|
+
});
|
|
41172
|
+
});
|
|
41173
|
+
_context.next = 5;
|
|
41174
|
+
return service(_objectSpread({
|
|
41175
|
+
current: c,
|
|
41176
|
+
pageSize: p
|
|
41177
|
+
}, rest));
|
|
41178
|
+
|
|
41179
|
+
case 5:
|
|
41180
|
+
res = _context.sent;
|
|
41181
|
+
setResult(function (old) {
|
|
41182
|
+
return _objectSpread(_objectSpread(_objectSpread({}, old), res), {}, {
|
|
41183
|
+
loading: false
|
|
41184
|
+
});
|
|
41185
|
+
});
|
|
41186
|
+
|
|
41187
|
+
case 7:
|
|
41188
|
+
case "end":
|
|
41189
|
+
return _context.stop();
|
|
41190
|
+
}
|
|
41191
|
+
}
|
|
41192
|
+
}, _callee);
|
|
41193
|
+
})), [service].concat(_toConsumableArray(refreshDeps)));
|
|
41194
|
+
|
|
41195
|
+
var _ref2 = (result === null || result === void 0 ? void 0 : result.data) || {},
|
|
41196
|
+
_ref2$pageIndex = _ref2.pageIndex,
|
|
41197
|
+
pageIndex = _ref2$pageIndex === void 0 ? 1 : _ref2$pageIndex,
|
|
41198
|
+
_ref2$pageSize = _ref2.pageSize,
|
|
41199
|
+
pageSize = _ref2$pageSize === void 0 ? defaultPageSize : _ref2$pageSize,
|
|
41200
|
+
_ref2$totalCount = _ref2.totalCount,
|
|
41201
|
+
totalCount = _ref2$totalCount === void 0 ? 0 : _ref2$totalCount; // 总页数
|
|
41202
|
+
|
|
41203
|
+
|
|
41204
|
+
var totalPage = React.useMemo(function () {
|
|
41205
|
+
return Math.ceil(totalCount / pageSize);
|
|
41206
|
+
}, [pageSize, totalCount]); // 分页改变触发
|
|
41207
|
+
|
|
41208
|
+
var onChange = function onChange(c, p) {
|
|
41209
|
+
return getRequest(c, p);
|
|
41210
|
+
}; // 手动重取数据, 不传入数据则触发刷新
|
|
41211
|
+
|
|
41212
|
+
|
|
41213
|
+
var refetch = function refetch(_ref3) {
|
|
41214
|
+
var _ref3$current = _ref3.current,
|
|
41215
|
+
c = _ref3$current === void 0 ? pageIndex : _ref3$current,
|
|
41216
|
+
_ref3$pageSize = _ref3.pageSize,
|
|
41217
|
+
p = _ref3$pageSize === void 0 ? pageSize : _ref3$pageSize;
|
|
41218
|
+
return getRequest(c, p);
|
|
41219
|
+
}; // 初始化获取数据
|
|
41220
|
+
|
|
41221
|
+
|
|
41222
|
+
React.useEffect(function () {
|
|
41223
|
+
getRequest(defaultCurrent, defaultPageSize);
|
|
41224
|
+
}, [getRequest]);
|
|
41225
|
+
return _objectSpread(_objectSpread({}, result), {}, {
|
|
41226
|
+
refetch: refetch,
|
|
41227
|
+
pagination: {
|
|
41228
|
+
current: pageIndex,
|
|
41229
|
+
pageSize: pageSize,
|
|
41230
|
+
total: totalCount,
|
|
41231
|
+
totalPage: totalPage,
|
|
41232
|
+
onChange: onChange
|
|
41233
|
+
}
|
|
41234
|
+
});
|
|
41235
|
+
};
|
|
41236
|
+
|
|
41237
|
+
LmCardTable$2.usePagination = usePagination;
|
|
41238
|
+
// export * from LmCardTable;
|
|
41239
|
+
|
|
40047
41240
|
var Icon$2 = function Icon(prop) {
|
|
40048
41241
|
var className = prop.className;
|
|
40049
41242
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -42993,7 +44186,7 @@
|
|
|
42993
44186
|
glyphs: glyphs
|
|
42994
44187
|
};
|
|
42995
44188
|
|
|
42996
|
-
var _excluded$
|
|
44189
|
+
var _excluded$v = ["item"];
|
|
42997
44190
|
// visible: boolean
|
|
42998
44191
|
// onClose: fn
|
|
42999
44192
|
// value: string
|
|
@@ -43060,7 +44253,7 @@
|
|
|
43060
44253
|
options: options
|
|
43061
44254
|
}, function (_ref2) {
|
|
43062
44255
|
var item = _ref2.item,
|
|
43063
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
44256
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$v);
|
|
43064
44257
|
|
|
43065
44258
|
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, resetProps, {
|
|
43066
44259
|
className: "lm-icon_row"
|
|
@@ -43081,12 +44274,12 @@
|
|
|
43081
44274
|
}))));
|
|
43082
44275
|
};
|
|
43083
44276
|
|
|
43084
|
-
var _excluded$
|
|
43085
|
-
_excluded2$
|
|
43086
|
-
_excluded3$
|
|
44277
|
+
var _excluded$w = ["allowClear"],
|
|
44278
|
+
_excluded2$7 = ["allowClear"],
|
|
44279
|
+
_excluded3$3 = ["allowClear"];
|
|
43087
44280
|
var LmInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
43088
44281
|
var _props$allowClear = props.allowClear,
|
|
43089
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
44282
|
+
rest = _objectWithoutProperties(props, _excluded$w);
|
|
43090
44283
|
|
|
43091
44284
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'], _objectSpread(_objectSpread({
|
|
43092
44285
|
ref: ref,
|
|
@@ -43098,7 +44291,7 @@
|
|
|
43098
44291
|
LmInput.Group = _Input__default['default'].Group;
|
|
43099
44292
|
LmInput.Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
43100
44293
|
var _props$allowClear2 = props.allowClear,
|
|
43101
|
-
rest = _objectWithoutProperties(props, _excluded2$
|
|
44294
|
+
rest = _objectWithoutProperties(props, _excluded2$7);
|
|
43102
44295
|
|
|
43103
44296
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Search, _objectSpread(_objectSpread({
|
|
43104
44297
|
enterButton: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
@@ -43114,7 +44307,7 @@
|
|
|
43114
44307
|
|
|
43115
44308
|
LmInput.Password = function (props) {
|
|
43116
44309
|
var _props$allowClear3 = props.allowClear,
|
|
43117
|
-
rest = _objectWithoutProperties(props, _excluded3$
|
|
44310
|
+
rest = _objectWithoutProperties(props, _excluded3$3);
|
|
43118
44311
|
|
|
43119
44312
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Password, _objectSpread(_objectSpread({
|
|
43120
44313
|
className: "lm_input_password",
|
|
@@ -43130,13 +44323,13 @@
|
|
|
43130
44323
|
}));
|
|
43131
44324
|
};
|
|
43132
44325
|
|
|
43133
|
-
var _excluded$
|
|
44326
|
+
var _excluded$x = ["children", "className"];
|
|
43134
44327
|
var prefixCls$3 = 'lm_input-number';
|
|
43135
44328
|
|
|
43136
44329
|
var LMInputNumber = function LMInputNumber(props) {
|
|
43137
44330
|
var children = props.children,
|
|
43138
44331
|
className = props.className,
|
|
43139
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
44332
|
+
others = _objectWithoutProperties(props, _excluded$x);
|
|
43140
44333
|
|
|
43141
44334
|
return /*#__PURE__*/React__default['default'].createElement(_InputNumber__default['default'], _objectSpread({
|
|
43142
44335
|
className: classnames(className, prefixCls$3),
|
|
@@ -43505,7 +44698,7 @@
|
|
|
43505
44698
|
// React currently throws a warning when using useLayoutEffect on the server.
|
|
43506
44699
|
// To get around it, we can conditionally useEffect on the server (no-op) and
|
|
43507
44700
|
// useLayoutEffect in the browser.
|
|
43508
|
-
var useIsomorphicLayoutEffect$
|
|
44701
|
+
var useIsomorphicLayoutEffect$4 = IS_SERVER ? React.useEffect : React.useLayoutEffect;
|
|
43509
44702
|
// This assignment is to extend the Navigator type to use effectiveType.
|
|
43510
44703
|
var navigatorConnection = typeof navigator !== 'undefined' &&
|
|
43511
44704
|
navigator.connection;
|
|
@@ -43810,7 +45003,7 @@
|
|
|
43810
45003
|
extendedConfig.mutate = cacheContext[1];
|
|
43811
45004
|
}
|
|
43812
45005
|
// Unsubscribe events.
|
|
43813
|
-
useIsomorphicLayoutEffect$
|
|
45006
|
+
useIsomorphicLayoutEffect$4(function () { return (cacheContext ? cacheContext[2] : UNDEFINED); }, []);
|
|
43814
45007
|
return React.createElement(SWRConfigContext.Provider, mergeObjects(props, {
|
|
43815
45008
|
value: extendedConfig
|
|
43816
45009
|
}));
|
|
@@ -43872,7 +45065,7 @@
|
|
|
43872
45065
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
43873
45066
|
[]);
|
|
43874
45067
|
// Always update the state reference.
|
|
43875
|
-
useIsomorphicLayoutEffect$
|
|
45068
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
43876
45069
|
stateRef.current = state;
|
|
43877
45070
|
});
|
|
43878
45071
|
return [stateRef, stateDependenciesRef.current, setState];
|
|
@@ -44191,12 +45384,12 @@
|
|
|
44191
45384
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44192
45385
|
[]);
|
|
44193
45386
|
// Always update fetcher and config refs.
|
|
44194
|
-
useIsomorphicLayoutEffect$
|
|
45387
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
44195
45388
|
fetcherRef.current = fetcher;
|
|
44196
45389
|
configRef.current = config;
|
|
44197
45390
|
});
|
|
44198
45391
|
// After mounted or key changed.
|
|
44199
|
-
useIsomorphicLayoutEffect$
|
|
45392
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
44200
45393
|
if (!key)
|
|
44201
45394
|
return;
|
|
44202
45395
|
var keyChanged = key !== keyRef.current;
|
|
@@ -44274,7 +45467,7 @@
|
|
|
44274
45467
|
};
|
|
44275
45468
|
}, [key, revalidate]);
|
|
44276
45469
|
// Polling
|
|
44277
|
-
useIsomorphicLayoutEffect$
|
|
45470
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
44278
45471
|
var timer;
|
|
44279
45472
|
function next() {
|
|
44280
45473
|
// Use the passed interval
|
|
@@ -46592,8 +47785,8 @@
|
|
|
46592
47785
|
});
|
|
46593
47786
|
};
|
|
46594
47787
|
|
|
46595
|
-
var _excluded$
|
|
46596
|
-
_excluded2$
|
|
47788
|
+
var _excluded$y = ["label", "rules", "name", "children", "popoverProps"],
|
|
47789
|
+
_excluded2$8 = ["errorType", "rules", "name", "popoverProps", "children"];
|
|
46597
47790
|
var FIX_INLINE_STYLE = {
|
|
46598
47791
|
marginTop: -5,
|
|
46599
47792
|
marginBottom: -5,
|
|
@@ -46654,7 +47847,7 @@
|
|
|
46654
47847
|
name = _ref2.name,
|
|
46655
47848
|
children = _ref2.children,
|
|
46656
47849
|
popoverProps = _ref2.popoverProps,
|
|
46657
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
47850
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$y);
|
|
46658
47851
|
|
|
46659
47852
|
return jsxRuntime.jsx(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
|
46660
47853
|
preserve: false,
|
|
@@ -46683,7 +47876,7 @@
|
|
|
46683
47876
|
name = props.name,
|
|
46684
47877
|
popoverProps = props.popoverProps,
|
|
46685
47878
|
children = props.children,
|
|
46686
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
47879
|
+
rest = _objectWithoutProperties$1(props, _excluded2$8);
|
|
46687
47880
|
|
|
46688
47881
|
if (name && (rules === null || rules === void 0 ? void 0 : rules.length) && errorType === 'popover') {
|
|
46689
47882
|
return jsxRuntime.jsx(InternalFormItem, _objectSpread2(_objectSpread2({
|
|
@@ -48293,9 +49486,9 @@
|
|
|
48293
49486
|
return [state, setState];
|
|
48294
49487
|
}
|
|
48295
49488
|
|
|
48296
|
-
var _excluded$
|
|
48297
|
-
_excluded2$
|
|
48298
|
-
_excluded3$
|
|
49489
|
+
var _excluded$z = ["map_row_parentKey"],
|
|
49490
|
+
_excluded2$9 = ["map_row_parentKey", "map_row_key"],
|
|
49491
|
+
_excluded3$4 = ["map_row_key"];
|
|
48299
49492
|
var recordKeyToString = function recordKeyToString(rowKey) {
|
|
48300
49493
|
if (Array.isArray(rowKey)) return rowKey.join(',');
|
|
48301
49494
|
return rowKey;
|
|
@@ -48370,7 +49563,7 @@
|
|
|
48370
49563
|
map.forEach(function (value) {
|
|
48371
49564
|
if (value.map_row_parentKey && !value.map_row_key) {
|
|
48372
49565
|
var map_row_parentKey = value.map_row_parentKey,
|
|
48373
|
-
rest = _objectWithoutProperties$1(value, _excluded$
|
|
49566
|
+
rest = _objectWithoutProperties$1(value, _excluded$z);
|
|
48374
49567
|
|
|
48375
49568
|
kvArrayMap.set(map_row_parentKey, [].concat(_toConsumableArray$1(kvArrayMap.get(map_row_parentKey) || []), [rest]));
|
|
48376
49569
|
}
|
|
@@ -48385,7 +49578,7 @@
|
|
|
48385
49578
|
if (value.map_row_parentKey && value.map_row_key) {
|
|
48386
49579
|
var map_row_parentKey = value.map_row_parentKey,
|
|
48387
49580
|
map_row_key = value.map_row_key,
|
|
48388
|
-
rest = _objectWithoutProperties$1(value, _excluded2$
|
|
49581
|
+
rest = _objectWithoutProperties$1(value, _excluded2$9);
|
|
48389
49582
|
|
|
48390
49583
|
if (kvArrayMap.has(map_row_key)) {
|
|
48391
49584
|
rest[childrenColumnName] = kvArrayMap.get(map_row_key);
|
|
@@ -48402,7 +49595,7 @@
|
|
|
48402
49595
|
map.forEach(function (value) {
|
|
48403
49596
|
if (!value.map_row_parentKey) {
|
|
48404
49597
|
var map_row_key = value.map_row_key,
|
|
48405
|
-
rest = _objectWithoutProperties$1(value, _excluded3$
|
|
49598
|
+
rest = _objectWithoutProperties$1(value, _excluded3$4);
|
|
48406
49599
|
|
|
48407
49600
|
if (map_row_key && kvArrayMap.has(map_row_key)) {
|
|
48408
49601
|
var item = _objectSpread2(_objectSpread2({}, rest), {}, _defineProperty$1({}, childrenColumnName, kvArrayMap.get(map_row_key)));
|
|
@@ -49208,7 +50401,7 @@
|
|
|
49208
50401
|
});
|
|
49209
50402
|
};
|
|
49210
50403
|
|
|
49211
|
-
var _excluded$
|
|
50404
|
+
var _excluded$A = ["label", "prefixCls", "onChange", "value", "mode", "children", "defaultValue", "size", "showSearch", "disabled", "style", "className", "bordered", "options", "onSearch", "allowClear", "labelInValue", "fieldNames", "lightLabel", "labelTrigger"];
|
|
49212
50405
|
/**
|
|
49213
50406
|
* 如果有 label 就优先使用 label
|
|
49214
50407
|
*
|
|
@@ -49245,7 +50438,7 @@
|
|
|
49245
50438
|
fieldNames = props.fieldNames,
|
|
49246
50439
|
lightLabel = props.lightLabel,
|
|
49247
50440
|
labelTrigger = props.labelTrigger,
|
|
49248
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
50441
|
+
restProps = _objectWithoutProperties$1(props, _excluded$A);
|
|
49249
50442
|
|
|
49250
50443
|
var _props$placeholder = props.placeholder,
|
|
49251
50444
|
placeholder = _props$placeholder === void 0 ? label : _props$placeholder;
|
|
@@ -49383,7 +50576,7 @@
|
|
|
49383
50576
|
|
|
49384
50577
|
var LightSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(LightSelect);
|
|
49385
50578
|
|
|
49386
|
-
var _excluded$
|
|
50579
|
+
var _excluded$B = ["optionItemRender", "mode", "onSearch", "onFocus", "onChange", "autoClearSearchValue", "searchOnFocus", "resetAfterSelect", "fetchDataOnSearch", "optionFilterProp", "optionLabelProp", "className", "disabled", "options", "fetchData", "resetData", "prefixCls", "onClear", "searchValue", "showSearch", "fieldNames"];
|
|
49387
50580
|
var Option$1 = _Select__default['default'].Option,
|
|
49388
50581
|
OptGroup = _Select__default['default'].OptGroup;
|
|
49389
50582
|
|
|
@@ -49414,7 +50607,7 @@
|
|
|
49414
50607
|
propsSearchValue = props.searchValue,
|
|
49415
50608
|
showSearch = props.showSearch,
|
|
49416
50609
|
fieldNames = props.fieldNames,
|
|
49417
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
50610
|
+
restProps = _objectWithoutProperties$1(props, _excluded$B);
|
|
49418
50611
|
|
|
49419
50612
|
var _ref = fieldNames || {},
|
|
49420
50613
|
_ref$label = _ref.label,
|
|
@@ -49570,8 +50763,8 @@
|
|
|
49570
50763
|
|
|
49571
50764
|
var SearchSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(SearchSelect);
|
|
49572
50765
|
|
|
49573
|
-
var _excluded$
|
|
49574
|
-
_excluded2$
|
|
50766
|
+
var _excluded$C = ["value", "text"],
|
|
50767
|
+
_excluded2$a = ["mode", "valueEnum", "render", "renderFormItem", "request", "fieldProps", "plain", "children", "light", "proFieldKey", "params", "label", "bordered", "id", "lightLabel", "labelTrigger"];
|
|
49575
50768
|
var ObjToMap = function ObjToMap(value) {
|
|
49576
50769
|
if (getType(value) === 'map') {
|
|
49577
50770
|
return value;
|
|
@@ -49782,7 +50975,7 @@
|
|
|
49782
50975
|
return proFieldParsingValueEnumToArray(ObjToMap(coverValueEnum)).map(function (_ref2) {
|
|
49783
50976
|
var value = _ref2.value,
|
|
49784
50977
|
text = _ref2.text,
|
|
49785
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
50978
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$C);
|
|
49786
50979
|
|
|
49787
50980
|
return _objectSpread2({
|
|
49788
50981
|
label: text,
|
|
@@ -49930,7 +51123,7 @@
|
|
|
49930
51123
|
id = props.id,
|
|
49931
51124
|
lightLabel = props.lightLabel,
|
|
49932
51125
|
labelTrigger = props.labelTrigger,
|
|
49933
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
51126
|
+
rest = _objectWithoutProperties$1(props, _excluded2$a);
|
|
49934
51127
|
|
|
49935
51128
|
var inputRef = React.useRef();
|
|
49936
51129
|
var intl = useIntl();
|
|
@@ -50074,7 +51267,7 @@
|
|
|
50074
51267
|
|
|
50075
51268
|
var FieldSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldSelect);
|
|
50076
51269
|
|
|
50077
|
-
var _excluded$
|
|
51270
|
+
var _excluded$D = ["radioType", "renderFormItem", "mode", "render", "label", "light"];
|
|
50078
51271
|
/**
|
|
50079
51272
|
* 级联选择组件
|
|
50080
51273
|
*
|
|
@@ -50091,7 +51284,7 @@
|
|
|
50091
51284
|
render = _ref.render,
|
|
50092
51285
|
label = _ref.label,
|
|
50093
51286
|
light = _ref.light,
|
|
50094
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
51287
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$D);
|
|
50095
51288
|
|
|
50096
51289
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
50097
51290
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -50228,7 +51421,7 @@
|
|
|
50228
51421
|
|
|
50229
51422
|
var FieldCascader$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldCascader);
|
|
50230
51423
|
|
|
50231
|
-
var _excluded$
|
|
51424
|
+
var _excluded$E = ["layout", "renderFormItem", "mode", "render"];
|
|
50232
51425
|
/**
|
|
50233
51426
|
* 多选组件
|
|
50234
51427
|
*
|
|
@@ -50242,7 +51435,7 @@
|
|
|
50242
51435
|
renderFormItem = _ref.renderFormItem,
|
|
50243
51436
|
mode = _ref.mode,
|
|
50244
51437
|
render = _ref.render,
|
|
50245
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
51438
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$E);
|
|
50246
51439
|
|
|
50247
51440
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
50248
51441
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -58425,14 +59618,14 @@
|
|
|
58425
59618
|
};
|
|
58426
59619
|
var SketchPicker = ColorWrap(Sketch);
|
|
58427
59620
|
|
|
58428
|
-
var _excluded$
|
|
59621
|
+
var _excluded$F = ["mode", "popoverProps"];
|
|
58429
59622
|
var DEFAULT_COLORS = ['#FF9D4E', '#5BD8A6', '#5B8FF9', '#F7664E', '#FF86B7', '#2B9E9D', '#9270CA', '#6DC8EC', '#667796', '#F6BD16' // 9 - 黄色
|
|
58430
59623
|
];
|
|
58431
59624
|
|
|
58432
59625
|
var ColorPicker = function ColorPicker(_ref) {
|
|
58433
59626
|
var mode = _ref.mode,
|
|
58434
59627
|
popoverProps = _ref.popoverProps,
|
|
58435
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
59628
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$F);
|
|
58436
59629
|
|
|
58437
59630
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
58438
59631
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -60541,8 +61734,8 @@
|
|
|
60541
61734
|
return shallowCopy;
|
|
60542
61735
|
}
|
|
60543
61736
|
|
|
60544
|
-
var _excluded$
|
|
60545
|
-
_excluded2$
|
|
61737
|
+
var _excluded$G = ["content", "numberFormatOptions", "numberPopoverRender"],
|
|
61738
|
+
_excluded2$b = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey", "plain", "valueEnum", "placeholder", "locale", "customSymbol", "numberFormatOptions", "numberPopoverRender"];
|
|
60546
61739
|
var defaultMoneyIntl = new Intl.NumberFormat('zh-Hans-CN', {
|
|
60547
61740
|
currency: 'CNY',
|
|
60548
61741
|
style: 'currency'
|
|
@@ -60599,7 +61792,7 @@
|
|
|
60599
61792
|
var content = _ref.content,
|
|
60600
61793
|
numberFormatOptions = _ref.numberFormatOptions,
|
|
60601
61794
|
numberPopoverRender = _ref.numberPopoverRender,
|
|
60602
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
61795
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$G);
|
|
60603
61796
|
|
|
60604
61797
|
var _useMergedState = useMergedState(function () {
|
|
60605
61798
|
return rest.defaultValue;
|
|
@@ -60661,7 +61854,7 @@
|
|
|
60661
61854
|
numberFormatOptions = _ref2$numberFormatOpt === void 0 ? fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberFormatOptions : _ref2$numberFormatOpt,
|
|
60662
61855
|
_ref2$numberPopoverRe = _ref2.numberPopoverRender,
|
|
60663
61856
|
numberPopoverRender = _ref2$numberPopoverRe === void 0 ? (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberPopoverRender) || false : _ref2$numberPopoverRe,
|
|
60664
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
61857
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded2$b);
|
|
60665
61858
|
|
|
60666
61859
|
var precision = (_fieldProps$precision = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : DefaultPrecisionCont;
|
|
60667
61860
|
var intl = useIntl(); // 当手动传入locale时,应该以传入的locale为准,未传入时则根据全局的locale进行国际化
|
|
@@ -60831,7 +62024,7 @@
|
|
|
60831
62024
|
|
|
60832
62025
|
var FieldOptions$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldOptions);
|
|
60833
62026
|
|
|
60834
|
-
var _excluded$
|
|
62027
|
+
var _excluded$H = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey"];
|
|
60835
62028
|
/**
|
|
60836
62029
|
* 最基本的组件,就是个普通的 Input.Password
|
|
60837
62030
|
*
|
|
@@ -60845,7 +62038,7 @@
|
|
|
60845
62038
|
renderFormItem = _ref.renderFormItem,
|
|
60846
62039
|
fieldProps = _ref.fieldProps,
|
|
60847
62040
|
proFieldKey = _ref.proFieldKey,
|
|
60848
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
62041
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$H);
|
|
60849
62042
|
|
|
60850
62043
|
var intl = useIntl();
|
|
60851
62044
|
|
|
@@ -61269,7 +62462,7 @@
|
|
|
61269
62462
|
|
|
61270
62463
|
var FieldProgress$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldProgress);
|
|
61271
62464
|
|
|
61272
|
-
var _excluded$
|
|
62465
|
+
var _excluded$I = ["radioType", "renderFormItem", "mode", "render"];
|
|
61273
62466
|
/**
|
|
61274
62467
|
* 单选组件
|
|
61275
62468
|
*
|
|
@@ -61282,7 +62475,7 @@
|
|
|
61282
62475
|
renderFormItem = _ref.renderFormItem,
|
|
61283
62476
|
mode = _ref.mode,
|
|
61284
62477
|
render = _ref.render,
|
|
61285
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
62478
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$I);
|
|
61286
62479
|
|
|
61287
62480
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
61288
62481
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -62014,8 +63207,8 @@
|
|
|
62014
63207
|
};
|
|
62015
63208
|
var FieldTimePicker$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldTimePicker);
|
|
62016
63209
|
|
|
62017
|
-
var _excluded$
|
|
62018
|
-
_excluded2$
|
|
63210
|
+
var _excluded$J = ["radioType", "renderFormItem", "mode", "light", "label", "render"],
|
|
63211
|
+
_excluded2$c = ["onSearch", "onClear", "onChange", "onBlur", "showSearch", "autoClearSearchValue", "treeData", "searchValue"];
|
|
62019
63212
|
/**
|
|
62020
63213
|
* Tree select
|
|
62021
63214
|
* A function that returns a React component.
|
|
@@ -62029,7 +63222,7 @@
|
|
|
62029
63222
|
light = _ref.light,
|
|
62030
63223
|
label = _ref.label,
|
|
62031
63224
|
render = _ref.render,
|
|
62032
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
63225
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$J);
|
|
62033
63226
|
|
|
62034
63227
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
62035
63228
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -62051,7 +63244,7 @@
|
|
|
62051
63244
|
autoClearSearchValue = _ref2.autoClearSearchValue,
|
|
62052
63245
|
treeData = _ref2.treeData,
|
|
62053
63246
|
propsSearchValue = _ref2.searchValue,
|
|
62054
|
-
fieldProps = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
63247
|
+
fieldProps = _objectWithoutProperties$1(_ref2, _excluded2$c);
|
|
62055
63248
|
|
|
62056
63249
|
var size = React.useContext(_ConfigProvider__default['default'].SizeContext);
|
|
62057
63250
|
|
|
@@ -62282,7 +63475,7 @@
|
|
|
62282
63475
|
});
|
|
62283
63476
|
}
|
|
62284
63477
|
|
|
62285
|
-
var _excluded$
|
|
63478
|
+
var _excluded$K = ["text", "valueType", "mode", "onChange", "renderFormItem", "value", "readonly"];
|
|
62286
63479
|
var REQUEST_VALUE_TYPE = ['select', 'radio', 'radioButton', 'checkbook'];
|
|
62287
63480
|
/**
|
|
62288
63481
|
* Render valueType object
|
|
@@ -62716,7 +63909,7 @@
|
|
|
62716
63909
|
renderFormItem = _ref.renderFormItem,
|
|
62717
63910
|
value = _ref.value,
|
|
62718
63911
|
readonly = _ref.readonly,
|
|
62719
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
63912
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$K);
|
|
62720
63913
|
|
|
62721
63914
|
var intl = useIntl();
|
|
62722
63915
|
var context = React.useContext(ConfigContext);
|
|
@@ -65501,7 +66694,7 @@
|
|
|
65501
66694
|
});
|
|
65502
66695
|
};
|
|
65503
66696
|
|
|
65504
|
-
var _excluded$
|
|
66697
|
+
var _excluded$L = ["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"];
|
|
65505
66698
|
var useBreakpoint = _Grid__default['default'].useBreakpoint;
|
|
65506
66699
|
var Card = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) {
|
|
65507
66700
|
var _classNames2, _classNames3, _classNames4;
|
|
@@ -65547,7 +66740,7 @@
|
|
|
65547
66740
|
onChecked = props.onChecked,
|
|
65548
66741
|
tabs = props.tabs,
|
|
65549
66742
|
type = props.type,
|
|
65550
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
66743
|
+
rest = _objectWithoutProperties$1(props, _excluded$L);
|
|
65551
66744
|
|
|
65552
66745
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
65553
66746
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -65752,7 +66945,7 @@
|
|
|
65752
66945
|
});
|
|
65753
66946
|
};
|
|
65754
66947
|
|
|
65755
|
-
var _excluded$
|
|
66948
|
+
var _excluded$M = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
|
|
65756
66949
|
|
|
65757
66950
|
var TabPane = function TabPane(props) {
|
|
65758
66951
|
var key = props.key,
|
|
@@ -65764,7 +66957,7 @@
|
|
|
65764
66957
|
className = props.className,
|
|
65765
66958
|
style = props.style,
|
|
65766
66959
|
cardProps = props.cardProps,
|
|
65767
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
66960
|
+
rest = _objectWithoutProperties$1(props, _excluded$M);
|
|
65768
66961
|
|
|
65769
66962
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
65770
66963
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -67929,7 +69122,7 @@
|
|
|
67929
69122
|
return _finishOnFirstFailed.apply(this, arguments);
|
|
67930
69123
|
}
|
|
67931
69124
|
|
|
67932
|
-
var _excluded$
|
|
69125
|
+
var _excluded$N = ["name"];
|
|
67933
69126
|
var EMPTY_ERRORS = [];
|
|
67934
69127
|
|
|
67935
69128
|
function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
@@ -68541,7 +69734,7 @@
|
|
|
68541
69734
|
|
|
68542
69735
|
function WrapperField(_ref5) {
|
|
68543
69736
|
var name = _ref5.name,
|
|
68544
|
-
restProps = _objectWithoutProperties$1(_ref5, _excluded$
|
|
69737
|
+
restProps = _objectWithoutProperties$1(_ref5, _excluded$N);
|
|
68545
69738
|
|
|
68546
69739
|
var fieldContext = React.useContext(Context$3);
|
|
68547
69740
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -68841,7 +70034,7 @@
|
|
|
68841
70034
|
return NameMap;
|
|
68842
70035
|
}();
|
|
68843
70036
|
|
|
68844
|
-
var _excluded$
|
|
70037
|
+
var _excluded$O = ["name", "errors"];
|
|
68845
70038
|
var FormStore = /*#__PURE__*/_createClass(function FormStore(forceRootUpdate) {
|
|
68846
70039
|
var _this = this;
|
|
68847
70040
|
|
|
@@ -69343,7 +70536,7 @@
|
|
|
69343
70536
|
fields.forEach(function (fieldData) {
|
|
69344
70537
|
var name = fieldData.name,
|
|
69345
70538
|
errors = fieldData.errors,
|
|
69346
|
-
data = _objectWithoutProperties$1(fieldData, _excluded$
|
|
70539
|
+
data = _objectWithoutProperties$1(fieldData, _excluded$O);
|
|
69347
70540
|
|
|
69348
70541
|
var namePath = getNamePath(name);
|
|
69349
70542
|
namePathList.push(namePath); // Value
|
|
@@ -69865,7 +71058,7 @@
|
|
|
69865
71058
|
}, children);
|
|
69866
71059
|
};
|
|
69867
71060
|
|
|
69868
|
-
var _excluded$
|
|
71061
|
+
var _excluded$P = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
69869
71062
|
|
|
69870
71063
|
var Form = function Form(_ref, ref) {
|
|
69871
71064
|
var name = _ref.name,
|
|
@@ -69883,7 +71076,7 @@
|
|
|
69883
71076
|
_onFieldsChange = _ref.onFieldsChange,
|
|
69884
71077
|
_onFinish = _ref.onFinish,
|
|
69885
71078
|
onFinishFailed = _ref.onFinishFailed,
|
|
69886
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
71079
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$P);
|
|
69887
71080
|
|
|
69888
71081
|
var formContext = React.useContext(FormContext); // We customize handle event since Context will makes all the consumer re-render:
|
|
69889
71082
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -70113,8 +71306,8 @@
|
|
|
70113
71306
|
|
|
70114
71307
|
var FieldContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
70115
71308
|
|
|
70116
|
-
var _excluded$
|
|
70117
|
-
_excluded2$
|
|
71309
|
+
var _excluded$Q = ["children", "Wrapper"],
|
|
71310
|
+
_excluded2$d = ["children", "Wrapper"];
|
|
70118
71311
|
var GridContext = /*#__PURE__*/React.createContext({
|
|
70119
71312
|
grid: false,
|
|
70120
71313
|
colProps: undefined,
|
|
@@ -70130,7 +71323,7 @@
|
|
|
70130
71323
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
70131
71324
|
children = _ref2.children,
|
|
70132
71325
|
Wrapper = _ref2.Wrapper,
|
|
70133
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
71326
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$Q);
|
|
70134
71327
|
|
|
70135
71328
|
if (!grid) {
|
|
70136
71329
|
return Wrapper ? jsxRuntime.jsx(Wrapper, {
|
|
@@ -70148,7 +71341,7 @@
|
|
|
70148
71341
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
70149
71342
|
children = _ref3.children,
|
|
70150
71343
|
Wrapper = _ref3.Wrapper,
|
|
70151
|
-
rest = _objectWithoutProperties$1(_ref3, _excluded2$
|
|
71344
|
+
rest = _objectWithoutProperties$1(_ref3, _excluded2$d);
|
|
70152
71345
|
|
|
70153
71346
|
var props = React.useMemo(function () {
|
|
70154
71347
|
var originProps = _objectSpread2(_objectSpread2({}, colProps), rest);
|
|
@@ -70206,8 +71399,8 @@
|
|
|
70206
71399
|
JSON.stringify([colProps, config === null || config === void 0 ? void 0 : config.colProps, config === null || config === void 0 ? void 0 : config.rowProps])]);
|
|
70207
71400
|
};
|
|
70208
71401
|
|
|
70209
|
-
var _excluded$
|
|
70210
|
-
_excluded2$
|
|
71402
|
+
var _excluded$R = ["valueType", "customLightMode", "lightFilterLabelFormatter", "valuePropName", "ignoreWidth", "defaultProps"],
|
|
71403
|
+
_excluded2$e = ["label", "tooltip", "placeholder", "width", "bordered", "messageVariables", "ignoreFormItem", "transform", "convertValue", "readonly", "allowClear", "colSize", "getFormItemProps", "getFieldProps", "filedConfig", "cacheForSwr", "proFieldProps"];
|
|
70211
71404
|
var WIDTH_SIZE_ENUM = {
|
|
70212
71405
|
// 适用于短数字,短文本或者选项
|
|
70213
71406
|
xs: 104,
|
|
@@ -70246,7 +71439,7 @@
|
|
|
70246
71439
|
valuePropName = _ref$valuePropName === void 0 ? 'value' : _ref$valuePropName,
|
|
70247
71440
|
ignoreWidth = _ref.ignoreWidth,
|
|
70248
71441
|
defaultProps = _ref.defaultProps,
|
|
70249
|
-
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
71442
|
+
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$R);
|
|
70250
71443
|
|
|
70251
71444
|
var _defaultProps$props = _objectSpread2(_objectSpread2({}, defaultProps), props),
|
|
70252
71445
|
label = _defaultProps$props.label,
|
|
@@ -70266,7 +71459,7 @@
|
|
|
70266
71459
|
filedConfig = _defaultProps$props.filedConfig,
|
|
70267
71460
|
cacheForSwr = _defaultProps$props.cacheForSwr,
|
|
70268
71461
|
proFieldProps = _defaultProps$props.proFieldProps,
|
|
70269
|
-
rest = _objectWithoutProperties$1(_defaultProps$props, _excluded2$
|
|
71462
|
+
rest = _objectWithoutProperties$1(_defaultProps$props, _excluded2$e);
|
|
70270
71463
|
|
|
70271
71464
|
var valueType = tmpValueType || rest.valueType; // 有些 valueType 不需要宽度
|
|
70272
71465
|
|
|
@@ -70459,7 +71652,7 @@
|
|
|
70459
71652
|
mode: 'edit'
|
|
70460
71653
|
});
|
|
70461
71654
|
|
|
70462
|
-
var _excluded$
|
|
71655
|
+
var _excluded$S = ["fieldProps", "children", "labelCol", "label", "autoFocus", "isDefaultDom", "render", "proFieldProps", "renderFormItem", "valueType", "initialValue", "onChange", "valueEnum", "params", "name", "dependenciesValues", "cacheForSwr", "valuePropName"];
|
|
70463
71656
|
|
|
70464
71657
|
var BaseProFormField = function BaseProFormField(props) {
|
|
70465
71658
|
var fieldProps = props.fieldProps,
|
|
@@ -70482,7 +71675,7 @@
|
|
|
70482
71675
|
cacheForSwr = _props$cacheForSwr === void 0 ? false : _props$cacheForSwr,
|
|
70483
71676
|
_props$valuePropName = props.valuePropName,
|
|
70484
71677
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
70485
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
71678
|
+
restProps = _objectWithoutProperties$1(props, _excluded$S);
|
|
70486
71679
|
|
|
70487
71680
|
var modeContext = React.useContext(EditOrReadOnlyContext);
|
|
70488
71681
|
var propsParams = React.useMemo(function () {
|
|
@@ -70557,7 +71750,7 @@
|
|
|
70557
71750
|
return isDeepEqualReact(nextProps, prevProps, ['onChange', 'onBlur']);
|
|
70558
71751
|
}));
|
|
70559
71752
|
|
|
70560
|
-
var _excluded$
|
|
71753
|
+
var _excluded$T = ["creatorButtonProps", "deleteIconProps", "copyIconProps", "itemContainerRender", "itemRender", "alwaysShowItemLabel", "prefixCls", "creatorRecord", "action", "actionGuard", "children", "actionRender", "fields", "meta", "field", "index", "formInstance", "originName", "min", "max", "count"];
|
|
70561
71754
|
/** Antd 自带的toArray 不支持方法,所以需要自己搞一个 */
|
|
70562
71755
|
|
|
70563
71756
|
var listToArray = function listToArray(children) {
|
|
@@ -70596,7 +71789,7 @@
|
|
|
70596
71789
|
min = props.min,
|
|
70597
71790
|
max = props.max,
|
|
70598
71791
|
count = props.count,
|
|
70599
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
71792
|
+
rest = _objectWithoutProperties$1(props, _excluded$T);
|
|
70600
71793
|
|
|
70601
71794
|
var listContext = React.useContext(FormListContext);
|
|
70602
71795
|
var unmountedRef = React.useRef(false);
|
|
@@ -71068,7 +72261,7 @@
|
|
|
71068
72261
|
});
|
|
71069
72262
|
};
|
|
71070
72263
|
|
|
71071
|
-
var _excluded$
|
|
72264
|
+
var _excluded$U = ["actionRender", "creatorButtonProps", "label", "alwaysShowItemLabel", "tooltip", "creatorRecord", "itemRender", "rules", "itemContainerRender", "fieldExtraRender", "copyIconProps", "children", "deleteIconProps", "actionRef", "style", "prefixCls", "actionGuard", "min", "max", "colProps", "rowProps", "onAfterAdd", "onAfterRemove", "isValidateList", "emptyListMessage"];
|
|
71072
72265
|
var FormListContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
71073
72266
|
|
|
71074
72267
|
function ProFormList(props) {
|
|
@@ -71114,7 +72307,7 @@
|
|
|
71114
72307
|
isValidateList = _props$isValidateList === void 0 ? false : _props$isValidateList,
|
|
71115
72308
|
_props$emptyListMessa = props.emptyListMessage,
|
|
71116
72309
|
emptyListMessage = _props$emptyListMessa === void 0 ? '列表不能为空' : _props$emptyListMessa,
|
|
71117
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
72310
|
+
rest = _objectWithoutProperties$1(props, _excluded$U);
|
|
71118
72311
|
|
|
71119
72312
|
var _useGridHelpers = useGridHelpers({
|
|
71120
72313
|
colProps: colProps,
|
|
@@ -71226,13 +72419,13 @@
|
|
|
71226
72419
|
});
|
|
71227
72420
|
}
|
|
71228
72421
|
|
|
71229
|
-
var _excluded$
|
|
72422
|
+
var _excluded$V = ["name", "children", "ignoreFormListField"];
|
|
71230
72423
|
|
|
71231
72424
|
var ProFormDependency = function ProFormDependency(_ref) {
|
|
71232
72425
|
var names = _ref.name,
|
|
71233
72426
|
_children = _ref.children,
|
|
71234
72427
|
ignoreFormListField = _ref.ignoreFormListField,
|
|
71235
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
72428
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$V);
|
|
71236
72429
|
|
|
71237
72430
|
var context = React.useContext(ProFormContext); // ProFromList 的 field,里面有name和key
|
|
71238
72431
|
|
|
@@ -71301,8 +72494,8 @@
|
|
|
71301
72494
|
}));
|
|
71302
72495
|
};
|
|
71303
72496
|
|
|
71304
|
-
var _excluded$
|
|
71305
|
-
_excluded2$
|
|
72497
|
+
var _excluded$W = ["children", "value", "valuePropName", "onChange", "fieldProps", "space", "type", "transform", "convertValue"],
|
|
72498
|
+
_excluded2$f = ["children", "space", "valuePropName"];
|
|
71306
72499
|
var FieldSetType = {
|
|
71307
72500
|
space: _Space__default['default'],
|
|
71308
72501
|
group: _Input__default['default'].Group
|
|
@@ -71329,7 +72522,7 @@
|
|
|
71329
72522
|
type = _ref$type === void 0 ? 'space' : _ref$type,
|
|
71330
72523
|
transform = _ref.transform,
|
|
71331
72524
|
convertValue = _ref.convertValue,
|
|
71332
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
72525
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$W);
|
|
71333
72526
|
|
|
71334
72527
|
/**
|
|
71335
72528
|
* 使用方法的引用防止闭包
|
|
@@ -71412,7 +72605,7 @@
|
|
|
71412
72605
|
var children = _ref3.children,
|
|
71413
72606
|
space = _ref3.space,
|
|
71414
72607
|
valuePropName = _ref3.valuePropName,
|
|
71415
|
-
rest = _objectWithoutProperties$1(_ref3, _excluded2$
|
|
72608
|
+
rest = _objectWithoutProperties$1(_ref3, _excluded2$f);
|
|
71416
72609
|
|
|
71417
72610
|
React.useImperativeHandle(ref, function () {
|
|
71418
72611
|
return {};
|
|
@@ -71429,9 +72622,9 @@
|
|
|
71429
72622
|
});
|
|
71430
72623
|
var ProFormFieldSet = createField(BaseProFormFieldSet);
|
|
71431
72624
|
|
|
71432
|
-
var _excluded$
|
|
71433
|
-
_excluded2$
|
|
71434
|
-
_excluded3$
|
|
72625
|
+
var _excluded$X = ["children", "onChange", "onBlur", "ignoreFormItem", "valuePropName"],
|
|
72626
|
+
_excluded2$g = ["children", "addonAfter", "addonBefore", "valuePropName", "convertValue"],
|
|
72627
|
+
_excluded3$5 = ["valueType", "transform", "dataFormat", "ignoreFormItem", "lightProps", "children"];
|
|
71435
72628
|
var FormItemProvide = /*#__PURE__*/React__default['default'].createContext({});
|
|
71436
72629
|
/**
|
|
71437
72630
|
* 把value扔给 fieldProps,方便给自定义用
|
|
@@ -71447,7 +72640,7 @@
|
|
|
71447
72640
|
ignoreFormItem = formFieldProps.ignoreFormItem,
|
|
71448
72641
|
_formFieldProps$value = formFieldProps.valuePropName,
|
|
71449
72642
|
valuePropName = _formFieldProps$value === void 0 ? 'value' : _formFieldProps$value,
|
|
71450
|
-
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$
|
|
72643
|
+
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$X);
|
|
71451
72644
|
|
|
71452
72645
|
var onChangeMemo = React.useCallback(function () {
|
|
71453
72646
|
var _filedChildren$type, _filedChildren$props, _filedChildren$props$, _filedChildren$props2, _filedChildren$props3, _filedChildren$props4;
|
|
@@ -71529,7 +72722,7 @@
|
|
|
71529
72722
|
addonBefore = _ref.addonBefore,
|
|
71530
72723
|
valuePropName = _ref.valuePropName,
|
|
71531
72724
|
convertValue = _ref.convertValue,
|
|
71532
|
-
props = _objectWithoutProperties$1(_ref, _excluded2$
|
|
72725
|
+
props = _objectWithoutProperties$1(_ref, _excluded2$g);
|
|
71533
72726
|
|
|
71534
72727
|
var formDom = React.useMemo(function () {
|
|
71535
72728
|
var getValuePropsFunc = function getValuePropsFunc(value) {
|
|
@@ -71606,7 +72799,7 @@
|
|
|
71606
72799
|
_props$lightProps = props.lightProps,
|
|
71607
72800
|
lightProps = _props$lightProps === void 0 ? {} : _props$lightProps,
|
|
71608
72801
|
unusedChildren = props.children,
|
|
71609
|
-
rest = _objectWithoutProperties$1(props, _excluded3$
|
|
72802
|
+
rest = _objectWithoutProperties$1(props, _excluded3$5);
|
|
71610
72803
|
|
|
71611
72804
|
var formListField = React.useContext(FormListContext); // ProFromList 的 filed,里面有name和key
|
|
71612
72805
|
|
|
@@ -73797,7 +74990,7 @@
|
|
|
73797
74990
|
module.exports = merge;
|
|
73798
74991
|
});
|
|
73799
74992
|
|
|
73800
|
-
var _excluded$
|
|
74993
|
+
var _excluded$Y = ["children", "trigger", "onVisibleChange", "drawerProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
73801
74994
|
|
|
73802
74995
|
function DrawerForm(_ref) {
|
|
73803
74996
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -73811,7 +75004,7 @@
|
|
|
73811
75004
|
title = _ref.title,
|
|
73812
75005
|
width = _ref.width,
|
|
73813
75006
|
propVisible = _ref.visible,
|
|
73814
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
75007
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$Y);
|
|
73815
75008
|
|
|
73816
75009
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
73817
75010
|
!rest['footer'] || !(drawerProps === null || drawerProps === void 0 ? void 0 : drawerProps.footer), 'DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -74035,7 +75228,7 @@
|
|
|
74035
75228
|
});
|
|
74036
75229
|
}
|
|
74037
75230
|
|
|
74038
|
-
var _excluded$
|
|
75231
|
+
var _excluded$Z = ["size", "collapse", "collapseLabel", "initialValues", "onValuesChange", "form", "placement", "formRef", "bordered", "ignoreRules", "footerRender"];
|
|
74039
75232
|
/**
|
|
74040
75233
|
* 单行的查询表单,一般用于配合 table 或者 list使用 有时也会用于 card 的额外区域
|
|
74041
75234
|
*
|
|
@@ -74205,7 +75398,7 @@
|
|
|
74205
75398
|
bordered = props.bordered,
|
|
74206
75399
|
ignoreRules = props.ignoreRules,
|
|
74207
75400
|
footerRender = props.footerRender,
|
|
74208
|
-
reset = _objectWithoutProperties$1(props, _excluded$
|
|
75401
|
+
reset = _objectWithoutProperties$1(props, _excluded$Z);
|
|
74209
75402
|
|
|
74210
75403
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
74211
75404
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -74278,7 +75471,7 @@
|
|
|
74278
75471
|
}));
|
|
74279
75472
|
}
|
|
74280
75473
|
|
|
74281
|
-
var _excluded$
|
|
75474
|
+
var _excluded$_ = ["children", "trigger", "onVisibleChange", "modalProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
74282
75475
|
|
|
74283
75476
|
function ModalForm(_ref) {
|
|
74284
75477
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -74292,7 +75485,7 @@
|
|
|
74292
75485
|
title = _ref.title,
|
|
74293
75486
|
width = _ref.width,
|
|
74294
75487
|
propVisible = _ref.visible,
|
|
74295
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
75488
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$_);
|
|
74296
75489
|
|
|
74297
75490
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
74298
75491
|
!rest['footer'] || !(modalProps === null || modalProps === void 0 ? void 0 : modalProps.footer), 'ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -75472,7 +76665,7 @@
|
|
|
75472
76665
|
* ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
|
|
75473
76666
|
* exposing only those methods and properties that are defined in the spec.
|
|
75474
76667
|
*/
|
|
75475
|
-
var ResizeObserver = /** @class */ (function () {
|
|
76668
|
+
var ResizeObserver$1 = /** @class */ (function () {
|
|
75476
76669
|
/**
|
|
75477
76670
|
* Creates a new instance of ResizeObserver.
|
|
75478
76671
|
*
|
|
@@ -75498,7 +76691,7 @@
|
|
|
75498
76691
|
'unobserve',
|
|
75499
76692
|
'disconnect'
|
|
75500
76693
|
].forEach(function (method) {
|
|
75501
|
-
ResizeObserver.prototype[method] = function () {
|
|
76694
|
+
ResizeObserver$1.prototype[method] = function () {
|
|
75502
76695
|
var _a;
|
|
75503
76696
|
return (_a = observers.get(this))[method].apply(_a, arguments);
|
|
75504
76697
|
};
|
|
@@ -75509,7 +76702,7 @@
|
|
|
75509
76702
|
if (typeof global$1.ResizeObserver !== 'undefined') {
|
|
75510
76703
|
return global$1.ResizeObserver;
|
|
75511
76704
|
}
|
|
75512
|
-
return ResizeObserver;
|
|
76705
|
+
return ResizeObserver$1;
|
|
75513
76706
|
})();
|
|
75514
76707
|
|
|
75515
76708
|
var elementListeners = new Map();
|
|
@@ -75702,7 +76895,7 @@
|
|
|
75702
76895
|
|
|
75703
76896
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key';
|
|
75704
76897
|
|
|
75705
|
-
function ResizeObserver$
|
|
76898
|
+
function ResizeObserver$2(props) {
|
|
75706
76899
|
var children = props.children;
|
|
75707
76900
|
var childNodes = typeof children === 'function' ? [children] : toArray$1(children);
|
|
75708
76901
|
|
|
@@ -75722,7 +76915,7 @@
|
|
|
75722
76915
|
});
|
|
75723
76916
|
}
|
|
75724
76917
|
|
|
75725
|
-
ResizeObserver$
|
|
76918
|
+
ResizeObserver$2.Collection = Collection;
|
|
75726
76919
|
|
|
75727
76920
|
var defaultCollapseRender = function defaultCollapseRender(collapsed, _, intl, hiddenNum) {
|
|
75728
76921
|
if (collapsed) {
|
|
@@ -75780,7 +76973,7 @@
|
|
|
75780
76973
|
});
|
|
75781
76974
|
};
|
|
75782
76975
|
|
|
75783
|
-
var _excluded
|
|
76976
|
+
var _excluded$$ = ["collapsed", "layout", "defaultCollapsed", "defaultColsNumber", "span", "searchGutter", "searchText", "resetText", "optionRender", "collapseRender", "onReset", "onCollapse", "labelWidth", "style", "split", "preserve", "ignoreRules", "showHiddenNum"];
|
|
75784
76977
|
|
|
75785
76978
|
var _document, _document$body;
|
|
75786
76979
|
var CONFIG_SPAN_BREAKPOINTS = {
|
|
@@ -76051,7 +77244,7 @@
|
|
|
76051
77244
|
ignoreRules = props.ignoreRules,
|
|
76052
77245
|
_props$showHiddenNum = props.showHiddenNum,
|
|
76053
77246
|
showHiddenNum = _props$showHiddenNum === void 0 ? false : _props$showHiddenNum,
|
|
76054
|
-
rest = _objectWithoutProperties$1(props, _excluded
|
|
77247
|
+
rest = _objectWithoutProperties$1(props, _excluded$$);
|
|
76055
77248
|
|
|
76056
77249
|
var context = React.useContext(_ConfigProvider__default['default'].ConfigContext);
|
|
76057
77250
|
var baseClassName = context.getPrefixCls('pro-form-query-filter');
|
|
@@ -76095,7 +77288,7 @@
|
|
|
76095
77288
|
|
|
76096
77289
|
return undefined;
|
|
76097
77290
|
}, [spanSize.layout, labelWidth]);
|
|
76098
|
-
return jsxRuntime.jsx(ResizeObserver$
|
|
77291
|
+
return jsxRuntime.jsx(ResizeObserver$2, {
|
|
76099
77292
|
onResize: function onResize(offset) {
|
|
76100
77293
|
if (width !== offset.width && offset.width > 17) {
|
|
76101
77294
|
setWidth(offset.width);
|
|
@@ -76146,7 +77339,7 @@
|
|
|
76146
77339
|
}, "resize-observer");
|
|
76147
77340
|
}
|
|
76148
77341
|
|
|
76149
|
-
var _excluded$
|
|
77342
|
+
var _excluded$10 = ["onFinish", "step", "formRef", "title", "stepProps"];
|
|
76150
77343
|
|
|
76151
77344
|
function StepForm(props) {
|
|
76152
77345
|
var formRef = React.useRef();
|
|
@@ -76157,7 +77350,7 @@
|
|
|
76157
77350
|
propFormRef = props.formRef,
|
|
76158
77351
|
title = props.title,
|
|
76159
77352
|
stepProps = props.stepProps,
|
|
76160
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
77353
|
+
restProps = _objectWithoutProperties$1(props, _excluded$10); // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
76161
77354
|
|
|
76162
77355
|
|
|
76163
77356
|
noteOnce(!restProps['submitter'], 'StepForm 不包含提交按钮,请在 StepsForm 上');
|
|
@@ -76235,7 +77428,7 @@
|
|
|
76235
77428
|
}, restProps));
|
|
76236
77429
|
}
|
|
76237
77430
|
|
|
76238
|
-
var _excluded$
|
|
77431
|
+
var _excluded$11 = ["current", "onCurrentChange", "submitter", "stepsFormRender", "stepsRender", "stepFormRender", "stepsProps", "onFinish", "formProps", "containerStyle", "formRef", "formMapRef"];
|
|
76239
77432
|
var StepsFormProvide = /*#__PURE__*/React__default['default'].createContext(undefined);
|
|
76240
77433
|
var StepsLayoutStrategy = {
|
|
76241
77434
|
horizontal: function horizontal(_ref) {
|
|
@@ -76321,7 +77514,7 @@
|
|
|
76321
77514
|
containerStyle = props.containerStyle,
|
|
76322
77515
|
formRef = props.formRef,
|
|
76323
77516
|
propsFormMapRef = props.formMapRef,
|
|
76324
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
77517
|
+
rest = _objectWithoutProperties$1(props, _excluded$11);
|
|
76325
77518
|
|
|
76326
77519
|
var formDataRef = React.useRef(new Map());
|
|
76327
77520
|
var formMapRef = React.useRef(new Map());
|
|
@@ -76653,14 +77846,14 @@
|
|
|
76653
77846
|
});
|
|
76654
77847
|
};
|
|
76655
77848
|
|
|
76656
|
-
var _excluded$
|
|
77849
|
+
var _excluded$12 = ["steps", "columns", "forceUpdate", "grid"];
|
|
76657
77850
|
|
|
76658
77851
|
var StepsForm$1 = function StepsForm(_ref) {
|
|
76659
77852
|
var steps = _ref.steps,
|
|
76660
77853
|
columns = _ref.columns,
|
|
76661
77854
|
forceUpdate = _ref.forceUpdate,
|
|
76662
77855
|
grid = _ref.grid,
|
|
76663
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
77856
|
+
props = _objectWithoutProperties$1(_ref, _excluded$12);
|
|
76664
77857
|
|
|
76665
77858
|
var propsRef = useLatest(props);
|
|
76666
77859
|
/**
|
|
@@ -76877,7 +78070,7 @@
|
|
|
76877
78070
|
return field(item, helpers);
|
|
76878
78071
|
};
|
|
76879
78072
|
|
|
76880
|
-
var _excluded
|
|
78073
|
+
var _excluded$13 = ["columns", "layoutType", "type", "action", "shouldUpdate"];
|
|
76881
78074
|
var FormLayoutType = {
|
|
76882
78075
|
DrawerForm: DrawerForm,
|
|
76883
78076
|
QueryFilter: QueryFilter,
|
|
@@ -76902,7 +78095,7 @@
|
|
|
76902
78095
|
action = props.action,
|
|
76903
78096
|
_props$shouldUpdate = props.shouldUpdate,
|
|
76904
78097
|
shouldUpdate = _props$shouldUpdate === void 0 ? true : _props$shouldUpdate,
|
|
76905
|
-
restProps = _objectWithoutProperties$1(props, _excluded
|
|
78098
|
+
restProps = _objectWithoutProperties$1(props, _excluded$13);
|
|
76906
78099
|
|
|
76907
78100
|
var FormRenderComponents = FormLayoutType[layoutType] || ProForm;
|
|
76908
78101
|
|
|
@@ -77133,8 +78326,8 @@
|
|
|
77133
78326
|
return renderDom;
|
|
77134
78327
|
};
|
|
77135
78328
|
|
|
77136
|
-
var _excluded$
|
|
77137
|
-
_excluded2$
|
|
78329
|
+
var _excluded$14 = ["children", "contentRender", "submitter", "fieldProps", "formItemProps", "groupProps", "transformKey", "formRef", "onInit", "form", "loading", "formComponentType", "extraUrlParams", "syncToUrl", "onUrlSearchChange", "onReset", "omitNil", "isKeyPressSubmit", "autoFocusFirstInput", "grid", "rowProps", "colProps"],
|
|
78330
|
+
_excluded2$h = ["extraUrlParams", "syncToUrl", "isKeyPressSubmit", "syncToUrlAsImportant", "syncToInitialValues", "children", "contentRender", "submitter", "fieldProps", "formItemProps", "groupProps", "dateFormatter", "formRef", "onInit", "form", "formComponentType", "onReset", "grid", "rowProps", "colProps", "omitNil", "request", "params", "initialValues", "formKey", "readonly"];
|
|
77138
78331
|
|
|
77139
78332
|
var genParams = function genParams(syncUrl, params, type) {
|
|
77140
78333
|
if (syncUrl === true) {
|
|
@@ -77185,7 +78378,7 @@
|
|
|
77185
78378
|
grid = props.grid,
|
|
77186
78379
|
rowProps = props.rowProps,
|
|
77187
78380
|
colProps = props.colProps,
|
|
77188
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
78381
|
+
rest = _objectWithoutProperties$1(props, _excluded$14);
|
|
77189
78382
|
/**
|
|
77190
78383
|
* 获取 form 实例
|
|
77191
78384
|
*/
|
|
@@ -77444,7 +78637,7 @@
|
|
|
77444
78637
|
_props$formKey = props.formKey,
|
|
77445
78638
|
formKey = _props$formKey === void 0 ? requestFormCacheId : _props$formKey,
|
|
77446
78639
|
readonly = props.readonly,
|
|
77447
|
-
propRest = _objectWithoutProperties$1(props, _excluded2$
|
|
78640
|
+
propRest = _objectWithoutProperties$1(props, _excluded2$h);
|
|
77448
78641
|
|
|
77449
78642
|
var formRef = React.useRef({});
|
|
77450
78643
|
|
|
@@ -77658,7 +78851,7 @@
|
|
|
77658
78851
|
});
|
|
77659
78852
|
}
|
|
77660
78853
|
|
|
77661
|
-
var _excluded$
|
|
78854
|
+
var _excluded$15 = ["label", "size", "disabled", "onChange", "className", "style", "children", "valuePropName", "placeholder", "labelFormatter", "bordered", "footerRender", "allowClear", "otherFieldProps", "valueType", "placement"];
|
|
77662
78855
|
|
|
77663
78856
|
var LightWrapper = function LightWrapper(props) {
|
|
77664
78857
|
var _objectSpread2$1;
|
|
@@ -77679,7 +78872,7 @@
|
|
|
77679
78872
|
otherFieldProps = props.otherFieldProps,
|
|
77680
78873
|
valueType = props.valueType,
|
|
77681
78874
|
placement = props.placement,
|
|
77682
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
78875
|
+
rest = _objectWithoutProperties$1(props, _excluded$15);
|
|
77683
78876
|
|
|
77684
78877
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
77685
78878
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -78731,7 +79924,7 @@
|
|
|
78731
79924
|
|
|
78732
79925
|
var Container = createContainer(useContainer);
|
|
78733
79926
|
|
|
78734
|
-
var _excluded$
|
|
79927
|
+
var _excluded$16 = ["key", "dataIndex", "children"];
|
|
78735
79928
|
|
|
78736
79929
|
var ToolTipIcon = function ToolTipIcon(_ref) {
|
|
78737
79930
|
var title = _ref.title,
|
|
@@ -78840,7 +80033,7 @@
|
|
|
78840
80033
|
var key = _ref4.key,
|
|
78841
80034
|
dataIndex = _ref4.dataIndex,
|
|
78842
80035
|
children = _ref4.children,
|
|
78843
|
-
rest = _objectWithoutProperties$1(_ref4, _excluded$
|
|
80036
|
+
rest = _objectWithoutProperties$1(_ref4, _excluded$16);
|
|
78844
80037
|
|
|
78845
80038
|
var columnKey = genColumnKey(key, rest.index);
|
|
78846
80039
|
var config = columnsMap[columnKey || 'null'] || {
|
|
@@ -79302,7 +80495,7 @@
|
|
|
79302
80495
|
return colSpan;
|
|
79303
80496
|
};
|
|
79304
80497
|
|
|
79305
|
-
var _excluded$
|
|
80498
|
+
var _excluded$17 = ["label", "key"];
|
|
79306
80499
|
|
|
79307
80500
|
var HeaderMenu = function HeaderMenu(props) {
|
|
79308
80501
|
var _props$items = props.items,
|
|
@@ -79352,7 +80545,7 @@
|
|
|
79352
80545
|
children: items.map(function (_ref, index) {
|
|
79353
80546
|
var label = _ref.label,
|
|
79354
80547
|
key = _ref.key,
|
|
79355
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
80548
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$17);
|
|
79356
80549
|
|
|
79357
80550
|
return jsxRuntime.jsx(_Tabs__default['default'].TabPane, _objectSpread2({
|
|
79358
80551
|
tab: label
|
|
@@ -79703,7 +80896,7 @@
|
|
|
79703
80896
|
|
|
79704
80897
|
var FullScreenIcon$1 = /*#__PURE__*/React__default['default'].memo(FullScreenIcon);
|
|
79705
80898
|
|
|
79706
|
-
var _excluded$
|
|
80899
|
+
var _excluded$18 = ["headerTitle", "tooltip", "toolBarRender", "action", "options", "selectedRowKeys", "selectedRows", "toolbar", "onSearch", "columns"];
|
|
79707
80900
|
|
|
79708
80901
|
function getButtonText(_ref) {
|
|
79709
80902
|
var intl = _ref.intl;
|
|
@@ -79795,7 +80988,7 @@
|
|
|
79795
80988
|
toolbar = _ref2.toolbar,
|
|
79796
80989
|
onSearch = _ref2.onSearch,
|
|
79797
80990
|
columns = _ref2.columns,
|
|
79798
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
80991
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$18);
|
|
79799
80992
|
|
|
79800
80993
|
var counter = Container.useContainer();
|
|
79801
80994
|
var intl = useIntl();
|
|
@@ -79997,7 +81190,7 @@
|
|
|
79997
81190
|
return _createClass(ToolbarRender);
|
|
79998
81191
|
}(React__default['default'].Component);
|
|
79999
81192
|
|
|
80000
|
-
var _excluded$
|
|
81193
|
+
var _excluded$19 = ["data", "success", "total"];
|
|
80001
81194
|
/**
|
|
80002
81195
|
* 组合用户的配置和默认值
|
|
80003
81196
|
*
|
|
@@ -80185,7 +81378,7 @@
|
|
|
80185
81378
|
success = _ref6.success;
|
|
80186
81379
|
_ref6$total = _ref6.total;
|
|
80187
81380
|
total = _ref6$total === void 0 ? 0 : _ref6$total;
|
|
80188
|
-
rest = _objectWithoutProperties$1(_ref6, _excluded$
|
|
81381
|
+
rest = _objectWithoutProperties$1(_ref6, _excluded$19);
|
|
80189
81382
|
|
|
80190
81383
|
if (!(success === false)) {
|
|
80191
81384
|
_context.next = 24;
|
|
@@ -80463,7 +81656,7 @@
|
|
|
80463
81656
|
};
|
|
80464
81657
|
};
|
|
80465
81658
|
|
|
80466
|
-
var _excluded$
|
|
81659
|
+
var _excluded$1a = ["children"];
|
|
80467
81660
|
var SHOW_EMPTY_TEXT_LIST = ['', null, undefined];
|
|
80468
81661
|
/**
|
|
80469
81662
|
* 拼接用于编辑的 key
|
|
@@ -80526,7 +81719,7 @@
|
|
|
80526
81719
|
}, [columnProps, editableForm, index, rowName]);
|
|
80527
81720
|
var InlineItem = React.useCallback(function (_ref3) {
|
|
80528
81721
|
var children = _ref3.children,
|
|
80529
|
-
restProps = _objectWithoutProperties$1(_ref3, _excluded$
|
|
81722
|
+
restProps = _objectWithoutProperties$1(_ref3, _excluded$1a);
|
|
80530
81723
|
|
|
80531
81724
|
return jsxRuntime.jsx(InlineErrorFormItem$1, _objectSpread2(_objectSpread2({
|
|
80532
81725
|
popoverProps: {
|
|
@@ -80939,8 +82132,8 @@
|
|
|
80939
82132
|
});
|
|
80940
82133
|
}
|
|
80941
82134
|
|
|
80942
|
-
var _excluded$
|
|
80943
|
-
_excluded2$
|
|
82135
|
+
var _excluded$1b = ["rowKey", "tableClassName", "action", "tableColumn", "type", "pagination", "rowSelection", "size", "defaultSize", "tableStyle", "toolbarDom", "searchNode", "style", "cardProps", "alertDom", "name", "onSortChange", "onFilterChange", "options", "isLightFilter", "className", "cardBordered", "editableUtils", "getRowKey"],
|
|
82136
|
+
_excluded2$i = ["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"];
|
|
80944
82137
|
|
|
80945
82138
|
function TableRender(props) {
|
|
80946
82139
|
var rowKey = props.rowKey,
|
|
@@ -80967,7 +82160,7 @@
|
|
|
80967
82160
|
cardBordered = props.cardBordered,
|
|
80968
82161
|
editableUtils = props.editableUtils,
|
|
80969
82162
|
getRowKey = props.getRowKey,
|
|
80970
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
82163
|
+
rest = _objectWithoutProperties$1(props, _excluded$1b);
|
|
80971
82164
|
|
|
80972
82165
|
var counter = Container.useContainer();
|
|
80973
82166
|
/** 需要遍历一下,不然不支持嵌套表格 */
|
|
@@ -81218,7 +82411,7 @@
|
|
|
81218
82411
|
tooltip = props.tooltip,
|
|
81219
82412
|
_props$revalidateOnFo = props.revalidateOnFocus,
|
|
81220
82413
|
revalidateOnFocus = _props$revalidateOnFo === void 0 ? false : _props$revalidateOnFo,
|
|
81221
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
82414
|
+
rest = _objectWithoutProperties$1(props, _excluded2$i);
|
|
81222
82415
|
|
|
81223
82416
|
var className = classnames(defaultClassName, propsClassName);
|
|
81224
82417
|
/** 通用的来操作子节点的工具类 */
|
|
@@ -84119,10 +85312,10 @@
|
|
|
84119
85312
|
}, children);
|
|
84120
85313
|
};
|
|
84121
85314
|
|
|
84122
|
-
var _excluded$
|
|
85315
|
+
var _excluded$1c = ["children"];
|
|
84123
85316
|
var Item = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
84124
85317
|
var children = _ref.children,
|
|
84125
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
85318
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
84126
85319
|
|
|
84127
85320
|
return /*#__PURE__*/React__default['default'].createElement("th", _extends({}, props, {
|
|
84128
85321
|
ref: ref
|
|
@@ -84186,9 +85379,9 @@
|
|
|
84186
85379
|
editConfig: editConfig
|
|
84187
85380
|
};
|
|
84188
85381
|
|
|
84189
|
-
var _excluded$
|
|
84190
|
-
_excluded2$
|
|
84191
|
-
_excluded3$
|
|
85382
|
+
var _excluded$1d = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "emptyProps"],
|
|
85383
|
+
_excluded2$j = ["className", "style"],
|
|
85384
|
+
_excluded3$6 = ["onResize", "width", "onResizeStop"];
|
|
84192
85385
|
var Summary = ProviderWarp.Summary; // const DragHandle = SortableHandle(() => <MenuOutlined style={{ cursor: 'grab', color: '#999' }} />);
|
|
84193
85386
|
|
|
84194
85387
|
var DragHandle = sortableHandle(function () {
|
|
@@ -84239,7 +85432,7 @@
|
|
|
84239
85432
|
_props$size = props.size,
|
|
84240
85433
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
84241
85434
|
emptyProps = props.emptyProps,
|
|
84242
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
85435
|
+
resetProps = _objectWithoutProperties(props, _excluded$1d);
|
|
84243
85436
|
|
|
84244
85437
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
84245
85438
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -84316,7 +85509,7 @@
|
|
|
84316
85509
|
var DraggableBodyRow = function DraggableBodyRow(props) {
|
|
84317
85510
|
var className = props.className,
|
|
84318
85511
|
style = props.style,
|
|
84319
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
85512
|
+
restProps = _objectWithoutProperties(props, _excluded2$j);
|
|
84320
85513
|
|
|
84321
85514
|
var index = dataSource.findIndex(function (x) {
|
|
84322
85515
|
return x[rowKey || 'index'] === restProps['data-row-key'];
|
|
@@ -84611,7 +85804,7 @@
|
|
|
84611
85804
|
var onResize = props.onResize,
|
|
84612
85805
|
width = props.width,
|
|
84613
85806
|
onResizeStop = props.onResizeStop,
|
|
84614
|
-
restProps = _objectWithoutProperties(props, _excluded3$
|
|
85807
|
+
restProps = _objectWithoutProperties(props, _excluded3$6);
|
|
84615
85808
|
|
|
84616
85809
|
if (!width) {
|
|
84617
85810
|
return /*#__PURE__*/React__default['default'].createElement("th", restProps);
|
|
@@ -86434,8 +87627,8 @@
|
|
|
86434
87627
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, icon());
|
|
86435
87628
|
};
|
|
86436
87629
|
|
|
86437
|
-
var _excluded$
|
|
86438
|
-
var Paragraph = _Typography__default['default'].Paragraph;
|
|
87630
|
+
var _excluded$1e = ["desc"];
|
|
87631
|
+
var Paragraph$3 = _Typography__default['default'].Paragraph;
|
|
86439
87632
|
|
|
86440
87633
|
var Access = function Access(props) {
|
|
86441
87634
|
var _defaultConfig$desc, _defaultConfig$bigVie;
|
|
@@ -86464,7 +87657,7 @@
|
|
|
86464
87657
|
|
|
86465
87658
|
var defaultConfig = React.useMemo(function () {
|
|
86466
87659
|
var desc = config.desc,
|
|
86467
|
-
resetConfig = _objectWithoutProperties(config, _excluded$
|
|
87660
|
+
resetConfig = _objectWithoutProperties(config, _excluded$1e);
|
|
86468
87661
|
|
|
86469
87662
|
return _objectSpread({
|
|
86470
87663
|
title: 'title',
|
|
@@ -86555,7 +87748,7 @@
|
|
|
86555
87748
|
onClick: function onClick(e) {
|
|
86556
87749
|
return e.stopPropagation();
|
|
86557
87750
|
}
|
|
86558
|
-
}, /*#__PURE__*/React__default['default'].createElement(Paragraph, {
|
|
87751
|
+
}, /*#__PURE__*/React__default['default'].createElement(Paragraph$3, {
|
|
86559
87752
|
copyable: {
|
|
86560
87753
|
tooltips: false,
|
|
86561
87754
|
onCopy: function onCopy() {
|
|
@@ -86593,7 +87786,7 @@
|
|
|
86593
87786
|
})));
|
|
86594
87787
|
};
|
|
86595
87788
|
|
|
86596
|
-
var Paragraph$
|
|
87789
|
+
var Paragraph$4 = _Typography__default['default'].Paragraph;
|
|
86597
87790
|
|
|
86598
87791
|
var stateRender = function stateRender(v) {
|
|
86599
87792
|
switch (v) {
|
|
@@ -86725,7 +87918,7 @@
|
|
|
86725
87918
|
className: "title"
|
|
86726
87919
|
}, item[defaultConfig.title]), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
86727
87920
|
className: "code"
|
|
86728
|
-
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$
|
|
87921
|
+
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$4, {
|
|
86729
87922
|
copyable: {
|
|
86730
87923
|
tooltips: false,
|
|
86731
87924
|
onCopy: function onCopy() {
|
|
@@ -86856,7 +88049,7 @@
|
|
|
86856
88049
|
}, config)));
|
|
86857
88050
|
};
|
|
86858
88051
|
|
|
86859
|
-
var _excluded$
|
|
88052
|
+
var _excluded$1f = ["style", "defaultPage", "customCheck", "rowSelection"];
|
|
86860
88053
|
var initialState$2 = {
|
|
86861
88054
|
// 选中的数据
|
|
86862
88055
|
checkList: [],
|
|
@@ -86866,7 +88059,7 @@
|
|
|
86866
88059
|
}
|
|
86867
88060
|
};
|
|
86868
88061
|
|
|
86869
|
-
var reducer$
|
|
88062
|
+
var reducer$5 = function reducer(state, action) {
|
|
86870
88063
|
var checkList = action.checkList,
|
|
86871
88064
|
page = action.page,
|
|
86872
88065
|
ifScrollTopClear = action.ifScrollTopClear;
|
|
@@ -86899,9 +88092,9 @@
|
|
|
86899
88092
|
defaultPage = props.defaultPage,
|
|
86900
88093
|
customCheck = props.customCheck,
|
|
86901
88094
|
rowSelection = props.rowSelection,
|
|
86902
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
88095
|
+
resetProps = _objectWithoutProperties(props, _excluded$1f);
|
|
86903
88096
|
|
|
86904
|
-
var _useReducer = React.useReducer(reducer$
|
|
88097
|
+
var _useReducer = React.useReducer(reducer$5, initialState$2),
|
|
86905
88098
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
86906
88099
|
state = _useReducer2[0],
|
|
86907
88100
|
dispatch = _useReducer2[1];
|
|
@@ -87597,9 +88790,9 @@
|
|
|
87597
88790
|
return !Comp ? null : isReactComponent$1(Comp) ? /*#__PURE__*/React__default['default'].createElement(Comp, _objectSpread({}, props)) : Comp;
|
|
87598
88791
|
};
|
|
87599
88792
|
|
|
87600
|
-
var _excluded$
|
|
87601
|
-
_excluded2$
|
|
87602
|
-
_excluded3$
|
|
88793
|
+
var _excluded$1g = ["item"],
|
|
88794
|
+
_excluded2$k = ["item"],
|
|
88795
|
+
_excluded3$7 = ["type"];
|
|
87603
88796
|
|
|
87604
88797
|
var imgEmpty$2 = require('./icon_placeholder.png');
|
|
87605
88798
|
|
|
@@ -87664,7 +88857,7 @@
|
|
|
87664
88857
|
className: "filter_list"
|
|
87665
88858
|
}, function (_ref2) {
|
|
87666
88859
|
var item = _ref2.item,
|
|
87667
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
88860
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$1g);
|
|
87668
88861
|
|
|
87669
88862
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
87670
88863
|
className: classnames('filter_item', {
|
|
@@ -87780,7 +88973,7 @@
|
|
|
87780
88973
|
className: "filter_list"
|
|
87781
88974
|
}, function (_ref6) {
|
|
87782
88975
|
var item = _ref6.item,
|
|
87783
|
-
resetProps = _objectWithoutProperties(_ref6, _excluded2$
|
|
88976
|
+
resetProps = _objectWithoutProperties(_ref6, _excluded2$k);
|
|
87784
88977
|
|
|
87785
88978
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
87786
88979
|
className: classnames('filter_item', {
|
|
@@ -87946,7 +89139,7 @@
|
|
|
87946
89139
|
|
|
87947
89140
|
var FilterComp$1 = function FilterComp(props) {
|
|
87948
89141
|
var type = props.type,
|
|
87949
|
-
resetProps = _objectWithoutProperties(props, _excluded3$
|
|
89142
|
+
resetProps = _objectWithoutProperties(props, _excluded3$7);
|
|
87950
89143
|
|
|
87951
89144
|
switch (type) {
|
|
87952
89145
|
case 'select':
|
|
@@ -88095,7 +89288,7 @@
|
|
|
88095
89288
|
})))));
|
|
88096
89289
|
};
|
|
88097
89290
|
|
|
88098
|
-
var _excluded$
|
|
89291
|
+
var _excluded$1h = ["item"];
|
|
88099
89292
|
|
|
88100
89293
|
var imgEmpty$3 = require('./icon_placeholder.png');
|
|
88101
89294
|
|
|
@@ -88185,7 +89378,7 @@
|
|
|
88185
89378
|
className: "filter_list"
|
|
88186
89379
|
}, function (_ref4) {
|
|
88187
89380
|
var item = _ref4.item,
|
|
88188
|
-
resetProps = _objectWithoutProperties(_ref4, _excluded$
|
|
89381
|
+
resetProps = _objectWithoutProperties(_ref4, _excluded$1h);
|
|
88189
89382
|
|
|
88190
89383
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
88191
89384
|
className: classnames('filter_item', {
|
|
@@ -88202,7 +89395,7 @@
|
|
|
88202
89395
|
}), !renderOptions.length && /*#__PURE__*/React__default['default'].createElement(FilterEmpty$2, null)));
|
|
88203
89396
|
};
|
|
88204
89397
|
|
|
88205
|
-
var _excluded$
|
|
89398
|
+
var _excluded$1i = ["children", "className", "dropdownClassName", "type", "options", "showSearch"];
|
|
88206
89399
|
var prefixCls$4 = 'lm_select'; // 不同类型Select, 不同的默认配置
|
|
88207
89400
|
|
|
88208
89401
|
var config = {
|
|
@@ -88226,7 +89419,7 @@
|
|
|
88226
89419
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
88227
89420
|
options = props.options,
|
|
88228
89421
|
showSearch = props.showSearch,
|
|
88229
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
89422
|
+
others = _objectWithoutProperties(props, _excluded$1i);
|
|
88230
89423
|
|
|
88231
89424
|
var _React$useState = React__default['default'].useState(others.defaultValue || []),
|
|
88232
89425
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -88282,10 +89475,10 @@
|
|
|
88282
89475
|
}), children);
|
|
88283
89476
|
});
|
|
88284
89477
|
|
|
88285
|
-
var _excluded$
|
|
89478
|
+
var _excluded$1j = ["ghost"];
|
|
88286
89479
|
var CLMSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
88287
89480
|
var ghost = props.ghost,
|
|
88288
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
89481
|
+
others = _objectWithoutProperties(props, _excluded$1j);
|
|
88289
89482
|
|
|
88290
89483
|
if (ghost) {
|
|
88291
89484
|
return /*#__PURE__*/React__default['default'].createElement(Index$j, _objectSpread({}, others));
|
|
@@ -88314,7 +89507,7 @@
|
|
|
88314
89507
|
}));
|
|
88315
89508
|
};
|
|
88316
89509
|
|
|
88317
|
-
var _excluded$
|
|
89510
|
+
var _excluded$1k = ["wrapClassName", "size", "onOk", "onCancel", "okText", "cancelText"];
|
|
88318
89511
|
var prefixCls$5 = 'lm_modal';
|
|
88319
89512
|
|
|
88320
89513
|
var CLMModal = function CLMModal(props) {
|
|
@@ -88327,7 +89520,7 @@
|
|
|
88327
89520
|
okText = _props$okText === void 0 ? '确定' : _props$okText,
|
|
88328
89521
|
_props$cancelText = props.cancelText,
|
|
88329
89522
|
cancelText = _props$cancelText === void 0 ? '取消' : _props$cancelText,
|
|
88330
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
89523
|
+
other = _objectWithoutProperties(props, _excluded$1k);
|
|
88331
89524
|
|
|
88332
89525
|
return /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _objectSpread(_objectSpread({
|
|
88333
89526
|
wrapClassName: classnames(wrapClassName, prefixCls$5),
|
|
@@ -88675,7 +89868,7 @@
|
|
|
88675
89868
|
return [nextFrame, cancelNextFrame];
|
|
88676
89869
|
});
|
|
88677
89870
|
|
|
88678
|
-
var useIsomorphicLayoutEffect$
|
|
89871
|
+
var useIsomorphicLayoutEffect$5 = canUseDom() ? React.useLayoutEffect : React.useEffect;
|
|
88679
89872
|
|
|
88680
89873
|
var STEP_QUEUE = [STEP_PREPARE, STEP_START, STEP_ACTIVE, STEP_ACTIVATED];
|
|
88681
89874
|
/** Skip current step */
|
|
@@ -88702,7 +89895,7 @@
|
|
|
88702
89895
|
setStep(STEP_PREPARE, true);
|
|
88703
89896
|
}
|
|
88704
89897
|
|
|
88705
|
-
useIsomorphicLayoutEffect$
|
|
89898
|
+
useIsomorphicLayoutEffect$5(function () {
|
|
88706
89899
|
if (step !== STEP_NONE && step !== STEP_ACTIVATED) {
|
|
88707
89900
|
var index = STEP_QUEUE.indexOf(step);
|
|
88708
89901
|
var nextStep = STEP_QUEUE[index + 1];
|
|
@@ -88922,7 +90115,7 @@
|
|
|
88922
90115
|
activeRef.current = active; // ============================ Status ============================
|
|
88923
90116
|
// Update with new status
|
|
88924
90117
|
|
|
88925
|
-
useIsomorphicLayoutEffect$
|
|
90118
|
+
useIsomorphicLayoutEffect$5(function () {
|
|
88926
90119
|
setAsyncVisible(visible);
|
|
88927
90120
|
var isMounted = mountedRef.current;
|
|
88928
90121
|
mountedRef.current = true;
|
|
@@ -89257,8 +90450,8 @@
|
|
|
89257
90450
|
return list;
|
|
89258
90451
|
}
|
|
89259
90452
|
|
|
89260
|
-
var _excluded$
|
|
89261
|
-
_excluded2$
|
|
90453
|
+
var _excluded$1l = ["component", "children", "onVisibleChanged", "onAllRemoved"],
|
|
90454
|
+
_excluded2$l = ["status"];
|
|
89262
90455
|
var MOTION_PROP_NAMES = ['eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd'];
|
|
89263
90456
|
/**
|
|
89264
90457
|
* Generate a CSSMotionList component with config
|
|
@@ -89322,7 +90515,7 @@
|
|
|
89322
90515
|
children = _this$props.children,
|
|
89323
90516
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
89324
90517
|
onAllRemoved = _this$props.onAllRemoved,
|
|
89325
|
-
restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
90518
|
+
restProps = _objectWithoutProperties$1(_this$props, _excluded$1l);
|
|
89326
90519
|
|
|
89327
90520
|
var Component = component || React.Fragment;
|
|
89328
90521
|
var motionProps = {};
|
|
@@ -89333,7 +90526,7 @@
|
|
|
89333
90526
|
delete restProps.keys;
|
|
89334
90527
|
return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
89335
90528
|
var status = _ref2.status,
|
|
89336
|
-
eventProps = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
90529
|
+
eventProps = _objectWithoutProperties$1(_ref2, _excluded2$l);
|
|
89337
90530
|
|
|
89338
90531
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
89339
90532
|
return /*#__PURE__*/React.createElement(CSSMotion$1, _extends$5({}, motionProps, {
|
|
@@ -89561,7 +90754,7 @@
|
|
|
89561
90754
|
return [notify, /*#__PURE__*/React.createElement(React.Fragment, null, elements)];
|
|
89562
90755
|
}
|
|
89563
90756
|
|
|
89564
|
-
var _excluded$
|
|
90757
|
+
var _excluded$1m = ["getContainer"];
|
|
89565
90758
|
var seed = 0;
|
|
89566
90759
|
var now$3 = Date.now();
|
|
89567
90760
|
|
|
@@ -89787,7 +90980,7 @@
|
|
|
89787
90980
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
89788
90981
|
var _ref6 = properties || {},
|
|
89789
90982
|
getContainer = _ref6.getContainer,
|
|
89790
|
-
props = _objectWithoutProperties$1(_ref6, _excluded$
|
|
90983
|
+
props = _objectWithoutProperties$1(_ref6, _excluded$1m);
|
|
89791
90984
|
|
|
89792
90985
|
var div = document.createElement('div');
|
|
89793
90986
|
|
|
@@ -90610,14 +91803,14 @@
|
|
|
90610
91803
|
api.useNotification = createUseNotification(getNotificationInstance, getRCNoticeProps);
|
|
90611
91804
|
api.antdNotification = _notification__default['default'];
|
|
90612
91805
|
|
|
90613
|
-
var _excluded$
|
|
91806
|
+
var _excluded$1n = ["visible", "wrapClassName", "onClose", "children"];
|
|
90614
91807
|
|
|
90615
91808
|
var Index$k = function Index(props) {
|
|
90616
91809
|
var visible = props.visible,
|
|
90617
91810
|
wrapClassName = props.wrapClassName,
|
|
90618
91811
|
onClose = props.onClose,
|
|
90619
91812
|
children = props.children,
|
|
90620
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
91813
|
+
reset = _objectWithoutProperties(props, _excluded$1n);
|
|
90621
91814
|
|
|
90622
91815
|
var handleClose = function handleClose() {
|
|
90623
91816
|
onClose();
|
|
@@ -90651,7 +91844,7 @@
|
|
|
90651
91844
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
90652
91845
|
};
|
|
90653
91846
|
|
|
90654
|
-
var _excluded$
|
|
91847
|
+
var _excluded$1o = ["type"];
|
|
90655
91848
|
/*
|
|
90656
91849
|
增加参数:
|
|
90657
91850
|
type: 指定图片类型
|
|
@@ -90659,7 +91852,7 @@
|
|
|
90659
91852
|
|
|
90660
91853
|
var Confirm = function Confirm(_ref) {
|
|
90661
91854
|
var type = _ref.type,
|
|
90662
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
91855
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$1o);
|
|
90663
91856
|
|
|
90664
91857
|
var Icon = function Icon() {
|
|
90665
91858
|
switch (type) {
|
|
@@ -90716,13 +91909,13 @@
|
|
|
90716
91909
|
}, resetProps));
|
|
90717
91910
|
};
|
|
90718
91911
|
|
|
90719
|
-
var _excluded$
|
|
91912
|
+
var _excluded$1p = ["visible", "wrapClassName", "children"];
|
|
90720
91913
|
|
|
90721
91914
|
var Index$l = function Index(props) {
|
|
90722
91915
|
var visible = props.visible,
|
|
90723
91916
|
wrapClassName = props.wrapClassName,
|
|
90724
91917
|
children = props.children,
|
|
90725
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
91918
|
+
reset = _objectWithoutProperties(props, _excluded$1p);
|
|
90726
91919
|
|
|
90727
91920
|
var config = {
|
|
90728
91921
|
title: '编辑',
|
|
@@ -90740,7 +91933,7 @@
|
|
|
90740
91933
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
90741
91934
|
};
|
|
90742
91935
|
|
|
90743
|
-
var _excluded$
|
|
91936
|
+
var _excluded$1q = ["visible", "onClose", "onSure", "down", "desc", "downEvent", "isType", "renderFileType"];
|
|
90744
91937
|
var downLink = [{
|
|
90745
91938
|
id: '1',
|
|
90746
91939
|
label: '成衣',
|
|
@@ -90845,7 +92038,7 @@
|
|
|
90845
92038
|
downEvent = _ref2.downEvent,
|
|
90846
92039
|
isType = _ref2.isType,
|
|
90847
92040
|
renderFileType = _ref2.renderFileType,
|
|
90848
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
92041
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$1q);
|
|
90849
92042
|
|
|
90850
92043
|
var _useState = React.useState({
|
|
90851
92044
|
files: []
|
|
@@ -90999,13 +92192,13 @@
|
|
|
90999
92192
|
Modal.ExportModal = Index$m;
|
|
91000
92193
|
Modal.Confirm = Confirm;
|
|
91001
92194
|
|
|
91002
|
-
var _excluded$
|
|
92195
|
+
var _excluded$1r = ["children", "className"];
|
|
91003
92196
|
var prefixCls$6 = 'lm_pagination';
|
|
91004
92197
|
|
|
91005
92198
|
var LMPagination = function LMPagination(props) {
|
|
91006
92199
|
var children = props.children,
|
|
91007
92200
|
className = props.className,
|
|
91008
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
92201
|
+
others = _objectWithoutProperties(props, _excluded$1r);
|
|
91009
92202
|
|
|
91010
92203
|
return /*#__PURE__*/React__default['default'].createElement(_Pagination__default['default'], _objectSpread(_objectSpread({
|
|
91011
92204
|
className: classnames(className, prefixCls$6),
|
|
@@ -91019,7 +92212,7 @@
|
|
|
91019
92212
|
}));
|
|
91020
92213
|
};
|
|
91021
92214
|
|
|
91022
|
-
var _excluded$
|
|
92215
|
+
var _excluded$1s = ["columns", "dataSource", "total", "onClick", "onDoubleClick", "rowSelection", "rowKey", "scroll", "defaultActive", "onChange"];
|
|
91023
92216
|
|
|
91024
92217
|
/*
|
|
91025
92218
|
接收参数:
|
|
@@ -91039,7 +92232,7 @@
|
|
|
91039
92232
|
scroll = props.scroll,
|
|
91040
92233
|
defaultActive = props.defaultActive,
|
|
91041
92234
|
onChange = props.onChange,
|
|
91042
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
92235
|
+
resetProps = _objectWithoutProperties(props, _excluded$1s); // 行单击选中,增加高亮
|
|
91043
92236
|
|
|
91044
92237
|
|
|
91045
92238
|
var _useState = React.useState(defaultActive),
|
|
@@ -91106,7 +92299,7 @@
|
|
|
91106
92299
|
}));
|
|
91107
92300
|
});
|
|
91108
92301
|
|
|
91109
|
-
var _excluded$
|
|
92302
|
+
var _excluded$1t = ["columns", "data", "total", "rowSelection", "onChange", "getCheckboxRecords"];
|
|
91110
92303
|
|
|
91111
92304
|
var Demo = function Demo(props) {
|
|
91112
92305
|
var inputRef = React__default['default'].useRef();
|
|
@@ -91124,7 +92317,7 @@
|
|
|
91124
92317
|
rowSelection = _props$rowSelection === void 0 ? true : _props$rowSelection,
|
|
91125
92318
|
onChange = props.onChange,
|
|
91126
92319
|
getCheckboxRecords = props.getCheckboxRecords,
|
|
91127
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
92320
|
+
resetProps = _objectWithoutProperties(props, _excluded$1t);
|
|
91128
92321
|
|
|
91129
92322
|
var _useState3 = React.useState('base'),
|
|
91130
92323
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -91220,9 +92413,9 @@
|
|
|
91220
92413
|
|
|
91221
92414
|
var Context$5 = /*#__PURE__*/React.createContext();
|
|
91222
92415
|
|
|
91223
|
-
var _excluded$
|
|
91224
|
-
_excluded2$
|
|
91225
|
-
_excluded3$
|
|
92416
|
+
var _excluded$1u = ["width", "onResize", "children"],
|
|
92417
|
+
_excluded2$m = ["children"],
|
|
92418
|
+
_excluded3$8 = ["children", "style"],
|
|
91226
92419
|
_excluded4$2 = ["children"],
|
|
91227
92420
|
_excluded5$1 = ["style", "children"],
|
|
91228
92421
|
_excluded6 = ["width"];
|
|
@@ -91236,7 +92429,7 @@
|
|
|
91236
92429
|
totalLen: 0
|
|
91237
92430
|
};
|
|
91238
92431
|
|
|
91239
|
-
function reducer$
|
|
92432
|
+
function reducer$6(state, action) {
|
|
91240
92433
|
var curScrollTop = action.curScrollTop,
|
|
91241
92434
|
curScrollLeft = action.curScrollLeft,
|
|
91242
92435
|
rowHeight = action.rowHeight,
|
|
@@ -91336,7 +92529,7 @@
|
|
|
91336
92529
|
var width = props.width,
|
|
91337
92530
|
onResize = props.onResize,
|
|
91338
92531
|
children = props.children,
|
|
91339
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
92532
|
+
restProps = _objectWithoutProperties(props, _excluded$1u);
|
|
91340
92533
|
|
|
91341
92534
|
var _useState3 = React.useState(width || 0),
|
|
91342
92535
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -91388,7 +92581,7 @@
|
|
|
91388
92581
|
|
|
91389
92582
|
var VCell = function VCell(props) {
|
|
91390
92583
|
var children = props.children,
|
|
91391
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
92584
|
+
restProps = _objectWithoutProperties(props, _excluded2$m);
|
|
91392
92585
|
|
|
91393
92586
|
return /*#__PURE__*/React__default['default'].createElement("td", restProps, children);
|
|
91394
92587
|
};
|
|
@@ -91402,7 +92595,7 @@
|
|
|
91402
92595
|
|
|
91403
92596
|
var children = props.children,
|
|
91404
92597
|
style = props.style,
|
|
91405
|
-
restProps = _objectWithoutProperties(props, _excluded3$
|
|
92598
|
+
restProps = _objectWithoutProperties(props, _excluded3$8);
|
|
91406
92599
|
|
|
91407
92600
|
var trRef = React.useRef(null);
|
|
91408
92601
|
React.useEffect(function () {
|
|
@@ -91497,7 +92690,7 @@
|
|
|
91497
92690
|
onScroll = _ref3.onScroll,
|
|
91498
92691
|
resetScrollTopWhenDataChange = _ref3.resetScrollTopWhenDataChange;
|
|
91499
92692
|
|
|
91500
|
-
var _useReducer = React.useReducer(reducer$
|
|
92693
|
+
var _useReducer = React.useReducer(reducer$6, initialState$3),
|
|
91501
92694
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
91502
92695
|
state = _useReducer2[0],
|
|
91503
92696
|
dispatch = _useReducer2[1];
|
|
@@ -91798,7 +92991,7 @@
|
|
|
91798
92991
|
editConfig: editConfig$1
|
|
91799
92992
|
};
|
|
91800
92993
|
|
|
91801
|
-
var _excluded$
|
|
92994
|
+
var _excluded$1v = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
|
|
91802
92995
|
var Summary$1 = ProviderWarp.Summary;
|
|
91803
92996
|
var ResetTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
91804
92997
|
var dataSource = props.dataSource,
|
|
@@ -91814,7 +93007,7 @@
|
|
|
91814
93007
|
_props$virtual = props.virtual,
|
|
91815
93008
|
virtual = _props$virtual === void 0 ? true : _props$virtual,
|
|
91816
93009
|
customCheck = props.customCheck,
|
|
91817
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
93010
|
+
resetProps = _objectWithoutProperties(props, _excluded$1v);
|
|
91818
93011
|
|
|
91819
93012
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
91820
93013
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -92098,8 +93291,8 @@
|
|
|
92098
93291
|
|
|
92099
93292
|
var Context$6 = /*#__PURE__*/React.createContext();
|
|
92100
93293
|
|
|
92101
|
-
var _excluded$
|
|
92102
|
-
var Paragraph$
|
|
93294
|
+
var _excluded$1w = ["desc"];
|
|
93295
|
+
var Paragraph$5 = _Typography__default['default'].Paragraph;
|
|
92103
93296
|
|
|
92104
93297
|
var Access$1 = function Access(props) {
|
|
92105
93298
|
var _defaultConfig$desc, _defaultConfig$bigVie;
|
|
@@ -92128,7 +93321,7 @@
|
|
|
92128
93321
|
|
|
92129
93322
|
var defaultConfig = React.useMemo(function () {
|
|
92130
93323
|
var desc = config.desc,
|
|
92131
|
-
resetConfig = _objectWithoutProperties(config, _excluded$
|
|
93324
|
+
resetConfig = _objectWithoutProperties(config, _excluded$1w);
|
|
92132
93325
|
|
|
92133
93326
|
return _objectSpread({
|
|
92134
93327
|
title: 'title',
|
|
@@ -92219,7 +93412,7 @@
|
|
|
92219
93412
|
onClick: function onClick(e) {
|
|
92220
93413
|
return e.stopPropagation();
|
|
92221
93414
|
}
|
|
92222
|
-
}, /*#__PURE__*/React__default['default'].createElement(Paragraph$
|
|
93415
|
+
}, /*#__PURE__*/React__default['default'].createElement(Paragraph$5, {
|
|
92223
93416
|
copyable: {
|
|
92224
93417
|
tooltips: false,
|
|
92225
93418
|
onCopy: function onCopy() {
|
|
@@ -92257,7 +93450,7 @@
|
|
|
92257
93450
|
})));
|
|
92258
93451
|
};
|
|
92259
93452
|
|
|
92260
|
-
var Paragraph$
|
|
93453
|
+
var Paragraph$6 = _Typography__default['default'].Paragraph;
|
|
92261
93454
|
|
|
92262
93455
|
var stateRender$1 = function stateRender(v) {
|
|
92263
93456
|
switch (v) {
|
|
@@ -92377,7 +93570,7 @@
|
|
|
92377
93570
|
className: "title"
|
|
92378
93571
|
}, item[defaultConfig.title]), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
92379
93572
|
className: "code"
|
|
92380
|
-
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$
|
|
93573
|
+
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$6, {
|
|
92381
93574
|
copyable: {
|
|
92382
93575
|
tooltips: false,
|
|
92383
93576
|
onCopy: function onCopy() {
|
|
@@ -92504,7 +93697,7 @@
|
|
|
92504
93697
|
}, config));
|
|
92505
93698
|
};
|
|
92506
93699
|
|
|
92507
|
-
var _excluded$
|
|
93700
|
+
var _excluded$1x = ["style", "defaultPage"];
|
|
92508
93701
|
var initialState$4 = {
|
|
92509
93702
|
// 选中的数据
|
|
92510
93703
|
checkList: [],
|
|
@@ -92514,7 +93707,7 @@
|
|
|
92514
93707
|
}
|
|
92515
93708
|
};
|
|
92516
93709
|
|
|
92517
|
-
var reducer$
|
|
93710
|
+
var reducer$7 = function reducer(state, action) {
|
|
92518
93711
|
var checkList = action.checkList,
|
|
92519
93712
|
page = action.page,
|
|
92520
93713
|
ifScrollTopClear = action.ifScrollTopClear;
|
|
@@ -92545,9 +93738,9 @@
|
|
|
92545
93738
|
var ImgTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92546
93739
|
var style = props.style,
|
|
92547
93740
|
defaultPage = props.defaultPage,
|
|
92548
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
93741
|
+
resetProps = _objectWithoutProperties(props, _excluded$1x);
|
|
92549
93742
|
|
|
92550
|
-
var _useReducer = React.useReducer(reducer$
|
|
93743
|
+
var _useReducer = React.useReducer(reducer$7, initialState$4),
|
|
92551
93744
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
92552
93745
|
state = _useReducer2[0],
|
|
92553
93746
|
dispatch = _useReducer2[1]; // 将节点方法给外部使用
|
|
@@ -92588,12 +93781,12 @@
|
|
|
92588
93781
|
ResizeSize$2.ImgTable = ImgTable$1;
|
|
92589
93782
|
ResizeSize$2.Summary = Summary$1;
|
|
92590
93783
|
|
|
92591
|
-
var _excluded$
|
|
92592
|
-
_excluded2$
|
|
93784
|
+
var _excluded$1y = ["children"],
|
|
93785
|
+
_excluded2$n = ["children", "size", "buttonStyle", "direction", "className"];
|
|
92593
93786
|
|
|
92594
93787
|
var LMRadio = function LMRadio(props) {
|
|
92595
93788
|
var children = props.children,
|
|
92596
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
93789
|
+
restProps = _objectWithoutProperties(props, _excluded$1y);
|
|
92597
93790
|
|
|
92598
93791
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _extends({
|
|
92599
93792
|
className: "lm-radio"
|
|
@@ -92608,7 +93801,7 @@
|
|
|
92608
93801
|
_props$direction = props.direction,
|
|
92609
93802
|
direction = _props$direction === void 0 ? 'row' : _props$direction,
|
|
92610
93803
|
className = props.className,
|
|
92611
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
93804
|
+
restProps = _objectWithoutProperties(props, _excluded2$n);
|
|
92612
93805
|
|
|
92613
93806
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Group, _extends({
|
|
92614
93807
|
className: classnames(className, 'lm-radio-group', "lm-radio-group-".concat(direction)),
|
|
@@ -92618,7 +93811,7 @@
|
|
|
92618
93811
|
|
|
92619
93812
|
LMRadio.Button = _Radio__default['default'].Button;
|
|
92620
93813
|
|
|
92621
|
-
var _excluded$
|
|
93814
|
+
var _excluded$1z = ["children", "className", "size", "dropdownClassName"];
|
|
92622
93815
|
var prefixCls$7 = 'lm_select';
|
|
92623
93816
|
var CLMSelect$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92624
93817
|
var children = props.children,
|
|
@@ -92626,7 +93819,7 @@
|
|
|
92626
93819
|
_props$size = props.size,
|
|
92627
93820
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
92628
93821
|
dropdownClassName = props.dropdownClassName,
|
|
92629
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
93822
|
+
others = _objectWithoutProperties(props, _excluded$1z);
|
|
92630
93823
|
|
|
92631
93824
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread(_objectSpread({
|
|
92632
93825
|
className: classnames(className, prefixCls$7),
|
|
@@ -92640,11 +93833,11 @@
|
|
|
92640
93833
|
LMSelect$1.Option = _Select__default['default'].Option;
|
|
92641
93834
|
LMSelect$1.OptGroup = _Select__default['default'].OptGroup;
|
|
92642
93835
|
|
|
92643
|
-
var _excluded$
|
|
93836
|
+
var _excluded$1A = ["className"];
|
|
92644
93837
|
var prefixCls$8 = 'lm_tree';
|
|
92645
93838
|
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92646
93839
|
var className = props.className,
|
|
92647
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
93840
|
+
rest = _objectWithoutProperties(props, _excluded$1A);
|
|
92648
93841
|
|
|
92649
93842
|
return /*#__PURE__*/React__default['default'].createElement(_Tree__default['default'], _objectSpread(_objectSpread({
|
|
92650
93843
|
ref: ref
|
|
@@ -92724,15 +93917,15 @@
|
|
|
92724
93917
|
|
|
92725
93918
|
var build = hexToRgba;
|
|
92726
93919
|
|
|
92727
|
-
var _excluded$
|
|
92728
|
-
_excluded2$
|
|
93920
|
+
var _excluded$1B = ["className", "color"],
|
|
93921
|
+
_excluded2$o = ["className", "color", "checked"];
|
|
92729
93922
|
var CheckableTag = _Tag__default['default'].CheckableTag;
|
|
92730
93923
|
var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime', 'theme'];
|
|
92731
93924
|
var prefixCls$9 = 'lm_tag';
|
|
92732
93925
|
var LmTag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92733
93926
|
var className = props.className,
|
|
92734
93927
|
color = props.color,
|
|
92735
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
93928
|
+
rest = _objectWithoutProperties(props, _excluded$1B);
|
|
92736
93929
|
|
|
92737
93930
|
return /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], _objectSpread(_objectSpread({
|
|
92738
93931
|
ref: ref
|
|
@@ -92749,7 +93942,7 @@
|
|
|
92749
93942
|
var className = props.className,
|
|
92750
93943
|
color = props.color,
|
|
92751
93944
|
checked = props.checked,
|
|
92752
|
-
rest = _objectWithoutProperties(props, _excluded2$
|
|
93945
|
+
rest = _objectWithoutProperties(props, _excluded2$o);
|
|
92753
93946
|
|
|
92754
93947
|
var checkTagRef = React.useRef(null);
|
|
92755
93948
|
var colorProps = React.useMemo(function () {
|
|
@@ -93094,7 +94287,7 @@
|
|
|
93094
94287
|
api$1.warn = api$1.warning;
|
|
93095
94288
|
api$1.useMessage = createUseMessage(getRCNotificationInstance, getRCNoticeProps$1);
|
|
93096
94289
|
|
|
93097
|
-
var _excluded$
|
|
94290
|
+
var _excluded$1C = ["className", "size", "noBorder"];
|
|
93098
94291
|
var prefixCls$a = 'lm_tabs';
|
|
93099
94292
|
|
|
93100
94293
|
var LMTabs = function LMTabs(props) {
|
|
@@ -93103,7 +94296,7 @@
|
|
|
93103
94296
|
size = _props$size === void 0 ? "middle" : _props$size,
|
|
93104
94297
|
_props$noBorder = props.noBorder,
|
|
93105
94298
|
noBorder = _props$noBorder === void 0 ? false : _props$noBorder,
|
|
93106
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
94299
|
+
others = _objectWithoutProperties(props, _excluded$1C);
|
|
93107
94300
|
|
|
93108
94301
|
return /*#__PURE__*/React__default['default'].createElement(_Tabs__default['default'], _objectSpread(_objectSpread({
|
|
93109
94302
|
size: size
|
|
@@ -93114,13 +94307,13 @@
|
|
|
93114
94307
|
|
|
93115
94308
|
LMTabs.TabPane = _Tabs__default['default'].TabPane;
|
|
93116
94309
|
|
|
93117
|
-
var _excluded$
|
|
94310
|
+
var _excluded$1D = ["size", "className"];
|
|
93118
94311
|
|
|
93119
94312
|
var Switch = function Switch(props) {
|
|
93120
94313
|
var _props$size = props.size,
|
|
93121
94314
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
93122
94315
|
className = props.className,
|
|
93123
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
94316
|
+
restProps = _objectWithoutProperties(props, _excluded$1D);
|
|
93124
94317
|
|
|
93125
94318
|
var classs = classnames('lm-switch', className, _defineProperty({}, "lm-switch-".concat(size), size));
|
|
93126
94319
|
return /*#__PURE__*/React__default['default'].createElement(_Switch__default['default'], _objectSpread(_objectSpread({
|
|
@@ -100292,7 +101485,7 @@
|
|
|
100292
101485
|
exports.useLayoutUpdateEffect = useLayoutUpdateEffect;
|
|
100293
101486
|
});
|
|
100294
101487
|
|
|
100295
|
-
var useIsomorphicLayoutEffect$
|
|
101488
|
+
var useIsomorphicLayoutEffect$6 = /*@__PURE__*/getDefaultExportFromCjs(useLayoutEffect_1);
|
|
100296
101489
|
|
|
100297
101490
|
var useState = createCommonjsModule(function (module, exports) {
|
|
100298
101491
|
|
|
@@ -100673,7 +101866,7 @@
|
|
|
100673
101866
|
return replaceElement(element, element, props);
|
|
100674
101867
|
}
|
|
100675
101868
|
|
|
100676
|
-
var _excluded$
|
|
101869
|
+
var _excluded$1E = ["getPopupContainer"];
|
|
100677
101870
|
|
|
100678
101871
|
var splitObject = function splitObject(obj, keys) {
|
|
100679
101872
|
var picked = {};
|
|
@@ -100818,7 +102011,7 @@
|
|
|
100818
102011
|
};
|
|
100819
102012
|
|
|
100820
102013
|
var getPopupContainer = props.getPopupContainer,
|
|
100821
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
102014
|
+
otherProps = _objectWithoutProperties(props, _excluded$1E);
|
|
100822
102015
|
|
|
100823
102016
|
var customizePrefixCls = props.prefixCls,
|
|
100824
102017
|
openClassName = props.openClassName,
|
|
@@ -100889,14 +102082,14 @@
|
|
|
100889
102082
|
};
|
|
100890
102083
|
Tooltip$1.AntdTooltip = _Tooltip__default['default'];
|
|
100891
102084
|
|
|
100892
|
-
var _excluded$
|
|
102085
|
+
var _excluded$1F = ["children", "className", "responsive"];
|
|
100893
102086
|
var prefixCls$c = 'lm_container';
|
|
100894
102087
|
|
|
100895
102088
|
var LMContainer = function LMContainer(props) {
|
|
100896
102089
|
var children = props.children,
|
|
100897
102090
|
className = props.className,
|
|
100898
102091
|
responsive = props.responsive,
|
|
100899
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
102092
|
+
others = _objectWithoutProperties(props, _excluded$1F);
|
|
100900
102093
|
|
|
100901
102094
|
var _useState = React.useState({
|
|
100902
102095
|
width: '100%',
|
|
@@ -100984,8 +102177,8 @@
|
|
|
100984
102177
|
}, throttleSize());
|
|
100985
102178
|
};
|
|
100986
102179
|
|
|
100987
|
-
var _excluded$
|
|
100988
|
-
_excluded2$
|
|
102180
|
+
var _excluded$1G = ["children", "className", "responsive"],
|
|
102181
|
+
_excluded2$p = ["children", "className", "responsive", "errorPlacement"];
|
|
100989
102182
|
|
|
100990
102183
|
var classNamePrefix = 'lm_form';
|
|
100991
102184
|
|
|
@@ -100993,7 +102186,7 @@
|
|
|
100993
102186
|
var children = props.children,
|
|
100994
102187
|
className = props.className,
|
|
100995
102188
|
responsive = props.responsive,
|
|
100996
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
102189
|
+
restProps = _objectWithoutProperties(props, _excluded$1G);
|
|
100997
102190
|
|
|
100998
102191
|
if (responsive) {
|
|
100999
102192
|
return /*#__PURE__*/React__default['default'].createElement(LMContainer, {
|
|
@@ -101021,7 +102214,7 @@
|
|
|
101021
102214
|
responsive = _props$responsive === void 0 ? false : _props$responsive,
|
|
101022
102215
|
_props$errorPlacement = props.errorPlacement,
|
|
101023
102216
|
errorPlacement = _props$errorPlacement === void 0 ? 'default' : _props$errorPlacement,
|
|
101024
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
102217
|
+
restProps = _objectWithoutProperties(props, _excluded2$p);
|
|
101025
102218
|
|
|
101026
102219
|
var tipClassName = errorPlacement === 'default' ? '' : "lm_form-item-tip-error lm_form-item-tip-error-".concat(errorPlacement);
|
|
101027
102220
|
var resCls = responsive ? 'ant-form-item-responsive' : '';
|
|
@@ -101097,13 +102290,13 @@
|
|
|
101097
102290
|
}, children);
|
|
101098
102291
|
};
|
|
101099
102292
|
|
|
101100
|
-
var _excluded$
|
|
102293
|
+
var _excluded$1H = ["data-row-key", "children", "className"];
|
|
101101
102294
|
|
|
101102
102295
|
var SortableItem$2 = function SortableItem(props) {
|
|
101103
102296
|
var key = props['data-row-key'],
|
|
101104
102297
|
children = props.children,
|
|
101105
102298
|
className = props.className,
|
|
101106
|
-
resetField = _objectWithoutProperties(props, _excluded$
|
|
102299
|
+
resetField = _objectWithoutProperties(props, _excluded$1H);
|
|
101107
102300
|
|
|
101108
102301
|
var _useSortable = useSortable({
|
|
101109
102302
|
id: key
|
|
@@ -101124,10 +102317,10 @@
|
|
|
101124
102317
|
}, attributes), children);
|
|
101125
102318
|
};
|
|
101126
102319
|
|
|
101127
|
-
var _excluded$
|
|
102320
|
+
var _excluded$1I = ["children"];
|
|
101128
102321
|
var Item$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
101129
102322
|
var children = _ref.children,
|
|
101130
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
102323
|
+
props = _objectWithoutProperties(_ref, _excluded$1I);
|
|
101131
102324
|
|
|
101132
102325
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread({}, props), {}, {
|
|
101133
102326
|
ref: ref
|
|
@@ -101178,9 +102371,9 @@
|
|
|
101178
102371
|
}));
|
|
101179
102372
|
};
|
|
101180
102373
|
|
|
101181
|
-
var _excluded$
|
|
101182
|
-
_excluded2$
|
|
101183
|
-
_excluded3$
|
|
102374
|
+
var _excluded$1J = ["index"],
|
|
102375
|
+
_excluded2$q = ["index"],
|
|
102376
|
+
_excluded3$9 = ["value", "onChange"],
|
|
101184
102377
|
_excluded4$3 = ["record", "rowKey", "isEdit", "col", "handleTableRowDelete", "handleTableRowAdd", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
101185
102378
|
_excluded5$2 = ["onMouseEnter", "onMouseLeave"],
|
|
101186
102379
|
_excluded6$1 = ["value", "columns", "isEdit", "isAdd", "onChange", "rowKey", "rowHoverEdit", "isUseForm", "isHoverEdit", "useQuickOpetate", "rowSelection", "sortOpen", "colSortOpen", "filterChange", "size"];
|
|
@@ -101189,7 +102382,7 @@
|
|
|
101189
102382
|
|
|
101190
102383
|
var EditableRow$1 = function EditableRow(_ref) {
|
|
101191
102384
|
var index = _ref.index,
|
|
101192
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
102385
|
+
props = _objectWithoutProperties(_ref, _excluded$1J);
|
|
101193
102386
|
|
|
101194
102387
|
var _Form$useForm = Form$1.useForm(),
|
|
101195
102388
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -101205,7 +102398,7 @@
|
|
|
101205
102398
|
|
|
101206
102399
|
var EditableSortRow = function EditableSortRow(_ref2) {
|
|
101207
102400
|
var index = _ref2.index,
|
|
101208
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
102401
|
+
props = _objectWithoutProperties(_ref2, _excluded2$q);
|
|
101209
102402
|
|
|
101210
102403
|
var _Form$useForm3 = Form$1.useForm(),
|
|
101211
102404
|
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
|
|
@@ -101257,7 +102450,7 @@
|
|
|
101257
102450
|
var _ref3$value = _ref3.value,
|
|
101258
102451
|
value = _ref3$value === void 0 ? ['', ''] : _ref3$value,
|
|
101259
102452
|
onChange = _ref3.onChange,
|
|
101260
|
-
editEnum = _objectWithoutProperties(_ref3, _excluded3$
|
|
102453
|
+
editEnum = _objectWithoutProperties(_ref3, _excluded3$9);
|
|
101261
102454
|
|
|
101262
102455
|
// 输入值改变
|
|
101263
102456
|
var handleInput = function handleInput(e, type) {
|
|
@@ -107412,11 +108605,11 @@
|
|
|
107412
108605
|
});
|
|
107413
108606
|
MobilePopupInner.displayName = 'MobilePopupInner';
|
|
107414
108607
|
|
|
107415
|
-
var _excluded$
|
|
108608
|
+
var _excluded$1K = ["visible", "mobile"];
|
|
107416
108609
|
var Popup$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
107417
108610
|
var visible = _ref.visible,
|
|
107418
108611
|
mobile = _ref.mobile,
|
|
107419
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
108612
|
+
props = _objectWithoutProperties$1(_ref, _excluded$1K);
|
|
107420
108613
|
|
|
107421
108614
|
var _useState = React.useState(visible),
|
|
107422
108615
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -110464,7 +111657,7 @@
|
|
|
110464
111657
|
}
|
|
110465
111658
|
}
|
|
110466
111659
|
|
|
110467
|
-
var _excluded$
|
|
111660
|
+
var _excluded$1L = ["prefixCls", "getPopupContainer", "className", "placement", "size", "disabled", "bordered", "placeholder", "status"];
|
|
110468
111661
|
function generateRangePicker(generateConfig) {
|
|
110469
111662
|
var RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
110470
111663
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -110477,7 +111670,7 @@
|
|
|
110477
111670
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
110478
111671
|
placeholder = props.placeholder,
|
|
110479
111672
|
customStatus = props.status,
|
|
110480
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
111673
|
+
restProps = _objectWithoutProperties(props, _excluded$1L);
|
|
110481
111674
|
|
|
110482
111675
|
var innerRef = React.useRef(null);
|
|
110483
111676
|
|
|
@@ -110589,7 +111782,7 @@
|
|
|
110589
111782
|
|
|
110590
111783
|
var warning$5 = warning$4;
|
|
110591
111784
|
|
|
110592
|
-
var _excluded$
|
|
111785
|
+
var _excluded$1M = ["prefixCls", "getPopupContainer", "className", "size", "bordered", "placement", "placeholder", "disabled", "status"];
|
|
110593
111786
|
function generatePicker(generateConfig) {
|
|
110594
111787
|
function getPicker(picker, displayName) {
|
|
110595
111788
|
var Picker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -110603,7 +111796,7 @@
|
|
|
110603
111796
|
placeholder = props.placeholder,
|
|
110604
111797
|
customDisabled = props.disabled,
|
|
110605
111798
|
customStatus = props.status,
|
|
110606
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
111799
|
+
restProps = _objectWithoutProperties(props, _excluded$1M);
|
|
110607
111800
|
|
|
110608
111801
|
console.log(restProps, '---restProps');
|
|
110609
111802
|
warning$5(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
|
|
@@ -110826,13 +112019,13 @@
|
|
|
110826
112019
|
return propValue;
|
|
110827
112020
|
};
|
|
110828
112021
|
|
|
110829
|
-
var _excluded$
|
|
112022
|
+
var _excluded$1N = ["prefixCls", "title", "content", "_overlay"];
|
|
110830
112023
|
var Popover = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
110831
112024
|
var customizePrefixCls = _ref.prefixCls,
|
|
110832
112025
|
title = _ref.title,
|
|
110833
112026
|
content = _ref.content,
|
|
110834
112027
|
_overlay = _ref._overlay,
|
|
110835
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
112028
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$1N);
|
|
110836
112029
|
|
|
110837
112030
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
110838
112031
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -112001,7 +113194,7 @@
|
|
|
112001
113194
|
|
|
112002
113195
|
var KeyCode$1 = /*@__PURE__*/getDefaultExportFromCjs(KeyCode_1);
|
|
112003
113196
|
|
|
112004
|
-
var _excluded$
|
|
113197
|
+
var _excluded$1O = ["style", "noStyle", "disabled"];
|
|
112005
113198
|
var inlineStyle = {
|
|
112006
113199
|
border: 0,
|
|
112007
113200
|
background: 'transparent',
|
|
@@ -112030,7 +113223,7 @@
|
|
|
112030
113223
|
var style = props.style,
|
|
112031
113224
|
noStyle = props.noStyle,
|
|
112032
113225
|
disabled = props.disabled,
|
|
112033
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
113226
|
+
restProps = _objectWithoutProperties(props, _excluded$1O);
|
|
112034
113227
|
|
|
112035
113228
|
var mergedStyle = {};
|
|
112036
113229
|
|
|
@@ -112313,7 +113506,7 @@
|
|
|
112313
113506
|
}, conditions);
|
|
112314
113507
|
});
|
|
112315
113508
|
|
|
112316
|
-
var _excluded$
|
|
113509
|
+
var _excluded$1P = ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"];
|
|
112317
113510
|
|
|
112318
113511
|
var Typography = function Typography(_ref, ref$1) {
|
|
112319
113512
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -112323,7 +113516,7 @@
|
|
|
112323
113516
|
ariaLabel = _ref['aria-label'],
|
|
112324
113517
|
setContentRef = _ref.setContentRef,
|
|
112325
113518
|
children = _ref.children,
|
|
112326
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
113519
|
+
restProps = _objectWithoutProperties(_ref, _excluded$1P);
|
|
112327
113520
|
|
|
112328
113521
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
112329
113522
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -112452,20 +113645,20 @@
|
|
|
112452
113645
|
return children(sliceNodes(nodeList, midLen), midLen < totalLen);
|
|
112453
113646
|
}, [enabledMeasure, walkingState, children, nodeList, midLen, totalLen]); // ======================== Walk ========================
|
|
112454
113647
|
|
|
112455
|
-
useIsomorphicLayoutEffect$
|
|
113648
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112456
113649
|
if (enabledMeasure && width && totalLen) {
|
|
112457
113650
|
setWalkingState(PREPARE);
|
|
112458
113651
|
setCutLength([0, Math.ceil(totalLen / 2), totalLen]);
|
|
112459
113652
|
}
|
|
112460
113653
|
}, [enabledMeasure, width, text, totalLen, rows]);
|
|
112461
|
-
useIsomorphicLayoutEffect$
|
|
113654
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112462
113655
|
if (walkingState === PREPARE) {
|
|
112463
113656
|
var _singleRowRef$current;
|
|
112464
113657
|
|
|
112465
113658
|
setSingleRowHeight(((_singleRowRef$current = singleRowRef.current) === null || _singleRowRef$current === void 0 ? void 0 : _singleRowRef$current.offsetHeight) || 0);
|
|
112466
113659
|
}
|
|
112467
113660
|
}, [walkingState]);
|
|
112468
|
-
useIsomorphicLayoutEffect$
|
|
113661
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112469
113662
|
if (singleRowHeight) {
|
|
112470
113663
|
if (walkingState === PREPARE) {
|
|
112471
113664
|
var _midRowRef$current;
|
|
@@ -112566,7 +113759,7 @@
|
|
|
112566
113759
|
EllipsisTooltip.displayName = 'EllipsisTooltip';
|
|
112567
113760
|
}
|
|
112568
113761
|
|
|
112569
|
-
var _excluded$
|
|
113762
|
+
var _excluded$1Q = ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"];
|
|
112570
113763
|
|
|
112571
113764
|
function wrapperDecorations(_ref, content) {
|
|
112572
113765
|
var mark = _ref.mark,
|
|
@@ -112618,7 +113811,7 @@
|
|
|
112618
113811
|
copyable = props.copyable,
|
|
112619
113812
|
component = props.component,
|
|
112620
113813
|
title = props.title,
|
|
112621
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
113814
|
+
restProps = _objectWithoutProperties(props, _excluded$1Q);
|
|
112622
113815
|
|
|
112623
113816
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
112624
113817
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -112774,7 +113967,7 @@
|
|
|
112774
113967
|
ellipsisConfig.expandable || enableEdit || enableCopy
|
|
112775
113968
|
);
|
|
112776
113969
|
}, [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);
|
|
112777
|
-
useIsomorphicLayoutEffect$
|
|
113970
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112778
113971
|
if (enableEllipsis && !needMeasureEllipsis) {
|
|
112779
113972
|
setIsLineClampSupport(styleChecker.isStyleSupport('webkitLineClamp'));
|
|
112780
113973
|
setIsTextOverflowSupport(styleChecker.isStyleSupport('textOverflow'));
|
|
@@ -112993,7 +114186,7 @@
|
|
|
112993
114186
|
}, ELLIPSIS_STR), ellipsisConfig.suffix, renderOperations(needEllipsis)];
|
|
112994
114187
|
};
|
|
112995
114188
|
|
|
112996
|
-
return /*#__PURE__*/React.createElement(ResizeObserver$
|
|
114189
|
+
return /*#__PURE__*/React.createElement(ResizeObserver$2, {
|
|
112997
114190
|
onResize: onResize,
|
|
112998
114191
|
disabled: !mergedEnableEllipsis || cssEllipsis
|
|
112999
114192
|
}, function (resizeRef) {
|
|
@@ -113036,12 +114229,12 @@
|
|
|
113036
114229
|
});
|
|
113037
114230
|
});
|
|
113038
114231
|
|
|
113039
|
-
var _excluded$
|
|
114232
|
+
var _excluded$1R = ["ellipsis", "rel"];
|
|
113040
114233
|
|
|
113041
114234
|
var Link = function Link(_ref, ref) {
|
|
113042
114235
|
var ellipsis = _ref.ellipsis,
|
|
113043
114236
|
rel = _ref.rel,
|
|
113044
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
114237
|
+
restProps = _objectWithoutProperties(_ref, _excluded$1R);
|
|
113045
114238
|
|
|
113046
114239
|
warning$5(_typeof(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
|
|
113047
114240
|
var baseRef = React.useRef(null);
|
|
@@ -113065,7 +114258,7 @@
|
|
|
113065
114258
|
|
|
113066
114259
|
var Link$1 = /*#__PURE__*/React.forwardRef(Link);
|
|
113067
114260
|
|
|
113068
|
-
var Paragraph$
|
|
114261
|
+
var Paragraph$7 = function Paragraph(props, ref) {
|
|
113069
114262
|
return /*#__PURE__*/React.createElement(Base, _objectSpread(_objectSpread({
|
|
113070
114263
|
ref: ref
|
|
113071
114264
|
}, props), {}, {
|
|
@@ -113073,13 +114266,13 @@
|
|
|
113073
114266
|
}));
|
|
113074
114267
|
};
|
|
113075
114268
|
|
|
113076
|
-
var Paragraph$
|
|
114269
|
+
var Paragraph$8 = /*#__PURE__*/React.forwardRef(Paragraph$7);
|
|
113077
114270
|
|
|
113078
|
-
var _excluded$
|
|
114271
|
+
var _excluded$1S = ["ellipsis"];
|
|
113079
114272
|
|
|
113080
114273
|
var Text = function Text(_ref, ref) {
|
|
113081
114274
|
var ellipsis = _ref.ellipsis,
|
|
113082
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
114275
|
+
restProps = _objectWithoutProperties(_ref, _excluded$1S);
|
|
113083
114276
|
|
|
113084
114277
|
var mergedEllipsis = React.useMemo(function () {
|
|
113085
114278
|
if (ellipsis && _typeof(ellipsis) === 'object') {
|
|
@@ -113099,13 +114292,13 @@
|
|
|
113099
114292
|
|
|
113100
114293
|
var Text$1 = /*#__PURE__*/React.forwardRef(Text);
|
|
113101
114294
|
|
|
113102
|
-
var _excluded$
|
|
114295
|
+
var _excluded$1T = ["level"];
|
|
113103
114296
|
var TITLE_ELE_LIST = tupleNum(1, 2, 3, 4, 5);
|
|
113104
114297
|
|
|
113105
114298
|
var Title = function Title(props, ref) {
|
|
113106
114299
|
var _props$level = props.level,
|
|
113107
114300
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
113108
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
114301
|
+
restProps = _objectWithoutProperties(props, _excluded$1T);
|
|
113109
114302
|
|
|
113110
114303
|
var component;
|
|
113111
114304
|
|
|
@@ -113129,7 +114322,7 @@
|
|
|
113129
114322
|
Typography$1.Text = Text$1;
|
|
113130
114323
|
Typography$1.Link = Link$1;
|
|
113131
114324
|
Typography$1.Title = Title$1;
|
|
113132
|
-
Typography$1.Paragraph = Paragraph$
|
|
114325
|
+
Typography$1.Paragraph = Paragraph$8;
|
|
113133
114326
|
Typography$1.AntdTypography = _Typography__default['default'];
|
|
113134
114327
|
|
|
113135
114328
|
var Option$2 = _Select__default['default'].Option;
|
|
@@ -113214,7 +114407,7 @@
|
|
|
113214
114407
|
|
|
113215
114408
|
var RowContext = /*#__PURE__*/React.createContext({});
|
|
113216
114409
|
|
|
113217
|
-
var _excluded$
|
|
114410
|
+
var _excluded$1U = ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"];
|
|
113218
114411
|
|
|
113219
114412
|
function parseFlex(flex) {
|
|
113220
114413
|
if (typeof flex === 'number') {
|
|
@@ -113251,7 +114444,7 @@
|
|
|
113251
114444
|
children = props.children,
|
|
113252
114445
|
flex = props.flex,
|
|
113253
114446
|
style = props.style,
|
|
113254
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
114447
|
+
others = _objectWithoutProperties(props, _excluded$1U);
|
|
113255
114448
|
|
|
113256
114449
|
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
113257
114450
|
var sizeClassObj = {};
|
|
@@ -113412,7 +114605,7 @@
|
|
|
113412
114605
|
return flexible;
|
|
113413
114606
|
});
|
|
113414
114607
|
|
|
113415
|
-
var _excluded$
|
|
114608
|
+
var _excluded$1V = ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"];
|
|
113416
114609
|
var RowAligns = tuple('top', 'middle', 'bottom', 'stretch');
|
|
113417
114610
|
var RowJustify = tuple('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
|
|
113418
114611
|
var Row = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -113427,7 +114620,7 @@
|
|
|
113427
114620
|
_props$gutter = props.gutter,
|
|
113428
114621
|
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
113429
114622
|
wrap = props.wrap,
|
|
113430
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
114623
|
+
others = _objectWithoutProperties(props, _excluded$1V);
|
|
113431
114624
|
|
|
113432
114625
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
113433
114626
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -113610,7 +114803,7 @@
|
|
|
113610
114803
|
return ErrorBoundary;
|
|
113611
114804
|
}(React.Component);
|
|
113612
114805
|
|
|
113613
|
-
var _excluded$
|
|
114806
|
+
var _excluded$1W = ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "duration"];
|
|
113614
114807
|
var iconMapFilled = {
|
|
113615
114808
|
success: CheckCircleFilled$2,
|
|
113616
114809
|
info: InfoCircleFilled$2,
|
|
@@ -113683,7 +114876,7 @@
|
|
|
113683
114876
|
closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined$2, null) : _ref$closeIcon,
|
|
113684
114877
|
action = _ref.action,
|
|
113685
114878
|
duration = _ref.duration,
|
|
113686
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
114879
|
+
props = _objectWithoutProperties(_ref, _excluded$1W);
|
|
113687
114880
|
|
|
113688
114881
|
var _React$useState = React.useState(false),
|
|
113689
114882
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -113899,6 +115092,7 @@
|
|
|
113899
115092
|
exports.AutoComplete = RefAutoComplete;
|
|
113900
115093
|
exports.Button = LMButton;
|
|
113901
115094
|
exports.ButtonTags = ButtonTags;
|
|
115095
|
+
exports.CardTable = LmCardTable$2;
|
|
113902
115096
|
exports.Cascader = LMCascader;
|
|
113903
115097
|
exports.Checkbox = LMCheckBox;
|
|
113904
115098
|
exports.CkFilter = Filter$1;
|