linkmore-design 1.0.70 → 1.0.73
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/Approval/index.d.ts +1 -0
- package/dist/Approval/type.d.ts +1 -1
- package/dist/CardTable/utils.d.ts +1 -1
- package/dist/ImageViewer/wrapeer/Container.d.ts +4 -0
- package/dist/ImageViewer/wrapeer/Wrapper.d.ts +4 -0
- package/dist/Row/index.d.ts +1 -1
- package/dist/index.d.ts +22 -2
- package/dist/index.umd.js +2371 -305
- package/dist/index.umd.min.js +6 -6
- package/es/Approval/index.d.ts +1 -0
- 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/Row/index.d.ts +1 -1
- package/es/index.d.ts +22 -2
- package/es/index.js +12 -2
- package/lib/Approval/index.d.ts +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/Row/index.d.ts +1 -1
- package/lib/index.d.ts +22 -2
- package/lib/index.js +83 -3
- 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/statistic/style'), require('antd/es/statistic'), 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'), require('antd/es/segmented/style'), require('antd/es/segmented'), require('antd/es/collapse/style'), require('antd/es/collapse'), require('antd/es/comment/style'), require('antd/es/comment'), require('antd/es/timeline/style'), require('antd/es/timeline')) :
|
|
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/statistic/style', 'antd/es/statistic', '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', 'antd/es/segmented/style', 'antd/es/segmented', 'antd/es/collapse/style', 'antd/es/collapse', 'antd/es/comment/style', 'antd/es/comment', 'antd/es/timeline/style', 'antd/es/timeline'], 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._Statistic, 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, null, global._Segmented, null, global._Collapse, null, global._Comment, null, global._Timeline));
|
|
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, _Statistic, style$F, _Tabs, style$G, _Grid, style$H, _Steps, style$I, _Upload, style$J, _Alert, style$K, _Menu, style$L, _notification, style$M, _Pagination, require$$0$1, useFormInstance, context$2, Form$2, DisabledContext, SizeContext, context$3, enUS$1, style$N, _AutoComplete, antd, style$O, _Layout, style$P, _Mentions, style$Q, _Transfer, style$R, _Calendar, style$S, _Carousel, style$T, _Segmented, style$U, _Collapse, style$V, _Comment, style$W, _Timeline) { '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);
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
var _Slider__default = /*#__PURE__*/_interopDefaultLegacy(_Slider);
|
|
72
72
|
var _Switch__default = /*#__PURE__*/_interopDefaultLegacy(_Switch);
|
|
73
73
|
var _TreeSelect__default = /*#__PURE__*/_interopDefaultLegacy(_TreeSelect);
|
|
74
|
+
var _Statistic__default = /*#__PURE__*/_interopDefaultLegacy(_Statistic);
|
|
74
75
|
var _Tabs__default = /*#__PURE__*/_interopDefaultLegacy(_Tabs);
|
|
75
76
|
var _Grid__default = /*#__PURE__*/_interopDefaultLegacy(_Grid);
|
|
76
77
|
var _Steps__default = /*#__PURE__*/_interopDefaultLegacy(_Steps);
|
|
@@ -90,6 +91,10 @@
|
|
|
90
91
|
var _Transfer__default = /*#__PURE__*/_interopDefaultLegacy(_Transfer);
|
|
91
92
|
var _Calendar__default = /*#__PURE__*/_interopDefaultLegacy(_Calendar);
|
|
92
93
|
var _Carousel__default = /*#__PURE__*/_interopDefaultLegacy(_Carousel);
|
|
94
|
+
var _Segmented__default = /*#__PURE__*/_interopDefaultLegacy(_Segmented);
|
|
95
|
+
var _Collapse__default = /*#__PURE__*/_interopDefaultLegacy(_Collapse);
|
|
96
|
+
var _Comment__default = /*#__PURE__*/_interopDefaultLegacy(_Comment);
|
|
97
|
+
var _Timeline__default = /*#__PURE__*/_interopDefaultLegacy(_Timeline);
|
|
93
98
|
|
|
94
99
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
95
100
|
|
|
@@ -39956,7 +39961,7 @@
|
|
|
39956
39961
|
props: props
|
|
39957
39962
|
}),
|
|
39958
39963
|
CoreMethods = _useCoreOptions.CoreMethods,
|
|
39959
|
-
RefMethods = _useCoreOptions.RefMethods; //
|
|
39964
|
+
RefMethods = _useCoreOptions.RefMethods; // 组件实例
|
|
39960
39965
|
|
|
39961
39966
|
|
|
39962
39967
|
var instance = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, props), CoreMethods), RefMethods), {}, {
|
|
@@ -40044,6 +40049,1199 @@
|
|
|
40044
40049
|
|
|
40045
40050
|
LmFilter$2.FilterControl = FilterControl$1;
|
|
40046
40051
|
|
|
40052
|
+
var Paragraph = _Typography__default['default'].Paragraph; // 上图下文
|
|
40053
|
+
|
|
40054
|
+
var PictureTextColumn = function PictureTextColumn(_ref) {
|
|
40055
|
+
var index = _ref.index,
|
|
40056
|
+
cell = _ref.cell,
|
|
40057
|
+
table = _ref.table,
|
|
40058
|
+
checked = _ref.checked;
|
|
40059
|
+
var cellKey = table.cellKey,
|
|
40060
|
+
state = table.state,
|
|
40061
|
+
defaultConfig = table.defaultConfig,
|
|
40062
|
+
cellClick = table.cellClick,
|
|
40063
|
+
cellDoubleClick = table.cellDoubleClick,
|
|
40064
|
+
toggleCheckboxKey = table.toggleCheckboxKey;
|
|
40065
|
+
var trigger = state.checkboxConfig.trigger;
|
|
40066
|
+
var clickFlag = React.useRef(null);
|
|
40067
|
+
|
|
40068
|
+
var resetDefaultConfig = _objectSpread({
|
|
40069
|
+
checkbox: true,
|
|
40070
|
+
imgurl: 'imgurl',
|
|
40071
|
+
title: function title() {
|
|
40072
|
+
return '物料名称';
|
|
40073
|
+
},
|
|
40074
|
+
code: 'code',
|
|
40075
|
+
operate: null,
|
|
40076
|
+
extend: null
|
|
40077
|
+
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
40078
|
+
|
|
40079
|
+
|
|
40080
|
+
var onSelectChange = function onSelectChange(val, trigger) {
|
|
40081
|
+
toggleCheckboxKey(cell[cellKey], {
|
|
40082
|
+
cell: cell,
|
|
40083
|
+
cellIndex: index,
|
|
40084
|
+
trigger: trigger
|
|
40085
|
+
});
|
|
40086
|
+
}; // 单元格单击事件
|
|
40087
|
+
|
|
40088
|
+
|
|
40089
|
+
var onClick = function onClick() {
|
|
40090
|
+
// clearTimeout(clickFlag.current); // 清除第一个单击事件
|
|
40091
|
+
// clickFlag.current = setTimeout(() => {
|
|
40092
|
+
// 触发区域为单元格时仅触发复选事件
|
|
40093
|
+
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
40094
|
+
|
|
40095
|
+
if (trigger === 'cell') {
|
|
40096
|
+
onSelectChange === null || onSelectChange === void 0 ? void 0 : onSelectChange(!checked, trigger);
|
|
40097
|
+
} // }, 200)
|
|
40098
|
+
|
|
40099
|
+
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
40100
|
+
|
|
40101
|
+
|
|
40102
|
+
var onDoubleClick = function onDoubleClick() {
|
|
40103
|
+
// clearTimeout(clickFlag.current); // 清除第一个单击事件
|
|
40104
|
+
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
40105
|
+
};
|
|
40106
|
+
|
|
40107
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40108
|
+
className: "card_PTC"
|
|
40109
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40110
|
+
className: classnames('card_PTC_container', checked && 'checked'),
|
|
40111
|
+
onClick: onClick,
|
|
40112
|
+
onDoubleClick: onDoubleClick
|
|
40113
|
+
}, resetDefaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40114
|
+
className: "card_checkbox",
|
|
40115
|
+
onClick: function onClick(e) {
|
|
40116
|
+
return e.stopPropagation();
|
|
40117
|
+
}
|
|
40118
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
40119
|
+
checked: checked,
|
|
40120
|
+
onChange: function onChange(e) {
|
|
40121
|
+
return onSelectChange(e.target.checked);
|
|
40122
|
+
}
|
|
40123
|
+
})), resetDefaultConfig.operate ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40124
|
+
className: "PTC_operate"
|
|
40125
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMDropdown, {
|
|
40126
|
+
placement: "bottomRight",
|
|
40127
|
+
trigger: "click",
|
|
40128
|
+
overlay: function overlay() {
|
|
40129
|
+
return resetDefaultConfig.operate(cell, table);
|
|
40130
|
+
}
|
|
40131
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
40132
|
+
type: "lmweb-gengduotianchong"
|
|
40133
|
+
}))) : null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40134
|
+
className: "card_PTC_top"
|
|
40135
|
+
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/React__default['default'].createElement(_Image__default['default'], {
|
|
40136
|
+
src: cell[resetDefaultConfig.imgurl],
|
|
40137
|
+
fallback: ""
|
|
40138
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40139
|
+
className: "card_PTC_center"
|
|
40140
|
+
}, resetDefaultConfig.title ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40141
|
+
className: "card_title lm-font-middle-bold"
|
|
40142
|
+
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40143
|
+
className: "card_copy_text"
|
|
40144
|
+
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/React__default['default'].createElement(Paragraph, {
|
|
40145
|
+
copyable: {
|
|
40146
|
+
tooltips: false,
|
|
40147
|
+
onCopy: function onCopy() {
|
|
40148
|
+
return api$1.success('复制成功!', 1.5);
|
|
40149
|
+
}
|
|
40150
|
+
},
|
|
40151
|
+
ellipsis: true
|
|
40152
|
+
}, cell[resetDefaultConfig.code])) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40153
|
+
className: "card_PTC_bottom"
|
|
40154
|
+
}, resetDefaultConfig.extend ? resetDefaultConfig.extend(cell, table) : null)));
|
|
40155
|
+
};
|
|
40156
|
+
|
|
40157
|
+
var Paragraph$1 = _Typography__default['default'].Paragraph; // 左图右文
|
|
40158
|
+
|
|
40159
|
+
var PictureTextRow = function PictureTextRow(_ref) {
|
|
40160
|
+
var index = _ref.index,
|
|
40161
|
+
cell = _ref.cell,
|
|
40162
|
+
table = _ref.table,
|
|
40163
|
+
checked = _ref.checked;
|
|
40164
|
+
var cellKey = table.cellKey,
|
|
40165
|
+
state = table.state,
|
|
40166
|
+
defaultConfig = table.defaultConfig,
|
|
40167
|
+
cellClick = table.cellClick,
|
|
40168
|
+
cellDoubleClick = table.cellDoubleClick,
|
|
40169
|
+
toggleCheckboxKey = table.toggleCheckboxKey,
|
|
40170
|
+
checkboxChange = table.checkboxChange,
|
|
40171
|
+
ellipsis = table.ellipsis;
|
|
40172
|
+
var trigger = state.checkboxConfig.trigger;
|
|
40173
|
+
|
|
40174
|
+
var resetDefaultConfig = _objectSpread({
|
|
40175
|
+
checkbox: true,
|
|
40176
|
+
imgurl: 'imgurl',
|
|
40177
|
+
title: function title() {
|
|
40178
|
+
return '物料名称';
|
|
40179
|
+
},
|
|
40180
|
+
code: 'code',
|
|
40181
|
+
operate: null,
|
|
40182
|
+
extend: null,
|
|
40183
|
+
columns: null
|
|
40184
|
+
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
40185
|
+
|
|
40186
|
+
|
|
40187
|
+
var onSelctChange = function onSelctChange(val) {
|
|
40188
|
+
toggleCheckboxKey(cell[cellKey]);
|
|
40189
|
+
checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange(val, cell, index);
|
|
40190
|
+
}; // 单元格单击事件
|
|
40191
|
+
|
|
40192
|
+
|
|
40193
|
+
var onClick = function onClick() {
|
|
40194
|
+
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
40195
|
+
|
|
40196
|
+
if (trigger === 'cell') {
|
|
40197
|
+
onSelctChange === null || onSelctChange === void 0 ? void 0 : onSelctChange(!checked);
|
|
40198
|
+
}
|
|
40199
|
+
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
40200
|
+
|
|
40201
|
+
|
|
40202
|
+
var onDoubleClick = function onDoubleClick() {
|
|
40203
|
+
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
40204
|
+
};
|
|
40205
|
+
|
|
40206
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40207
|
+
className: "card_PTR"
|
|
40208
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40209
|
+
className: classnames('card_PTR_container', checked && 'checked')
|
|
40210
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40211
|
+
className: "card_PTR_body",
|
|
40212
|
+
onClick: onClick,
|
|
40213
|
+
onDoubleClick: onDoubleClick
|
|
40214
|
+
}, resetDefaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40215
|
+
className: "card_checkbox",
|
|
40216
|
+
onClick: function onClick(e) {
|
|
40217
|
+
return e.stopPropagation();
|
|
40218
|
+
}
|
|
40219
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
40220
|
+
checked: checked,
|
|
40221
|
+
onChange: function onChange(e) {
|
|
40222
|
+
return onSelctChange(e.target.checked);
|
|
40223
|
+
}
|
|
40224
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40225
|
+
className: "card_PTR_left"
|
|
40226
|
+
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/React__default['default'].createElement(_Image__default['default'], {
|
|
40227
|
+
src: cell[resetDefaultConfig.imgurl],
|
|
40228
|
+
fallback: ""
|
|
40229
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40230
|
+
className: "card_PTR_right"
|
|
40231
|
+
}, resetDefaultConfig.title ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40232
|
+
className: "card_title lm-font-middle-bold"
|
|
40233
|
+
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40234
|
+
className: "card_copy_text"
|
|
40235
|
+
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/React__default['default'].createElement(Paragraph$1, {
|
|
40236
|
+
copyable: {
|
|
40237
|
+
tooltips: false,
|
|
40238
|
+
onCopy: function onCopy() {
|
|
40239
|
+
return _message__default['default'].success('复制成功!', 1.5);
|
|
40240
|
+
}
|
|
40241
|
+
},
|
|
40242
|
+
ellipsis: true
|
|
40243
|
+
}, cell[resetDefaultConfig.code])) : null, resetDefaultConfig.columns ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40244
|
+
className: "PTR_column"
|
|
40245
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40246
|
+
className: "PTR_column_box"
|
|
40247
|
+
}, resetDefaultConfig.columns.map(function (v, idx) {
|
|
40248
|
+
var isVisible = v.show || typeof v.show !== 'boolean';
|
|
40249
|
+
return isVisible ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40250
|
+
key: (v === null || v === void 0 ? void 0 : v.dataIndex) || idx
|
|
40251
|
+
}, v.title, "\uFF1A", /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40252
|
+
className: classnames({
|
|
40253
|
+
ellipsis: ellipsis
|
|
40254
|
+
})
|
|
40255
|
+
}, typeof v.render === 'function' ? v.render(cell[v.dataIndex], cell, table) : cell[v.dataIndex])) : null;
|
|
40256
|
+
}))) : null, resetDefaultConfig.extend ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40257
|
+
className: "PTR_extend"
|
|
40258
|
+
}, resetDefaultConfig.extend(cell, table)) : null, resetDefaultConfig.desc ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40259
|
+
className: "PTR_desc"
|
|
40260
|
+
}, typeof resetDefaultConfig.desc === 'function' ? resetDefaultConfig.desc(cell, table) : cell[resetDefaultConfig.desc]) : null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40261
|
+
className: "card_PTR_footer"
|
|
40262
|
+
}, resetDefaultConfig.operate ? resetDefaultConfig.operate(cell, table) : null)));
|
|
40263
|
+
};
|
|
40264
|
+
|
|
40265
|
+
var Paragraph$2 = _Typography__default['default'].Paragraph; // 左图右文
|
|
40266
|
+
|
|
40267
|
+
var PictureTextRowOperate = function PictureTextRowOperate(_ref) {
|
|
40268
|
+
var index = _ref.index,
|
|
40269
|
+
cell = _ref.cell,
|
|
40270
|
+
table = _ref.table,
|
|
40271
|
+
checked = _ref.checked;
|
|
40272
|
+
var cellKey = table.cellKey,
|
|
40273
|
+
state = table.state,
|
|
40274
|
+
defaultConfig = table.defaultConfig,
|
|
40275
|
+
cellClick = table.cellClick,
|
|
40276
|
+
cellDoubleClick = table.cellDoubleClick,
|
|
40277
|
+
toggleCheckboxKey = table.toggleCheckboxKey,
|
|
40278
|
+
checkboxChange = table.checkboxChange;
|
|
40279
|
+
var trigger = state.checkboxConfig.trigger;
|
|
40280
|
+
|
|
40281
|
+
var resetDefaultConfig = _objectSpread({
|
|
40282
|
+
checkbox: true,
|
|
40283
|
+
imgurl: 'imgurl',
|
|
40284
|
+
title: function title() {
|
|
40285
|
+
return '物料名称';
|
|
40286
|
+
},
|
|
40287
|
+
code: 'code',
|
|
40288
|
+
desc: 'desc',
|
|
40289
|
+
operate: null,
|
|
40290
|
+
extend: null,
|
|
40291
|
+
columns: null
|
|
40292
|
+
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
40293
|
+
|
|
40294
|
+
|
|
40295
|
+
var onSelctChange = function onSelctChange(val) {
|
|
40296
|
+
toggleCheckboxKey(cell[cellKey]);
|
|
40297
|
+
checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange(val, cell, index);
|
|
40298
|
+
}; // 单元格单击事件
|
|
40299
|
+
|
|
40300
|
+
|
|
40301
|
+
var onClick = function onClick() {
|
|
40302
|
+
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
40303
|
+
|
|
40304
|
+
if (trigger === 'cell') {
|
|
40305
|
+
onSelctChange === null || onSelctChange === void 0 ? void 0 : onSelctChange(!checked);
|
|
40306
|
+
}
|
|
40307
|
+
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
40308
|
+
|
|
40309
|
+
|
|
40310
|
+
var onDoubleClick = function onDoubleClick() {
|
|
40311
|
+
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
40312
|
+
};
|
|
40313
|
+
|
|
40314
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40315
|
+
className: "card_PTRO"
|
|
40316
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40317
|
+
className: classnames('card_PTRO_container', checked && 'checked')
|
|
40318
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40319
|
+
className: "card_PTRO_body",
|
|
40320
|
+
onClick: onClick,
|
|
40321
|
+
onDoubleClick: onDoubleClick
|
|
40322
|
+
}, resetDefaultConfig.checkbox && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40323
|
+
className: "card_checkbox",
|
|
40324
|
+
onClick: function onClick(e) {
|
|
40325
|
+
return e.stopPropagation();
|
|
40326
|
+
}
|
|
40327
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
40328
|
+
checked: checked,
|
|
40329
|
+
onChange: function onChange(e) {
|
|
40330
|
+
return onSelctChange(e.target.checked);
|
|
40331
|
+
}
|
|
40332
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40333
|
+
className: "card_PTRO_left"
|
|
40334
|
+
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/React__default['default'].createElement(_Image__default['default'], {
|
|
40335
|
+
src: cell[resetDefaultConfig.imgurl],
|
|
40336
|
+
fallback: ""
|
|
40337
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40338
|
+
className: "card_PTRO_right"
|
|
40339
|
+
}, resetDefaultConfig.title ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40340
|
+
className: "card_title lm-font-middle-bold"
|
|
40341
|
+
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40342
|
+
className: "card_copy_text"
|
|
40343
|
+
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/React__default['default'].createElement(Paragraph$2, {
|
|
40344
|
+
copyable: {
|
|
40345
|
+
tooltips: false,
|
|
40346
|
+
onCopy: function onCopy() {
|
|
40347
|
+
return _message__default['default'].success('复制成功!', 1.5);
|
|
40348
|
+
}
|
|
40349
|
+
},
|
|
40350
|
+
ellipsis: true
|
|
40351
|
+
}, cell[resetDefaultConfig.code])) : null, resetDefaultConfig.columns ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40352
|
+
className: "PTRO_column"
|
|
40353
|
+
}, resetDefaultConfig.columns.map(function (v, idx) {
|
|
40354
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
40355
|
+
key: (v === null || v === void 0 ? void 0 : v.dataIndex) || idx
|
|
40356
|
+
}, v.title, ": ", cell[v.dataIndex]);
|
|
40357
|
+
})) : null, resetDefaultConfig.extend ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40358
|
+
className: "PTRO_extend"
|
|
40359
|
+
}, resetDefaultConfig.extend(cell, table)) : null, resetDefaultConfig.desc ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40360
|
+
className: "PTRO_desc"
|
|
40361
|
+
}, typeof resetDefaultConfig.desc === 'function' ? resetDefaultConfig.desc(cell, table) : cell[resetDefaultConfig.desc]) : null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40362
|
+
className: "card_PTRO_footer"
|
|
40363
|
+
}, resetDefaultConfig.operate ? resetDefaultConfig.operate(cell, table) : null)));
|
|
40364
|
+
};
|
|
40365
|
+
|
|
40366
|
+
var LmCardTableBodyCell = function LmCardTableBodyCell(_ref) {
|
|
40367
|
+
var index = _ref.index,
|
|
40368
|
+
cell = _ref.cell,
|
|
40369
|
+
table = _ref.table;
|
|
40370
|
+
var state = table.state,
|
|
40371
|
+
type = table.type,
|
|
40372
|
+
components = table.components,
|
|
40373
|
+
cellKey = table.cellKey;
|
|
40374
|
+
var checkKeys = state.checkboxConfig.checkKeys,
|
|
40375
|
+
radioConfig = state.radioConfig; // 渲染的单元格
|
|
40376
|
+
|
|
40377
|
+
var RenderCell = React.useMemo(function () {
|
|
40378
|
+
var types = {
|
|
40379
|
+
'PTC': PictureTextColumn,
|
|
40380
|
+
'PTR': PictureTextRow,
|
|
40381
|
+
'PTRO': PictureTextRowOperate,
|
|
40382
|
+
'TG': PictureTextColumn,
|
|
40383
|
+
'TW': PictureTextColumn
|
|
40384
|
+
};
|
|
40385
|
+
return components.Cell || types[type] || PictureTextColumn;
|
|
40386
|
+
}, [components.Cell, type]); // 是否选中
|
|
40387
|
+
|
|
40388
|
+
var isCheckboxChecked = React.useMemo(function () {
|
|
40389
|
+
return checkKeys.some(function (v) {
|
|
40390
|
+
return v === cell[cellKey];
|
|
40391
|
+
});
|
|
40392
|
+
}, [checkKeys, cellKey]);
|
|
40393
|
+
var isRadioChecked = React.useMemo(function () {
|
|
40394
|
+
return radioConfig.checkKey === cell[cellKey];
|
|
40395
|
+
}, [cellKey, radioConfig.checkKey]);
|
|
40396
|
+
var stateConfig = {
|
|
40397
|
+
checked: isCheckboxChecked
|
|
40398
|
+
};
|
|
40399
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40400
|
+
className: classnames('lm_card_table_body_cell', {
|
|
40401
|
+
'cell_checked': isCheckboxChecked || isRadioChecked
|
|
40402
|
+
})
|
|
40403
|
+
}, /*#__PURE__*/React__default['default'].createElement(RenderCell, _extends({
|
|
40404
|
+
index: index,
|
|
40405
|
+
cell: cell,
|
|
40406
|
+
table: table
|
|
40407
|
+
}, stateConfig)));
|
|
40408
|
+
};
|
|
40409
|
+
|
|
40410
|
+
var LmCardTableBodyRow = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40411
|
+
var row = _ref.row,
|
|
40412
|
+
rowIndex = _ref.rowIndex,
|
|
40413
|
+
table = _ref.table;
|
|
40414
|
+
var state = table.state,
|
|
40415
|
+
rowConfig = table.rowConfig,
|
|
40416
|
+
height = table.cellConfig.height,
|
|
40417
|
+
cellKey = table.cellKey; // 检测是否最后末行
|
|
40418
|
+
|
|
40419
|
+
var isLastRow = React.useMemo(function () {
|
|
40420
|
+
return state.rows.length === rowIndex + 1;
|
|
40421
|
+
}, [state.rows, rowIndex]);
|
|
40422
|
+
var style = {
|
|
40423
|
+
height: isLastRow ? height : height + rowConfig.gap,
|
|
40424
|
+
width: '100%',
|
|
40425
|
+
minWidth: '100%',
|
|
40426
|
+
gridGap: rowConfig.gap,
|
|
40427
|
+
gridTemplateColumns: "repeat(".concat(state.columnCount, ", 1fr)"),
|
|
40428
|
+
paddingBottom: isLastRow ? 0 : rowConfig.gap
|
|
40429
|
+
};
|
|
40430
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40431
|
+
className: classnames('lm_card_table_body_row', isLastRow && 'last_row'),
|
|
40432
|
+
style: style
|
|
40433
|
+
}, row.map(function (cell, index) {
|
|
40434
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyCell, {
|
|
40435
|
+
key: (cell === null || cell === void 0 ? void 0 : cell[cellKey]) || index,
|
|
40436
|
+
index: index,
|
|
40437
|
+
cell: cell,
|
|
40438
|
+
table: table
|
|
40439
|
+
});
|
|
40440
|
+
}));
|
|
40441
|
+
});
|
|
40442
|
+
var LmCardTableBodyRowVirtual = /*#__PURE__*/React__default['default'].memo(function (_ref2) {
|
|
40443
|
+
var row = _ref2.row,
|
|
40444
|
+
start = _ref2.start,
|
|
40445
|
+
rowIndex = _ref2.rowIndex,
|
|
40446
|
+
table = _ref2.table;
|
|
40447
|
+
var state = table.state,
|
|
40448
|
+
rowConfig = table.rowConfig,
|
|
40449
|
+
height = table.cellConfig.height,
|
|
40450
|
+
cellKey = table.cellKey; // 检测是否最后末行
|
|
40451
|
+
|
|
40452
|
+
var isLastRow = React.useMemo(function () {
|
|
40453
|
+
return state.rows.length === rowIndex + 1;
|
|
40454
|
+
});
|
|
40455
|
+
var style = {
|
|
40456
|
+
position: "absolute",
|
|
40457
|
+
top: 0,
|
|
40458
|
+
left: 0,
|
|
40459
|
+
height: isLastRow ? height : height + rowConfig.gap,
|
|
40460
|
+
width: '100%',
|
|
40461
|
+
minWidth: '100%',
|
|
40462
|
+
transform: "translateY(".concat(start, "px)"),
|
|
40463
|
+
gridGap: rowConfig.gap,
|
|
40464
|
+
gridTemplateColumns: "repeat(".concat(state.columnCount, ", 1fr)"),
|
|
40465
|
+
paddingBottom: isLastRow ? 0 : rowConfig.gap
|
|
40466
|
+
};
|
|
40467
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40468
|
+
className: classnames('lm_card_table_body_row', isLastRow && 'last_row'),
|
|
40469
|
+
style: style
|
|
40470
|
+
}, row.map(function (cell, index) {
|
|
40471
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyCell, {
|
|
40472
|
+
key: (cell === null || cell === void 0 ? void 0 : cell[cellKey]) || index,
|
|
40473
|
+
index: index,
|
|
40474
|
+
cell: cell,
|
|
40475
|
+
table: table
|
|
40476
|
+
});
|
|
40477
|
+
}));
|
|
40478
|
+
});
|
|
40479
|
+
|
|
40480
|
+
var TableBody = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40481
|
+
var table = _ref.table,
|
|
40482
|
+
tableContainerRef = _ref.tableContainerRef;
|
|
40483
|
+
var _table$state = table.state,
|
|
40484
|
+
rows = _table$state.rows,
|
|
40485
|
+
checkboxConfig = _table$state.checkboxConfig,
|
|
40486
|
+
rowConfig = table.rowConfig,
|
|
40487
|
+
height = table.cellConfig.height,
|
|
40488
|
+
virtual = table.virtual; // 是否存在选中
|
|
40489
|
+
|
|
40490
|
+
var hasChecked = React.useMemo(function () {
|
|
40491
|
+
return checkboxConfig.checkKeys.length;
|
|
40492
|
+
}, [checkboxConfig.checkKeys.length]);
|
|
40493
|
+
|
|
40494
|
+
var _useVirtual = useVirtual({
|
|
40495
|
+
size: rows.length,
|
|
40496
|
+
parentRef: tableContainerRef,
|
|
40497
|
+
estimateSize: React__default['default'].useCallback(function () {
|
|
40498
|
+
return height + rowConfig.gap;
|
|
40499
|
+
}, [height]),
|
|
40500
|
+
overscan: 2
|
|
40501
|
+
}),
|
|
40502
|
+
totalSize = _useVirtual.totalSize,
|
|
40503
|
+
virtualItems = _useVirtual.virtualItems;
|
|
40504
|
+
|
|
40505
|
+
var virScrollStyles = React.useMemo(function () {
|
|
40506
|
+
return {
|
|
40507
|
+
height: "".concat(totalSize - rowConfig.gap, "px"),
|
|
40508
|
+
width: '100%',
|
|
40509
|
+
position: "relative"
|
|
40510
|
+
};
|
|
40511
|
+
}, [totalSize]);
|
|
40512
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40513
|
+
className: classnames('lm_card_table_body', hasChecked && 'hasChecked')
|
|
40514
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40515
|
+
className: "lm_card_table_body_scroll",
|
|
40516
|
+
style: virScrollStyles
|
|
40517
|
+
}, virtual && rows.length > 10 ? virtualItems.map(function (_ref2) {
|
|
40518
|
+
var index = _ref2.index,
|
|
40519
|
+
start = _ref2.start;
|
|
40520
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyRowVirtual, {
|
|
40521
|
+
key: index,
|
|
40522
|
+
rowIndex: index,
|
|
40523
|
+
start: start,
|
|
40524
|
+
row: rows[index],
|
|
40525
|
+
table: table
|
|
40526
|
+
});
|
|
40527
|
+
}) : rows.map(function (row, index) {
|
|
40528
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableBodyRow, {
|
|
40529
|
+
key: index,
|
|
40530
|
+
rowIndex: index,
|
|
40531
|
+
row: row,
|
|
40532
|
+
table: table
|
|
40533
|
+
});
|
|
40534
|
+
})));
|
|
40535
|
+
});
|
|
40536
|
+
|
|
40537
|
+
// 卡片表格
|
|
40538
|
+
var LmCardTable = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40539
|
+
var table = _ref.table,
|
|
40540
|
+
tableContainerRef = _ref.tableContainerRef;
|
|
40541
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40542
|
+
className: "lm_card_table"
|
|
40543
|
+
}, /*#__PURE__*/React__default['default'].createElement(TableBody, {
|
|
40544
|
+
table: table,
|
|
40545
|
+
tableContainerRef: tableContainerRef
|
|
40546
|
+
}));
|
|
40547
|
+
});
|
|
40548
|
+
|
|
40549
|
+
// 列响应数量处理: (盒子总高宽, 列宽度)
|
|
40550
|
+
var getResizeColumnCount = function getResizeColumnCount() {
|
|
40551
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
40552
|
+
totalWidth = _ref.width;
|
|
40553
|
+
|
|
40554
|
+
var colWidth = arguments.length > 1 ? arguments[1] : undefined;
|
|
40555
|
+
|
|
40556
|
+
if (totalWidth > 1790) {
|
|
40557
|
+
return colWidth > 308 ? 4 : colWidth > 228 ? 5 : colWidth > 200 ? 6 : 7;
|
|
40558
|
+
}
|
|
40559
|
+
|
|
40560
|
+
if (totalWidth > 1390) {
|
|
40561
|
+
return colWidth > 308 ? 3 : colWidth > 228 ? 4 : colWidth > 200 ? 5 : 6;
|
|
40562
|
+
}
|
|
40563
|
+
|
|
40564
|
+
if (totalWidth > 990) {
|
|
40565
|
+
return colWidth > 308 ? 2 : colWidth > 228 ? 3 : colWidth > 200 ? 4 : 5;
|
|
40566
|
+
} // 小于990时
|
|
40567
|
+
|
|
40568
|
+
|
|
40569
|
+
return colWidth > 308 ? 2 : colWidth > 228 ? 3 : colWidth > 200 ? 4 : 5;
|
|
40570
|
+
};
|
|
40571
|
+
|
|
40572
|
+
// 主体区域: 对表格进行包裹
|
|
40573
|
+
var useIsomorphicLayoutEffect$3 = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
40574
|
+
var LmCardTableContainer = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40575
|
+
var table = _ref.table;
|
|
40576
|
+
var dataSource = table.dataSource,
|
|
40577
|
+
dispatch = table.dispatch,
|
|
40578
|
+
cellConfig = table.cellConfig,
|
|
40579
|
+
type = table.type;
|
|
40580
|
+
var tableContainerRef = React.useRef(null); // 行数据计算
|
|
40581
|
+
|
|
40582
|
+
var getRows = React.useCallback(function (columnCount) {
|
|
40583
|
+
var arr = [];
|
|
40584
|
+
var len = Math.ceil(dataSource.length / columnCount);
|
|
40585
|
+
|
|
40586
|
+
for (var i = 0; i < len; i += 1) {
|
|
40587
|
+
var startIndex = columnCount * i;
|
|
40588
|
+
var items = dataSource.slice(startIndex, startIndex + columnCount);
|
|
40589
|
+
arr.push(items);
|
|
40590
|
+
}
|
|
40591
|
+
|
|
40592
|
+
return arr;
|
|
40593
|
+
}, [dataSource]); // 获取容器盒子高宽
|
|
40594
|
+
|
|
40595
|
+
var getResize = React.useCallback(function () {
|
|
40596
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
40597
|
+
blockSize = _ref2.blockSize,
|
|
40598
|
+
inlineSize = _ref2.inlineSize;
|
|
40599
|
+
|
|
40600
|
+
// 列数量
|
|
40601
|
+
var colCount = getResizeColumnCount({
|
|
40602
|
+
width: inlineSize,
|
|
40603
|
+
height: blockSize
|
|
40604
|
+
}, cellConfig.width); // 获取行
|
|
40605
|
+
|
|
40606
|
+
var rows = getRows(colCount);
|
|
40607
|
+
dispatch({
|
|
40608
|
+
type: 'windowResize',
|
|
40609
|
+
resize: {
|
|
40610
|
+
width: inlineSize,
|
|
40611
|
+
height: blockSize
|
|
40612
|
+
}
|
|
40613
|
+
});
|
|
40614
|
+
dispatch({
|
|
40615
|
+
type: 'changeColumnCount',
|
|
40616
|
+
columnCount: colCount
|
|
40617
|
+
});
|
|
40618
|
+
dispatch({
|
|
40619
|
+
type: 'changeRows',
|
|
40620
|
+
rows: rows
|
|
40621
|
+
});
|
|
40622
|
+
}, [getRows]); // 获取表格高度
|
|
40623
|
+
|
|
40624
|
+
useIsomorphicLayoutEffect$3(function () {
|
|
40625
|
+
// 频繁变动可考虑增加防抖
|
|
40626
|
+
var resizeObserver = new ResizeObserver(function (entries) {
|
|
40627
|
+
// console.log("我的resize变化啦");
|
|
40628
|
+
var borderbox = entries[0].borderBoxSize[0];
|
|
40629
|
+
getResize(borderbox);
|
|
40630
|
+
});
|
|
40631
|
+
|
|
40632
|
+
if (tableContainerRef.current) {
|
|
40633
|
+
resizeObserver.observe(tableContainerRef.current);
|
|
40634
|
+
}
|
|
40635
|
+
|
|
40636
|
+
return function () {
|
|
40637
|
+
return resizeObserver.disconnect();
|
|
40638
|
+
};
|
|
40639
|
+
}, [type, getResize]);
|
|
40640
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40641
|
+
ref: tableContainerRef,
|
|
40642
|
+
className: "lm_card_table_container"
|
|
40643
|
+
}, /*#__PURE__*/React__default['default'].createElement(LmCardTable, {
|
|
40644
|
+
table: table,
|
|
40645
|
+
tableContainerRef: tableContainerRef
|
|
40646
|
+
}));
|
|
40647
|
+
});
|
|
40648
|
+
|
|
40649
|
+
var _excluded$r = ["onChange"];
|
|
40650
|
+
|
|
40651
|
+
var LmCardTablePagination = function LmCardTablePagination(_ref) {
|
|
40652
|
+
var table = _ref.table;
|
|
40653
|
+
|
|
40654
|
+
var dispatch = table.dispatch,
|
|
40655
|
+
_table$dataSource = table.dataSource,
|
|
40656
|
+
dataSource = _table$dataSource === void 0 ? [] : _table$dataSource,
|
|
40657
|
+
_table$pagination = table.pagination,
|
|
40658
|
+
onChange = _table$pagination.onChange,
|
|
40659
|
+
paginationProps = _objectWithoutProperties(_table$pagination, _excluded$r); // 分页改变事件
|
|
40660
|
+
|
|
40661
|
+
|
|
40662
|
+
var onPageChange = function onPageChange(pageIndex, pageSize) {
|
|
40663
|
+
dispatch({
|
|
40664
|
+
type: 'changePage',
|
|
40665
|
+
page: {
|
|
40666
|
+
pageIndex: pageIndex,
|
|
40667
|
+
pageSize: pageSize,
|
|
40668
|
+
total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || 0
|
|
40669
|
+
}
|
|
40670
|
+
});
|
|
40671
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(pageIndex, pageSize);
|
|
40672
|
+
}; // 默认的配置
|
|
40673
|
+
|
|
40674
|
+
|
|
40675
|
+
var defaultProps = {
|
|
40676
|
+
size: 'small',
|
|
40677
|
+
showSizeChanger: true,
|
|
40678
|
+
showQuickJumper: true,
|
|
40679
|
+
showTotal: function showTotal(total) {
|
|
40680
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40681
|
+
},
|
|
40682
|
+
total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || 0,
|
|
40683
|
+
defaultPageSize: 20,
|
|
40684
|
+
pageSizeOptions: [20, 50, 100, 500],
|
|
40685
|
+
onChange: onPageChange
|
|
40686
|
+
};
|
|
40687
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40688
|
+
className: "lm_card_table_pagination"
|
|
40689
|
+
}, /*#__PURE__*/React__default['default'].createElement(LMPagination, _extends({}, defaultProps, paginationProps)));
|
|
40690
|
+
};
|
|
40691
|
+
|
|
40692
|
+
var CardTablePager = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40693
|
+
var table = _ref.table;
|
|
40694
|
+
var pagination = table.pagination,
|
|
40695
|
+
pagerConfig = table.pagerConfig; // left || right:插槽
|
|
40696
|
+
|
|
40697
|
+
var left = pagerConfig.left,
|
|
40698
|
+
right = pagerConfig.right; // 底部工具栏左侧插槽: 默认空 div 标签占位
|
|
40699
|
+
|
|
40700
|
+
var LeftSlot = function LeftSlot() {
|
|
40701
|
+
if (!left) {
|
|
40702
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null);
|
|
40703
|
+
}
|
|
40704
|
+
return typeof left === 'function' ? left(table) : left;
|
|
40705
|
+
}; // 底部工具栏右侧插槽
|
|
40706
|
+
|
|
40707
|
+
|
|
40708
|
+
var RighSlot = function RighSlot() {
|
|
40709
|
+
if (!right) {
|
|
40710
|
+
return pagination ? /*#__PURE__*/React__default['default'].createElement(LmCardTablePagination, {
|
|
40711
|
+
table: table
|
|
40712
|
+
}) : null;
|
|
40713
|
+
}
|
|
40714
|
+
|
|
40715
|
+
return typeof right === 'function' ? right(table, LmCardTablePagination) : right;
|
|
40716
|
+
};
|
|
40717
|
+
|
|
40718
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40719
|
+
className: "lm_card_table_pager"
|
|
40720
|
+
}, /*#__PURE__*/React__default['default'].createElement(LeftSlot, null), /*#__PURE__*/React__default['default'].createElement(RighSlot, null));
|
|
40721
|
+
});
|
|
40722
|
+
|
|
40723
|
+
var CardToolBarBottom = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40724
|
+
var table = _ref.table;
|
|
40725
|
+
var pagination = table.pagination,
|
|
40726
|
+
toolbarBottom = table.toolbarConfig.toolbarBottom;
|
|
40727
|
+
|
|
40728
|
+
if (!toolbarBottom) {
|
|
40729
|
+
return null;
|
|
40730
|
+
}
|
|
40731
|
+
|
|
40732
|
+
return typeof toolbarBottom === 'function' ? toolbarBottom(table) : toolbarBottom // <div className='lm_card_table_toolbar_bottom'>
|
|
40733
|
+
// <ToolbarBottomSlot />
|
|
40734
|
+
// </div>
|
|
40735
|
+
;
|
|
40736
|
+
});
|
|
40737
|
+
|
|
40738
|
+
var LmCardTableWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
40739
|
+
var table = _ref.table;
|
|
40740
|
+
var height = table.height,
|
|
40741
|
+
style = table.style;
|
|
40742
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
40743
|
+
className: "lm_card_table_wrapper",
|
|
40744
|
+
style: _objectSpread({
|
|
40745
|
+
height: height
|
|
40746
|
+
}, style)
|
|
40747
|
+
}, /*#__PURE__*/React__default['default'].createElement(LmCardTableContainer, {
|
|
40748
|
+
table: table
|
|
40749
|
+
}), /*#__PURE__*/React__default['default'].createElement(CardTablePager, {
|
|
40750
|
+
table: table
|
|
40751
|
+
}), /*#__PURE__*/React__default['default'].createElement(CardToolBarBottom, {
|
|
40752
|
+
table: table
|
|
40753
|
+
}));
|
|
40754
|
+
});
|
|
40755
|
+
|
|
40756
|
+
// 操作方法集合
|
|
40757
|
+
var CoreOptions = function CoreOptions(_ref) {
|
|
40758
|
+
var state = _ref.state,
|
|
40759
|
+
dispatch = _ref.dispatch,
|
|
40760
|
+
props = _ref.props;
|
|
40761
|
+
var checkboxConfig = state.checkboxConfig;
|
|
40762
|
+
var dataSource = props.dataSource,
|
|
40763
|
+
cellKey = props.cellKey,
|
|
40764
|
+
checkboxChange = props.checkboxChange,
|
|
40765
|
+
selectionConfig = props.selectionConfig;
|
|
40766
|
+
var checkKeys = checkboxConfig.checkKeys,
|
|
40767
|
+
checkValues = checkboxConfig.checkValues,
|
|
40768
|
+
checkMethod = checkboxConfig.checkMethod; // 设置选中的值: 第一个参数是数据的键,第二个参数是选中与否, 第三个参数控制是否重置
|
|
40769
|
+
// 未做key是否属于数据源校验,用于分页时保存之前的选中状态
|
|
40770
|
+
|
|
40771
|
+
var setCheckboxKeys = function setCheckboxKeys(keys, checked, reset) {
|
|
40772
|
+
var flag = typeof checked === 'boolean' ? checked : true;
|
|
40773
|
+
var nKeys = keys;
|
|
40774
|
+
var nValues = [];
|
|
40775
|
+
|
|
40776
|
+
if (reset) {
|
|
40777
|
+
nValues = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (v) {
|
|
40778
|
+
return nKeys.includes(v[cellKey]);
|
|
40779
|
+
})) || [];
|
|
40780
|
+
dispatch({
|
|
40781
|
+
type: 'changeCheckboxConfig',
|
|
40782
|
+
checkboxConfig: {
|
|
40783
|
+
checkKeys: nKeys,
|
|
40784
|
+
checkValues: nValues
|
|
40785
|
+
}
|
|
40786
|
+
});
|
|
40787
|
+
return;
|
|
40788
|
+
}
|
|
40789
|
+
|
|
40790
|
+
if (flag) {
|
|
40791
|
+
nKeys = Array.from(new Set([].concat(_toConsumableArray(checkKeys), _toConsumableArray(keys))));
|
|
40792
|
+
nValues = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (v) {
|
|
40793
|
+
return nKeys.includes(v[cellKey]);
|
|
40794
|
+
})) || [];
|
|
40795
|
+
} else {
|
|
40796
|
+
nKeys = checkKeys.filter(function (v) {
|
|
40797
|
+
return !keys.includes(v);
|
|
40798
|
+
});
|
|
40799
|
+
nValues = checkValues.filter(function (v) {
|
|
40800
|
+
return !keys.includes(v[cellKey]);
|
|
40801
|
+
});
|
|
40802
|
+
}
|
|
40803
|
+
|
|
40804
|
+
dispatch({
|
|
40805
|
+
type: 'changeCheckboxConfig',
|
|
40806
|
+
checkboxConfig: {
|
|
40807
|
+
checkKeys: nKeys,
|
|
40808
|
+
checkValues: nValues
|
|
40809
|
+
}
|
|
40810
|
+
});
|
|
40811
|
+
dispatch({
|
|
40812
|
+
type: 'changeRadioConfig',
|
|
40813
|
+
radioConfig: {
|
|
40814
|
+
checkKey: '',
|
|
40815
|
+
checkValue: ''
|
|
40816
|
+
}
|
|
40817
|
+
});
|
|
40818
|
+
}; // 切换选中状态: 单个切换/批量切换
|
|
40819
|
+
|
|
40820
|
+
|
|
40821
|
+
var toggleCheckboxKey = function toggleCheckboxKey(k) {
|
|
40822
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
40823
|
+
var _options$trigger = options.trigger,
|
|
40824
|
+
trigger = _options$trigger === void 0 ? 'default' : _options$trigger,
|
|
40825
|
+
cell = options.cell,
|
|
40826
|
+
cellIndex = options.cellIndex;
|
|
40827
|
+
var nKeys = [k];
|
|
40828
|
+
var isCheck = true;
|
|
40829
|
+
var reset = false; // 单个切换
|
|
40830
|
+
|
|
40831
|
+
if (!Array.isArray(k)) {
|
|
40832
|
+
var isCanCheck = checkMethod; // 是否可选中
|
|
40833
|
+
|
|
40834
|
+
isCheck = !(checkKeys === null || checkKeys === void 0 ? void 0 : checkKeys.some(function (v) {
|
|
40835
|
+
return v === k;
|
|
40836
|
+
}));
|
|
40837
|
+
var record = cell || ''; // 检测选中前置阻挡事件
|
|
40838
|
+
|
|
40839
|
+
if (typeof checkMethod === 'function') {
|
|
40840
|
+
record = record || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (v) {
|
|
40841
|
+
return v[cellKey] === k;
|
|
40842
|
+
}));
|
|
40843
|
+
isCanCheck = checkMethod(record, state, trigger);
|
|
40844
|
+
}
|
|
40845
|
+
|
|
40846
|
+
if (!isCanCheck) return; // 触发复选框改变事件: 仅手动触发有效
|
|
40847
|
+
|
|
40848
|
+
if (typeof checkboxChange === 'function') {
|
|
40849
|
+
record = record || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (v) {
|
|
40850
|
+
return v[cellKey] === k;
|
|
40851
|
+
}));
|
|
40852
|
+
checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange({
|
|
40853
|
+
checked: isCheck,
|
|
40854
|
+
cell: record,
|
|
40855
|
+
cellIndex: cellIndex
|
|
40856
|
+
});
|
|
40857
|
+
}
|
|
40858
|
+
} // 多个切换 通过重置去除选中项保留切换项
|
|
40859
|
+
|
|
40860
|
+
|
|
40861
|
+
if (Array.isArray(k)) {
|
|
40862
|
+
var checkArr = checkKeys.filter(function (v) {
|
|
40863
|
+
return !k.includes(v);
|
|
40864
|
+
}); // 选中的值
|
|
40865
|
+
|
|
40866
|
+
var notCheckArr = k.filter(function (v) {
|
|
40867
|
+
return !checkKeys.includes(v);
|
|
40868
|
+
}); // 未选中的值
|
|
40869
|
+
|
|
40870
|
+
nKeys = [].concat(_toConsumableArray(notCheckArr), _toConsumableArray(checkArr)); // 组合新值为选中状态
|
|
40871
|
+
|
|
40872
|
+
reset = true;
|
|
40873
|
+
}
|
|
40874
|
+
|
|
40875
|
+
setCheckboxKeys(nKeys, isCheck, reset);
|
|
40876
|
+
};
|
|
40877
|
+
|
|
40878
|
+
var cellClick = function cellClick(cell, index) {
|
|
40879
|
+
var _props$cellClick;
|
|
40880
|
+
|
|
40881
|
+
if (!checkKeys.length) {
|
|
40882
|
+
// 校验是否存在单选
|
|
40883
|
+
var isRadio = Array.isArray(selectionConfig.type) ? selectionConfig.type.includes('radio') : selectionConfig.type === 'radio';
|
|
40884
|
+
isRadio && dispatch({
|
|
40885
|
+
type: 'changeRadioConfig',
|
|
40886
|
+
radioConfig: {
|
|
40887
|
+
checkKey: cell[cellKey],
|
|
40888
|
+
checkValue: cell
|
|
40889
|
+
}
|
|
40890
|
+
});
|
|
40891
|
+
}
|
|
40892
|
+
|
|
40893
|
+
(_props$cellClick = props.cellClick) === null || _props$cellClick === void 0 ? void 0 : _props$cellClick.call(props, cell, index);
|
|
40894
|
+
};
|
|
40895
|
+
|
|
40896
|
+
return {
|
|
40897
|
+
setCheckboxKeys: setCheckboxKeys,
|
|
40898
|
+
toggleCheckboxKey: toggleCheckboxKey,
|
|
40899
|
+
cellClick: cellClick
|
|
40900
|
+
};
|
|
40901
|
+
};
|
|
40902
|
+
|
|
40903
|
+
var _excluded$s = ["checkKeys", "trigger", "checkMethod"],
|
|
40904
|
+
_excluded2$6 = ["checkKey", "trigger"],
|
|
40905
|
+
_excluded3$2 = ["rowConfig", "cellConfig", "defaultConfig", "checkboxConfig", "radioConfig", "selectionConfig", "pagerConfig", "toolbarConfig"];
|
|
40906
|
+
|
|
40907
|
+
var reducer$4 = function reducer(state, action) {
|
|
40908
|
+
var page = action.page,
|
|
40909
|
+
resize = action.resize,
|
|
40910
|
+
columnCount = action.columnCount,
|
|
40911
|
+
rows = action.rows,
|
|
40912
|
+
checkboxConfig = action.checkboxConfig,
|
|
40913
|
+
radioConfig = action.radioConfig;
|
|
40914
|
+
|
|
40915
|
+
switch (action.type) {
|
|
40916
|
+
case 'changePage':
|
|
40917
|
+
// 分页改变
|
|
40918
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40919
|
+
page: page
|
|
40920
|
+
});
|
|
40921
|
+
|
|
40922
|
+
case 'changeColumnCount':
|
|
40923
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40924
|
+
columnCount: columnCount
|
|
40925
|
+
});
|
|
40926
|
+
|
|
40927
|
+
case 'changeRows':
|
|
40928
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40929
|
+
rows: rows
|
|
40930
|
+
});
|
|
40931
|
+
|
|
40932
|
+
case 'windowResize':
|
|
40933
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40934
|
+
resize: resize
|
|
40935
|
+
});
|
|
40936
|
+
|
|
40937
|
+
case 'changeCheckboxConfig':
|
|
40938
|
+
// 复选中的Key
|
|
40939
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40940
|
+
checkboxConfig: _objectSpread(_objectSpread({}, state.checkboxConfig), checkboxConfig)
|
|
40941
|
+
});
|
|
40942
|
+
|
|
40943
|
+
case 'changeRadioConfig':
|
|
40944
|
+
// 单选中的Key
|
|
40945
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
40946
|
+
radioConfig: _objectSpread(_objectSpread({}, state.radioConfig), radioConfig)
|
|
40947
|
+
});
|
|
40948
|
+
|
|
40949
|
+
default:
|
|
40950
|
+
throw new Error();
|
|
40951
|
+
}
|
|
40952
|
+
}; // 仅在初始化时触发一次
|
|
40953
|
+
|
|
40954
|
+
|
|
40955
|
+
var getInitialState$2 = function getInitialState(props) {
|
|
40956
|
+
var _props$checkboxConfig = props.checkboxConfig,
|
|
40957
|
+
checkboxConfig = _props$checkboxConfig === void 0 ? {} : _props$checkboxConfig,
|
|
40958
|
+
_props$radioConfig = props.radioConfig,
|
|
40959
|
+
radioConfig = _props$radioConfig === void 0 ? {} : _props$radioConfig,
|
|
40960
|
+
_props$dataSource = props.dataSource,
|
|
40961
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
40962
|
+
cellKey = props.cellKey;
|
|
40963
|
+
|
|
40964
|
+
var _checkboxConfig$check = checkboxConfig.checkKeys,
|
|
40965
|
+
checkKeys = _checkboxConfig$check === void 0 ? [] : _checkboxConfig$check,
|
|
40966
|
+
_checkboxConfig$trigg = checkboxConfig.trigger,
|
|
40967
|
+
checkboxTrigger = _checkboxConfig$trigg === void 0 ? 'default' : _checkboxConfig$trigg,
|
|
40968
|
+
_checkboxConfig$check2 = checkboxConfig.checkMethod,
|
|
40969
|
+
checkMethod = _checkboxConfig$check2 === void 0 ? true : _checkboxConfig$check2,
|
|
40970
|
+
resetCheckCOnfig = _objectWithoutProperties(checkboxConfig, _excluded$s);
|
|
40971
|
+
|
|
40972
|
+
var _radioConfig$checkKey = radioConfig.checkKey,
|
|
40973
|
+
checkKey = _radioConfig$checkKey === void 0 ? '' : _radioConfig$checkKey,
|
|
40974
|
+
_radioConfig$trigger = radioConfig.trigger,
|
|
40975
|
+
radioTrigger = _radioConfig$trigger === void 0 ? 'default' : _radioConfig$trigger,
|
|
40976
|
+
resetRadioConfig = _objectWithoutProperties(radioConfig, _excluded2$6);
|
|
40977
|
+
|
|
40978
|
+
var checkValues = dataSource.filter(function (v) {
|
|
40979
|
+
return checkKeys.includes(v[cellKey]);
|
|
40980
|
+
}) || [];
|
|
40981
|
+
var checkValue = dataSource.find(function (v) {
|
|
40982
|
+
return checkKey === v[cellKey];
|
|
40983
|
+
});
|
|
40984
|
+
return {
|
|
40985
|
+
// 复选框的配置
|
|
40986
|
+
checkboxConfig: _objectSpread({
|
|
40987
|
+
checkKeys: checkKeys,
|
|
40988
|
+
checkValues: checkValues,
|
|
40989
|
+
trigger: checkboxTrigger,
|
|
40990
|
+
checkMethod: checkMethod
|
|
40991
|
+
}, resetCheckCOnfig),
|
|
40992
|
+
radioConfig: _objectSpread({
|
|
40993
|
+
checkKey: checkKey,
|
|
40994
|
+
checkValue: checkValue,
|
|
40995
|
+
trigger: radioTrigger
|
|
40996
|
+
}, resetRadioConfig),
|
|
40997
|
+
// 分页的配置
|
|
40998
|
+
page: {
|
|
40999
|
+
pageIndex: 1,
|
|
41000
|
+
pageSize: 20,
|
|
41001
|
+
total: 0
|
|
41002
|
+
},
|
|
41003
|
+
// 容器盒子的大小
|
|
41004
|
+
resize: {
|
|
41005
|
+
widht: 0,
|
|
41006
|
+
height: 0
|
|
41007
|
+
},
|
|
41008
|
+
// 列数量
|
|
41009
|
+
columnCount: 5,
|
|
41010
|
+
rows: [] // 行数据
|
|
41011
|
+
|
|
41012
|
+
};
|
|
41013
|
+
};
|
|
41014
|
+
|
|
41015
|
+
var LmCardTableRoot = function LmCardTableRoot(props, ref) {
|
|
41016
|
+
var initialState = React.useMemo(function () {
|
|
41017
|
+
return getInitialState$2(props);
|
|
41018
|
+
}, []);
|
|
41019
|
+
|
|
41020
|
+
var _useReducer = React.useReducer(reducer$4, initialState),
|
|
41021
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
41022
|
+
state = _useReducer2[0],
|
|
41023
|
+
dispatch = _useReducer2[1]; // eslint-disable-next-line no-unused-vars
|
|
41024
|
+
|
|
41025
|
+
|
|
41026
|
+
var _useState = React.useState(false),
|
|
41027
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41028
|
+
isFullScreen = _useState2[0],
|
|
41029
|
+
setIsFullScreen = _useState2[1]; // 配置对象收集
|
|
41030
|
+
|
|
41031
|
+
|
|
41032
|
+
var configProps = React.useMemo(function () {
|
|
41033
|
+
var rowConfig = props.rowConfig,
|
|
41034
|
+
cellConfig = props.cellConfig,
|
|
41035
|
+
defaultConfig = props.defaultConfig,
|
|
41036
|
+
checkboxConfig = props.checkboxConfig,
|
|
41037
|
+
radioConfig = props.radioConfig,
|
|
41038
|
+
selectionConfig = props.selectionConfig,
|
|
41039
|
+
pagerConfig = props.pagerConfig,
|
|
41040
|
+
toolbarConfig = props.toolbarConfig,
|
|
41041
|
+
resetProps = _objectWithoutProperties(props, _excluded3$2);
|
|
41042
|
+
|
|
41043
|
+
return _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
41044
|
+
rowConfig: _objectSpread({
|
|
41045
|
+
// 行配置
|
|
41046
|
+
gap: 16
|
|
41047
|
+
}, rowConfig),
|
|
41048
|
+
cellConfig: _objectSpread({
|
|
41049
|
+
// 单元格配置对象
|
|
41050
|
+
width: 192,
|
|
41051
|
+
height: 282
|
|
41052
|
+
}, cellConfig),
|
|
41053
|
+
selectionConfig: _objectSpread({
|
|
41054
|
+
type: ['checkbox', 'radio']
|
|
41055
|
+
}, selectionConfig),
|
|
41056
|
+
radioConfig: _objectSpread({}, radioConfig),
|
|
41057
|
+
checkboxConfig: _objectSpread({}, checkboxConfig),
|
|
41058
|
+
pagerConfig: _objectSpread({}, pagerConfig),
|
|
41059
|
+
toolbarConfig: _objectSpread({}, toolbarConfig),
|
|
41060
|
+
defaultConfig: defaultConfig
|
|
41061
|
+
});
|
|
41062
|
+
}, [props]); // 方法收集
|
|
41063
|
+
|
|
41064
|
+
var eventProps = React.useMemo(function () {
|
|
41065
|
+
return CoreOptions({
|
|
41066
|
+
state: state,
|
|
41067
|
+
dispatch: dispatch,
|
|
41068
|
+
props: configProps
|
|
41069
|
+
});
|
|
41070
|
+
}, [state, dispatch, configProps]);
|
|
41071
|
+
|
|
41072
|
+
var table = _objectSpread(_objectSpread(_objectSpread({}, configProps), eventProps), {}, {
|
|
41073
|
+
state: state,
|
|
41074
|
+
dispatch: dispatch
|
|
41075
|
+
}); // 向外暴露出的方法
|
|
41076
|
+
|
|
41077
|
+
|
|
41078
|
+
React.useImperativeHandle(ref, function () {
|
|
41079
|
+
return _objectSpread({
|
|
41080
|
+
getCheckboxRecords: function getCheckboxRecords() {
|
|
41081
|
+
return state.checkboxConfig.checkValues;
|
|
41082
|
+
},
|
|
41083
|
+
getRadioRecord: function getRadioRecord() {
|
|
41084
|
+
return state.radioConfig.checkValue;
|
|
41085
|
+
}
|
|
41086
|
+
}, eventProps);
|
|
41087
|
+
});
|
|
41088
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !isFullScreen && /*#__PURE__*/React__default['default'].createElement(LmCardTableWrapper, {
|
|
41089
|
+
table: table
|
|
41090
|
+
}));
|
|
41091
|
+
};
|
|
41092
|
+
|
|
41093
|
+
var LmCardTableRoot$1 = /*#__PURE__*/React.forwardRef(LmCardTableRoot);
|
|
41094
|
+
|
|
41095
|
+
var _excluded$t = ["cellKey", "type", "height", "virtual", "ellipsis", "components", "dataSource", "cellConfig", "checkboxConfig"];
|
|
41096
|
+
// rows: LM_Row<TData>[];
|
|
41097
|
+
// }
|
|
41098
|
+
// 默认抛出
|
|
41099
|
+
|
|
41100
|
+
var LmCardTable$1 = function LmCardTable(_ref, ref) {
|
|
41101
|
+
var _ref$cellKey = _ref.cellKey,
|
|
41102
|
+
cellKey = _ref$cellKey === void 0 ? 'id' : _ref$cellKey,
|
|
41103
|
+
_ref$type = _ref.type,
|
|
41104
|
+
type = _ref$type === void 0 ? 'PTC' : _ref$type,
|
|
41105
|
+
_ref$height = _ref.height,
|
|
41106
|
+
height = _ref$height === void 0 ? '100%' : _ref$height,
|
|
41107
|
+
_ref$virtual = _ref.virtual,
|
|
41108
|
+
virtual = _ref$virtual === void 0 ? true : _ref$virtual,
|
|
41109
|
+
_ref$ellipsis = _ref.ellipsis,
|
|
41110
|
+
ellipsis = _ref$ellipsis === void 0 ? true : _ref$ellipsis,
|
|
41111
|
+
_ref$components = _ref.components,
|
|
41112
|
+
components = _ref$components === void 0 ? {} : _ref$components,
|
|
41113
|
+
_ref$dataSource = _ref.dataSource,
|
|
41114
|
+
dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource,
|
|
41115
|
+
_ref$cellConfig = _ref.cellConfig,
|
|
41116
|
+
cellConfig = _ref$cellConfig === void 0 ? {} : _ref$cellConfig,
|
|
41117
|
+
_ref$checkboxConfig = _ref.checkboxConfig,
|
|
41118
|
+
checkboxConfig = _ref$checkboxConfig === void 0 ? {} : _ref$checkboxConfig,
|
|
41119
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
41120
|
+
|
|
41121
|
+
var defaultRef = React.useRef(null);
|
|
41122
|
+
return /*#__PURE__*/React__default['default'].createElement(LmCardTableRoot$1, _extends({
|
|
41123
|
+
cellKey: cellKey,
|
|
41124
|
+
type: type,
|
|
41125
|
+
height: height,
|
|
41126
|
+
virtual: virtual,
|
|
41127
|
+
ellipsis: ellipsis,
|
|
41128
|
+
components: components,
|
|
41129
|
+
dataSource: dataSource,
|
|
41130
|
+
cellConfig: cellConfig,
|
|
41131
|
+
checkboxConfig: checkboxConfig,
|
|
41132
|
+
ref: ref || defaultRef
|
|
41133
|
+
}, resetProps));
|
|
41134
|
+
};
|
|
41135
|
+
|
|
41136
|
+
var LmCardTable$2 = /*#__PURE__*/React.forwardRef(LmCardTable$1);
|
|
41137
|
+
|
|
41138
|
+
var _excluded$u = ["defaultPageSize", "defaultCurrent", "refreshDeps"];
|
|
41139
|
+
|
|
41140
|
+
var usePagination = function usePagination(service) {
|
|
41141
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
41142
|
+
|
|
41143
|
+
var _options$defaultPageS = options.defaultPageSize,
|
|
41144
|
+
defaultPageSize = _options$defaultPageS === void 0 ? 20 : _options$defaultPageS,
|
|
41145
|
+
_options$defaultCurre = options.defaultCurrent,
|
|
41146
|
+
defaultCurrent = _options$defaultCurre === void 0 ? 1 : _options$defaultCurre,
|
|
41147
|
+
_options$refreshDeps = options.refreshDeps,
|
|
41148
|
+
refreshDeps = _options$refreshDeps === void 0 ? [] : _options$refreshDeps,
|
|
41149
|
+
rest = _objectWithoutProperties(options, _excluded$u);
|
|
41150
|
+
|
|
41151
|
+
var _useState = React.useState({
|
|
41152
|
+
loading: false,
|
|
41153
|
+
data: {
|
|
41154
|
+
pageIndex: defaultCurrent,
|
|
41155
|
+
pageSize: defaultPageSize
|
|
41156
|
+
}
|
|
41157
|
+
}),
|
|
41158
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41159
|
+
result = _useState2[0],
|
|
41160
|
+
setResult = _useState2[1];
|
|
41161
|
+
|
|
41162
|
+
var getRequest = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
41163
|
+
var c,
|
|
41164
|
+
p,
|
|
41165
|
+
res,
|
|
41166
|
+
_args = arguments;
|
|
41167
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
41168
|
+
while (1) {
|
|
41169
|
+
switch (_context.prev = _context.next) {
|
|
41170
|
+
case 0:
|
|
41171
|
+
c = _args.length > 0 && _args[0] !== undefined ? _args[0] : defaultCurrent;
|
|
41172
|
+
p = _args.length > 1 && _args[1] !== undefined ? _args[1] : defaultPageSize;
|
|
41173
|
+
setResult(function (old) {
|
|
41174
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
41175
|
+
loading: true
|
|
41176
|
+
});
|
|
41177
|
+
});
|
|
41178
|
+
_context.next = 5;
|
|
41179
|
+
return service(_objectSpread({
|
|
41180
|
+
current: c,
|
|
41181
|
+
pageSize: p
|
|
41182
|
+
}, rest));
|
|
41183
|
+
|
|
41184
|
+
case 5:
|
|
41185
|
+
res = _context.sent;
|
|
41186
|
+
setResult(function (old) {
|
|
41187
|
+
return _objectSpread(_objectSpread(_objectSpread({}, old), res), {}, {
|
|
41188
|
+
loading: false
|
|
41189
|
+
});
|
|
41190
|
+
});
|
|
41191
|
+
|
|
41192
|
+
case 7:
|
|
41193
|
+
case "end":
|
|
41194
|
+
return _context.stop();
|
|
41195
|
+
}
|
|
41196
|
+
}
|
|
41197
|
+
}, _callee);
|
|
41198
|
+
})), [service].concat(_toConsumableArray(refreshDeps)));
|
|
41199
|
+
|
|
41200
|
+
var _ref2 = (result === null || result === void 0 ? void 0 : result.data) || {},
|
|
41201
|
+
_ref2$pageIndex = _ref2.pageIndex,
|
|
41202
|
+
pageIndex = _ref2$pageIndex === void 0 ? 1 : _ref2$pageIndex,
|
|
41203
|
+
_ref2$pageSize = _ref2.pageSize,
|
|
41204
|
+
pageSize = _ref2$pageSize === void 0 ? defaultPageSize : _ref2$pageSize,
|
|
41205
|
+
_ref2$totalCount = _ref2.totalCount,
|
|
41206
|
+
totalCount = _ref2$totalCount === void 0 ? 0 : _ref2$totalCount; // 总页数
|
|
41207
|
+
|
|
41208
|
+
|
|
41209
|
+
var totalPage = React.useMemo(function () {
|
|
41210
|
+
return Math.ceil(totalCount / pageSize);
|
|
41211
|
+
}, [pageSize, totalCount]); // 分页改变触发
|
|
41212
|
+
|
|
41213
|
+
var onChange = function onChange(c, p) {
|
|
41214
|
+
return getRequest(c, p);
|
|
41215
|
+
}; // 手动重取数据, 不传入数据则触发刷新
|
|
41216
|
+
|
|
41217
|
+
|
|
41218
|
+
var refetch = function refetch(_ref3) {
|
|
41219
|
+
var _ref3$current = _ref3.current,
|
|
41220
|
+
c = _ref3$current === void 0 ? pageIndex : _ref3$current,
|
|
41221
|
+
_ref3$pageSize = _ref3.pageSize,
|
|
41222
|
+
p = _ref3$pageSize === void 0 ? pageSize : _ref3$pageSize;
|
|
41223
|
+
return getRequest(c, p);
|
|
41224
|
+
}; // 初始化获取数据
|
|
41225
|
+
|
|
41226
|
+
|
|
41227
|
+
React.useEffect(function () {
|
|
41228
|
+
getRequest(defaultCurrent, defaultPageSize);
|
|
41229
|
+
}, [getRequest]);
|
|
41230
|
+
return _objectSpread(_objectSpread({}, result), {}, {
|
|
41231
|
+
refetch: refetch,
|
|
41232
|
+
pagination: {
|
|
41233
|
+
current: pageIndex,
|
|
41234
|
+
pageSize: pageSize,
|
|
41235
|
+
total: totalCount,
|
|
41236
|
+
totalPage: totalPage,
|
|
41237
|
+
onChange: onChange
|
|
41238
|
+
}
|
|
41239
|
+
});
|
|
41240
|
+
};
|
|
41241
|
+
|
|
41242
|
+
LmCardTable$2.usePagination = usePagination;
|
|
41243
|
+
// export * from LmCardTable;
|
|
41244
|
+
|
|
40047
41245
|
var Icon$2 = function Icon(prop) {
|
|
40048
41246
|
var className = prop.className;
|
|
40049
41247
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -42993,7 +44191,7 @@
|
|
|
42993
44191
|
glyphs: glyphs
|
|
42994
44192
|
};
|
|
42995
44193
|
|
|
42996
|
-
var _excluded$
|
|
44194
|
+
var _excluded$v = ["item"];
|
|
42997
44195
|
// visible: boolean
|
|
42998
44196
|
// onClose: fn
|
|
42999
44197
|
// value: string
|
|
@@ -43060,7 +44258,7 @@
|
|
|
43060
44258
|
options: options
|
|
43061
44259
|
}, function (_ref2) {
|
|
43062
44260
|
var item = _ref2.item,
|
|
43063
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
44261
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$v);
|
|
43064
44262
|
|
|
43065
44263
|
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, resetProps, {
|
|
43066
44264
|
className: "lm-icon_row"
|
|
@@ -43081,12 +44279,12 @@
|
|
|
43081
44279
|
}))));
|
|
43082
44280
|
};
|
|
43083
44281
|
|
|
43084
|
-
var _excluded$
|
|
43085
|
-
_excluded2$
|
|
43086
|
-
_excluded3$
|
|
44282
|
+
var _excluded$w = ["allowClear"],
|
|
44283
|
+
_excluded2$7 = ["allowClear"],
|
|
44284
|
+
_excluded3$3 = ["allowClear"];
|
|
43087
44285
|
var LmInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
43088
44286
|
var _props$allowClear = props.allowClear,
|
|
43089
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
44287
|
+
rest = _objectWithoutProperties(props, _excluded$w);
|
|
43090
44288
|
|
|
43091
44289
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'], _objectSpread(_objectSpread({
|
|
43092
44290
|
ref: ref,
|
|
@@ -43098,7 +44296,7 @@
|
|
|
43098
44296
|
LmInput.Group = _Input__default['default'].Group;
|
|
43099
44297
|
LmInput.Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
43100
44298
|
var _props$allowClear2 = props.allowClear,
|
|
43101
|
-
rest = _objectWithoutProperties(props, _excluded2$
|
|
44299
|
+
rest = _objectWithoutProperties(props, _excluded2$7);
|
|
43102
44300
|
|
|
43103
44301
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Search, _objectSpread(_objectSpread({
|
|
43104
44302
|
enterButton: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
@@ -43114,7 +44312,7 @@
|
|
|
43114
44312
|
|
|
43115
44313
|
LmInput.Password = function (props) {
|
|
43116
44314
|
var _props$allowClear3 = props.allowClear,
|
|
43117
|
-
rest = _objectWithoutProperties(props, _excluded3$
|
|
44315
|
+
rest = _objectWithoutProperties(props, _excluded3$3);
|
|
43118
44316
|
|
|
43119
44317
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Password, _objectSpread(_objectSpread({
|
|
43120
44318
|
className: "lm_input_password",
|
|
@@ -43130,13 +44328,13 @@
|
|
|
43130
44328
|
}));
|
|
43131
44329
|
};
|
|
43132
44330
|
|
|
43133
|
-
var _excluded$
|
|
44331
|
+
var _excluded$x = ["children", "className"];
|
|
43134
44332
|
var prefixCls$3 = 'lm_input-number';
|
|
43135
44333
|
|
|
43136
44334
|
var LMInputNumber = function LMInputNumber(props) {
|
|
43137
44335
|
var children = props.children,
|
|
43138
44336
|
className = props.className,
|
|
43139
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
44337
|
+
others = _objectWithoutProperties(props, _excluded$x);
|
|
43140
44338
|
|
|
43141
44339
|
return /*#__PURE__*/React__default['default'].createElement(_InputNumber__default['default'], _objectSpread({
|
|
43142
44340
|
className: classnames(className, prefixCls$3),
|
|
@@ -43505,7 +44703,7 @@
|
|
|
43505
44703
|
// React currently throws a warning when using useLayoutEffect on the server.
|
|
43506
44704
|
// To get around it, we can conditionally useEffect on the server (no-op) and
|
|
43507
44705
|
// useLayoutEffect in the browser.
|
|
43508
|
-
var useIsomorphicLayoutEffect$
|
|
44706
|
+
var useIsomorphicLayoutEffect$4 = IS_SERVER ? React.useEffect : React.useLayoutEffect;
|
|
43509
44707
|
// This assignment is to extend the Navigator type to use effectiveType.
|
|
43510
44708
|
var navigatorConnection = typeof navigator !== 'undefined' &&
|
|
43511
44709
|
navigator.connection;
|
|
@@ -43810,7 +45008,7 @@
|
|
|
43810
45008
|
extendedConfig.mutate = cacheContext[1];
|
|
43811
45009
|
}
|
|
43812
45010
|
// Unsubscribe events.
|
|
43813
|
-
useIsomorphicLayoutEffect$
|
|
45011
|
+
useIsomorphicLayoutEffect$4(function () { return (cacheContext ? cacheContext[2] : UNDEFINED); }, []);
|
|
43814
45012
|
return React.createElement(SWRConfigContext.Provider, mergeObjects(props, {
|
|
43815
45013
|
value: extendedConfig
|
|
43816
45014
|
}));
|
|
@@ -43872,7 +45070,7 @@
|
|
|
43872
45070
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
43873
45071
|
[]);
|
|
43874
45072
|
// Always update the state reference.
|
|
43875
|
-
useIsomorphicLayoutEffect$
|
|
45073
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
43876
45074
|
stateRef.current = state;
|
|
43877
45075
|
});
|
|
43878
45076
|
return [stateRef, stateDependenciesRef.current, setState];
|
|
@@ -44191,12 +45389,12 @@
|
|
|
44191
45389
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44192
45390
|
[]);
|
|
44193
45391
|
// Always update fetcher and config refs.
|
|
44194
|
-
useIsomorphicLayoutEffect$
|
|
45392
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
44195
45393
|
fetcherRef.current = fetcher;
|
|
44196
45394
|
configRef.current = config;
|
|
44197
45395
|
});
|
|
44198
45396
|
// After mounted or key changed.
|
|
44199
|
-
useIsomorphicLayoutEffect$
|
|
45397
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
44200
45398
|
if (!key)
|
|
44201
45399
|
return;
|
|
44202
45400
|
var keyChanged = key !== keyRef.current;
|
|
@@ -44274,7 +45472,7 @@
|
|
|
44274
45472
|
};
|
|
44275
45473
|
}, [key, revalidate]);
|
|
44276
45474
|
// Polling
|
|
44277
|
-
useIsomorphicLayoutEffect$
|
|
45475
|
+
useIsomorphicLayoutEffect$4(function () {
|
|
44278
45476
|
var timer;
|
|
44279
45477
|
function next() {
|
|
44280
45478
|
// Use the passed interval
|
|
@@ -46592,8 +47790,8 @@
|
|
|
46592
47790
|
});
|
|
46593
47791
|
};
|
|
46594
47792
|
|
|
46595
|
-
var _excluded$
|
|
46596
|
-
_excluded2$
|
|
47793
|
+
var _excluded$y = ["label", "rules", "name", "children", "popoverProps"],
|
|
47794
|
+
_excluded2$8 = ["errorType", "rules", "name", "popoverProps", "children"];
|
|
46597
47795
|
var FIX_INLINE_STYLE = {
|
|
46598
47796
|
marginTop: -5,
|
|
46599
47797
|
marginBottom: -5,
|
|
@@ -46654,7 +47852,7 @@
|
|
|
46654
47852
|
name = _ref2.name,
|
|
46655
47853
|
children = _ref2.children,
|
|
46656
47854
|
popoverProps = _ref2.popoverProps,
|
|
46657
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
47855
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$y);
|
|
46658
47856
|
|
|
46659
47857
|
return jsxRuntime.jsx(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
|
46660
47858
|
preserve: false,
|
|
@@ -46683,7 +47881,7 @@
|
|
|
46683
47881
|
name = props.name,
|
|
46684
47882
|
popoverProps = props.popoverProps,
|
|
46685
47883
|
children = props.children,
|
|
46686
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
47884
|
+
rest = _objectWithoutProperties$1(props, _excluded2$8);
|
|
46687
47885
|
|
|
46688
47886
|
if (name && (rules === null || rules === void 0 ? void 0 : rules.length) && errorType === 'popover') {
|
|
46689
47887
|
return jsxRuntime.jsx(InternalFormItem, _objectSpread2(_objectSpread2({
|
|
@@ -48293,9 +49491,9 @@
|
|
|
48293
49491
|
return [state, setState];
|
|
48294
49492
|
}
|
|
48295
49493
|
|
|
48296
|
-
var _excluded$
|
|
48297
|
-
_excluded2$
|
|
48298
|
-
_excluded3$
|
|
49494
|
+
var _excluded$z = ["map_row_parentKey"],
|
|
49495
|
+
_excluded2$9 = ["map_row_parentKey", "map_row_key"],
|
|
49496
|
+
_excluded3$4 = ["map_row_key"];
|
|
48299
49497
|
var recordKeyToString = function recordKeyToString(rowKey) {
|
|
48300
49498
|
if (Array.isArray(rowKey)) return rowKey.join(',');
|
|
48301
49499
|
return rowKey;
|
|
@@ -48370,7 +49568,7 @@
|
|
|
48370
49568
|
map.forEach(function (value) {
|
|
48371
49569
|
if (value.map_row_parentKey && !value.map_row_key) {
|
|
48372
49570
|
var map_row_parentKey = value.map_row_parentKey,
|
|
48373
|
-
rest = _objectWithoutProperties$1(value, _excluded$
|
|
49571
|
+
rest = _objectWithoutProperties$1(value, _excluded$z);
|
|
48374
49572
|
|
|
48375
49573
|
kvArrayMap.set(map_row_parentKey, [].concat(_toConsumableArray$1(kvArrayMap.get(map_row_parentKey) || []), [rest]));
|
|
48376
49574
|
}
|
|
@@ -48385,7 +49583,7 @@
|
|
|
48385
49583
|
if (value.map_row_parentKey && value.map_row_key) {
|
|
48386
49584
|
var map_row_parentKey = value.map_row_parentKey,
|
|
48387
49585
|
map_row_key = value.map_row_key,
|
|
48388
|
-
rest = _objectWithoutProperties$1(value, _excluded2$
|
|
49586
|
+
rest = _objectWithoutProperties$1(value, _excluded2$9);
|
|
48389
49587
|
|
|
48390
49588
|
if (kvArrayMap.has(map_row_key)) {
|
|
48391
49589
|
rest[childrenColumnName] = kvArrayMap.get(map_row_key);
|
|
@@ -48402,7 +49600,7 @@
|
|
|
48402
49600
|
map.forEach(function (value) {
|
|
48403
49601
|
if (!value.map_row_parentKey) {
|
|
48404
49602
|
var map_row_key = value.map_row_key,
|
|
48405
|
-
rest = _objectWithoutProperties$1(value, _excluded3$
|
|
49603
|
+
rest = _objectWithoutProperties$1(value, _excluded3$4);
|
|
48406
49604
|
|
|
48407
49605
|
if (map_row_key && kvArrayMap.has(map_row_key)) {
|
|
48408
49606
|
var item = _objectSpread2(_objectSpread2({}, rest), {}, _defineProperty$1({}, childrenColumnName, kvArrayMap.get(map_row_key)));
|
|
@@ -49208,7 +50406,7 @@
|
|
|
49208
50406
|
});
|
|
49209
50407
|
};
|
|
49210
50408
|
|
|
49211
|
-
var _excluded$
|
|
50409
|
+
var _excluded$A = ["label", "prefixCls", "onChange", "value", "mode", "children", "defaultValue", "size", "showSearch", "disabled", "style", "className", "bordered", "options", "onSearch", "allowClear", "labelInValue", "fieldNames", "lightLabel", "labelTrigger"];
|
|
49212
50410
|
/**
|
|
49213
50411
|
* 如果有 label 就优先使用 label
|
|
49214
50412
|
*
|
|
@@ -49245,7 +50443,7 @@
|
|
|
49245
50443
|
fieldNames = props.fieldNames,
|
|
49246
50444
|
lightLabel = props.lightLabel,
|
|
49247
50445
|
labelTrigger = props.labelTrigger,
|
|
49248
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
50446
|
+
restProps = _objectWithoutProperties$1(props, _excluded$A);
|
|
49249
50447
|
|
|
49250
50448
|
var _props$placeholder = props.placeholder,
|
|
49251
50449
|
placeholder = _props$placeholder === void 0 ? label : _props$placeholder;
|
|
@@ -49383,7 +50581,7 @@
|
|
|
49383
50581
|
|
|
49384
50582
|
var LightSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(LightSelect);
|
|
49385
50583
|
|
|
49386
|
-
var _excluded$
|
|
50584
|
+
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
50585
|
var Option$1 = _Select__default['default'].Option,
|
|
49388
50586
|
OptGroup = _Select__default['default'].OptGroup;
|
|
49389
50587
|
|
|
@@ -49414,7 +50612,7 @@
|
|
|
49414
50612
|
propsSearchValue = props.searchValue,
|
|
49415
50613
|
showSearch = props.showSearch,
|
|
49416
50614
|
fieldNames = props.fieldNames,
|
|
49417
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
50615
|
+
restProps = _objectWithoutProperties$1(props, _excluded$B);
|
|
49418
50616
|
|
|
49419
50617
|
var _ref = fieldNames || {},
|
|
49420
50618
|
_ref$label = _ref.label,
|
|
@@ -49570,8 +50768,8 @@
|
|
|
49570
50768
|
|
|
49571
50769
|
var SearchSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(SearchSelect);
|
|
49572
50770
|
|
|
49573
|
-
var _excluded$
|
|
49574
|
-
_excluded2$
|
|
50771
|
+
var _excluded$C = ["value", "text"],
|
|
50772
|
+
_excluded2$a = ["mode", "valueEnum", "render", "renderFormItem", "request", "fieldProps", "plain", "children", "light", "proFieldKey", "params", "label", "bordered", "id", "lightLabel", "labelTrigger"];
|
|
49575
50773
|
var ObjToMap = function ObjToMap(value) {
|
|
49576
50774
|
if (getType(value) === 'map') {
|
|
49577
50775
|
return value;
|
|
@@ -49782,7 +50980,7 @@
|
|
|
49782
50980
|
return proFieldParsingValueEnumToArray(ObjToMap(coverValueEnum)).map(function (_ref2) {
|
|
49783
50981
|
var value = _ref2.value,
|
|
49784
50982
|
text = _ref2.text,
|
|
49785
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
50983
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$C);
|
|
49786
50984
|
|
|
49787
50985
|
return _objectSpread2({
|
|
49788
50986
|
label: text,
|
|
@@ -49930,7 +51128,7 @@
|
|
|
49930
51128
|
id = props.id,
|
|
49931
51129
|
lightLabel = props.lightLabel,
|
|
49932
51130
|
labelTrigger = props.labelTrigger,
|
|
49933
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
51131
|
+
rest = _objectWithoutProperties$1(props, _excluded2$a);
|
|
49934
51132
|
|
|
49935
51133
|
var inputRef = React.useRef();
|
|
49936
51134
|
var intl = useIntl();
|
|
@@ -50074,7 +51272,7 @@
|
|
|
50074
51272
|
|
|
50075
51273
|
var FieldSelect$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldSelect);
|
|
50076
51274
|
|
|
50077
|
-
var _excluded$
|
|
51275
|
+
var _excluded$D = ["radioType", "renderFormItem", "mode", "render", "label", "light"];
|
|
50078
51276
|
/**
|
|
50079
51277
|
* 级联选择组件
|
|
50080
51278
|
*
|
|
@@ -50091,7 +51289,7 @@
|
|
|
50091
51289
|
render = _ref.render,
|
|
50092
51290
|
label = _ref.label,
|
|
50093
51291
|
light = _ref.light,
|
|
50094
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
51292
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$D);
|
|
50095
51293
|
|
|
50096
51294
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
50097
51295
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -50228,7 +51426,7 @@
|
|
|
50228
51426
|
|
|
50229
51427
|
var FieldCascader$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldCascader);
|
|
50230
51428
|
|
|
50231
|
-
var _excluded$
|
|
51429
|
+
var _excluded$E = ["layout", "renderFormItem", "mode", "render"];
|
|
50232
51430
|
/**
|
|
50233
51431
|
* 多选组件
|
|
50234
51432
|
*
|
|
@@ -50242,7 +51440,7 @@
|
|
|
50242
51440
|
renderFormItem = _ref.renderFormItem,
|
|
50243
51441
|
mode = _ref.mode,
|
|
50244
51442
|
render = _ref.render,
|
|
50245
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
51443
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$E);
|
|
50246
51444
|
|
|
50247
51445
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
50248
51446
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -58425,14 +59623,14 @@
|
|
|
58425
59623
|
};
|
|
58426
59624
|
var SketchPicker = ColorWrap(Sketch);
|
|
58427
59625
|
|
|
58428
|
-
var _excluded$
|
|
59626
|
+
var _excluded$F = ["mode", "popoverProps"];
|
|
58429
59627
|
var DEFAULT_COLORS = ['#FF9D4E', '#5BD8A6', '#5B8FF9', '#F7664E', '#FF86B7', '#2B9E9D', '#9270CA', '#6DC8EC', '#667796', '#F6BD16' // 9 - 黄色
|
|
58430
59628
|
];
|
|
58431
59629
|
|
|
58432
59630
|
var ColorPicker = function ColorPicker(_ref) {
|
|
58433
59631
|
var mode = _ref.mode,
|
|
58434
59632
|
popoverProps = _ref.popoverProps,
|
|
58435
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
59633
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$F);
|
|
58436
59634
|
|
|
58437
59635
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
58438
59636
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -60541,8 +61739,8 @@
|
|
|
60541
61739
|
return shallowCopy;
|
|
60542
61740
|
}
|
|
60543
61741
|
|
|
60544
|
-
var _excluded$
|
|
60545
|
-
_excluded2$
|
|
61742
|
+
var _excluded$G = ["content", "numberFormatOptions", "numberPopoverRender"],
|
|
61743
|
+
_excluded2$b = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey", "plain", "valueEnum", "placeholder", "locale", "customSymbol", "numberFormatOptions", "numberPopoverRender"];
|
|
60546
61744
|
var defaultMoneyIntl = new Intl.NumberFormat('zh-Hans-CN', {
|
|
60547
61745
|
currency: 'CNY',
|
|
60548
61746
|
style: 'currency'
|
|
@@ -60599,7 +61797,7 @@
|
|
|
60599
61797
|
var content = _ref.content,
|
|
60600
61798
|
numberFormatOptions = _ref.numberFormatOptions,
|
|
60601
61799
|
numberPopoverRender = _ref.numberPopoverRender,
|
|
60602
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
61800
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$G);
|
|
60603
61801
|
|
|
60604
61802
|
var _useMergedState = useMergedState(function () {
|
|
60605
61803
|
return rest.defaultValue;
|
|
@@ -60661,7 +61859,7 @@
|
|
|
60661
61859
|
numberFormatOptions = _ref2$numberFormatOpt === void 0 ? fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberFormatOptions : _ref2$numberFormatOpt,
|
|
60662
61860
|
_ref2$numberPopoverRe = _ref2.numberPopoverRender,
|
|
60663
61861
|
numberPopoverRender = _ref2$numberPopoverRe === void 0 ? (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberPopoverRender) || false : _ref2$numberPopoverRe,
|
|
60664
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
61862
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded2$b);
|
|
60665
61863
|
|
|
60666
61864
|
var precision = (_fieldProps$precision = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : DefaultPrecisionCont;
|
|
60667
61865
|
var intl = useIntl(); // 当手动传入locale时,应该以传入的locale为准,未传入时则根据全局的locale进行国际化
|
|
@@ -60831,7 +62029,7 @@
|
|
|
60831
62029
|
|
|
60832
62030
|
var FieldOptions$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldOptions);
|
|
60833
62031
|
|
|
60834
|
-
var _excluded$
|
|
62032
|
+
var _excluded$H = ["text", "mode", "render", "renderFormItem", "fieldProps", "proFieldKey"];
|
|
60835
62033
|
/**
|
|
60836
62034
|
* 最基本的组件,就是个普通的 Input.Password
|
|
60837
62035
|
*
|
|
@@ -60845,7 +62043,7 @@
|
|
|
60845
62043
|
renderFormItem = _ref.renderFormItem,
|
|
60846
62044
|
fieldProps = _ref.fieldProps,
|
|
60847
62045
|
proFieldKey = _ref.proFieldKey,
|
|
60848
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
62046
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$H);
|
|
60849
62047
|
|
|
60850
62048
|
var intl = useIntl();
|
|
60851
62049
|
|
|
@@ -61269,7 +62467,7 @@
|
|
|
61269
62467
|
|
|
61270
62468
|
var FieldProgress$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldProgress);
|
|
61271
62469
|
|
|
61272
|
-
var _excluded$
|
|
62470
|
+
var _excluded$I = ["radioType", "renderFormItem", "mode", "render"];
|
|
61273
62471
|
/**
|
|
61274
62472
|
* 单选组件
|
|
61275
62473
|
*
|
|
@@ -61282,7 +62480,7 @@
|
|
|
61282
62480
|
renderFormItem = _ref.renderFormItem,
|
|
61283
62481
|
mode = _ref.mode,
|
|
61284
62482
|
render = _ref.render,
|
|
61285
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
62483
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$I);
|
|
61286
62484
|
|
|
61287
62485
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
61288
62486
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -62014,8 +63212,8 @@
|
|
|
62014
63212
|
};
|
|
62015
63213
|
var FieldTimePicker$1 = /*#__PURE__*/React__default['default'].forwardRef(FieldTimePicker);
|
|
62016
63214
|
|
|
62017
|
-
var _excluded$
|
|
62018
|
-
_excluded2$
|
|
63215
|
+
var _excluded$J = ["radioType", "renderFormItem", "mode", "light", "label", "render"],
|
|
63216
|
+
_excluded2$c = ["onSearch", "onClear", "onChange", "onBlur", "showSearch", "autoClearSearchValue", "treeData", "searchValue"];
|
|
62019
63217
|
/**
|
|
62020
63218
|
* Tree select
|
|
62021
63219
|
* A function that returns a React component.
|
|
@@ -62029,7 +63227,7 @@
|
|
|
62029
63227
|
light = _ref.light,
|
|
62030
63228
|
label = _ref.label,
|
|
62031
63229
|
render = _ref.render,
|
|
62032
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
63230
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$J);
|
|
62033
63231
|
|
|
62034
63232
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
62035
63233
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -62051,7 +63249,7 @@
|
|
|
62051
63249
|
autoClearSearchValue = _ref2.autoClearSearchValue,
|
|
62052
63250
|
treeData = _ref2.treeData,
|
|
62053
63251
|
propsSearchValue = _ref2.searchValue,
|
|
62054
|
-
fieldProps = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
63252
|
+
fieldProps = _objectWithoutProperties$1(_ref2, _excluded2$c);
|
|
62055
63253
|
|
|
62056
63254
|
var size = React.useContext(_ConfigProvider__default['default'].SizeContext);
|
|
62057
63255
|
|
|
@@ -62282,7 +63480,7 @@
|
|
|
62282
63480
|
});
|
|
62283
63481
|
}
|
|
62284
63482
|
|
|
62285
|
-
var _excluded$
|
|
63483
|
+
var _excluded$K = ["text", "valueType", "mode", "onChange", "renderFormItem", "value", "readonly"];
|
|
62286
63484
|
var REQUEST_VALUE_TYPE = ['select', 'radio', 'radioButton', 'checkbook'];
|
|
62287
63485
|
/**
|
|
62288
63486
|
* Render valueType object
|
|
@@ -62716,7 +63914,7 @@
|
|
|
62716
63914
|
renderFormItem = _ref.renderFormItem,
|
|
62717
63915
|
value = _ref.value,
|
|
62718
63916
|
readonly = _ref.readonly,
|
|
62719
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
63917
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$K);
|
|
62720
63918
|
|
|
62721
63919
|
var intl = useIntl();
|
|
62722
63920
|
var context = React.useContext(ConfigContext);
|
|
@@ -65501,7 +66699,7 @@
|
|
|
65501
66699
|
});
|
|
65502
66700
|
};
|
|
65503
66701
|
|
|
65504
|
-
var _excluded$
|
|
66702
|
+
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
66703
|
var useBreakpoint = _Grid__default['default'].useBreakpoint;
|
|
65506
66704
|
var Card = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) {
|
|
65507
66705
|
var _classNames2, _classNames3, _classNames4;
|
|
@@ -65547,7 +66745,7 @@
|
|
|
65547
66745
|
onChecked = props.onChecked,
|
|
65548
66746
|
tabs = props.tabs,
|
|
65549
66747
|
type = props.type,
|
|
65550
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
66748
|
+
rest = _objectWithoutProperties$1(props, _excluded$L);
|
|
65551
66749
|
|
|
65552
66750
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
65553
66751
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -65752,7 +66950,7 @@
|
|
|
65752
66950
|
});
|
|
65753
66951
|
};
|
|
65754
66952
|
|
|
65755
|
-
var _excluded$
|
|
66953
|
+
var _excluded$M = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
|
|
65756
66954
|
|
|
65757
66955
|
var TabPane = function TabPane(props) {
|
|
65758
66956
|
var key = props.key,
|
|
@@ -65764,7 +66962,7 @@
|
|
|
65764
66962
|
className = props.className,
|
|
65765
66963
|
style = props.style,
|
|
65766
66964
|
cardProps = props.cardProps,
|
|
65767
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
66965
|
+
rest = _objectWithoutProperties$1(props, _excluded$M);
|
|
65768
66966
|
|
|
65769
66967
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
65770
66968
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -67929,7 +69127,7 @@
|
|
|
67929
69127
|
return _finishOnFirstFailed.apply(this, arguments);
|
|
67930
69128
|
}
|
|
67931
69129
|
|
|
67932
|
-
var _excluded$
|
|
69130
|
+
var _excluded$N = ["name"];
|
|
67933
69131
|
var EMPTY_ERRORS = [];
|
|
67934
69132
|
|
|
67935
69133
|
function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
@@ -68541,7 +69739,7 @@
|
|
|
68541
69739
|
|
|
68542
69740
|
function WrapperField(_ref5) {
|
|
68543
69741
|
var name = _ref5.name,
|
|
68544
|
-
restProps = _objectWithoutProperties$1(_ref5, _excluded$
|
|
69742
|
+
restProps = _objectWithoutProperties$1(_ref5, _excluded$N);
|
|
68545
69743
|
|
|
68546
69744
|
var fieldContext = React.useContext(Context$3);
|
|
68547
69745
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -68841,7 +70039,7 @@
|
|
|
68841
70039
|
return NameMap;
|
|
68842
70040
|
}();
|
|
68843
70041
|
|
|
68844
|
-
var _excluded$
|
|
70042
|
+
var _excluded$O = ["name", "errors"];
|
|
68845
70043
|
var FormStore = /*#__PURE__*/_createClass(function FormStore(forceRootUpdate) {
|
|
68846
70044
|
var _this = this;
|
|
68847
70045
|
|
|
@@ -69343,7 +70541,7 @@
|
|
|
69343
70541
|
fields.forEach(function (fieldData) {
|
|
69344
70542
|
var name = fieldData.name,
|
|
69345
70543
|
errors = fieldData.errors,
|
|
69346
|
-
data = _objectWithoutProperties$1(fieldData, _excluded$
|
|
70544
|
+
data = _objectWithoutProperties$1(fieldData, _excluded$O);
|
|
69347
70545
|
|
|
69348
70546
|
var namePath = getNamePath(name);
|
|
69349
70547
|
namePathList.push(namePath); // Value
|
|
@@ -69865,7 +71063,7 @@
|
|
|
69865
71063
|
}, children);
|
|
69866
71064
|
};
|
|
69867
71065
|
|
|
69868
|
-
var _excluded$
|
|
71066
|
+
var _excluded$P = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
69869
71067
|
|
|
69870
71068
|
var Form = function Form(_ref, ref) {
|
|
69871
71069
|
var name = _ref.name,
|
|
@@ -69883,7 +71081,7 @@
|
|
|
69883
71081
|
_onFieldsChange = _ref.onFieldsChange,
|
|
69884
71082
|
_onFinish = _ref.onFinish,
|
|
69885
71083
|
onFinishFailed = _ref.onFinishFailed,
|
|
69886
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
71084
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$P);
|
|
69887
71085
|
|
|
69888
71086
|
var formContext = React.useContext(FormContext); // We customize handle event since Context will makes all the consumer re-render:
|
|
69889
71087
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -70113,8 +71311,8 @@
|
|
|
70113
71311
|
|
|
70114
71312
|
var FieldContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
70115
71313
|
|
|
70116
|
-
var _excluded$
|
|
70117
|
-
_excluded2$
|
|
71314
|
+
var _excluded$Q = ["children", "Wrapper"],
|
|
71315
|
+
_excluded2$d = ["children", "Wrapper"];
|
|
70118
71316
|
var GridContext = /*#__PURE__*/React.createContext({
|
|
70119
71317
|
grid: false,
|
|
70120
71318
|
colProps: undefined,
|
|
@@ -70130,7 +71328,7 @@
|
|
|
70130
71328
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
70131
71329
|
children = _ref2.children,
|
|
70132
71330
|
Wrapper = _ref2.Wrapper,
|
|
70133
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
71331
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$Q);
|
|
70134
71332
|
|
|
70135
71333
|
if (!grid) {
|
|
70136
71334
|
return Wrapper ? jsxRuntime.jsx(Wrapper, {
|
|
@@ -70148,7 +71346,7 @@
|
|
|
70148
71346
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
70149
71347
|
children = _ref3.children,
|
|
70150
71348
|
Wrapper = _ref3.Wrapper,
|
|
70151
|
-
rest = _objectWithoutProperties$1(_ref3, _excluded2$
|
|
71349
|
+
rest = _objectWithoutProperties$1(_ref3, _excluded2$d);
|
|
70152
71350
|
|
|
70153
71351
|
var props = React.useMemo(function () {
|
|
70154
71352
|
var originProps = _objectSpread2(_objectSpread2({}, colProps), rest);
|
|
@@ -70206,8 +71404,8 @@
|
|
|
70206
71404
|
JSON.stringify([colProps, config === null || config === void 0 ? void 0 : config.colProps, config === null || config === void 0 ? void 0 : config.rowProps])]);
|
|
70207
71405
|
};
|
|
70208
71406
|
|
|
70209
|
-
var _excluded$
|
|
70210
|
-
_excluded2$
|
|
71407
|
+
var _excluded$R = ["valueType", "customLightMode", "lightFilterLabelFormatter", "valuePropName", "ignoreWidth", "defaultProps"],
|
|
71408
|
+
_excluded2$e = ["label", "tooltip", "placeholder", "width", "bordered", "messageVariables", "ignoreFormItem", "transform", "convertValue", "readonly", "allowClear", "colSize", "getFormItemProps", "getFieldProps", "filedConfig", "cacheForSwr", "proFieldProps"];
|
|
70211
71409
|
var WIDTH_SIZE_ENUM = {
|
|
70212
71410
|
// 适用于短数字,短文本或者选项
|
|
70213
71411
|
xs: 104,
|
|
@@ -70246,7 +71444,7 @@
|
|
|
70246
71444
|
valuePropName = _ref$valuePropName === void 0 ? 'value' : _ref$valuePropName,
|
|
70247
71445
|
ignoreWidth = _ref.ignoreWidth,
|
|
70248
71446
|
defaultProps = _ref.defaultProps,
|
|
70249
|
-
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
71447
|
+
defaultFormItemProps = _objectWithoutProperties$1(_ref, _excluded$R);
|
|
70250
71448
|
|
|
70251
71449
|
var _defaultProps$props = _objectSpread2(_objectSpread2({}, defaultProps), props),
|
|
70252
71450
|
label = _defaultProps$props.label,
|
|
@@ -70266,7 +71464,7 @@
|
|
|
70266
71464
|
filedConfig = _defaultProps$props.filedConfig,
|
|
70267
71465
|
cacheForSwr = _defaultProps$props.cacheForSwr,
|
|
70268
71466
|
proFieldProps = _defaultProps$props.proFieldProps,
|
|
70269
|
-
rest = _objectWithoutProperties$1(_defaultProps$props, _excluded2$
|
|
71467
|
+
rest = _objectWithoutProperties$1(_defaultProps$props, _excluded2$e);
|
|
70270
71468
|
|
|
70271
71469
|
var valueType = tmpValueType || rest.valueType; // 有些 valueType 不需要宽度
|
|
70272
71470
|
|
|
@@ -70459,7 +71657,7 @@
|
|
|
70459
71657
|
mode: 'edit'
|
|
70460
71658
|
});
|
|
70461
71659
|
|
|
70462
|
-
var _excluded$
|
|
71660
|
+
var _excluded$S = ["fieldProps", "children", "labelCol", "label", "autoFocus", "isDefaultDom", "render", "proFieldProps", "renderFormItem", "valueType", "initialValue", "onChange", "valueEnum", "params", "name", "dependenciesValues", "cacheForSwr", "valuePropName"];
|
|
70463
71661
|
|
|
70464
71662
|
var BaseProFormField = function BaseProFormField(props) {
|
|
70465
71663
|
var fieldProps = props.fieldProps,
|
|
@@ -70482,7 +71680,7 @@
|
|
|
70482
71680
|
cacheForSwr = _props$cacheForSwr === void 0 ? false : _props$cacheForSwr,
|
|
70483
71681
|
_props$valuePropName = props.valuePropName,
|
|
70484
71682
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
70485
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
71683
|
+
restProps = _objectWithoutProperties$1(props, _excluded$S);
|
|
70486
71684
|
|
|
70487
71685
|
var modeContext = React.useContext(EditOrReadOnlyContext);
|
|
70488
71686
|
var propsParams = React.useMemo(function () {
|
|
@@ -70557,7 +71755,7 @@
|
|
|
70557
71755
|
return isDeepEqualReact(nextProps, prevProps, ['onChange', 'onBlur']);
|
|
70558
71756
|
}));
|
|
70559
71757
|
|
|
70560
|
-
var _excluded$
|
|
71758
|
+
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
71759
|
/** Antd 自带的toArray 不支持方法,所以需要自己搞一个 */
|
|
70562
71760
|
|
|
70563
71761
|
var listToArray = function listToArray(children) {
|
|
@@ -70596,7 +71794,7 @@
|
|
|
70596
71794
|
min = props.min,
|
|
70597
71795
|
max = props.max,
|
|
70598
71796
|
count = props.count,
|
|
70599
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
71797
|
+
rest = _objectWithoutProperties$1(props, _excluded$T);
|
|
70600
71798
|
|
|
70601
71799
|
var listContext = React.useContext(FormListContext);
|
|
70602
71800
|
var unmountedRef = React.useRef(false);
|
|
@@ -71068,7 +72266,7 @@
|
|
|
71068
72266
|
});
|
|
71069
72267
|
};
|
|
71070
72268
|
|
|
71071
|
-
var _excluded$
|
|
72269
|
+
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
72270
|
var FormListContext = /*#__PURE__*/React__default['default'].createContext({});
|
|
71073
72271
|
|
|
71074
72272
|
function ProFormList(props) {
|
|
@@ -71114,7 +72312,7 @@
|
|
|
71114
72312
|
isValidateList = _props$isValidateList === void 0 ? false : _props$isValidateList,
|
|
71115
72313
|
_props$emptyListMessa = props.emptyListMessage,
|
|
71116
72314
|
emptyListMessage = _props$emptyListMessa === void 0 ? '列表不能为空' : _props$emptyListMessa,
|
|
71117
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
72315
|
+
rest = _objectWithoutProperties$1(props, _excluded$U);
|
|
71118
72316
|
|
|
71119
72317
|
var _useGridHelpers = useGridHelpers({
|
|
71120
72318
|
colProps: colProps,
|
|
@@ -71226,13 +72424,13 @@
|
|
|
71226
72424
|
});
|
|
71227
72425
|
}
|
|
71228
72426
|
|
|
71229
|
-
var _excluded$
|
|
72427
|
+
var _excluded$V = ["name", "children", "ignoreFormListField"];
|
|
71230
72428
|
|
|
71231
72429
|
var ProFormDependency = function ProFormDependency(_ref) {
|
|
71232
72430
|
var names = _ref.name,
|
|
71233
72431
|
_children = _ref.children,
|
|
71234
72432
|
ignoreFormListField = _ref.ignoreFormListField,
|
|
71235
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
72433
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$V);
|
|
71236
72434
|
|
|
71237
72435
|
var context = React.useContext(ProFormContext); // ProFromList 的 field,里面有name和key
|
|
71238
72436
|
|
|
@@ -71301,8 +72499,8 @@
|
|
|
71301
72499
|
}));
|
|
71302
72500
|
};
|
|
71303
72501
|
|
|
71304
|
-
var _excluded$
|
|
71305
|
-
_excluded2$
|
|
72502
|
+
var _excluded$W = ["children", "value", "valuePropName", "onChange", "fieldProps", "space", "type", "transform", "convertValue"],
|
|
72503
|
+
_excluded2$f = ["children", "space", "valuePropName"];
|
|
71306
72504
|
var FieldSetType = {
|
|
71307
72505
|
space: _Space__default['default'],
|
|
71308
72506
|
group: _Input__default['default'].Group
|
|
@@ -71329,7 +72527,7 @@
|
|
|
71329
72527
|
type = _ref$type === void 0 ? 'space' : _ref$type,
|
|
71330
72528
|
transform = _ref.transform,
|
|
71331
72529
|
convertValue = _ref.convertValue,
|
|
71332
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
72530
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$W);
|
|
71333
72531
|
|
|
71334
72532
|
/**
|
|
71335
72533
|
* 使用方法的引用防止闭包
|
|
@@ -71412,7 +72610,7 @@
|
|
|
71412
72610
|
var children = _ref3.children,
|
|
71413
72611
|
space = _ref3.space,
|
|
71414
72612
|
valuePropName = _ref3.valuePropName,
|
|
71415
|
-
rest = _objectWithoutProperties$1(_ref3, _excluded2$
|
|
72613
|
+
rest = _objectWithoutProperties$1(_ref3, _excluded2$f);
|
|
71416
72614
|
|
|
71417
72615
|
React.useImperativeHandle(ref, function () {
|
|
71418
72616
|
return {};
|
|
@@ -71429,9 +72627,9 @@
|
|
|
71429
72627
|
});
|
|
71430
72628
|
var ProFormFieldSet = createField(BaseProFormFieldSet);
|
|
71431
72629
|
|
|
71432
|
-
var _excluded$
|
|
71433
|
-
_excluded2$
|
|
71434
|
-
_excluded3$
|
|
72630
|
+
var _excluded$X = ["children", "onChange", "onBlur", "ignoreFormItem", "valuePropName"],
|
|
72631
|
+
_excluded2$g = ["children", "addonAfter", "addonBefore", "valuePropName", "convertValue"],
|
|
72632
|
+
_excluded3$5 = ["valueType", "transform", "dataFormat", "ignoreFormItem", "lightProps", "children"];
|
|
71435
72633
|
var FormItemProvide = /*#__PURE__*/React__default['default'].createContext({});
|
|
71436
72634
|
/**
|
|
71437
72635
|
* 把value扔给 fieldProps,方便给自定义用
|
|
@@ -71447,7 +72645,7 @@
|
|
|
71447
72645
|
ignoreFormItem = formFieldProps.ignoreFormItem,
|
|
71448
72646
|
_formFieldProps$value = formFieldProps.valuePropName,
|
|
71449
72647
|
valuePropName = _formFieldProps$value === void 0 ? 'value' : _formFieldProps$value,
|
|
71450
|
-
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$
|
|
72648
|
+
restProps = _objectWithoutProperties$1(formFieldProps, _excluded$X);
|
|
71451
72649
|
|
|
71452
72650
|
var onChangeMemo = React.useCallback(function () {
|
|
71453
72651
|
var _filedChildren$type, _filedChildren$props, _filedChildren$props$, _filedChildren$props2, _filedChildren$props3, _filedChildren$props4;
|
|
@@ -71529,7 +72727,7 @@
|
|
|
71529
72727
|
addonBefore = _ref.addonBefore,
|
|
71530
72728
|
valuePropName = _ref.valuePropName,
|
|
71531
72729
|
convertValue = _ref.convertValue,
|
|
71532
|
-
props = _objectWithoutProperties$1(_ref, _excluded2$
|
|
72730
|
+
props = _objectWithoutProperties$1(_ref, _excluded2$g);
|
|
71533
72731
|
|
|
71534
72732
|
var formDom = React.useMemo(function () {
|
|
71535
72733
|
var getValuePropsFunc = function getValuePropsFunc(value) {
|
|
@@ -71606,7 +72804,7 @@
|
|
|
71606
72804
|
_props$lightProps = props.lightProps,
|
|
71607
72805
|
lightProps = _props$lightProps === void 0 ? {} : _props$lightProps,
|
|
71608
72806
|
unusedChildren = props.children,
|
|
71609
|
-
rest = _objectWithoutProperties$1(props, _excluded3$
|
|
72807
|
+
rest = _objectWithoutProperties$1(props, _excluded3$5);
|
|
71610
72808
|
|
|
71611
72809
|
var formListField = React.useContext(FormListContext); // ProFromList 的 filed,里面有name和key
|
|
71612
72810
|
|
|
@@ -73797,7 +74995,7 @@
|
|
|
73797
74995
|
module.exports = merge;
|
|
73798
74996
|
});
|
|
73799
74997
|
|
|
73800
|
-
var _excluded$
|
|
74998
|
+
var _excluded$Y = ["children", "trigger", "onVisibleChange", "drawerProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
73801
74999
|
|
|
73802
75000
|
function DrawerForm(_ref) {
|
|
73803
75001
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -73811,7 +75009,7 @@
|
|
|
73811
75009
|
title = _ref.title,
|
|
73812
75010
|
width = _ref.width,
|
|
73813
75011
|
propVisible = _ref.visible,
|
|
73814
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
75012
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$Y);
|
|
73815
75013
|
|
|
73816
75014
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
73817
75015
|
!rest['footer'] || !(drawerProps === null || drawerProps === void 0 ? void 0 : drawerProps.footer), 'DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -74035,7 +75233,7 @@
|
|
|
74035
75233
|
});
|
|
74036
75234
|
}
|
|
74037
75235
|
|
|
74038
|
-
var _excluded$
|
|
75236
|
+
var _excluded$Z = ["size", "collapse", "collapseLabel", "initialValues", "onValuesChange", "form", "placement", "formRef", "bordered", "ignoreRules", "footerRender"];
|
|
74039
75237
|
/**
|
|
74040
75238
|
* 单行的查询表单,一般用于配合 table 或者 list使用 有时也会用于 card 的额外区域
|
|
74041
75239
|
*
|
|
@@ -74205,7 +75403,7 @@
|
|
|
74205
75403
|
bordered = props.bordered,
|
|
74206
75404
|
ignoreRules = props.ignoreRules,
|
|
74207
75405
|
footerRender = props.footerRender,
|
|
74208
|
-
reset = _objectWithoutProperties$1(props, _excluded$
|
|
75406
|
+
reset = _objectWithoutProperties$1(props, _excluded$Z);
|
|
74209
75407
|
|
|
74210
75408
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
74211
75409
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -74278,7 +75476,7 @@
|
|
|
74278
75476
|
}));
|
|
74279
75477
|
}
|
|
74280
75478
|
|
|
74281
|
-
var _excluded$
|
|
75479
|
+
var _excluded$_ = ["children", "trigger", "onVisibleChange", "modalProps", "onFinish", "submitTimeout", "title", "width", "visible"];
|
|
74282
75480
|
|
|
74283
75481
|
function ModalForm(_ref) {
|
|
74284
75482
|
var _context$locale3, _context$locale3$Moda, _context$locale4, _context$locale4$Moda;
|
|
@@ -74292,7 +75490,7 @@
|
|
|
74292
75490
|
title = _ref.title,
|
|
74293
75491
|
width = _ref.width,
|
|
74294
75492
|
propVisible = _ref.visible,
|
|
74295
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
75493
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$_);
|
|
74296
75494
|
|
|
74297
75495
|
noteOnce( // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
74298
75496
|
!rest['footer'] || !(modalProps === null || modalProps === void 0 ? void 0 : modalProps.footer), 'ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。');
|
|
@@ -75472,7 +76670,7 @@
|
|
|
75472
76670
|
* ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
|
|
75473
76671
|
* exposing only those methods and properties that are defined in the spec.
|
|
75474
76672
|
*/
|
|
75475
|
-
var ResizeObserver = /** @class */ (function () {
|
|
76673
|
+
var ResizeObserver$1 = /** @class */ (function () {
|
|
75476
76674
|
/**
|
|
75477
76675
|
* Creates a new instance of ResizeObserver.
|
|
75478
76676
|
*
|
|
@@ -75498,7 +76696,7 @@
|
|
|
75498
76696
|
'unobserve',
|
|
75499
76697
|
'disconnect'
|
|
75500
76698
|
].forEach(function (method) {
|
|
75501
|
-
ResizeObserver.prototype[method] = function () {
|
|
76699
|
+
ResizeObserver$1.prototype[method] = function () {
|
|
75502
76700
|
var _a;
|
|
75503
76701
|
return (_a = observers.get(this))[method].apply(_a, arguments);
|
|
75504
76702
|
};
|
|
@@ -75509,7 +76707,7 @@
|
|
|
75509
76707
|
if (typeof global$1.ResizeObserver !== 'undefined') {
|
|
75510
76708
|
return global$1.ResizeObserver;
|
|
75511
76709
|
}
|
|
75512
|
-
return ResizeObserver;
|
|
76710
|
+
return ResizeObserver$1;
|
|
75513
76711
|
})();
|
|
75514
76712
|
|
|
75515
76713
|
var elementListeners = new Map();
|
|
@@ -75702,7 +76900,7 @@
|
|
|
75702
76900
|
|
|
75703
76901
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key';
|
|
75704
76902
|
|
|
75705
|
-
function ResizeObserver$
|
|
76903
|
+
function ResizeObserver$2(props) {
|
|
75706
76904
|
var children = props.children;
|
|
75707
76905
|
var childNodes = typeof children === 'function' ? [children] : toArray$1(children);
|
|
75708
76906
|
|
|
@@ -75722,7 +76920,7 @@
|
|
|
75722
76920
|
});
|
|
75723
76921
|
}
|
|
75724
76922
|
|
|
75725
|
-
ResizeObserver$
|
|
76923
|
+
ResizeObserver$2.Collection = Collection;
|
|
75726
76924
|
|
|
75727
76925
|
var defaultCollapseRender = function defaultCollapseRender(collapsed, _, intl, hiddenNum) {
|
|
75728
76926
|
if (collapsed) {
|
|
@@ -75780,7 +76978,7 @@
|
|
|
75780
76978
|
});
|
|
75781
76979
|
};
|
|
75782
76980
|
|
|
75783
|
-
var _excluded
|
|
76981
|
+
var _excluded$$ = ["collapsed", "layout", "defaultCollapsed", "defaultColsNumber", "span", "searchGutter", "searchText", "resetText", "optionRender", "collapseRender", "onReset", "onCollapse", "labelWidth", "style", "split", "preserve", "ignoreRules", "showHiddenNum"];
|
|
75784
76982
|
|
|
75785
76983
|
var _document, _document$body;
|
|
75786
76984
|
var CONFIG_SPAN_BREAKPOINTS = {
|
|
@@ -76051,7 +77249,7 @@
|
|
|
76051
77249
|
ignoreRules = props.ignoreRules,
|
|
76052
77250
|
_props$showHiddenNum = props.showHiddenNum,
|
|
76053
77251
|
showHiddenNum = _props$showHiddenNum === void 0 ? false : _props$showHiddenNum,
|
|
76054
|
-
rest = _objectWithoutProperties$1(props, _excluded
|
|
77252
|
+
rest = _objectWithoutProperties$1(props, _excluded$$);
|
|
76055
77253
|
|
|
76056
77254
|
var context = React.useContext(_ConfigProvider__default['default'].ConfigContext);
|
|
76057
77255
|
var baseClassName = context.getPrefixCls('pro-form-query-filter');
|
|
@@ -76095,7 +77293,7 @@
|
|
|
76095
77293
|
|
|
76096
77294
|
return undefined;
|
|
76097
77295
|
}, [spanSize.layout, labelWidth]);
|
|
76098
|
-
return jsxRuntime.jsx(ResizeObserver$
|
|
77296
|
+
return jsxRuntime.jsx(ResizeObserver$2, {
|
|
76099
77297
|
onResize: function onResize(offset) {
|
|
76100
77298
|
if (width !== offset.width && offset.width > 17) {
|
|
76101
77299
|
setWidth(offset.width);
|
|
@@ -76146,7 +77344,7 @@
|
|
|
76146
77344
|
}, "resize-observer");
|
|
76147
77345
|
}
|
|
76148
77346
|
|
|
76149
|
-
var _excluded$
|
|
77347
|
+
var _excluded$10 = ["onFinish", "step", "formRef", "title", "stepProps"];
|
|
76150
77348
|
|
|
76151
77349
|
function StepForm(props) {
|
|
76152
77350
|
var formRef = React.useRef();
|
|
@@ -76157,7 +77355,7 @@
|
|
|
76157
77355
|
propFormRef = props.formRef,
|
|
76158
77356
|
title = props.title,
|
|
76159
77357
|
stepProps = props.stepProps,
|
|
76160
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
77358
|
+
restProps = _objectWithoutProperties$1(props, _excluded$10); // eslint-disable-next-line @typescript-eslint/dot-notation
|
|
76161
77359
|
|
|
76162
77360
|
|
|
76163
77361
|
noteOnce(!restProps['submitter'], 'StepForm 不包含提交按钮,请在 StepsForm 上');
|
|
@@ -76235,7 +77433,7 @@
|
|
|
76235
77433
|
}, restProps));
|
|
76236
77434
|
}
|
|
76237
77435
|
|
|
76238
|
-
var _excluded$
|
|
77436
|
+
var _excluded$11 = ["current", "onCurrentChange", "submitter", "stepsFormRender", "stepsRender", "stepFormRender", "stepsProps", "onFinish", "formProps", "containerStyle", "formRef", "formMapRef"];
|
|
76239
77437
|
var StepsFormProvide = /*#__PURE__*/React__default['default'].createContext(undefined);
|
|
76240
77438
|
var StepsLayoutStrategy = {
|
|
76241
77439
|
horizontal: function horizontal(_ref) {
|
|
@@ -76321,7 +77519,7 @@
|
|
|
76321
77519
|
containerStyle = props.containerStyle,
|
|
76322
77520
|
formRef = props.formRef,
|
|
76323
77521
|
propsFormMapRef = props.formMapRef,
|
|
76324
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
77522
|
+
rest = _objectWithoutProperties$1(props, _excluded$11);
|
|
76325
77523
|
|
|
76326
77524
|
var formDataRef = React.useRef(new Map());
|
|
76327
77525
|
var formMapRef = React.useRef(new Map());
|
|
@@ -76653,14 +77851,14 @@
|
|
|
76653
77851
|
});
|
|
76654
77852
|
};
|
|
76655
77853
|
|
|
76656
|
-
var _excluded$
|
|
77854
|
+
var _excluded$12 = ["steps", "columns", "forceUpdate", "grid"];
|
|
76657
77855
|
|
|
76658
77856
|
var StepsForm$1 = function StepsForm(_ref) {
|
|
76659
77857
|
var steps = _ref.steps,
|
|
76660
77858
|
columns = _ref.columns,
|
|
76661
77859
|
forceUpdate = _ref.forceUpdate,
|
|
76662
77860
|
grid = _ref.grid,
|
|
76663
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
77861
|
+
props = _objectWithoutProperties$1(_ref, _excluded$12);
|
|
76664
77862
|
|
|
76665
77863
|
var propsRef = useLatest(props);
|
|
76666
77864
|
/**
|
|
@@ -76877,7 +78075,7 @@
|
|
|
76877
78075
|
return field(item, helpers);
|
|
76878
78076
|
};
|
|
76879
78077
|
|
|
76880
|
-
var _excluded
|
|
78078
|
+
var _excluded$13 = ["columns", "layoutType", "type", "action", "shouldUpdate"];
|
|
76881
78079
|
var FormLayoutType = {
|
|
76882
78080
|
DrawerForm: DrawerForm,
|
|
76883
78081
|
QueryFilter: QueryFilter,
|
|
@@ -76902,7 +78100,7 @@
|
|
|
76902
78100
|
action = props.action,
|
|
76903
78101
|
_props$shouldUpdate = props.shouldUpdate,
|
|
76904
78102
|
shouldUpdate = _props$shouldUpdate === void 0 ? true : _props$shouldUpdate,
|
|
76905
|
-
restProps = _objectWithoutProperties$1(props, _excluded
|
|
78103
|
+
restProps = _objectWithoutProperties$1(props, _excluded$13);
|
|
76906
78104
|
|
|
76907
78105
|
var FormRenderComponents = FormLayoutType[layoutType] || ProForm;
|
|
76908
78106
|
|
|
@@ -77133,8 +78331,8 @@
|
|
|
77133
78331
|
return renderDom;
|
|
77134
78332
|
};
|
|
77135
78333
|
|
|
77136
|
-
var _excluded$
|
|
77137
|
-
_excluded2$
|
|
78334
|
+
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"],
|
|
78335
|
+
_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
78336
|
|
|
77139
78337
|
var genParams = function genParams(syncUrl, params, type) {
|
|
77140
78338
|
if (syncUrl === true) {
|
|
@@ -77185,7 +78383,7 @@
|
|
|
77185
78383
|
grid = props.grid,
|
|
77186
78384
|
rowProps = props.rowProps,
|
|
77187
78385
|
colProps = props.colProps,
|
|
77188
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
78386
|
+
rest = _objectWithoutProperties$1(props, _excluded$14);
|
|
77189
78387
|
/**
|
|
77190
78388
|
* 获取 form 实例
|
|
77191
78389
|
*/
|
|
@@ -77444,7 +78642,7 @@
|
|
|
77444
78642
|
_props$formKey = props.formKey,
|
|
77445
78643
|
formKey = _props$formKey === void 0 ? requestFormCacheId : _props$formKey,
|
|
77446
78644
|
readonly = props.readonly,
|
|
77447
|
-
propRest = _objectWithoutProperties$1(props, _excluded2$
|
|
78645
|
+
propRest = _objectWithoutProperties$1(props, _excluded2$h);
|
|
77448
78646
|
|
|
77449
78647
|
var formRef = React.useRef({});
|
|
77450
78648
|
|
|
@@ -77658,7 +78856,7 @@
|
|
|
77658
78856
|
});
|
|
77659
78857
|
}
|
|
77660
78858
|
|
|
77661
|
-
var _excluded$
|
|
78859
|
+
var _excluded$15 = ["label", "size", "disabled", "onChange", "className", "style", "children", "valuePropName", "placeholder", "labelFormatter", "bordered", "footerRender", "allowClear", "otherFieldProps", "valueType", "placement"];
|
|
77662
78860
|
|
|
77663
78861
|
var LightWrapper = function LightWrapper(props) {
|
|
77664
78862
|
var _objectSpread2$1;
|
|
@@ -77679,7 +78877,7 @@
|
|
|
77679
78877
|
otherFieldProps = props.otherFieldProps,
|
|
77680
78878
|
valueType = props.valueType,
|
|
77681
78879
|
placement = props.placement,
|
|
77682
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
78880
|
+
rest = _objectWithoutProperties$1(props, _excluded$15);
|
|
77683
78881
|
|
|
77684
78882
|
var _useContext = React.useContext(_ConfigProvider__default['default'].ConfigContext),
|
|
77685
78883
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -78731,7 +79929,7 @@
|
|
|
78731
79929
|
|
|
78732
79930
|
var Container = createContainer(useContainer);
|
|
78733
79931
|
|
|
78734
|
-
var _excluded$
|
|
79932
|
+
var _excluded$16 = ["key", "dataIndex", "children"];
|
|
78735
79933
|
|
|
78736
79934
|
var ToolTipIcon = function ToolTipIcon(_ref) {
|
|
78737
79935
|
var title = _ref.title,
|
|
@@ -78840,7 +80038,7 @@
|
|
|
78840
80038
|
var key = _ref4.key,
|
|
78841
80039
|
dataIndex = _ref4.dataIndex,
|
|
78842
80040
|
children = _ref4.children,
|
|
78843
|
-
rest = _objectWithoutProperties$1(_ref4, _excluded$
|
|
80041
|
+
rest = _objectWithoutProperties$1(_ref4, _excluded$16);
|
|
78844
80042
|
|
|
78845
80043
|
var columnKey = genColumnKey(key, rest.index);
|
|
78846
80044
|
var config = columnsMap[columnKey || 'null'] || {
|
|
@@ -79302,7 +80500,7 @@
|
|
|
79302
80500
|
return colSpan;
|
|
79303
80501
|
};
|
|
79304
80502
|
|
|
79305
|
-
var _excluded$
|
|
80503
|
+
var _excluded$17 = ["label", "key"];
|
|
79306
80504
|
|
|
79307
80505
|
var HeaderMenu = function HeaderMenu(props) {
|
|
79308
80506
|
var _props$items = props.items,
|
|
@@ -79352,7 +80550,7 @@
|
|
|
79352
80550
|
children: items.map(function (_ref, index) {
|
|
79353
80551
|
var label = _ref.label,
|
|
79354
80552
|
key = _ref.key,
|
|
79355
|
-
rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
80553
|
+
rest = _objectWithoutProperties$1(_ref, _excluded$17);
|
|
79356
80554
|
|
|
79357
80555
|
return jsxRuntime.jsx(_Tabs__default['default'].TabPane, _objectSpread2({
|
|
79358
80556
|
tab: label
|
|
@@ -79703,7 +80901,7 @@
|
|
|
79703
80901
|
|
|
79704
80902
|
var FullScreenIcon$1 = /*#__PURE__*/React__default['default'].memo(FullScreenIcon);
|
|
79705
80903
|
|
|
79706
|
-
var _excluded$
|
|
80904
|
+
var _excluded$18 = ["headerTitle", "tooltip", "toolBarRender", "action", "options", "selectedRowKeys", "selectedRows", "toolbar", "onSearch", "columns"];
|
|
79707
80905
|
|
|
79708
80906
|
function getButtonText(_ref) {
|
|
79709
80907
|
var intl = _ref.intl;
|
|
@@ -79795,7 +80993,7 @@
|
|
|
79795
80993
|
toolbar = _ref2.toolbar,
|
|
79796
80994
|
onSearch = _ref2.onSearch,
|
|
79797
80995
|
columns = _ref2.columns,
|
|
79798
|
-
rest = _objectWithoutProperties$1(_ref2, _excluded$
|
|
80996
|
+
rest = _objectWithoutProperties$1(_ref2, _excluded$18);
|
|
79799
80997
|
|
|
79800
80998
|
var counter = Container.useContainer();
|
|
79801
80999
|
var intl = useIntl();
|
|
@@ -79997,7 +81195,7 @@
|
|
|
79997
81195
|
return _createClass(ToolbarRender);
|
|
79998
81196
|
}(React__default['default'].Component);
|
|
79999
81197
|
|
|
80000
|
-
var _excluded$
|
|
81198
|
+
var _excluded$19 = ["data", "success", "total"];
|
|
80001
81199
|
/**
|
|
80002
81200
|
* 组合用户的配置和默认值
|
|
80003
81201
|
*
|
|
@@ -80185,7 +81383,7 @@
|
|
|
80185
81383
|
success = _ref6.success;
|
|
80186
81384
|
_ref6$total = _ref6.total;
|
|
80187
81385
|
total = _ref6$total === void 0 ? 0 : _ref6$total;
|
|
80188
|
-
rest = _objectWithoutProperties$1(_ref6, _excluded$
|
|
81386
|
+
rest = _objectWithoutProperties$1(_ref6, _excluded$19);
|
|
80189
81387
|
|
|
80190
81388
|
if (!(success === false)) {
|
|
80191
81389
|
_context.next = 24;
|
|
@@ -80463,7 +81661,7 @@
|
|
|
80463
81661
|
};
|
|
80464
81662
|
};
|
|
80465
81663
|
|
|
80466
|
-
var _excluded$
|
|
81664
|
+
var _excluded$1a = ["children"];
|
|
80467
81665
|
var SHOW_EMPTY_TEXT_LIST = ['', null, undefined];
|
|
80468
81666
|
/**
|
|
80469
81667
|
* 拼接用于编辑的 key
|
|
@@ -80526,7 +81724,7 @@
|
|
|
80526
81724
|
}, [columnProps, editableForm, index, rowName]);
|
|
80527
81725
|
var InlineItem = React.useCallback(function (_ref3) {
|
|
80528
81726
|
var children = _ref3.children,
|
|
80529
|
-
restProps = _objectWithoutProperties$1(_ref3, _excluded$
|
|
81727
|
+
restProps = _objectWithoutProperties$1(_ref3, _excluded$1a);
|
|
80530
81728
|
|
|
80531
81729
|
return jsxRuntime.jsx(InlineErrorFormItem$1, _objectSpread2(_objectSpread2({
|
|
80532
81730
|
popoverProps: {
|
|
@@ -80939,8 +82137,8 @@
|
|
|
80939
82137
|
});
|
|
80940
82138
|
}
|
|
80941
82139
|
|
|
80942
|
-
var _excluded$
|
|
80943
|
-
_excluded2$
|
|
82140
|
+
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"],
|
|
82141
|
+
_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
82142
|
|
|
80945
82143
|
function TableRender(props) {
|
|
80946
82144
|
var rowKey = props.rowKey,
|
|
@@ -80967,7 +82165,7 @@
|
|
|
80967
82165
|
cardBordered = props.cardBordered,
|
|
80968
82166
|
editableUtils = props.editableUtils,
|
|
80969
82167
|
getRowKey = props.getRowKey,
|
|
80970
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
82168
|
+
rest = _objectWithoutProperties$1(props, _excluded$1b);
|
|
80971
82169
|
|
|
80972
82170
|
var counter = Container.useContainer();
|
|
80973
82171
|
/** 需要遍历一下,不然不支持嵌套表格 */
|
|
@@ -81218,7 +82416,7 @@
|
|
|
81218
82416
|
tooltip = props.tooltip,
|
|
81219
82417
|
_props$revalidateOnFo = props.revalidateOnFocus,
|
|
81220
82418
|
revalidateOnFocus = _props$revalidateOnFo === void 0 ? false : _props$revalidateOnFo,
|
|
81221
|
-
rest = _objectWithoutProperties$1(props, _excluded2$
|
|
82419
|
+
rest = _objectWithoutProperties$1(props, _excluded2$i);
|
|
81222
82420
|
|
|
81223
82421
|
var className = classnames(defaultClassName, propsClassName);
|
|
81224
82422
|
/** 通用的来操作子节点的工具类 */
|
|
@@ -84119,10 +85317,10 @@
|
|
|
84119
85317
|
}, children);
|
|
84120
85318
|
};
|
|
84121
85319
|
|
|
84122
|
-
var _excluded$
|
|
85320
|
+
var _excluded$1c = ["children"];
|
|
84123
85321
|
var Item = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
84124
85322
|
var children = _ref.children,
|
|
84125
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
85323
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
84126
85324
|
|
|
84127
85325
|
return /*#__PURE__*/React__default['default'].createElement("th", _extends({}, props, {
|
|
84128
85326
|
ref: ref
|
|
@@ -84186,9 +85384,9 @@
|
|
|
84186
85384
|
editConfig: editConfig
|
|
84187
85385
|
};
|
|
84188
85386
|
|
|
84189
|
-
var _excluded$
|
|
84190
|
-
_excluded2$
|
|
84191
|
-
_excluded3$
|
|
85387
|
+
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"],
|
|
85388
|
+
_excluded2$j = ["className", "style"],
|
|
85389
|
+
_excluded3$6 = ["onResize", "width", "onResizeStop"];
|
|
84192
85390
|
var Summary = ProviderWarp.Summary; // const DragHandle = SortableHandle(() => <MenuOutlined style={{ cursor: 'grab', color: '#999' }} />);
|
|
84193
85391
|
|
|
84194
85392
|
var DragHandle = sortableHandle(function () {
|
|
@@ -84239,7 +85437,7 @@
|
|
|
84239
85437
|
_props$size = props.size,
|
|
84240
85438
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
84241
85439
|
emptyProps = props.emptyProps,
|
|
84242
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
85440
|
+
resetProps = _objectWithoutProperties(props, _excluded$1d);
|
|
84243
85441
|
|
|
84244
85442
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
84245
85443
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -84316,7 +85514,7 @@
|
|
|
84316
85514
|
var DraggableBodyRow = function DraggableBodyRow(props) {
|
|
84317
85515
|
var className = props.className,
|
|
84318
85516
|
style = props.style,
|
|
84319
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
85517
|
+
restProps = _objectWithoutProperties(props, _excluded2$j);
|
|
84320
85518
|
|
|
84321
85519
|
var index = dataSource.findIndex(function (x) {
|
|
84322
85520
|
return x[rowKey || 'index'] === restProps['data-row-key'];
|
|
@@ -84611,7 +85809,7 @@
|
|
|
84611
85809
|
var onResize = props.onResize,
|
|
84612
85810
|
width = props.width,
|
|
84613
85811
|
onResizeStop = props.onResizeStop,
|
|
84614
|
-
restProps = _objectWithoutProperties(props, _excluded3$
|
|
85812
|
+
restProps = _objectWithoutProperties(props, _excluded3$6);
|
|
84615
85813
|
|
|
84616
85814
|
if (!width) {
|
|
84617
85815
|
return /*#__PURE__*/React__default['default'].createElement("th", restProps);
|
|
@@ -86434,8 +87632,8 @@
|
|
|
86434
87632
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, icon());
|
|
86435
87633
|
};
|
|
86436
87634
|
|
|
86437
|
-
var _excluded$
|
|
86438
|
-
var Paragraph = _Typography__default['default'].Paragraph;
|
|
87635
|
+
var _excluded$1e = ["desc"];
|
|
87636
|
+
var Paragraph$3 = _Typography__default['default'].Paragraph;
|
|
86439
87637
|
|
|
86440
87638
|
var Access = function Access(props) {
|
|
86441
87639
|
var _defaultConfig$desc, _defaultConfig$bigVie;
|
|
@@ -86464,7 +87662,7 @@
|
|
|
86464
87662
|
|
|
86465
87663
|
var defaultConfig = React.useMemo(function () {
|
|
86466
87664
|
var desc = config.desc,
|
|
86467
|
-
resetConfig = _objectWithoutProperties(config, _excluded$
|
|
87665
|
+
resetConfig = _objectWithoutProperties(config, _excluded$1e);
|
|
86468
87666
|
|
|
86469
87667
|
return _objectSpread({
|
|
86470
87668
|
title: 'title',
|
|
@@ -86555,7 +87753,7 @@
|
|
|
86555
87753
|
onClick: function onClick(e) {
|
|
86556
87754
|
return e.stopPropagation();
|
|
86557
87755
|
}
|
|
86558
|
-
}, /*#__PURE__*/React__default['default'].createElement(Paragraph, {
|
|
87756
|
+
}, /*#__PURE__*/React__default['default'].createElement(Paragraph$3, {
|
|
86559
87757
|
copyable: {
|
|
86560
87758
|
tooltips: false,
|
|
86561
87759
|
onCopy: function onCopy() {
|
|
@@ -86593,7 +87791,7 @@
|
|
|
86593
87791
|
})));
|
|
86594
87792
|
};
|
|
86595
87793
|
|
|
86596
|
-
var Paragraph$
|
|
87794
|
+
var Paragraph$4 = _Typography__default['default'].Paragraph;
|
|
86597
87795
|
|
|
86598
87796
|
var stateRender = function stateRender(v) {
|
|
86599
87797
|
switch (v) {
|
|
@@ -86725,7 +87923,7 @@
|
|
|
86725
87923
|
className: "title"
|
|
86726
87924
|
}, item[defaultConfig.title]), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
86727
87925
|
className: "code"
|
|
86728
|
-
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$
|
|
87926
|
+
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$4, {
|
|
86729
87927
|
copyable: {
|
|
86730
87928
|
tooltips: false,
|
|
86731
87929
|
onCopy: function onCopy() {
|
|
@@ -86856,7 +88054,7 @@
|
|
|
86856
88054
|
}, config)));
|
|
86857
88055
|
};
|
|
86858
88056
|
|
|
86859
|
-
var _excluded$
|
|
88057
|
+
var _excluded$1f = ["style", "defaultPage", "customCheck", "rowSelection"];
|
|
86860
88058
|
var initialState$2 = {
|
|
86861
88059
|
// 选中的数据
|
|
86862
88060
|
checkList: [],
|
|
@@ -86866,7 +88064,7 @@
|
|
|
86866
88064
|
}
|
|
86867
88065
|
};
|
|
86868
88066
|
|
|
86869
|
-
var reducer$
|
|
88067
|
+
var reducer$5 = function reducer(state, action) {
|
|
86870
88068
|
var checkList = action.checkList,
|
|
86871
88069
|
page = action.page,
|
|
86872
88070
|
ifScrollTopClear = action.ifScrollTopClear;
|
|
@@ -86899,9 +88097,9 @@
|
|
|
86899
88097
|
defaultPage = props.defaultPage,
|
|
86900
88098
|
customCheck = props.customCheck,
|
|
86901
88099
|
rowSelection = props.rowSelection,
|
|
86902
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
88100
|
+
resetProps = _objectWithoutProperties(props, _excluded$1f);
|
|
86903
88101
|
|
|
86904
|
-
var _useReducer = React.useReducer(reducer$
|
|
88102
|
+
var _useReducer = React.useReducer(reducer$5, initialState$2),
|
|
86905
88103
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
86906
88104
|
state = _useReducer2[0],
|
|
86907
88105
|
dispatch = _useReducer2[1];
|
|
@@ -87597,9 +88795,9 @@
|
|
|
87597
88795
|
return !Comp ? null : isReactComponent$1(Comp) ? /*#__PURE__*/React__default['default'].createElement(Comp, _objectSpread({}, props)) : Comp;
|
|
87598
88796
|
};
|
|
87599
88797
|
|
|
87600
|
-
var _excluded$
|
|
87601
|
-
_excluded2$
|
|
87602
|
-
_excluded3$
|
|
88798
|
+
var _excluded$1g = ["item"],
|
|
88799
|
+
_excluded2$k = ["item"],
|
|
88800
|
+
_excluded3$7 = ["type"];
|
|
87603
88801
|
|
|
87604
88802
|
var imgEmpty$2 = require('./icon_placeholder.png');
|
|
87605
88803
|
|
|
@@ -87664,7 +88862,7 @@
|
|
|
87664
88862
|
className: "filter_list"
|
|
87665
88863
|
}, function (_ref2) {
|
|
87666
88864
|
var item = _ref2.item,
|
|
87667
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
88865
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$1g);
|
|
87668
88866
|
|
|
87669
88867
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
87670
88868
|
className: classnames('filter_item', {
|
|
@@ -87780,7 +88978,7 @@
|
|
|
87780
88978
|
className: "filter_list"
|
|
87781
88979
|
}, function (_ref6) {
|
|
87782
88980
|
var item = _ref6.item,
|
|
87783
|
-
resetProps = _objectWithoutProperties(_ref6, _excluded2$
|
|
88981
|
+
resetProps = _objectWithoutProperties(_ref6, _excluded2$k);
|
|
87784
88982
|
|
|
87785
88983
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
87786
88984
|
className: classnames('filter_item', {
|
|
@@ -87946,7 +89144,7 @@
|
|
|
87946
89144
|
|
|
87947
89145
|
var FilterComp$1 = function FilterComp(props) {
|
|
87948
89146
|
var type = props.type,
|
|
87949
|
-
resetProps = _objectWithoutProperties(props, _excluded3$
|
|
89147
|
+
resetProps = _objectWithoutProperties(props, _excluded3$7);
|
|
87950
89148
|
|
|
87951
89149
|
switch (type) {
|
|
87952
89150
|
case 'select':
|
|
@@ -88095,7 +89293,7 @@
|
|
|
88095
89293
|
})))));
|
|
88096
89294
|
};
|
|
88097
89295
|
|
|
88098
|
-
var _excluded$
|
|
89296
|
+
var _excluded$1h = ["item"];
|
|
88099
89297
|
|
|
88100
89298
|
var imgEmpty$3 = require('./icon_placeholder.png');
|
|
88101
89299
|
|
|
@@ -88185,7 +89383,7 @@
|
|
|
88185
89383
|
className: "filter_list"
|
|
88186
89384
|
}, function (_ref4) {
|
|
88187
89385
|
var item = _ref4.item,
|
|
88188
|
-
resetProps = _objectWithoutProperties(_ref4, _excluded$
|
|
89386
|
+
resetProps = _objectWithoutProperties(_ref4, _excluded$1h);
|
|
88189
89387
|
|
|
88190
89388
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
88191
89389
|
className: classnames('filter_item', {
|
|
@@ -88202,7 +89400,7 @@
|
|
|
88202
89400
|
}), !renderOptions.length && /*#__PURE__*/React__default['default'].createElement(FilterEmpty$2, null)));
|
|
88203
89401
|
};
|
|
88204
89402
|
|
|
88205
|
-
var _excluded$
|
|
89403
|
+
var _excluded$1i = ["children", "className", "dropdownClassName", "type", "options", "showSearch"];
|
|
88206
89404
|
var prefixCls$4 = 'lm_select'; // 不同类型Select, 不同的默认配置
|
|
88207
89405
|
|
|
88208
89406
|
var config = {
|
|
@@ -88226,7 +89424,7 @@
|
|
|
88226
89424
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
88227
89425
|
options = props.options,
|
|
88228
89426
|
showSearch = props.showSearch,
|
|
88229
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
89427
|
+
others = _objectWithoutProperties(props, _excluded$1i);
|
|
88230
89428
|
|
|
88231
89429
|
var _React$useState = React__default['default'].useState(others.defaultValue || []),
|
|
88232
89430
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -88282,10 +89480,10 @@
|
|
|
88282
89480
|
}), children);
|
|
88283
89481
|
});
|
|
88284
89482
|
|
|
88285
|
-
var _excluded$
|
|
89483
|
+
var _excluded$1j = ["ghost"];
|
|
88286
89484
|
var CLMSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
88287
89485
|
var ghost = props.ghost,
|
|
88288
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
89486
|
+
others = _objectWithoutProperties(props, _excluded$1j);
|
|
88289
89487
|
|
|
88290
89488
|
if (ghost) {
|
|
88291
89489
|
return /*#__PURE__*/React__default['default'].createElement(Index$j, _objectSpread({}, others));
|
|
@@ -88314,7 +89512,7 @@
|
|
|
88314
89512
|
}));
|
|
88315
89513
|
};
|
|
88316
89514
|
|
|
88317
|
-
var _excluded$
|
|
89515
|
+
var _excluded$1k = ["wrapClassName", "size", "onOk", "onCancel", "okText", "cancelText"];
|
|
88318
89516
|
var prefixCls$5 = 'lm_modal';
|
|
88319
89517
|
|
|
88320
89518
|
var CLMModal = function CLMModal(props) {
|
|
@@ -88327,7 +89525,7 @@
|
|
|
88327
89525
|
okText = _props$okText === void 0 ? '确定' : _props$okText,
|
|
88328
89526
|
_props$cancelText = props.cancelText,
|
|
88329
89527
|
cancelText = _props$cancelText === void 0 ? '取消' : _props$cancelText,
|
|
88330
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
89528
|
+
other = _objectWithoutProperties(props, _excluded$1k);
|
|
88331
89529
|
|
|
88332
89530
|
return /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _objectSpread(_objectSpread({
|
|
88333
89531
|
wrapClassName: classnames(wrapClassName, prefixCls$5),
|
|
@@ -88675,7 +89873,7 @@
|
|
|
88675
89873
|
return [nextFrame, cancelNextFrame];
|
|
88676
89874
|
});
|
|
88677
89875
|
|
|
88678
|
-
var useIsomorphicLayoutEffect$
|
|
89876
|
+
var useIsomorphicLayoutEffect$5 = canUseDom() ? React.useLayoutEffect : React.useEffect;
|
|
88679
89877
|
|
|
88680
89878
|
var STEP_QUEUE = [STEP_PREPARE, STEP_START, STEP_ACTIVE, STEP_ACTIVATED];
|
|
88681
89879
|
/** Skip current step */
|
|
@@ -88702,7 +89900,7 @@
|
|
|
88702
89900
|
setStep(STEP_PREPARE, true);
|
|
88703
89901
|
}
|
|
88704
89902
|
|
|
88705
|
-
useIsomorphicLayoutEffect$
|
|
89903
|
+
useIsomorphicLayoutEffect$5(function () {
|
|
88706
89904
|
if (step !== STEP_NONE && step !== STEP_ACTIVATED) {
|
|
88707
89905
|
var index = STEP_QUEUE.indexOf(step);
|
|
88708
89906
|
var nextStep = STEP_QUEUE[index + 1];
|
|
@@ -88922,7 +90120,7 @@
|
|
|
88922
90120
|
activeRef.current = active; // ============================ Status ============================
|
|
88923
90121
|
// Update with new status
|
|
88924
90122
|
|
|
88925
|
-
useIsomorphicLayoutEffect$
|
|
90123
|
+
useIsomorphicLayoutEffect$5(function () {
|
|
88926
90124
|
setAsyncVisible(visible);
|
|
88927
90125
|
var isMounted = mountedRef.current;
|
|
88928
90126
|
mountedRef.current = true;
|
|
@@ -89257,8 +90455,8 @@
|
|
|
89257
90455
|
return list;
|
|
89258
90456
|
}
|
|
89259
90457
|
|
|
89260
|
-
var _excluded$
|
|
89261
|
-
_excluded2$
|
|
90458
|
+
var _excluded$1l = ["component", "children", "onVisibleChanged", "onAllRemoved"],
|
|
90459
|
+
_excluded2$l = ["status"];
|
|
89262
90460
|
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
90461
|
/**
|
|
89264
90462
|
* Generate a CSSMotionList component with config
|
|
@@ -89322,7 +90520,7 @@
|
|
|
89322
90520
|
children = _this$props.children,
|
|
89323
90521
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
89324
90522
|
onAllRemoved = _this$props.onAllRemoved,
|
|
89325
|
-
restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
90523
|
+
restProps = _objectWithoutProperties$1(_this$props, _excluded$1l);
|
|
89326
90524
|
|
|
89327
90525
|
var Component = component || React.Fragment;
|
|
89328
90526
|
var motionProps = {};
|
|
@@ -89333,7 +90531,7 @@
|
|
|
89333
90531
|
delete restProps.keys;
|
|
89334
90532
|
return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
89335
90533
|
var status = _ref2.status,
|
|
89336
|
-
eventProps = _objectWithoutProperties$1(_ref2, _excluded2$
|
|
90534
|
+
eventProps = _objectWithoutProperties$1(_ref2, _excluded2$l);
|
|
89337
90535
|
|
|
89338
90536
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
89339
90537
|
return /*#__PURE__*/React.createElement(CSSMotion$1, _extends$5({}, motionProps, {
|
|
@@ -89561,7 +90759,7 @@
|
|
|
89561
90759
|
return [notify, /*#__PURE__*/React.createElement(React.Fragment, null, elements)];
|
|
89562
90760
|
}
|
|
89563
90761
|
|
|
89564
|
-
var _excluded$
|
|
90762
|
+
var _excluded$1m = ["getContainer"];
|
|
89565
90763
|
var seed = 0;
|
|
89566
90764
|
var now$3 = Date.now();
|
|
89567
90765
|
|
|
@@ -89787,7 +90985,7 @@
|
|
|
89787
90985
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
89788
90986
|
var _ref6 = properties || {},
|
|
89789
90987
|
getContainer = _ref6.getContainer,
|
|
89790
|
-
props = _objectWithoutProperties$1(_ref6, _excluded$
|
|
90988
|
+
props = _objectWithoutProperties$1(_ref6, _excluded$1m);
|
|
89791
90989
|
|
|
89792
90990
|
var div = document.createElement('div');
|
|
89793
90991
|
|
|
@@ -90610,14 +91808,14 @@
|
|
|
90610
91808
|
api.useNotification = createUseNotification(getNotificationInstance, getRCNoticeProps);
|
|
90611
91809
|
api.antdNotification = _notification__default['default'];
|
|
90612
91810
|
|
|
90613
|
-
var _excluded$
|
|
91811
|
+
var _excluded$1n = ["visible", "wrapClassName", "onClose", "children"];
|
|
90614
91812
|
|
|
90615
91813
|
var Index$k = function Index(props) {
|
|
90616
91814
|
var visible = props.visible,
|
|
90617
91815
|
wrapClassName = props.wrapClassName,
|
|
90618
91816
|
onClose = props.onClose,
|
|
90619
91817
|
children = props.children,
|
|
90620
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
91818
|
+
reset = _objectWithoutProperties(props, _excluded$1n);
|
|
90621
91819
|
|
|
90622
91820
|
var handleClose = function handleClose() {
|
|
90623
91821
|
onClose();
|
|
@@ -90651,7 +91849,7 @@
|
|
|
90651
91849
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
90652
91850
|
};
|
|
90653
91851
|
|
|
90654
|
-
var _excluded$
|
|
91852
|
+
var _excluded$1o = ["type"];
|
|
90655
91853
|
/*
|
|
90656
91854
|
增加参数:
|
|
90657
91855
|
type: 指定图片类型
|
|
@@ -90659,7 +91857,7 @@
|
|
|
90659
91857
|
|
|
90660
91858
|
var Confirm = function Confirm(_ref) {
|
|
90661
91859
|
var type = _ref.type,
|
|
90662
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
91860
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$1o);
|
|
90663
91861
|
|
|
90664
91862
|
var Icon = function Icon() {
|
|
90665
91863
|
switch (type) {
|
|
@@ -90716,13 +91914,13 @@
|
|
|
90716
91914
|
}, resetProps));
|
|
90717
91915
|
};
|
|
90718
91916
|
|
|
90719
|
-
var _excluded$
|
|
91917
|
+
var _excluded$1p = ["visible", "wrapClassName", "children"];
|
|
90720
91918
|
|
|
90721
91919
|
var Index$l = function Index(props) {
|
|
90722
91920
|
var visible = props.visible,
|
|
90723
91921
|
wrapClassName = props.wrapClassName,
|
|
90724
91922
|
children = props.children,
|
|
90725
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
91923
|
+
reset = _objectWithoutProperties(props, _excluded$1p);
|
|
90726
91924
|
|
|
90727
91925
|
var config = {
|
|
90728
91926
|
title: '编辑',
|
|
@@ -90740,7 +91938,7 @@
|
|
|
90740
91938
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _extends({}, config, reset), children));
|
|
90741
91939
|
};
|
|
90742
91940
|
|
|
90743
|
-
var _excluded$
|
|
91941
|
+
var _excluded$1q = ["visible", "onClose", "onSure", "down", "desc", "downEvent", "isType", "renderFileType"];
|
|
90744
91942
|
var downLink = [{
|
|
90745
91943
|
id: '1',
|
|
90746
91944
|
label: '成衣',
|
|
@@ -90845,7 +92043,7 @@
|
|
|
90845
92043
|
downEvent = _ref2.downEvent,
|
|
90846
92044
|
isType = _ref2.isType,
|
|
90847
92045
|
renderFileType = _ref2.renderFileType,
|
|
90848
|
-
resetProps = _objectWithoutProperties(_ref2, _excluded$
|
|
92046
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded$1q);
|
|
90849
92047
|
|
|
90850
92048
|
var _useState = React.useState({
|
|
90851
92049
|
files: []
|
|
@@ -90999,13 +92197,13 @@
|
|
|
90999
92197
|
Modal.ExportModal = Index$m;
|
|
91000
92198
|
Modal.Confirm = Confirm;
|
|
91001
92199
|
|
|
91002
|
-
var _excluded$
|
|
92200
|
+
var _excluded$1r = ["children", "className"];
|
|
91003
92201
|
var prefixCls$6 = 'lm_pagination';
|
|
91004
92202
|
|
|
91005
92203
|
var LMPagination = function LMPagination(props) {
|
|
91006
92204
|
var children = props.children,
|
|
91007
92205
|
className = props.className,
|
|
91008
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
92206
|
+
others = _objectWithoutProperties(props, _excluded$1r);
|
|
91009
92207
|
|
|
91010
92208
|
return /*#__PURE__*/React__default['default'].createElement(_Pagination__default['default'], _objectSpread(_objectSpread({
|
|
91011
92209
|
className: classnames(className, prefixCls$6),
|
|
@@ -91019,7 +92217,7 @@
|
|
|
91019
92217
|
}));
|
|
91020
92218
|
};
|
|
91021
92219
|
|
|
91022
|
-
var _excluded$
|
|
92220
|
+
var _excluded$1s = ["columns", "dataSource", "total", "onClick", "onDoubleClick", "rowSelection", "rowKey", "scroll", "defaultActive", "onChange"];
|
|
91023
92221
|
|
|
91024
92222
|
/*
|
|
91025
92223
|
接收参数:
|
|
@@ -91039,7 +92237,7 @@
|
|
|
91039
92237
|
scroll = props.scroll,
|
|
91040
92238
|
defaultActive = props.defaultActive,
|
|
91041
92239
|
onChange = props.onChange,
|
|
91042
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
92240
|
+
resetProps = _objectWithoutProperties(props, _excluded$1s); // 行单击选中,增加高亮
|
|
91043
92241
|
|
|
91044
92242
|
|
|
91045
92243
|
var _useState = React.useState(defaultActive),
|
|
@@ -91106,7 +92304,7 @@
|
|
|
91106
92304
|
}));
|
|
91107
92305
|
});
|
|
91108
92306
|
|
|
91109
|
-
var _excluded$
|
|
92307
|
+
var _excluded$1t = ["columns", "data", "total", "rowSelection", "onChange", "getCheckboxRecords"];
|
|
91110
92308
|
|
|
91111
92309
|
var Demo = function Demo(props) {
|
|
91112
92310
|
var inputRef = React__default['default'].useRef();
|
|
@@ -91124,7 +92322,7 @@
|
|
|
91124
92322
|
rowSelection = _props$rowSelection === void 0 ? true : _props$rowSelection,
|
|
91125
92323
|
onChange = props.onChange,
|
|
91126
92324
|
getCheckboxRecords = props.getCheckboxRecords,
|
|
91127
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
92325
|
+
resetProps = _objectWithoutProperties(props, _excluded$1t);
|
|
91128
92326
|
|
|
91129
92327
|
var _useState3 = React.useState('base'),
|
|
91130
92328
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -91220,9 +92418,9 @@
|
|
|
91220
92418
|
|
|
91221
92419
|
var Context$5 = /*#__PURE__*/React.createContext();
|
|
91222
92420
|
|
|
91223
|
-
var _excluded$
|
|
91224
|
-
_excluded2$
|
|
91225
|
-
_excluded3$
|
|
92421
|
+
var _excluded$1u = ["width", "onResize", "children"],
|
|
92422
|
+
_excluded2$m = ["children"],
|
|
92423
|
+
_excluded3$8 = ["children", "style"],
|
|
91226
92424
|
_excluded4$2 = ["children"],
|
|
91227
92425
|
_excluded5$1 = ["style", "children"],
|
|
91228
92426
|
_excluded6 = ["width"];
|
|
@@ -91236,7 +92434,7 @@
|
|
|
91236
92434
|
totalLen: 0
|
|
91237
92435
|
};
|
|
91238
92436
|
|
|
91239
|
-
function reducer$
|
|
92437
|
+
function reducer$6(state, action) {
|
|
91240
92438
|
var curScrollTop = action.curScrollTop,
|
|
91241
92439
|
curScrollLeft = action.curScrollLeft,
|
|
91242
92440
|
rowHeight = action.rowHeight,
|
|
@@ -91336,7 +92534,7 @@
|
|
|
91336
92534
|
var width = props.width,
|
|
91337
92535
|
onResize = props.onResize,
|
|
91338
92536
|
children = props.children,
|
|
91339
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
92537
|
+
restProps = _objectWithoutProperties(props, _excluded$1u);
|
|
91340
92538
|
|
|
91341
92539
|
var _useState3 = React.useState(width || 0),
|
|
91342
92540
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -91388,7 +92586,7 @@
|
|
|
91388
92586
|
|
|
91389
92587
|
var VCell = function VCell(props) {
|
|
91390
92588
|
var children = props.children,
|
|
91391
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
92589
|
+
restProps = _objectWithoutProperties(props, _excluded2$m);
|
|
91392
92590
|
|
|
91393
92591
|
return /*#__PURE__*/React__default['default'].createElement("td", restProps, children);
|
|
91394
92592
|
};
|
|
@@ -91402,7 +92600,7 @@
|
|
|
91402
92600
|
|
|
91403
92601
|
var children = props.children,
|
|
91404
92602
|
style = props.style,
|
|
91405
|
-
restProps = _objectWithoutProperties(props, _excluded3$
|
|
92603
|
+
restProps = _objectWithoutProperties(props, _excluded3$8);
|
|
91406
92604
|
|
|
91407
92605
|
var trRef = React.useRef(null);
|
|
91408
92606
|
React.useEffect(function () {
|
|
@@ -91497,7 +92695,7 @@
|
|
|
91497
92695
|
onScroll = _ref3.onScroll,
|
|
91498
92696
|
resetScrollTopWhenDataChange = _ref3.resetScrollTopWhenDataChange;
|
|
91499
92697
|
|
|
91500
|
-
var _useReducer = React.useReducer(reducer$
|
|
92698
|
+
var _useReducer = React.useReducer(reducer$6, initialState$3),
|
|
91501
92699
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
91502
92700
|
state = _useReducer2[0],
|
|
91503
92701
|
dispatch = _useReducer2[1];
|
|
@@ -91798,7 +92996,7 @@
|
|
|
91798
92996
|
editConfig: editConfig$1
|
|
91799
92997
|
};
|
|
91800
92998
|
|
|
91801
|
-
var _excluded$
|
|
92999
|
+
var _excluded$1v = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
|
|
91802
93000
|
var Summary$1 = ProviderWarp.Summary;
|
|
91803
93001
|
var ResetTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
91804
93002
|
var dataSource = props.dataSource,
|
|
@@ -91814,7 +93012,7 @@
|
|
|
91814
93012
|
_props$virtual = props.virtual,
|
|
91815
93013
|
virtual = _props$virtual === void 0 ? true : _props$virtual,
|
|
91816
93014
|
customCheck = props.customCheck,
|
|
91817
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
93015
|
+
resetProps = _objectWithoutProperties(props, _excluded$1v);
|
|
91818
93016
|
|
|
91819
93017
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
91820
93018
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -92098,8 +93296,8 @@
|
|
|
92098
93296
|
|
|
92099
93297
|
var Context$6 = /*#__PURE__*/React.createContext();
|
|
92100
93298
|
|
|
92101
|
-
var _excluded$
|
|
92102
|
-
var Paragraph$
|
|
93299
|
+
var _excluded$1w = ["desc"];
|
|
93300
|
+
var Paragraph$5 = _Typography__default['default'].Paragraph;
|
|
92103
93301
|
|
|
92104
93302
|
var Access$1 = function Access(props) {
|
|
92105
93303
|
var _defaultConfig$desc, _defaultConfig$bigVie;
|
|
@@ -92128,7 +93326,7 @@
|
|
|
92128
93326
|
|
|
92129
93327
|
var defaultConfig = React.useMemo(function () {
|
|
92130
93328
|
var desc = config.desc,
|
|
92131
|
-
resetConfig = _objectWithoutProperties(config, _excluded$
|
|
93329
|
+
resetConfig = _objectWithoutProperties(config, _excluded$1w);
|
|
92132
93330
|
|
|
92133
93331
|
return _objectSpread({
|
|
92134
93332
|
title: 'title',
|
|
@@ -92219,7 +93417,7 @@
|
|
|
92219
93417
|
onClick: function onClick(e) {
|
|
92220
93418
|
return e.stopPropagation();
|
|
92221
93419
|
}
|
|
92222
|
-
}, /*#__PURE__*/React__default['default'].createElement(Paragraph$
|
|
93420
|
+
}, /*#__PURE__*/React__default['default'].createElement(Paragraph$5, {
|
|
92223
93421
|
copyable: {
|
|
92224
93422
|
tooltips: false,
|
|
92225
93423
|
onCopy: function onCopy() {
|
|
@@ -92257,7 +93455,7 @@
|
|
|
92257
93455
|
})));
|
|
92258
93456
|
};
|
|
92259
93457
|
|
|
92260
|
-
var Paragraph$
|
|
93458
|
+
var Paragraph$6 = _Typography__default['default'].Paragraph;
|
|
92261
93459
|
|
|
92262
93460
|
var stateRender$1 = function stateRender(v) {
|
|
92263
93461
|
switch (v) {
|
|
@@ -92377,7 +93575,7 @@
|
|
|
92377
93575
|
className: "title"
|
|
92378
93576
|
}, item[defaultConfig.title]), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
92379
93577
|
className: "code"
|
|
92380
|
-
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$
|
|
93578
|
+
}, desc ? desc(item) : /*#__PURE__*/React__default['default'].createElement(Paragraph$6, {
|
|
92381
93579
|
copyable: {
|
|
92382
93580
|
tooltips: false,
|
|
92383
93581
|
onCopy: function onCopy() {
|
|
@@ -92504,7 +93702,7 @@
|
|
|
92504
93702
|
}, config));
|
|
92505
93703
|
};
|
|
92506
93704
|
|
|
92507
|
-
var _excluded$
|
|
93705
|
+
var _excluded$1x = ["style", "defaultPage"];
|
|
92508
93706
|
var initialState$4 = {
|
|
92509
93707
|
// 选中的数据
|
|
92510
93708
|
checkList: [],
|
|
@@ -92514,7 +93712,7 @@
|
|
|
92514
93712
|
}
|
|
92515
93713
|
};
|
|
92516
93714
|
|
|
92517
|
-
var reducer$
|
|
93715
|
+
var reducer$7 = function reducer(state, action) {
|
|
92518
93716
|
var checkList = action.checkList,
|
|
92519
93717
|
page = action.page,
|
|
92520
93718
|
ifScrollTopClear = action.ifScrollTopClear;
|
|
@@ -92545,9 +93743,9 @@
|
|
|
92545
93743
|
var ImgTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92546
93744
|
var style = props.style,
|
|
92547
93745
|
defaultPage = props.defaultPage,
|
|
92548
|
-
resetProps = _objectWithoutProperties(props, _excluded$
|
|
93746
|
+
resetProps = _objectWithoutProperties(props, _excluded$1x);
|
|
92549
93747
|
|
|
92550
|
-
var _useReducer = React.useReducer(reducer$
|
|
93748
|
+
var _useReducer = React.useReducer(reducer$7, initialState$4),
|
|
92551
93749
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
92552
93750
|
state = _useReducer2[0],
|
|
92553
93751
|
dispatch = _useReducer2[1]; // 将节点方法给外部使用
|
|
@@ -92588,12 +93786,12 @@
|
|
|
92588
93786
|
ResizeSize$2.ImgTable = ImgTable$1;
|
|
92589
93787
|
ResizeSize$2.Summary = Summary$1;
|
|
92590
93788
|
|
|
92591
|
-
var _excluded$
|
|
92592
|
-
_excluded2$
|
|
93789
|
+
var _excluded$1y = ["children"],
|
|
93790
|
+
_excluded2$n = ["children", "size", "buttonStyle", "direction", "className"];
|
|
92593
93791
|
|
|
92594
93792
|
var LMRadio = function LMRadio(props) {
|
|
92595
93793
|
var children = props.children,
|
|
92596
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
93794
|
+
restProps = _objectWithoutProperties(props, _excluded$1y);
|
|
92597
93795
|
|
|
92598
93796
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _extends({
|
|
92599
93797
|
className: "lm-radio"
|
|
@@ -92608,7 +93806,7 @@
|
|
|
92608
93806
|
_props$direction = props.direction,
|
|
92609
93807
|
direction = _props$direction === void 0 ? 'row' : _props$direction,
|
|
92610
93808
|
className = props.className,
|
|
92611
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
93809
|
+
restProps = _objectWithoutProperties(props, _excluded2$n);
|
|
92612
93810
|
|
|
92613
93811
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Group, _extends({
|
|
92614
93812
|
className: classnames(className, 'lm-radio-group', "lm-radio-group-".concat(direction)),
|
|
@@ -92618,7 +93816,7 @@
|
|
|
92618
93816
|
|
|
92619
93817
|
LMRadio.Button = _Radio__default['default'].Button;
|
|
92620
93818
|
|
|
92621
|
-
var _excluded$
|
|
93819
|
+
var _excluded$1z = ["children", "className", "size", "dropdownClassName"];
|
|
92622
93820
|
var prefixCls$7 = 'lm_select';
|
|
92623
93821
|
var CLMSelect$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92624
93822
|
var children = props.children,
|
|
@@ -92626,7 +93824,7 @@
|
|
|
92626
93824
|
_props$size = props.size,
|
|
92627
93825
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
92628
93826
|
dropdownClassName = props.dropdownClassName,
|
|
92629
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
93827
|
+
others = _objectWithoutProperties(props, _excluded$1z);
|
|
92630
93828
|
|
|
92631
93829
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread(_objectSpread({
|
|
92632
93830
|
className: classnames(className, prefixCls$7),
|
|
@@ -92640,21 +93838,6 @@
|
|
|
92640
93838
|
LMSelect$1.Option = _Select__default['default'].Option;
|
|
92641
93839
|
LMSelect$1.OptGroup = _Select__default['default'].OptGroup;
|
|
92642
93840
|
|
|
92643
|
-
var _excluded$1w = ["className"];
|
|
92644
|
-
var prefixCls$8 = 'lm_tree';
|
|
92645
|
-
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92646
|
-
var className = props.className,
|
|
92647
|
-
rest = _objectWithoutProperties(props, _excluded$1w);
|
|
92648
|
-
|
|
92649
|
-
return /*#__PURE__*/React__default['default'].createElement(_Tree__default['default'], _objectSpread(_objectSpread({
|
|
92650
|
-
ref: ref
|
|
92651
|
-
}, rest), {}, {
|
|
92652
|
-
className: classnames(prefixCls$8, className)
|
|
92653
|
-
}));
|
|
92654
|
-
});
|
|
92655
|
-
LmTree.TreeNode = _Tree__default['default'].TreeNode;
|
|
92656
|
-
LmTree.DirectoryTree = _Tree__default['default'].DirectoryTree;
|
|
92657
|
-
|
|
92658
93841
|
var removeHash = function removeHash(hex) {
|
|
92659
93842
|
return hex.charAt(0) === '#' ? hex.slice(1) : hex;
|
|
92660
93843
|
};
|
|
@@ -92724,21 +93907,21 @@
|
|
|
92724
93907
|
|
|
92725
93908
|
var build = hexToRgba;
|
|
92726
93909
|
|
|
92727
|
-
var _excluded$
|
|
92728
|
-
_excluded2$
|
|
93910
|
+
var _excluded$1A = ["className", "color"],
|
|
93911
|
+
_excluded2$o = ["className", "color", "checked"];
|
|
92729
93912
|
var CheckableTag = _Tag__default['default'].CheckableTag;
|
|
92730
93913
|
var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime', 'theme'];
|
|
92731
|
-
var prefixCls$
|
|
93914
|
+
var prefixCls$8 = 'lm_tag';
|
|
92732
93915
|
var LmTag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92733
93916
|
var className = props.className,
|
|
92734
93917
|
color = props.color,
|
|
92735
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
93918
|
+
rest = _objectWithoutProperties(props, _excluded$1A);
|
|
92736
93919
|
|
|
92737
93920
|
return /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], _objectSpread(_objectSpread({
|
|
92738
93921
|
ref: ref
|
|
92739
93922
|
}, rest), {}, {
|
|
92740
93923
|
color: color,
|
|
92741
|
-
className: classnames(prefixCls$
|
|
93924
|
+
className: classnames(prefixCls$8, {
|
|
92742
93925
|
lm_tag_noborder: !!props.noborder
|
|
92743
93926
|
}, className, PresetColorTypes.includes(color) && "lm_tag_main_color lm_tag_main_".concat(color))
|
|
92744
93927
|
}));
|
|
@@ -92749,7 +93932,7 @@
|
|
|
92749
93932
|
var className = props.className,
|
|
92750
93933
|
color = props.color,
|
|
92751
93934
|
checked = props.checked,
|
|
92752
|
-
rest = _objectWithoutProperties(props, _excluded2$
|
|
93935
|
+
rest = _objectWithoutProperties(props, _excluded2$o);
|
|
92753
93936
|
|
|
92754
93937
|
var checkTagRef = React.useRef(null);
|
|
92755
93938
|
var colorProps = React.useMemo(function () {
|
|
@@ -93094,8 +94277,8 @@
|
|
|
93094
94277
|
api$1.warn = api$1.warning;
|
|
93095
94278
|
api$1.useMessage = createUseMessage(getRCNotificationInstance, getRCNoticeProps$1);
|
|
93096
94279
|
|
|
93097
|
-
var _excluded$
|
|
93098
|
-
var prefixCls$
|
|
94280
|
+
var _excluded$1B = ["className", "size", "noBorder"];
|
|
94281
|
+
var prefixCls$9 = 'lm_tabs';
|
|
93099
94282
|
|
|
93100
94283
|
var LMTabs = function LMTabs(props) {
|
|
93101
94284
|
var className = props.className,
|
|
@@ -93103,24 +94286,24 @@
|
|
|
93103
94286
|
size = _props$size === void 0 ? "middle" : _props$size,
|
|
93104
94287
|
_props$noBorder = props.noBorder,
|
|
93105
94288
|
noBorder = _props$noBorder === void 0 ? false : _props$noBorder,
|
|
93106
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
94289
|
+
others = _objectWithoutProperties(props, _excluded$1B);
|
|
93107
94290
|
|
|
93108
94291
|
return /*#__PURE__*/React__default['default'].createElement(_Tabs__default['default'], _objectSpread(_objectSpread({
|
|
93109
94292
|
size: size
|
|
93110
94293
|
}, others), {}, {
|
|
93111
|
-
className: classnames(className, prefixCls$
|
|
94294
|
+
className: classnames(className, prefixCls$9, noBorder && 'lm_tabs_noborder')
|
|
93112
94295
|
}));
|
|
93113
94296
|
};
|
|
93114
94297
|
|
|
93115
94298
|
LMTabs.TabPane = _Tabs__default['default'].TabPane;
|
|
93116
94299
|
|
|
93117
|
-
var _excluded$
|
|
94300
|
+
var _excluded$1C = ["size", "className"];
|
|
93118
94301
|
|
|
93119
94302
|
var Switch = function Switch(props) {
|
|
93120
94303
|
var _props$size = props.size,
|
|
93121
94304
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
93122
94305
|
className = props.className,
|
|
93123
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
94306
|
+
restProps = _objectWithoutProperties(props, _excluded$1C);
|
|
93124
94307
|
|
|
93125
94308
|
var classs = classnames('lm-switch', className, _defineProperty({}, "lm-switch-".concat(size), size));
|
|
93126
94309
|
return /*#__PURE__*/React__default['default'].createElement(_Switch__default['default'], _objectSpread(_objectSpread({
|
|
@@ -93914,7 +95097,7 @@
|
|
|
93914
95097
|
imgUrl: MiddleImg,
|
|
93915
95098
|
icon: 'lmweb-icon_large'
|
|
93916
95099
|
}];
|
|
93917
|
-
var prefixCls$
|
|
95100
|
+
var prefixCls$a = 'lm_custom-table-option';
|
|
93918
95101
|
var LMCustomTableOption = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
93919
95102
|
var _lmOptions$filter, _lmOptions$columns, _lmOptions$card;
|
|
93920
95103
|
|
|
@@ -93994,7 +95177,7 @@
|
|
|
93994
95177
|
type: 'lmweb-setting'
|
|
93995
95178
|
})
|
|
93996
95179
|
})), /*#__PURE__*/React__default['default'].createElement(LMDrawer, {
|
|
93997
|
-
className: classnames(className, prefixCls$
|
|
95180
|
+
className: classnames(className, prefixCls$a),
|
|
93998
95181
|
title: "\u4E2A\u6027\u5316\u8BBE\u7F6E",
|
|
93999
95182
|
visible: visible,
|
|
94000
95183
|
extra: /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], null, /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
@@ -100292,7 +101475,7 @@
|
|
|
100292
101475
|
exports.useLayoutUpdateEffect = useLayoutUpdateEffect;
|
|
100293
101476
|
});
|
|
100294
101477
|
|
|
100295
|
-
var useIsomorphicLayoutEffect$
|
|
101478
|
+
var useIsomorphicLayoutEffect$6 = /*@__PURE__*/getDefaultExportFromCjs(useLayoutEffect_1);
|
|
100296
101479
|
|
|
100297
101480
|
var useState = createCommonjsModule(function (module, exports) {
|
|
100298
101481
|
|
|
@@ -100673,7 +101856,7 @@
|
|
|
100673
101856
|
return replaceElement(element, element, props);
|
|
100674
101857
|
}
|
|
100675
101858
|
|
|
100676
|
-
var _excluded$
|
|
101859
|
+
var _excluded$1D = ["getPopupContainer"];
|
|
100677
101860
|
|
|
100678
101861
|
var splitObject = function splitObject(obj, keys) {
|
|
100679
101862
|
var picked = {};
|
|
@@ -100818,7 +102001,7 @@
|
|
|
100818
102001
|
};
|
|
100819
102002
|
|
|
100820
102003
|
var getPopupContainer = props.getPopupContainer,
|
|
100821
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
102004
|
+
otherProps = _objectWithoutProperties(props, _excluded$1D);
|
|
100822
102005
|
|
|
100823
102006
|
var customizePrefixCls = props.prefixCls,
|
|
100824
102007
|
openClassName = props.openClassName,
|
|
@@ -100889,14 +102072,14 @@
|
|
|
100889
102072
|
};
|
|
100890
102073
|
Tooltip$1.AntdTooltip = _Tooltip__default['default'];
|
|
100891
102074
|
|
|
100892
|
-
var _excluded$
|
|
100893
|
-
var prefixCls$
|
|
102075
|
+
var _excluded$1E = ["children", "className", "responsive"];
|
|
102076
|
+
var prefixCls$b = 'lm_container';
|
|
100894
102077
|
|
|
100895
102078
|
var LMContainer = function LMContainer(props) {
|
|
100896
102079
|
var children = props.children,
|
|
100897
102080
|
className = props.className,
|
|
100898
102081
|
responsive = props.responsive,
|
|
100899
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
102082
|
+
others = _objectWithoutProperties(props, _excluded$1E);
|
|
100900
102083
|
|
|
100901
102084
|
var _useState = React.useState({
|
|
100902
102085
|
width: '100%',
|
|
@@ -100923,7 +102106,7 @@
|
|
|
100923
102106
|
}
|
|
100924
102107
|
}
|
|
100925
102108
|
|
|
100926
|
-
var classes = classnames(className, prefixCls$
|
|
102109
|
+
var classes = classnames(className, prefixCls$b, responsiveCls, lm_col);
|
|
100927
102110
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({
|
|
100928
102111
|
className: classes
|
|
100929
102112
|
}, others), {}, {
|
|
@@ -100984,8 +102167,8 @@
|
|
|
100984
102167
|
}, throttleSize());
|
|
100985
102168
|
};
|
|
100986
102169
|
|
|
100987
|
-
var _excluded$
|
|
100988
|
-
_excluded2$
|
|
102170
|
+
var _excluded$1F = ["children", "className", "responsive"],
|
|
102171
|
+
_excluded2$p = ["children", "className", "responsive", "errorPlacement"];
|
|
100989
102172
|
|
|
100990
102173
|
var classNamePrefix = 'lm_form';
|
|
100991
102174
|
|
|
@@ -100993,7 +102176,7 @@
|
|
|
100993
102176
|
var children = props.children,
|
|
100994
102177
|
className = props.className,
|
|
100995
102178
|
responsive = props.responsive,
|
|
100996
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
102179
|
+
restProps = _objectWithoutProperties(props, _excluded$1F);
|
|
100997
102180
|
|
|
100998
102181
|
if (responsive) {
|
|
100999
102182
|
return /*#__PURE__*/React__default['default'].createElement(LMContainer, {
|
|
@@ -101021,7 +102204,7 @@
|
|
|
101021
102204
|
responsive = _props$responsive === void 0 ? false : _props$responsive,
|
|
101022
102205
|
_props$errorPlacement = props.errorPlacement,
|
|
101023
102206
|
errorPlacement = _props$errorPlacement === void 0 ? 'default' : _props$errorPlacement,
|
|
101024
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
102207
|
+
restProps = _objectWithoutProperties(props, _excluded2$p);
|
|
101025
102208
|
|
|
101026
102209
|
var tipClassName = errorPlacement === 'default' ? '' : "lm_form-item-tip-error lm_form-item-tip-error-".concat(errorPlacement);
|
|
101027
102210
|
var resCls = responsive ? 'ant-form-item-responsive' : '';
|
|
@@ -101097,13 +102280,13 @@
|
|
|
101097
102280
|
}, children);
|
|
101098
102281
|
};
|
|
101099
102282
|
|
|
101100
|
-
var _excluded$
|
|
102283
|
+
var _excluded$1G = ["data-row-key", "children", "className"];
|
|
101101
102284
|
|
|
101102
102285
|
var SortableItem$2 = function SortableItem(props) {
|
|
101103
102286
|
var key = props['data-row-key'],
|
|
101104
102287
|
children = props.children,
|
|
101105
102288
|
className = props.className,
|
|
101106
|
-
resetField = _objectWithoutProperties(props, _excluded$
|
|
102289
|
+
resetField = _objectWithoutProperties(props, _excluded$1G);
|
|
101107
102290
|
|
|
101108
102291
|
var _useSortable = useSortable({
|
|
101109
102292
|
id: key
|
|
@@ -101124,10 +102307,10 @@
|
|
|
101124
102307
|
}, attributes), children);
|
|
101125
102308
|
};
|
|
101126
102309
|
|
|
101127
|
-
var _excluded$
|
|
102310
|
+
var _excluded$1H = ["children"];
|
|
101128
102311
|
var Item$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
101129
102312
|
var children = _ref.children,
|
|
101130
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
102313
|
+
props = _objectWithoutProperties(_ref, _excluded$1H);
|
|
101131
102314
|
|
|
101132
102315
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread({}, props), {}, {
|
|
101133
102316
|
ref: ref
|
|
@@ -101178,9 +102361,9 @@
|
|
|
101178
102361
|
}));
|
|
101179
102362
|
};
|
|
101180
102363
|
|
|
101181
|
-
var _excluded$
|
|
101182
|
-
_excluded2$
|
|
101183
|
-
_excluded3$
|
|
102364
|
+
var _excluded$1I = ["index"],
|
|
102365
|
+
_excluded2$q = ["index"],
|
|
102366
|
+
_excluded3$9 = ["value", "onChange"],
|
|
101184
102367
|
_excluded4$3 = ["record", "rowKey", "isEdit", "col", "handleTableRowDelete", "handleTableRowAdd", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
101185
102368
|
_excluded5$2 = ["onMouseEnter", "onMouseLeave"],
|
|
101186
102369
|
_excluded6$1 = ["value", "columns", "isEdit", "isAdd", "onChange", "rowKey", "rowHoverEdit", "isUseForm", "isHoverEdit", "useQuickOpetate", "rowSelection", "sortOpen", "colSortOpen", "filterChange", "size"];
|
|
@@ -101189,7 +102372,7 @@
|
|
|
101189
102372
|
|
|
101190
102373
|
var EditableRow$1 = function EditableRow(_ref) {
|
|
101191
102374
|
var index = _ref.index,
|
|
101192
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
102375
|
+
props = _objectWithoutProperties(_ref, _excluded$1I);
|
|
101193
102376
|
|
|
101194
102377
|
var _Form$useForm = Form$1.useForm(),
|
|
101195
102378
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -101205,7 +102388,7 @@
|
|
|
101205
102388
|
|
|
101206
102389
|
var EditableSortRow = function EditableSortRow(_ref2) {
|
|
101207
102390
|
var index = _ref2.index,
|
|
101208
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
102391
|
+
props = _objectWithoutProperties(_ref2, _excluded2$q);
|
|
101209
102392
|
|
|
101210
102393
|
var _Form$useForm3 = Form$1.useForm(),
|
|
101211
102394
|
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
|
|
@@ -101257,7 +102440,7 @@
|
|
|
101257
102440
|
var _ref3$value = _ref3.value,
|
|
101258
102441
|
value = _ref3$value === void 0 ? ['', ''] : _ref3$value,
|
|
101259
102442
|
onChange = _ref3.onChange,
|
|
101260
|
-
editEnum = _objectWithoutProperties(_ref3, _excluded3$
|
|
102443
|
+
editEnum = _objectWithoutProperties(_ref3, _excluded3$9);
|
|
101261
102444
|
|
|
101262
102445
|
// 输入值改变
|
|
101263
102446
|
var handleInput = function handleInput(e, type) {
|
|
@@ -102286,7 +103469,7 @@
|
|
|
102286
103469
|
return targetElement;
|
|
102287
103470
|
}
|
|
102288
103471
|
|
|
102289
|
-
var prefixCls$
|
|
103472
|
+
var prefixCls$c = 'lm_quick_menu';
|
|
102290
103473
|
|
|
102291
103474
|
var LMQuickMenu = function LMQuickMenu(props) {
|
|
102292
103475
|
var className = props.className,
|
|
@@ -102420,7 +103603,7 @@
|
|
|
102420
103603
|
};
|
|
102421
103604
|
}, []);
|
|
102422
103605
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
102423
|
-
className: classnames(prefixCls$
|
|
103606
|
+
className: classnames(prefixCls$c),
|
|
102424
103607
|
onMouseEnter: function onMouseEnter() {
|
|
102425
103608
|
if (scrollTimeOut.current) {
|
|
102426
103609
|
clearTimeout(scrollTimeOut.current);
|
|
@@ -107412,11 +108595,11 @@
|
|
|
107412
108595
|
});
|
|
107413
108596
|
MobilePopupInner.displayName = 'MobilePopupInner';
|
|
107414
108597
|
|
|
107415
|
-
var _excluded$
|
|
108598
|
+
var _excluded$1J = ["visible", "mobile"];
|
|
107416
108599
|
var Popup$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
107417
108600
|
var visible = _ref.visible,
|
|
107418
108601
|
mobile = _ref.mobile,
|
|
107419
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
108602
|
+
props = _objectWithoutProperties$1(_ref, _excluded$1J);
|
|
107420
108603
|
|
|
107421
108604
|
var _useState = React.useState(visible),
|
|
107422
108605
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -110464,7 +111647,7 @@
|
|
|
110464
111647
|
}
|
|
110465
111648
|
}
|
|
110466
111649
|
|
|
110467
|
-
var _excluded$
|
|
111650
|
+
var _excluded$1K = ["prefixCls", "getPopupContainer", "className", "placement", "size", "disabled", "bordered", "placeholder", "status"];
|
|
110468
111651
|
function generateRangePicker(generateConfig) {
|
|
110469
111652
|
var RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
110470
111653
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -110477,7 +111660,7 @@
|
|
|
110477
111660
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
110478
111661
|
placeholder = props.placeholder,
|
|
110479
111662
|
customStatus = props.status,
|
|
110480
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
111663
|
+
restProps = _objectWithoutProperties(props, _excluded$1K);
|
|
110481
111664
|
|
|
110482
111665
|
var innerRef = React.useRef(null);
|
|
110483
111666
|
|
|
@@ -110589,7 +111772,7 @@
|
|
|
110589
111772
|
|
|
110590
111773
|
var warning$5 = warning$4;
|
|
110591
111774
|
|
|
110592
|
-
var _excluded$
|
|
111775
|
+
var _excluded$1L = ["prefixCls", "getPopupContainer", "className", "size", "bordered", "placement", "placeholder", "disabled", "status"];
|
|
110593
111776
|
function generatePicker(generateConfig) {
|
|
110594
111777
|
function getPicker(picker, displayName) {
|
|
110595
111778
|
var Picker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -110603,7 +111786,7 @@
|
|
|
110603
111786
|
placeholder = props.placeholder,
|
|
110604
111787
|
customDisabled = props.disabled,
|
|
110605
111788
|
customStatus = props.status,
|
|
110606
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
111789
|
+
restProps = _objectWithoutProperties(props, _excluded$1L);
|
|
110607
111790
|
|
|
110608
111791
|
console.log(restProps, '---restProps');
|
|
110609
111792
|
warning$5(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
|
|
@@ -110826,13 +112009,13 @@
|
|
|
110826
112009
|
return propValue;
|
|
110827
112010
|
};
|
|
110828
112011
|
|
|
110829
|
-
var _excluded$
|
|
112012
|
+
var _excluded$1M = ["prefixCls", "title", "content", "_overlay"];
|
|
110830
112013
|
var Popover = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
110831
112014
|
var customizePrefixCls = _ref.prefixCls,
|
|
110832
112015
|
title = _ref.title,
|
|
110833
112016
|
content = _ref.content,
|
|
110834
112017
|
_overlay = _ref._overlay,
|
|
110835
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
112018
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$1M);
|
|
110836
112019
|
|
|
110837
112020
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
110838
112021
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -112001,7 +113184,7 @@
|
|
|
112001
113184
|
|
|
112002
113185
|
var KeyCode$1 = /*@__PURE__*/getDefaultExportFromCjs(KeyCode_1);
|
|
112003
113186
|
|
|
112004
|
-
var _excluded$
|
|
113187
|
+
var _excluded$1N = ["style", "noStyle", "disabled"];
|
|
112005
113188
|
var inlineStyle = {
|
|
112006
113189
|
border: 0,
|
|
112007
113190
|
background: 'transparent',
|
|
@@ -112030,7 +113213,7 @@
|
|
|
112030
113213
|
var style = props.style,
|
|
112031
113214
|
noStyle = props.noStyle,
|
|
112032
113215
|
disabled = props.disabled,
|
|
112033
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
113216
|
+
restProps = _objectWithoutProperties(props, _excluded$1N);
|
|
112034
113217
|
|
|
112035
113218
|
var mergedStyle = {};
|
|
112036
113219
|
|
|
@@ -112313,7 +113496,7 @@
|
|
|
112313
113496
|
}, conditions);
|
|
112314
113497
|
});
|
|
112315
113498
|
|
|
112316
|
-
var _excluded$
|
|
113499
|
+
var _excluded$1O = ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"];
|
|
112317
113500
|
|
|
112318
113501
|
var Typography = function Typography(_ref, ref$1) {
|
|
112319
113502
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -112323,7 +113506,7 @@
|
|
|
112323
113506
|
ariaLabel = _ref['aria-label'],
|
|
112324
113507
|
setContentRef = _ref.setContentRef,
|
|
112325
113508
|
children = _ref.children,
|
|
112326
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
113509
|
+
restProps = _objectWithoutProperties(_ref, _excluded$1O);
|
|
112327
113510
|
|
|
112328
113511
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
112329
113512
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -112452,20 +113635,20 @@
|
|
|
112452
113635
|
return children(sliceNodes(nodeList, midLen), midLen < totalLen);
|
|
112453
113636
|
}, [enabledMeasure, walkingState, children, nodeList, midLen, totalLen]); // ======================== Walk ========================
|
|
112454
113637
|
|
|
112455
|
-
useIsomorphicLayoutEffect$
|
|
113638
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112456
113639
|
if (enabledMeasure && width && totalLen) {
|
|
112457
113640
|
setWalkingState(PREPARE);
|
|
112458
113641
|
setCutLength([0, Math.ceil(totalLen / 2), totalLen]);
|
|
112459
113642
|
}
|
|
112460
113643
|
}, [enabledMeasure, width, text, totalLen, rows]);
|
|
112461
|
-
useIsomorphicLayoutEffect$
|
|
113644
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112462
113645
|
if (walkingState === PREPARE) {
|
|
112463
113646
|
var _singleRowRef$current;
|
|
112464
113647
|
|
|
112465
113648
|
setSingleRowHeight(((_singleRowRef$current = singleRowRef.current) === null || _singleRowRef$current === void 0 ? void 0 : _singleRowRef$current.offsetHeight) || 0);
|
|
112466
113649
|
}
|
|
112467
113650
|
}, [walkingState]);
|
|
112468
|
-
useIsomorphicLayoutEffect$
|
|
113651
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112469
113652
|
if (singleRowHeight) {
|
|
112470
113653
|
if (walkingState === PREPARE) {
|
|
112471
113654
|
var _midRowRef$current;
|
|
@@ -112566,7 +113749,7 @@
|
|
|
112566
113749
|
EllipsisTooltip.displayName = 'EllipsisTooltip';
|
|
112567
113750
|
}
|
|
112568
113751
|
|
|
112569
|
-
var _excluded$
|
|
113752
|
+
var _excluded$1P = ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"];
|
|
112570
113753
|
|
|
112571
113754
|
function wrapperDecorations(_ref, content) {
|
|
112572
113755
|
var mark = _ref.mark,
|
|
@@ -112618,7 +113801,7 @@
|
|
|
112618
113801
|
copyable = props.copyable,
|
|
112619
113802
|
component = props.component,
|
|
112620
113803
|
title = props.title,
|
|
112621
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
113804
|
+
restProps = _objectWithoutProperties(props, _excluded$1P);
|
|
112622
113805
|
|
|
112623
113806
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
112624
113807
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -112774,7 +113957,7 @@
|
|
|
112774
113957
|
ellipsisConfig.expandable || enableEdit || enableCopy
|
|
112775
113958
|
);
|
|
112776
113959
|
}, [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);
|
|
112777
|
-
useIsomorphicLayoutEffect$
|
|
113960
|
+
useIsomorphicLayoutEffect$6(function () {
|
|
112778
113961
|
if (enableEllipsis && !needMeasureEllipsis) {
|
|
112779
113962
|
setIsLineClampSupport(styleChecker.isStyleSupport('webkitLineClamp'));
|
|
112780
113963
|
setIsTextOverflowSupport(styleChecker.isStyleSupport('textOverflow'));
|
|
@@ -112993,7 +114176,7 @@
|
|
|
112993
114176
|
}, ELLIPSIS_STR), ellipsisConfig.suffix, renderOperations(needEllipsis)];
|
|
112994
114177
|
};
|
|
112995
114178
|
|
|
112996
|
-
return /*#__PURE__*/React.createElement(ResizeObserver$
|
|
114179
|
+
return /*#__PURE__*/React.createElement(ResizeObserver$2, {
|
|
112997
114180
|
onResize: onResize,
|
|
112998
114181
|
disabled: !mergedEnableEllipsis || cssEllipsis
|
|
112999
114182
|
}, function (resizeRef) {
|
|
@@ -113036,12 +114219,12 @@
|
|
|
113036
114219
|
});
|
|
113037
114220
|
});
|
|
113038
114221
|
|
|
113039
|
-
var _excluded$
|
|
114222
|
+
var _excluded$1Q = ["ellipsis", "rel"];
|
|
113040
114223
|
|
|
113041
114224
|
var Link = function Link(_ref, ref) {
|
|
113042
114225
|
var ellipsis = _ref.ellipsis,
|
|
113043
114226
|
rel = _ref.rel,
|
|
113044
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
114227
|
+
restProps = _objectWithoutProperties(_ref, _excluded$1Q);
|
|
113045
114228
|
|
|
113046
114229
|
warning$5(_typeof(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
|
|
113047
114230
|
var baseRef = React.useRef(null);
|
|
@@ -113065,7 +114248,7 @@
|
|
|
113065
114248
|
|
|
113066
114249
|
var Link$1 = /*#__PURE__*/React.forwardRef(Link);
|
|
113067
114250
|
|
|
113068
|
-
var Paragraph$
|
|
114251
|
+
var Paragraph$7 = function Paragraph(props, ref) {
|
|
113069
114252
|
return /*#__PURE__*/React.createElement(Base, _objectSpread(_objectSpread({
|
|
113070
114253
|
ref: ref
|
|
113071
114254
|
}, props), {}, {
|
|
@@ -113073,13 +114256,13 @@
|
|
|
113073
114256
|
}));
|
|
113074
114257
|
};
|
|
113075
114258
|
|
|
113076
|
-
var Paragraph$
|
|
114259
|
+
var Paragraph$8 = /*#__PURE__*/React.forwardRef(Paragraph$7);
|
|
113077
114260
|
|
|
113078
|
-
var _excluded$
|
|
114261
|
+
var _excluded$1R = ["ellipsis"];
|
|
113079
114262
|
|
|
113080
114263
|
var Text = function Text(_ref, ref) {
|
|
113081
114264
|
var ellipsis = _ref.ellipsis,
|
|
113082
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
114265
|
+
restProps = _objectWithoutProperties(_ref, _excluded$1R);
|
|
113083
114266
|
|
|
113084
114267
|
var mergedEllipsis = React.useMemo(function () {
|
|
113085
114268
|
if (ellipsis && _typeof(ellipsis) === 'object') {
|
|
@@ -113099,13 +114282,13 @@
|
|
|
113099
114282
|
|
|
113100
114283
|
var Text$1 = /*#__PURE__*/React.forwardRef(Text);
|
|
113101
114284
|
|
|
113102
|
-
var _excluded$
|
|
114285
|
+
var _excluded$1S = ["level"];
|
|
113103
114286
|
var TITLE_ELE_LIST = tupleNum(1, 2, 3, 4, 5);
|
|
113104
114287
|
|
|
113105
114288
|
var Title = function Title(props, ref) {
|
|
113106
114289
|
var _props$level = props.level,
|
|
113107
114290
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
113108
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
114291
|
+
restProps = _objectWithoutProperties(props, _excluded$1S);
|
|
113109
114292
|
|
|
113110
114293
|
var component;
|
|
113111
114294
|
|
|
@@ -113129,7 +114312,7 @@
|
|
|
113129
114312
|
Typography$1.Text = Text$1;
|
|
113130
114313
|
Typography$1.Link = Link$1;
|
|
113131
114314
|
Typography$1.Title = Title$1;
|
|
113132
|
-
Typography$1.Paragraph = Paragraph$
|
|
114315
|
+
Typography$1.Paragraph = Paragraph$8;
|
|
113133
114316
|
Typography$1.AntdTypography = _Typography__default['default'];
|
|
113134
114317
|
|
|
113135
114318
|
var Option$2 = _Select__default['default'].Option;
|
|
@@ -113214,7 +114397,7 @@
|
|
|
113214
114397
|
|
|
113215
114398
|
var RowContext = /*#__PURE__*/React.createContext({});
|
|
113216
114399
|
|
|
113217
|
-
var _excluded$
|
|
114400
|
+
var _excluded$1T = ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"];
|
|
113218
114401
|
|
|
113219
114402
|
function parseFlex(flex) {
|
|
113220
114403
|
if (typeof flex === 'number') {
|
|
@@ -113251,7 +114434,7 @@
|
|
|
113251
114434
|
children = props.children,
|
|
113252
114435
|
flex = props.flex,
|
|
113253
114436
|
style = props.style,
|
|
113254
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
114437
|
+
others = _objectWithoutProperties(props, _excluded$1T);
|
|
113255
114438
|
|
|
113256
114439
|
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
113257
114440
|
var sizeClassObj = {};
|
|
@@ -113412,7 +114595,7 @@
|
|
|
113412
114595
|
return flexible;
|
|
113413
114596
|
});
|
|
113414
114597
|
|
|
113415
|
-
var _excluded$
|
|
114598
|
+
var _excluded$1U = ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"];
|
|
113416
114599
|
var RowAligns = tuple('top', 'middle', 'bottom', 'stretch');
|
|
113417
114600
|
var RowJustify = tuple('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
|
|
113418
114601
|
var Row = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -113427,7 +114610,7 @@
|
|
|
113427
114610
|
_props$gutter = props.gutter,
|
|
113428
114611
|
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
113429
114612
|
wrap = props.wrap,
|
|
113430
|
-
others = _objectWithoutProperties(props, _excluded$
|
|
114613
|
+
others = _objectWithoutProperties(props, _excluded$1U);
|
|
113431
114614
|
|
|
113432
114615
|
var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
|
|
113433
114616
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -113610,7 +114793,7 @@
|
|
|
113610
114793
|
return ErrorBoundary;
|
|
113611
114794
|
}(React.Component);
|
|
113612
114795
|
|
|
113613
|
-
var _excluded$
|
|
114796
|
+
var _excluded$1V = ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "duration"];
|
|
113614
114797
|
var iconMapFilled = {
|
|
113615
114798
|
success: CheckCircleFilled$2,
|
|
113616
114799
|
info: InfoCircleFilled$2,
|
|
@@ -113683,7 +114866,7 @@
|
|
|
113683
114866
|
closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined$2, null) : _ref$closeIcon,
|
|
113684
114867
|
action = _ref.action,
|
|
113685
114868
|
duration = _ref.duration,
|
|
113686
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
114869
|
+
props = _objectWithoutProperties(_ref, _excluded$1V);
|
|
113687
114870
|
|
|
113688
114871
|
var _React$useState = React.useState(false),
|
|
113689
114872
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -113799,6 +114982,839 @@
|
|
|
113799
114982
|
Alert.ErrorBoundary = ErrorBoundary$1;
|
|
113800
114983
|
Alert.AntdAlert = _Alert__default['default'];
|
|
113801
114984
|
|
|
114985
|
+
// 节点类型
|
|
114986
|
+
var ApprovalType;
|
|
114987
|
+
|
|
114988
|
+
(function (ApprovalType) {
|
|
114989
|
+
ApprovalType["START"] = "START";
|
|
114990
|
+
ApprovalType["APPROVAL"] = "APPROVAL";
|
|
114991
|
+
ApprovalType["CARBON_COPY"] = "CARBON_COPY";
|
|
114992
|
+
ApprovalType["ONLY_COMMENT"] = "ONLY_COMMENT";
|
|
114993
|
+
})(ApprovalType || (ApprovalType = {}));
|
|
114994
|
+
|
|
114995
|
+
var StatusType;
|
|
114996
|
+
|
|
114997
|
+
(function (StatusType) {
|
|
114998
|
+
StatusType["AGREE"] = "AGREE";
|
|
114999
|
+
StatusType["REFUSE"] = "REFUSE";
|
|
115000
|
+
StatusType["PENDING"] = "PENDING";
|
|
115001
|
+
})(StatusType || (StatusType = {}));
|
|
115002
|
+
|
|
115003
|
+
(function (ApprovalType) {
|
|
115004
|
+
function isAgree(type, status) {
|
|
115005
|
+
if (type === ApprovalType.APPROVAL && status === StatusType.AGREE) {
|
|
115006
|
+
return true;
|
|
115007
|
+
}
|
|
115008
|
+
|
|
115009
|
+
return false;
|
|
115010
|
+
}
|
|
115011
|
+
|
|
115012
|
+
ApprovalType.isAgree = isAgree;
|
|
115013
|
+
|
|
115014
|
+
function isPending(type, status) {
|
|
115015
|
+
if (type === ApprovalType.APPROVAL && status === StatusType.PENDING) {
|
|
115016
|
+
return true;
|
|
115017
|
+
}
|
|
115018
|
+
|
|
115019
|
+
return false;
|
|
115020
|
+
}
|
|
115021
|
+
|
|
115022
|
+
ApprovalType.isPending = isPending;
|
|
115023
|
+
|
|
115024
|
+
function isRefuse(type, status) {
|
|
115025
|
+
if (type === ApprovalType.APPROVAL && status === StatusType.REFUSE) {
|
|
115026
|
+
return true;
|
|
115027
|
+
}
|
|
115028
|
+
|
|
115029
|
+
return false;
|
|
115030
|
+
}
|
|
115031
|
+
|
|
115032
|
+
ApprovalType.isRefuse = isRefuse;
|
|
115033
|
+
|
|
115034
|
+
function isCC(type) {
|
|
115035
|
+
if (type === ApprovalType.CARBON_COPY) {
|
|
115036
|
+
return true;
|
|
115037
|
+
}
|
|
115038
|
+
|
|
115039
|
+
return false;
|
|
115040
|
+
}
|
|
115041
|
+
|
|
115042
|
+
ApprovalType.isCC = isCC;
|
|
115043
|
+
|
|
115044
|
+
function isOnlyComment(type) {
|
|
115045
|
+
if (type === ApprovalType.ONLY_COMMENT) {
|
|
115046
|
+
return true;
|
|
115047
|
+
}
|
|
115048
|
+
|
|
115049
|
+
return false;
|
|
115050
|
+
}
|
|
115051
|
+
|
|
115052
|
+
ApprovalType.isOnlyComment = isOnlyComment;
|
|
115053
|
+
|
|
115054
|
+
function isApproval(type) {
|
|
115055
|
+
if (type === ApprovalType.APPROVAL) {
|
|
115056
|
+
return true;
|
|
115057
|
+
}
|
|
115058
|
+
|
|
115059
|
+
return false;
|
|
115060
|
+
}
|
|
115061
|
+
|
|
115062
|
+
ApprovalType.isApproval = isApproval;
|
|
115063
|
+
|
|
115064
|
+
function toText(type, status) {
|
|
115065
|
+
if (type === ApprovalType.APPROVAL) {
|
|
115066
|
+
if (status === StatusType.PENDING) {
|
|
115067
|
+
return '审核中';
|
|
115068
|
+
} else if (status === StatusType.REFUSE) {
|
|
115069
|
+
return '未通过';
|
|
115070
|
+
} else if (status === StatusType.AGREE) {
|
|
115071
|
+
return '已审核';
|
|
115072
|
+
}
|
|
115073
|
+
} else if (type === ApprovalType.ONLY_COMMENT) {
|
|
115074
|
+
return '仅评论';
|
|
115075
|
+
}
|
|
115076
|
+
|
|
115077
|
+
return '';
|
|
115078
|
+
}
|
|
115079
|
+
|
|
115080
|
+
ApprovalType.toText = toText;
|
|
115081
|
+
})(ApprovalType || (ApprovalType = {}));
|
|
115082
|
+
|
|
115083
|
+
var createForOfIteratorHelper = createCommonjsModule(function (module) {
|
|
115084
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
115085
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
115086
|
+
|
|
115087
|
+
if (!it) {
|
|
115088
|
+
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
115089
|
+
if (it) o = it;
|
|
115090
|
+
var i = 0;
|
|
115091
|
+
|
|
115092
|
+
var F = function F() {};
|
|
115093
|
+
|
|
115094
|
+
return {
|
|
115095
|
+
s: F,
|
|
115096
|
+
n: function n() {
|
|
115097
|
+
if (i >= o.length) return {
|
|
115098
|
+
done: true
|
|
115099
|
+
};
|
|
115100
|
+
return {
|
|
115101
|
+
done: false,
|
|
115102
|
+
value: o[i++]
|
|
115103
|
+
};
|
|
115104
|
+
},
|
|
115105
|
+
e: function e(_e) {
|
|
115106
|
+
throw _e;
|
|
115107
|
+
},
|
|
115108
|
+
f: F
|
|
115109
|
+
};
|
|
115110
|
+
}
|
|
115111
|
+
|
|
115112
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
115113
|
+
}
|
|
115114
|
+
|
|
115115
|
+
var normalCompletion = true,
|
|
115116
|
+
didErr = false,
|
|
115117
|
+
err;
|
|
115118
|
+
return {
|
|
115119
|
+
s: function s() {
|
|
115120
|
+
it = it.call(o);
|
|
115121
|
+
},
|
|
115122
|
+
n: function n() {
|
|
115123
|
+
var step = it.next();
|
|
115124
|
+
normalCompletion = step.done;
|
|
115125
|
+
return step;
|
|
115126
|
+
},
|
|
115127
|
+
e: function e(_e2) {
|
|
115128
|
+
didErr = true;
|
|
115129
|
+
err = _e2;
|
|
115130
|
+
},
|
|
115131
|
+
f: function f() {
|
|
115132
|
+
try {
|
|
115133
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
115134
|
+
} finally {
|
|
115135
|
+
if (didErr) throw err;
|
|
115136
|
+
}
|
|
115137
|
+
}
|
|
115138
|
+
};
|
|
115139
|
+
}
|
|
115140
|
+
|
|
115141
|
+
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
115142
|
+
});
|
|
115143
|
+
|
|
115144
|
+
var _createForOfIteratorHelper$1 = /*@__PURE__*/getDefaultExportFromCjs(createForOfIteratorHelper);
|
|
115145
|
+
|
|
115146
|
+
/**
|
|
115147
|
+
* 当前用户是否可以审批
|
|
115148
|
+
* @param steps
|
|
115149
|
+
* @param user
|
|
115150
|
+
*/
|
|
115151
|
+
|
|
115152
|
+
function currentUserIsApprover(steps, user) {
|
|
115153
|
+
var _iterator = _createForOfIteratorHelper$1(steps),
|
|
115154
|
+
_step;
|
|
115155
|
+
|
|
115156
|
+
try {
|
|
115157
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
115158
|
+
var step = _step.value;
|
|
115159
|
+
|
|
115160
|
+
// 审核中
|
|
115161
|
+
if (ApprovalType.isPending(step.type, step.approvalStatus)) {
|
|
115162
|
+
if (step.everyoneAgree) {
|
|
115163
|
+
var index = step.agreeList.length;
|
|
115164
|
+
|
|
115165
|
+
if (index < step.approverList.length && step.approverList[index] === user) {
|
|
115166
|
+
return true;
|
|
115167
|
+
}
|
|
115168
|
+
} else {
|
|
115169
|
+
if (step.approverList.indexOf(user) !== -1) {
|
|
115170
|
+
return true;
|
|
115171
|
+
}
|
|
115172
|
+
}
|
|
115173
|
+
|
|
115174
|
+
break;
|
|
115175
|
+
}
|
|
115176
|
+
}
|
|
115177
|
+
} catch (err) {
|
|
115178
|
+
_iterator.e(err);
|
|
115179
|
+
} finally {
|
|
115180
|
+
_iterator.f();
|
|
115181
|
+
}
|
|
115182
|
+
|
|
115183
|
+
return false;
|
|
115184
|
+
}
|
|
115185
|
+
/**
|
|
115186
|
+
* 当前用户是否是提议发起者
|
|
115187
|
+
* @param proposer
|
|
115188
|
+
* @param user
|
|
115189
|
+
*/
|
|
115190
|
+
|
|
115191
|
+
function currentUserIsProposer(proposer, user) {
|
|
115192
|
+
return proposer && proposer === user;
|
|
115193
|
+
}
|
|
115194
|
+
/**
|
|
115195
|
+
* 获取当前审批单状态
|
|
115196
|
+
* @param steps
|
|
115197
|
+
* @returns
|
|
115198
|
+
*/
|
|
115199
|
+
|
|
115200
|
+
function getStatus(steps) {
|
|
115201
|
+
var _iterator4 = _createForOfIteratorHelper$1(steps),
|
|
115202
|
+
_step4;
|
|
115203
|
+
|
|
115204
|
+
try {
|
|
115205
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
115206
|
+
var step = _step4.value;
|
|
115207
|
+
|
|
115208
|
+
if (ApprovalType.isPending(step.type, step.approvalStatus)) {
|
|
115209
|
+
return StatusType.PENDING;
|
|
115210
|
+
}
|
|
115211
|
+
|
|
115212
|
+
if (ApprovalType.isRefuse(step.type, step.approvalStatus)) {
|
|
115213
|
+
return StatusType.REFUSE;
|
|
115214
|
+
}
|
|
115215
|
+
}
|
|
115216
|
+
} catch (err) {
|
|
115217
|
+
_iterator4.e(err);
|
|
115218
|
+
} finally {
|
|
115219
|
+
_iterator4.f();
|
|
115220
|
+
}
|
|
115221
|
+
|
|
115222
|
+
return StatusType.AGREE;
|
|
115223
|
+
}
|
|
115224
|
+
|
|
115225
|
+
/**
|
|
115226
|
+
* 获取现在到之前的时间差
|
|
115227
|
+
* @param time
|
|
115228
|
+
* @returns
|
|
115229
|
+
*/
|
|
115230
|
+
|
|
115231
|
+
function getDistanceTime(time) {
|
|
115232
|
+
if (typeof time === 'string' || typeof time === 'number') {
|
|
115233
|
+
time = new Date(time);
|
|
115234
|
+
}
|
|
115235
|
+
|
|
115236
|
+
var result = '';
|
|
115237
|
+
var dis = Date.now() - time.getTime();
|
|
115238
|
+
var second = parseInt(dis / 1000 + '');
|
|
115239
|
+
var day = parseInt(second / 3600 / 24 + '');
|
|
115240
|
+
var hour = parseInt(second / 3600 % 24 + '');
|
|
115241
|
+
var minute = parseInt(second / 60 % 60 + '');
|
|
115242
|
+
|
|
115243
|
+
if (day > 0) {
|
|
115244
|
+
result += day + '天' + hour + '小时' + minute + '分钟';
|
|
115245
|
+
} else {
|
|
115246
|
+
if (hour > 0) {
|
|
115247
|
+
result += hour + '小时' + minute + '分钟';
|
|
115248
|
+
} else {
|
|
115249
|
+
result += minute + '分钟';
|
|
115250
|
+
}
|
|
115251
|
+
}
|
|
115252
|
+
|
|
115253
|
+
return result;
|
|
115254
|
+
}
|
|
115255
|
+
function getCurrentTime() {
|
|
115256
|
+
var _Date$toLocaleString$ = new Date().toLocaleString().split(' '),
|
|
115257
|
+
_Date$toLocaleString$2 = _slicedToArray(_Date$toLocaleString$, 2),
|
|
115258
|
+
t1 = _Date$toLocaleString$2[0],
|
|
115259
|
+
t2 = _Date$toLocaleString$2[1];
|
|
115260
|
+
|
|
115261
|
+
var _t1$split = t1.split('/'),
|
|
115262
|
+
_t1$split2 = _slicedToArray(_t1$split, 3),
|
|
115263
|
+
y = _t1$split2[0],
|
|
115264
|
+
m = _t1$split2[1],
|
|
115265
|
+
d = _t1$split2[2];
|
|
115266
|
+
|
|
115267
|
+
var _t2$split = t2.split(':'),
|
|
115268
|
+
_t2$split2 = _slicedToArray(_t2$split, 2),
|
|
115269
|
+
h = _t2$split2[0],
|
|
115270
|
+
minute = _t2$split2[1];
|
|
115271
|
+
|
|
115272
|
+
if (m.length === 1) {
|
|
115273
|
+
m = 0 + m;
|
|
115274
|
+
}
|
|
115275
|
+
|
|
115276
|
+
if (d.length === 1) {
|
|
115277
|
+
d = 0 + d;
|
|
115278
|
+
}
|
|
115279
|
+
|
|
115280
|
+
return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
|
|
115281
|
+
}
|
|
115282
|
+
var wrapperComment = function wrapperComment(user, steps, update, setUpdate) {
|
|
115283
|
+
return function (value) {
|
|
115284
|
+
var index = steps.findIndex(function (step) {
|
|
115285
|
+
return ApprovalType.isPending(step.type, step.approvalStatus);
|
|
115286
|
+
});
|
|
115287
|
+
steps.splice(index, 0, {
|
|
115288
|
+
name: user,
|
|
115289
|
+
time: getCurrentTime(),
|
|
115290
|
+
type: ApprovalType.ONLY_COMMENT,
|
|
115291
|
+
comment: value
|
|
115292
|
+
});
|
|
115293
|
+
setUpdate(!update);
|
|
115294
|
+
};
|
|
115295
|
+
};
|
|
115296
|
+
var wrapperAgree = function wrapperAgree(user, steps, update, setUpdate) {
|
|
115297
|
+
return function (value) {
|
|
115298
|
+
var currentTime = getCurrentTime();
|
|
115299
|
+
var index = steps.findIndex(function (step) {
|
|
115300
|
+
return ApprovalType.isPending(step.type, step.approvalStatus);
|
|
115301
|
+
});
|
|
115302
|
+
|
|
115303
|
+
if (index < 0) {
|
|
115304
|
+
return;
|
|
115305
|
+
}
|
|
115306
|
+
|
|
115307
|
+
var step = steps[index];
|
|
115308
|
+
|
|
115309
|
+
if (step.agreeList.length >= step.approverList.length) {
|
|
115310
|
+
return;
|
|
115311
|
+
}
|
|
115312
|
+
|
|
115313
|
+
step.agreeList.push(user);
|
|
115314
|
+
|
|
115315
|
+
if (step.everyoneAgree) {
|
|
115316
|
+
if (step.agreeList.length === step.approverList.length) {
|
|
115317
|
+
step.approvalStatus = StatusType.AGREE;
|
|
115318
|
+
step.name = user;
|
|
115319
|
+
step.comment = value;
|
|
115320
|
+
step.time = currentTime;
|
|
115321
|
+
} else {
|
|
115322
|
+
// 新增一条记录
|
|
115323
|
+
steps.splice(index, 0, {
|
|
115324
|
+
name: user,
|
|
115325
|
+
time: currentTime,
|
|
115326
|
+
type: ApprovalType.APPROVAL,
|
|
115327
|
+
approvalStatus: StatusType.AGREE,
|
|
115328
|
+
comment: value
|
|
115329
|
+
});
|
|
115330
|
+
}
|
|
115331
|
+
} else {
|
|
115332
|
+
step.approvalStatus = StatusType.AGREE;
|
|
115333
|
+
step.name = user;
|
|
115334
|
+
step.comment = value;
|
|
115335
|
+
step.time = currentTime;
|
|
115336
|
+
}
|
|
115337
|
+
|
|
115338
|
+
var nextNode = steps.find(function (step) {
|
|
115339
|
+
return ApprovalType.isPending(step.type, step.approvalStatus);
|
|
115340
|
+
});
|
|
115341
|
+
|
|
115342
|
+
if (nextNode) {
|
|
115343
|
+
nextNode.time = currentTime;
|
|
115344
|
+
}
|
|
115345
|
+
|
|
115346
|
+
setUpdate(!update);
|
|
115347
|
+
};
|
|
115348
|
+
};
|
|
115349
|
+
var wrapperRefuse = function wrapperRefuse(user, steps, update, setUpdate) {
|
|
115350
|
+
return function (value) {
|
|
115351
|
+
var step = steps.find(function (step) {
|
|
115352
|
+
return ApprovalType.isPending(step.type, step.approvalStatus);
|
|
115353
|
+
});
|
|
115354
|
+
step.refuse = user;
|
|
115355
|
+
step.approvalStatus = StatusType.REFUSE;
|
|
115356
|
+
step.comment = value;
|
|
115357
|
+
step.time = getCurrentTime();
|
|
115358
|
+
setUpdate(!update);
|
|
115359
|
+
};
|
|
115360
|
+
};
|
|
115361
|
+
|
|
115362
|
+
var _excluded$1W = ["className", "onUrge", "onDeleteComment"];
|
|
115363
|
+
var prefixCls$d = 'lm_approval';
|
|
115364
|
+
var colors = ['#36BCF1', '#AE86DC', '#8BD248', '#F5A173'];
|
|
115365
|
+
var cacheColorMap = new Map();
|
|
115366
|
+
|
|
115367
|
+
var getColorWithCache = function getColorWithCache(key) {
|
|
115368
|
+
var color;
|
|
115369
|
+
|
|
115370
|
+
if (cacheColorMap.has(key)) {
|
|
115371
|
+
color = cacheColorMap.get(key);
|
|
115372
|
+
} else {
|
|
115373
|
+
color = colors[parseInt(Math.random() * 4 + '')];
|
|
115374
|
+
cacheColorMap.set(key, color);
|
|
115375
|
+
}
|
|
115376
|
+
|
|
115377
|
+
return color;
|
|
115378
|
+
};
|
|
115379
|
+
|
|
115380
|
+
var getLastChar = function getLastChar(name) {
|
|
115381
|
+
return name.substring(name.length - 1, name.length);
|
|
115382
|
+
};
|
|
115383
|
+
|
|
115384
|
+
var LMDrawer$1 = function LMDrawer$1(props) {
|
|
115385
|
+
var _props$visible = props.visible,
|
|
115386
|
+
visible = _props$visible === void 0 ? false : _props$visible,
|
|
115387
|
+
_props$title = props.title,
|
|
115388
|
+
title = _props$title === void 0 ? '' : _props$title,
|
|
115389
|
+
user = props.user,
|
|
115390
|
+
onClose = props.onClose,
|
|
115391
|
+
children = props.children,
|
|
115392
|
+
_props$steps = props.steps,
|
|
115393
|
+
steps = _props$steps === void 0 ? [] : _props$steps,
|
|
115394
|
+
_props$onComment = props.onComment,
|
|
115395
|
+
onComment = _props$onComment === void 0 ? function () {} : _props$onComment,
|
|
115396
|
+
_props$onRefuse = props.onRefuse,
|
|
115397
|
+
onRefuse = _props$onRefuse === void 0 ? function () {} : _props$onRefuse,
|
|
115398
|
+
_props$onAgree = props.onAgree,
|
|
115399
|
+
onAgree = _props$onAgree === void 0 ? function () {} : _props$onAgree;
|
|
115400
|
+
var status = getStatus(steps);
|
|
115401
|
+
var currentStatusCls = classnames(prefixCls$d + '_title_status');
|
|
115402
|
+
var drawerCls = classnames(prefixCls$d + '_drawer');
|
|
115403
|
+
var statusText = ApprovalType.toText(ApprovalType.APPROVAL, status);
|
|
115404
|
+
|
|
115405
|
+
var handleClose = function handleClose() {
|
|
115406
|
+
visible = false;
|
|
115407
|
+
onClose();
|
|
115408
|
+
};
|
|
115409
|
+
|
|
115410
|
+
return /*#__PURE__*/React__default['default'].createElement(LMDrawer, {
|
|
115411
|
+
className: drawerCls,
|
|
115412
|
+
visible: visible,
|
|
115413
|
+
title: title,
|
|
115414
|
+
onClose: handleClose,
|
|
115415
|
+
extra: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115416
|
+
className: currentStatusCls
|
|
115417
|
+
}, ApprovalType.isPending(ApprovalType.APPROVAL, status) && /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115418
|
+
className: 'icon blue',
|
|
115419
|
+
type: "lmweb-yuanxing-gengduo"
|
|
115420
|
+
}), ApprovalType.isAgree(ApprovalType.APPROVAL, status) && /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115421
|
+
className: 'icon green',
|
|
115422
|
+
type: "lmweb-check-circle-fill"
|
|
115423
|
+
}), ApprovalType.isRefuse(ApprovalType.APPROVAL, status) && /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115424
|
+
className: 'icon grey',
|
|
115425
|
+
type: "lmweb-stop"
|
|
115426
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, statusText)), ApprovalType.isPending(ApprovalType.APPROVAL, status) && currentUserIsApprover(steps, user) && /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], null, /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
115427
|
+
size: "small",
|
|
115428
|
+
onClick: onComment
|
|
115429
|
+
}, "\u4EC5\u8BC4\u8BBA"), /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
115430
|
+
size: "small",
|
|
115431
|
+
onClick: onRefuse,
|
|
115432
|
+
style: {
|
|
115433
|
+
borderColor: '#FA4F53',
|
|
115434
|
+
color: '#FA4F53'
|
|
115435
|
+
}
|
|
115436
|
+
}, "\u62D2\u7EDD"), /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
115437
|
+
size: "small",
|
|
115438
|
+
onClick: onAgree,
|
|
115439
|
+
type: "primary"
|
|
115440
|
+
}, "\u540C\u610F")))
|
|
115441
|
+
}, children);
|
|
115442
|
+
};
|
|
115443
|
+
|
|
115444
|
+
var ApprovalItem = function ApprovalItem(props) {
|
|
115445
|
+
var _props$avator = props.avator,
|
|
115446
|
+
avator = _props$avator === void 0 ? '' : _props$avator,
|
|
115447
|
+
_props$name = props.name,
|
|
115448
|
+
name = _props$name === void 0 ? '' : _props$name,
|
|
115449
|
+
_props$time = props.time,
|
|
115450
|
+
time = _props$time === void 0 ? '' : _props$time,
|
|
115451
|
+
type = props.type,
|
|
115452
|
+
_props$agreeList = props.agreeList,
|
|
115453
|
+
agreeList = _props$agreeList === void 0 ? [] : _props$agreeList,
|
|
115454
|
+
_props$approverList = props.approverList,
|
|
115455
|
+
approverList = _props$approverList === void 0 ? [] : _props$approverList,
|
|
115456
|
+
_props$everyoneAgree = props.everyoneAgree,
|
|
115457
|
+
everyoneAgree = _props$everyoneAgree === void 0 ? false : _props$everyoneAgree,
|
|
115458
|
+
_props$comment = props.comment,
|
|
115459
|
+
comment = _props$comment === void 0 ? null : _props$comment,
|
|
115460
|
+
_props$carbonCopyList = props.carbonCopyList,
|
|
115461
|
+
carbonCopyList = _props$carbonCopyList === void 0 ? [] : _props$carbonCopyList,
|
|
115462
|
+
_props$urge = props.urge,
|
|
115463
|
+
urge = _props$urge === void 0 ? false : _props$urge,
|
|
115464
|
+
approvalStatus = props.approvalStatus,
|
|
115465
|
+
_isSelf = props._isSelf,
|
|
115466
|
+
_user = props._user,
|
|
115467
|
+
onUrge = props.onUrge,
|
|
115468
|
+
onDeleteComment = props.onDeleteComment;
|
|
115469
|
+
var itemCls = classnames(prefixCls$d + '_item');
|
|
115470
|
+
var itemHeaderCls = classnames(itemCls + '_header');
|
|
115471
|
+
var itemBodyCls = classnames(itemCls + '_body', ApprovalType.isPending(type, approvalStatus) ? 'small' : '');
|
|
115472
|
+
|
|
115473
|
+
var getIcon = function getIcon() {
|
|
115474
|
+
if (ApprovalType.isRefuse(type, approvalStatus)) {
|
|
115475
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115476
|
+
className: 'icon red',
|
|
115477
|
+
type: "lmweb-close-circle-fill"
|
|
115478
|
+
});
|
|
115479
|
+
}
|
|
115480
|
+
|
|
115481
|
+
if (ApprovalType.isPending(type, approvalStatus)) {
|
|
115482
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115483
|
+
className: 'icon blue',
|
|
115484
|
+
type: "lmweb-yuanxing-gengduo"
|
|
115485
|
+
});
|
|
115486
|
+
}
|
|
115487
|
+
|
|
115488
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115489
|
+
className: 'icon green',
|
|
115490
|
+
type: "lmweb-check-circle-fill"
|
|
115491
|
+
});
|
|
115492
|
+
};
|
|
115493
|
+
|
|
115494
|
+
var getApprovalText = function getApprovalText() {
|
|
115495
|
+
if (ApprovalType.isPending(type, approvalStatus)) {
|
|
115496
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115497
|
+
className: 'desc blue'
|
|
115498
|
+
}, "\u5BA1\u6838\u4E2D");
|
|
115499
|
+
} else if (ApprovalType.isAgree(type, approvalStatus)) {
|
|
115500
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115501
|
+
className: 'desc green'
|
|
115502
|
+
}, "\u5DF2\u540C\u610F");
|
|
115503
|
+
} else if (ApprovalType.isRefuse(type, approvalStatus)) {
|
|
115504
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115505
|
+
className: 'desc red'
|
|
115506
|
+
}, "\u62D2\u7EDD");
|
|
115507
|
+
} else if (type === ApprovalType.START) {
|
|
115508
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115509
|
+
className: 'desc green'
|
|
115510
|
+
}, "\u53D1\u8D77\u5BA1\u6279");
|
|
115511
|
+
} else if (type === ApprovalType.ONLY_COMMENT) {
|
|
115512
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115513
|
+
className: 'desc grey'
|
|
115514
|
+
}, "\u4EC5\u8BC4\u8BBA");
|
|
115515
|
+
} else if (type === ApprovalType.CARBON_COPY) {
|
|
115516
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115517
|
+
className: 'desc grey'
|
|
115518
|
+
}, "\u5DF2\u6284\u9001", carbonCopyList.length, "\u4EBA");
|
|
115519
|
+
}
|
|
115520
|
+
|
|
115521
|
+
return null;
|
|
115522
|
+
};
|
|
115523
|
+
|
|
115524
|
+
var renderTip = function renderTip() {
|
|
115525
|
+
if (ApprovalType.isPending(type, approvalStatus)) {
|
|
115526
|
+
if (everyoneAgree) {
|
|
115527
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115528
|
+
className: "agree-tip"
|
|
115529
|
+
}, "\u9700\u8981\u6240\u6709\u5BA1\u6279\u4EBA\u90FD\u540C\u610F");
|
|
115530
|
+
}
|
|
115531
|
+
|
|
115532
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115533
|
+
className: "agree-tip"
|
|
115534
|
+
}, "\u81F3\u5C11\u4E00\u4E2A\u5BA1\u6279\u4EBA\u540C\u610F\u5373\u53EF");
|
|
115535
|
+
}
|
|
115536
|
+
|
|
115537
|
+
return null;
|
|
115538
|
+
};
|
|
115539
|
+
|
|
115540
|
+
var renderComment = function renderComment() {
|
|
115541
|
+
if (comment) {
|
|
115542
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115543
|
+
className: 'comment'
|
|
115544
|
+
}, "\u201C", comment, "\u201D", ApprovalType.isOnlyComment(type) && currentUserIsProposer(_user, name) && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115545
|
+
className: 'comment-delete',
|
|
115546
|
+
onClick: onDeleteComment
|
|
115547
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115548
|
+
className: "icon",
|
|
115549
|
+
type: "lmweb-delete"
|
|
115550
|
+
}), " \u5220\u9664")));
|
|
115551
|
+
}
|
|
115552
|
+
|
|
115553
|
+
return null;
|
|
115554
|
+
};
|
|
115555
|
+
|
|
115556
|
+
var renderUrge = function renderUrge() {
|
|
115557
|
+
// 当前用户是提议发起者 && 审核中
|
|
115558
|
+
if (_isSelf && ApprovalType.isPending(type, approvalStatus)) {
|
|
115559
|
+
return /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
115560
|
+
className: "urge",
|
|
115561
|
+
disabled: urge,
|
|
115562
|
+
size: "small",
|
|
115563
|
+
onClick: onUrge
|
|
115564
|
+
}, urge ? '已催办' : '催一下');
|
|
115565
|
+
}
|
|
115566
|
+
|
|
115567
|
+
return null;
|
|
115568
|
+
};
|
|
115569
|
+
|
|
115570
|
+
var renderList = function renderList() {
|
|
115571
|
+
var list = [];
|
|
115572
|
+
|
|
115573
|
+
if (ApprovalType.isCC(type)) {
|
|
115574
|
+
list = carbonCopyList;
|
|
115575
|
+
} else if (ApprovalType.isApproval(type)) {
|
|
115576
|
+
list = approverList.slice(agreeList.length);
|
|
115577
|
+
}
|
|
115578
|
+
|
|
115579
|
+
var separate = type === ApprovalType.APPROVAL && everyoneAgree; // 审批拒绝
|
|
115580
|
+
|
|
115581
|
+
if (ApprovalType.isRefuse(type, approvalStatus)) {
|
|
115582
|
+
return null;
|
|
115583
|
+
} // 审批通过
|
|
115584
|
+
|
|
115585
|
+
|
|
115586
|
+
if (ApprovalType.isAgree(type, approvalStatus)) {
|
|
115587
|
+
return null;
|
|
115588
|
+
}
|
|
115589
|
+
|
|
115590
|
+
if (list.length) {
|
|
115591
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115592
|
+
className: 'lm-approver-wrapper'
|
|
115593
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115594
|
+
className: 'lm-approver-box'
|
|
115595
|
+
}, list.map(function (item, i) {
|
|
115596
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, {
|
|
115597
|
+
key: item + i
|
|
115598
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115599
|
+
className: 'lm-approver-cell'
|
|
115600
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115601
|
+
className: 'lm-approver-circle',
|
|
115602
|
+
style: {
|
|
115603
|
+
backgroundColor: getColorWithCache(item)
|
|
115604
|
+
}
|
|
115605
|
+
}, getLastChar(item)), /*#__PURE__*/React__default['default'].createElement("span", null, item)), separate && i != list.length - 1 && /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115606
|
+
className: 'icon',
|
|
115607
|
+
type: "lmweb-icon_m_put_away"
|
|
115608
|
+
}));
|
|
115609
|
+
})), renderUrge());
|
|
115610
|
+
}
|
|
115611
|
+
|
|
115612
|
+
return null;
|
|
115613
|
+
};
|
|
115614
|
+
|
|
115615
|
+
var renderTime = function renderTime() {
|
|
115616
|
+
// 审核中
|
|
115617
|
+
if (ApprovalType.isPending(type, approvalStatus)) {
|
|
115618
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
115619
|
+
className: 'yellow'
|
|
115620
|
+
}, "\u5DF2\u7B49\u5F85".concat(getDistanceTime(time)));
|
|
115621
|
+
}
|
|
115622
|
+
|
|
115623
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, time);
|
|
115624
|
+
};
|
|
115625
|
+
|
|
115626
|
+
var renderAvator = function renderAvator() {
|
|
115627
|
+
if (ApprovalType.isCC(type)) {
|
|
115628
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115629
|
+
className: 'cc-box'
|
|
115630
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115631
|
+
className: 'cc',
|
|
115632
|
+
type: "lmweb-a-chaosongrenchaosongyonghu-02"
|
|
115633
|
+
})), getIcon());
|
|
115634
|
+
}
|
|
115635
|
+
|
|
115636
|
+
if (ApprovalType.isPending(type, approvalStatus)) {
|
|
115637
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115638
|
+
className: 'cc-box'
|
|
115639
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
115640
|
+
className: 'cc',
|
|
115641
|
+
type: "lmweb-audit"
|
|
115642
|
+
})), getIcon());
|
|
115643
|
+
}
|
|
115644
|
+
|
|
115645
|
+
if (avator) {
|
|
115646
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
115647
|
+
className: 'picture',
|
|
115648
|
+
src: avator,
|
|
115649
|
+
alt: ""
|
|
115650
|
+
}), getIcon());
|
|
115651
|
+
}
|
|
115652
|
+
|
|
115653
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115654
|
+
className: 'subname',
|
|
115655
|
+
style: {
|
|
115656
|
+
backgroundColor: getColorWithCache(name)
|
|
115657
|
+
}
|
|
115658
|
+
}, getLastChar(name)), getIcon());
|
|
115659
|
+
};
|
|
115660
|
+
|
|
115661
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115662
|
+
className: itemCls
|
|
115663
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115664
|
+
className: itemHeaderCls
|
|
115665
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115666
|
+
className: "avator"
|
|
115667
|
+
}, renderAvator()), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115668
|
+
className: "content"
|
|
115669
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115670
|
+
className: 'name'
|
|
115671
|
+
}, name), getApprovalText()), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115672
|
+
className: "right"
|
|
115673
|
+
}, renderTime())), type !== ApprovalType.START && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
115674
|
+
className: itemBodyCls
|
|
115675
|
+
}, renderTip(), renderComment(), renderList()));
|
|
115676
|
+
};
|
|
115677
|
+
|
|
115678
|
+
var Approval = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
115679
|
+
var _props$proposer = props.proposer,
|
|
115680
|
+
proposer = _props$proposer === void 0 ? '' : _props$proposer,
|
|
115681
|
+
_props$user = props.user,
|
|
115682
|
+
user = _props$user === void 0 ? '' : _props$user,
|
|
115683
|
+
_props$steps2 = props.steps,
|
|
115684
|
+
steps = _props$steps2 === void 0 ? [] : _props$steps2,
|
|
115685
|
+
_onUrge2 = props.onUrge,
|
|
115686
|
+
_props$onCarbonCopy = props.onCarbonCopy,
|
|
115687
|
+
onCarbonCopy = _props$onCarbonCopy === void 0 ? function () {} : _props$onCarbonCopy,
|
|
115688
|
+
_props$onDeleteCommen = props.onDeleteComment,
|
|
115689
|
+
_onDeleteComment = _props$onDeleteCommen === void 0 ? function () {} : _props$onDeleteCommen;
|
|
115690
|
+
|
|
115691
|
+
var weakmap = new WeakMap();
|
|
115692
|
+
|
|
115693
|
+
var _isSelf = currentUserIsProposer(proposer, user);
|
|
115694
|
+
|
|
115695
|
+
var mark = false;
|
|
115696
|
+
steps.forEach(function (step) {
|
|
115697
|
+
if (ApprovalType.isPending(step.type, step.approvalStatus) && !step.name) {
|
|
115698
|
+
step.name = '审批';
|
|
115699
|
+
}
|
|
115700
|
+
|
|
115701
|
+
if (ApprovalType.isCC(step.type) && !step.name) {
|
|
115702
|
+
step.name = '抄送人';
|
|
115703
|
+
}
|
|
115704
|
+
|
|
115705
|
+
if (step.refuse) {
|
|
115706
|
+
step.name = step.refuse;
|
|
115707
|
+
}
|
|
115708
|
+
|
|
115709
|
+
if (!step.name) {
|
|
115710
|
+
step.name = 'unkonwn';
|
|
115711
|
+
}
|
|
115712
|
+
|
|
115713
|
+
if (mark) {
|
|
115714
|
+
weakmap.set(step, {
|
|
115715
|
+
hidden: true
|
|
115716
|
+
});
|
|
115717
|
+
} // 拒绝|审核中,后面的不展示
|
|
115718
|
+
|
|
115719
|
+
|
|
115720
|
+
if (ApprovalType.isPending(step.type, step.approvalStatus) || ApprovalType.isRefuse(step.type, step.approvalStatus)) {
|
|
115721
|
+
mark = true;
|
|
115722
|
+
}
|
|
115723
|
+
});
|
|
115724
|
+
var list = []; // 210 012
|
|
115725
|
+
|
|
115726
|
+
var _loop = function _loop(i) {
|
|
115727
|
+
var step = steps[i];
|
|
115728
|
+
var obj = weakmap.get(step);
|
|
115729
|
+
|
|
115730
|
+
if (obj && obj.hidden) {
|
|
115731
|
+
return "continue";
|
|
115732
|
+
} // 抄送
|
|
115733
|
+
|
|
115734
|
+
|
|
115735
|
+
if (ApprovalType.isCC(step.type) && !step.isCarbonCopy) {
|
|
115736
|
+
onCarbonCopy(step, i, steps);
|
|
115737
|
+
step.time = getCurrentTime();
|
|
115738
|
+
step.isCarbonCopy = true;
|
|
115739
|
+
}
|
|
115740
|
+
|
|
115741
|
+
var element = /*#__PURE__*/React__default['default'].createElement(ApprovalItem, _objectSpread(_objectSpread({
|
|
115742
|
+
key: step.name + i,
|
|
115743
|
+
_isSelf: _isSelf,
|
|
115744
|
+
_user: user
|
|
115745
|
+
}, step), {}, {
|
|
115746
|
+
onUrge: function onUrge() {
|
|
115747
|
+
_onUrge2(step, i, steps);
|
|
115748
|
+
},
|
|
115749
|
+
onDeleteComment: function onDeleteComment() {
|
|
115750
|
+
_onDeleteComment(step, i, steps);
|
|
115751
|
+
}
|
|
115752
|
+
}));
|
|
115753
|
+
list.push(element);
|
|
115754
|
+
};
|
|
115755
|
+
|
|
115756
|
+
for (var i = steps.length - 1; i >= 0; i--) {
|
|
115757
|
+
var _ret = _loop(i);
|
|
115758
|
+
|
|
115759
|
+
if (_ret === "continue") continue;
|
|
115760
|
+
}
|
|
115761
|
+
|
|
115762
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, list);
|
|
115763
|
+
});
|
|
115764
|
+
var LMApproval = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
115765
|
+
var className = props.className,
|
|
115766
|
+
_props$onUrge = props.onUrge,
|
|
115767
|
+
onUrge = _props$onUrge === void 0 ? function () {} : _props$onUrge,
|
|
115768
|
+
_props$onDeleteCommen2 = props.onDeleteComment,
|
|
115769
|
+
onDeleteComment = _props$onDeleteCommen2 === void 0 ? function () {} : _props$onDeleteCommen2,
|
|
115770
|
+
others = _objectWithoutProperties(props, _excluded$1W);
|
|
115771
|
+
|
|
115772
|
+
var _useState = React.useState(false),
|
|
115773
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
115774
|
+
update = _useState2[0],
|
|
115775
|
+
setUpdate = _useState2[1];
|
|
115776
|
+
|
|
115777
|
+
var comment = wrapperComment(others.user, others.steps, update, setUpdate);
|
|
115778
|
+
var agree = wrapperAgree(others.user, others.steps, update, setUpdate);
|
|
115779
|
+
var refuse = wrapperRefuse(others.user, others.steps, update, setUpdate);
|
|
115780
|
+
React.useImperativeHandle(ref, function () {
|
|
115781
|
+
return {
|
|
115782
|
+
comment: comment,
|
|
115783
|
+
agree: agree,
|
|
115784
|
+
refuse: refuse
|
|
115785
|
+
};
|
|
115786
|
+
});
|
|
115787
|
+
|
|
115788
|
+
var _onUrge = function _onUrge(step, i, steps) {
|
|
115789
|
+
step.urge = true;
|
|
115790
|
+
onUrge(step, i, steps);
|
|
115791
|
+
setUpdate(!update);
|
|
115792
|
+
};
|
|
115793
|
+
|
|
115794
|
+
return /*#__PURE__*/React__default['default'].createElement(LMDrawer$1, _objectSpread({
|
|
115795
|
+
className: classnames(className, prefixCls$d)
|
|
115796
|
+
}, others), /*#__PURE__*/React__default['default'].createElement(Approval, _objectSpread(_objectSpread({}, others), {}, {
|
|
115797
|
+
onUrge: _onUrge,
|
|
115798
|
+
onDeleteComment: onDeleteComment,
|
|
115799
|
+
__update: update
|
|
115800
|
+
})));
|
|
115801
|
+
});
|
|
115802
|
+
|
|
115803
|
+
var _excluded$1X = ["className"];
|
|
115804
|
+
var prefixCls$e = 'lm_tree';
|
|
115805
|
+
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
115806
|
+
var className = props.className,
|
|
115807
|
+
rest = _objectWithoutProperties(props, _excluded$1X);
|
|
115808
|
+
|
|
115809
|
+
return /*#__PURE__*/React__default['default'].createElement(_Tree__default['default'], _objectSpread(_objectSpread({
|
|
115810
|
+
ref: ref
|
|
115811
|
+
}, rest), {}, {
|
|
115812
|
+
className: classnames(prefixCls$e, className)
|
|
115813
|
+
}));
|
|
115814
|
+
});
|
|
115815
|
+
LmTree.TreeNode = _Tree__default['default'].TreeNode;
|
|
115816
|
+
LmTree.DirectoryTree = _Tree__default['default'].DirectoryTree;
|
|
115817
|
+
|
|
113802
115818
|
Object.defineProperty(exports, 'Card', {
|
|
113803
115819
|
enumerable: true,
|
|
113804
115820
|
get: function () {
|
|
@@ -113835,6 +115851,24 @@
|
|
|
113835
115851
|
return _List__default['default'];
|
|
113836
115852
|
}
|
|
113837
115853
|
});
|
|
115854
|
+
Object.defineProperty(exports, 'TimePicker', {
|
|
115855
|
+
enumerable: true,
|
|
115856
|
+
get: function () {
|
|
115857
|
+
return _TimePicker__default['default'];
|
|
115858
|
+
}
|
|
115859
|
+
});
|
|
115860
|
+
Object.defineProperty(exports, 'Popconfirm', {
|
|
115861
|
+
enumerable: true,
|
|
115862
|
+
get: function () {
|
|
115863
|
+
return _Popconfirm__default['default'];
|
|
115864
|
+
}
|
|
115865
|
+
});
|
|
115866
|
+
Object.defineProperty(exports, 'Progress', {
|
|
115867
|
+
enumerable: true,
|
|
115868
|
+
get: function () {
|
|
115869
|
+
return _Progress__default['default'];
|
|
115870
|
+
}
|
|
115871
|
+
});
|
|
113838
115872
|
Object.defineProperty(exports, 'Rate', {
|
|
113839
115873
|
enumerable: true,
|
|
113840
115874
|
get: function () {
|
|
@@ -113853,6 +115887,12 @@
|
|
|
113853
115887
|
return _TreeSelect__default['default'];
|
|
113854
115888
|
}
|
|
113855
115889
|
});
|
|
115890
|
+
Object.defineProperty(exports, 'Statistic', {
|
|
115891
|
+
enumerable: true,
|
|
115892
|
+
get: function () {
|
|
115893
|
+
return _Statistic__default['default'];
|
|
115894
|
+
}
|
|
115895
|
+
});
|
|
113856
115896
|
Object.defineProperty(exports, 'Steps', {
|
|
113857
115897
|
enumerable: true,
|
|
113858
115898
|
get: function () {
|
|
@@ -113895,10 +115935,36 @@
|
|
|
113895
115935
|
return _Carousel__default['default'];
|
|
113896
115936
|
}
|
|
113897
115937
|
});
|
|
115938
|
+
Object.defineProperty(exports, 'Segmented', {
|
|
115939
|
+
enumerable: true,
|
|
115940
|
+
get: function () {
|
|
115941
|
+
return _Segmented__default['default'];
|
|
115942
|
+
}
|
|
115943
|
+
});
|
|
115944
|
+
Object.defineProperty(exports, 'Collapse', {
|
|
115945
|
+
enumerable: true,
|
|
115946
|
+
get: function () {
|
|
115947
|
+
return _Collapse__default['default'];
|
|
115948
|
+
}
|
|
115949
|
+
});
|
|
115950
|
+
Object.defineProperty(exports, 'Comment', {
|
|
115951
|
+
enumerable: true,
|
|
115952
|
+
get: function () {
|
|
115953
|
+
return _Comment__default['default'];
|
|
115954
|
+
}
|
|
115955
|
+
});
|
|
115956
|
+
Object.defineProperty(exports, 'Timeline', {
|
|
115957
|
+
enumerable: true,
|
|
115958
|
+
get: function () {
|
|
115959
|
+
return _Timeline__default['default'];
|
|
115960
|
+
}
|
|
115961
|
+
});
|
|
113898
115962
|
exports.Alert = Alert;
|
|
115963
|
+
exports.Approval = LMApproval;
|
|
113899
115964
|
exports.AutoComplete = RefAutoComplete;
|
|
113900
115965
|
exports.Button = LMButton;
|
|
113901
115966
|
exports.ButtonTags = ButtonTags;
|
|
115967
|
+
exports.CardTable = LmCardTable$2;
|
|
113902
115968
|
exports.Cascader = LMCascader;
|
|
113903
115969
|
exports.Checkbox = LMCheckBox;
|
|
113904
115970
|
exports.CkFilter = Filter$1;
|