linkmore-design 1.0.51 → 1.0.55
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/{Notification → Affix}/demos/basic.d.ts +0 -0
- package/dist/Affix/index.d.ts +54 -0
- package/dist/{Notification → Affix}/style/index.d.ts +0 -0
- package/dist/Affix/utils.d.ts +15 -0
- package/dist/Alert/ErrorBoundary.d.ts +22 -0
- package/dist/{Notification/demos/button.d.ts → Alert/demos/basic.d.ts} +0 -0
- package/dist/{Notification/demos/icon.d.ts → Alert/demos/visible.d.ts} +0 -0
- package/dist/Alert/index.d.ts +41 -0
- package/dist/Alert/style/index.d.ts +1 -0
- package/dist/Button/style/index.d.ts +1 -1
- package/dist/CardTable/fns/index.d.ts +3 -3
- package/dist/CardTable/{toolbar → pager}/TablePagination.d.ts +0 -0
- package/dist/CardTable/pager/index.d.ts +3 -0
- package/dist/IconFont/index.d.ts +1 -1
- package/dist/LmEditTable/style/index.d.ts +1 -1
- package/dist/LmFilter/LmFilter.d.ts +3 -0
- package/dist/LmFilter/baseFilter/fuzzySearch.d.ts +4 -0
- package/dist/LmFilter/baseFilter/index.d.ts +3 -0
- package/dist/LmFilter/clearFilter/index.d.ts +3 -0
- package/dist/LmFilter/complexFilter/index.d.ts +2 -0
- package/dist/LmFilter/components/CascaderFilter.d.ts +5 -0
- package/dist/LmFilter/components/CheckboxFilter.d.ts +5 -0
- package/dist/LmFilter/components/DateFilter.d.ts +5 -0
- package/dist/LmFilter/components/DropdownFIlter.d.ts +3 -0
- package/dist/LmFilter/components/EmptyFilter.d.ts +2 -0
- package/dist/LmFilter/components/InputFilter.d.ts +4 -0
- package/dist/LmFilter/components/InputSearchClose.d.ts +3 -0
- package/dist/LmFilter/components/SelectFilter.d.ts +5 -0
- package/dist/LmFilter/components/index.d.ts +3 -0
- package/dist/LmFilter/customFilter/index.d.ts +2 -0
- package/dist/LmFilter/demos/basic.d.ts +2 -0
- package/dist/LmFilter/filterFns/index.d.ts +12 -0
- package/dist/LmFilter/hooks/index.d.ts +1 -0
- package/dist/LmFilter/hooks/useDelayedFn.d.ts +2 -0
- package/dist/LmFilter/index.d.ts +2 -0
- package/dist/LmFilter/style/index.d.ts +1 -0
- package/dist/LmFilter/utils.d.ts +9 -0
- package/dist/LmFilter/wrapper/Filter.d.ts +3 -0
- package/dist/LmFilter/wrapper/FilterContainer.d.ts +3 -0
- package/dist/LmFilter/wrapper/FilterRoot.d.ts +3 -0
- package/dist/LmFilter/wrapper/FilterWrapper.d.ts +3 -0
- package/dist/QuickMenu/demos/basic.d.ts +2 -0
- package/dist/QuickMenu/index.d.ts +14 -0
- package/dist/QuickMenu/style/index.d.ts +1 -0
- package/dist/Tag/demos/ExigencyTag.d.ts +2 -0
- package/dist/Tag/index.d.ts +4 -0
- package/dist/Upload/demos/picture-little.d.ts +3 -0
- package/dist/Upload/index.d.ts +5 -1
- package/dist/_util/domTarget.d.ts +7 -0
- package/dist/_util/getDataOrAriaProps.d.ts +1 -0
- package/dist/_util/reactNode.d.ts +7 -0
- package/dist/_util/throttleByAnimationFrame.d.ts +8 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.umd.js +3453 -317
- package/dist/index.umd.min.js +6 -6
- package/dist/message/hooks/useMessage.d.ts +7 -0
- package/dist/message/index.d.ts +63 -4
- package/dist/notification/demos/basic.d.ts +2 -0
- package/dist/notification/demos/button.d.ts +2 -0
- package/dist/notification/demos/icon.d.ts +2 -0
- package/dist/notification/hooks/useNotification.d.ts +7 -0
- package/dist/notification/index.d.ts +54 -0
- package/dist/notification/style/index.d.ts +1 -0
- package/es/Affix/index.d.ts +54 -0
- package/es/Affix/index.js +326 -0
- package/{lib/Notification → es/Affix}/style/index.css +0 -3
- package/es/{Notification → Affix}/style/index.d.ts +0 -0
- package/es/{Notification → Affix}/style/index.js +0 -0
- package/es/Affix/utils.d.ts +15 -0
- package/es/Affix/utils.js +83 -0
- package/es/Alert/ErrorBoundary.d.ts +22 -0
- package/es/Alert/ErrorBoundary.js +65 -0
- package/es/Alert/index.d.ts +41 -0
- package/es/Alert/index.js +192 -0
- package/es/Alert/style/index.css +531 -0
- package/{lib/Notification → es/Alert}/style/index.d.ts +0 -0
- package/es/Alert/style/index.js +1 -0
- package/es/Button/style/{style.css → index.css} +0 -0
- package/es/Button/style/index.d.ts +1 -1
- package/es/Button/style/index.js +1 -1
- package/es/ButtonTags/style/{style.css → index.css} +0 -0
- package/es/ButtonTags/style/index.js +1 -1
- package/es/CardTable/card/PictureTextColumn.js +8 -6
- package/es/CardTable/card/PictureTextRow.js +1 -1
- package/es/CardTable/fns/index.js +38 -8
- package/es/CardTable/{toolbar → pager}/TablePagination.js +0 -0
- package/es/CardTable/pager/index.js +48 -0
- package/{lib/CardTable/style/style.css → es/CardTable/style/index.css} +2 -2
- package/es/CardTable/style/index.js +1 -1
- package/es/CardTable/table/TableRoot.js +20 -18
- package/es/CardTable/table/TableWrapper.js +4 -0
- package/es/CardTable/toolbar/ToolBarBottom.js +8 -27
- package/es/Checkbox/style/{style.css → index.css} +0 -0
- package/es/Checkbox/style/index.js +1 -1
- package/es/CkFilter/style/{style.css → index.css} +0 -0
- package/es/CkFilter/style/index.js +1 -1
- package/es/CustomerService/style/{style.css → index.css} +0 -0
- package/es/CustomerService/style/index.js +1 -1
- package/es/Descriptions/style/index.css +10 -8
- package/es/EditTable/style/{style.css → index.css} +0 -0
- package/es/EditTable/style/index.js +1 -1
- package/es/EnlargeImg/style/{style.css → index.css} +0 -0
- package/es/EnlargeImg/style/index.js +1 -1
- package/es/Filter/style/{style.css → index.css} +0 -0
- package/es/Filter/style/index.js +1 -1
- package/es/IconFont/index.js +3 -2
- package/es/IconSelect/style/{style.css → index.css} +0 -0
- package/es/IconSelect/style/index.js +1 -1
- package/es/Input/style/{style.css → index.css} +0 -0
- package/es/Input/style/index.js +1 -1
- package/es/LeftTable/style/{style.css → index.css} +0 -0
- package/es/LeftTable/style/index.js +1 -1
- package/es/LmEditTable/style/{style.css → index.css} +0 -0
- package/es/LmEditTable/style/index.d.ts +1 -1
- package/es/LmEditTable/style/index.js +1 -1
- package/es/LmFilter/LmFilter.js +27 -0
- package/es/LmFilter/baseFilter/fuzzySearch.js +53 -0
- package/es/LmFilter/baseFilter/index.js +34 -0
- package/es/LmFilter/clearFilter/index.js +35 -0
- package/es/LmFilter/complexFilter/index.js +17 -0
- package/es/LmFilter/components/CascaderFilter.js +159 -0
- package/es/LmFilter/components/CheckboxFilter.js +197 -0
- package/es/LmFilter/components/DateFilter.js +139 -0
- package/es/LmFilter/components/DropdownFIlter.js +230 -0
- package/es/LmFilter/components/EmptyFilter.js +27 -0
- package/es/LmFilter/components/InputFilter.js +52 -0
- package/es/LmFilter/components/InputSearchClose.js +74 -0
- package/es/LmFilter/components/SelectFilter.js +113 -0
- package/es/LmFilter/components/index.js +140 -0
- package/es/LmFilter/customFilter/index.js +17 -0
- package/es/LmFilter/filterFns/index.js +54 -0
- package/es/LmFilter/hooks/index.js +18 -0
- package/es/LmFilter/hooks/useDelayedFn.js +29 -0
- package/es/LmFilter/icon_placeholder.png +0 -0
- package/es/LmFilter/index.js +16 -0
- package/es/LmFilter/style/index.js +3 -0
- package/es/LmFilter/style/style.css +205 -0
- package/es/LmFilter/utils.js +71 -0
- package/es/LmFilter/wrapper/Filter.js +33 -0
- package/es/LmFilter/wrapper/FilterContainer.js +29 -0
- package/es/LmFilter/wrapper/FilterRoot.js +120 -0
- package/es/LmFilter/wrapper/FilterWrapper.js +25 -0
- package/es/LmTable/style/{style.css → index.css} +0 -0
- package/es/LmTable/style/index.js +1 -1
- package/es/OldModal/style/{style.css → index.css} +0 -0
- package/es/OldModal/style/index.js +1 -1
- package/es/PopTable/style/{style.css → index.css} +0 -0
- package/es/PopTable/style/index.js +1 -1
- package/es/ProTable/style/{style.css → index.css} +0 -0
- package/es/ProTable/style/index.js +1 -1
- package/es/QuickMenu/index.d.ts +14 -0
- package/es/QuickMenu/index.js +169 -0
- package/es/QuickMenu/style/index.css +560 -0
- package/es/QuickMenu/style/index.d.ts +1 -0
- package/es/QuickMenu/style/index.js +1 -0
- package/es/Radio/style/{style.css → index.css} +0 -0
- package/es/Radio/style/index.js +1 -1
- package/es/TableRender/style/{style.css → index.css} +0 -0
- package/es/TableRender/style/index.js +1 -1
- package/es/Tag/index.d.ts +4 -0
- package/es/Tag/index.js +48 -2
- package/es/Tag/style/index.css +4 -1
- package/es/Upload/index.d.ts +5 -1
- package/es/Upload/index.js +7 -2
- package/es/Upload/style/index.css +35 -0
- package/es/UploadOss/style/{style.css → index.css} +0 -0
- package/es/UploadOss/style/index.js +1 -1
- package/es/VirtualList/style/{style.css → index.css} +0 -0
- package/es/VirtualList/style/index.js +1 -1
- package/es/_util/domTarget.d.ts +7 -0
- package/es/_util/domTarget.js +20 -0
- package/es/_util/getDataOrAriaProps.d.ts +1 -0
- package/es/_util/getDataOrAriaProps.js +9 -0
- package/es/_util/reactNode.d.ts +7 -0
- package/es/_util/reactNode.js +10 -0
- package/es/_util/throttleByAnimationFrame.d.ts +8 -0
- package/es/_util/throttleByAnimationFrame.js +58 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/es/message/hooks/useMessage.d.ts +7 -0
- package/es/message/hooks/useMessage.js +83 -0
- package/es/message/index.d.ts +63 -4
- package/es/message/index.js +241 -12
- package/es/message/style/index.css +28 -1
- package/es/notification/hooks/useNotification.d.ts +7 -0
- package/es/notification/hooks/useNotification.js +54 -0
- package/es/notification/index.d.ts +54 -0
- package/es/notification/index.js +342 -0
- package/es/notification/style/index.css +546 -0
- package/es/notification/style/index.d.ts +1 -0
- package/es/notification/style/index.js +1 -0
- package/lib/Affix/index.d.ts +54 -0
- package/lib/Affix/index.js +349 -0
- package/{es/Notification → lib/Affix}/style/index.css +0 -3
- package/lib/Affix/style/index.d.ts +1 -0
- package/lib/{Notification → Affix}/style/index.js +0 -0
- package/lib/Affix/utils.d.ts +15 -0
- package/lib/Affix/utils.js +104 -0
- package/lib/Alert/ErrorBoundary.d.ts +22 -0
- package/lib/Alert/ErrorBoundary.js +79 -0
- package/lib/Alert/index.d.ts +41 -0
- package/lib/Alert/index.js +215 -0
- package/lib/Alert/style/index.css +531 -0
- package/lib/Alert/style/index.d.ts +1 -0
- package/lib/Alert/style/index.js +3 -0
- package/lib/Button/style/{style.css → index.css} +0 -0
- package/lib/Button/style/index.d.ts +1 -1
- package/lib/Button/style/index.js +1 -1
- package/lib/ButtonTags/style/{style.css → index.css} +0 -0
- package/lib/ButtonTags/style/index.js +1 -1
- package/lib/CardTable/card/PictureTextColumn.js +8 -6
- package/lib/CardTable/card/PictureTextRow.js +1 -1
- package/lib/CardTable/fns/index.js +38 -8
- package/lib/CardTable/{toolbar → pager}/TablePagination.js +0 -0
- package/lib/CardTable/pager/index.js +48 -0
- package/{es/CardTable/style/style.css → lib/CardTable/style/index.css} +2 -2
- package/lib/CardTable/style/index.js +1 -1
- package/lib/CardTable/table/TableRoot.js +20 -18
- package/lib/CardTable/table/TableWrapper.js +4 -0
- package/lib/CardTable/toolbar/ToolBarBottom.js +8 -27
- package/lib/Checkbox/style/{style.css → index.css} +0 -0
- package/lib/Checkbox/style/index.js +1 -1
- package/lib/CkFilter/style/{style.css → index.css} +0 -0
- package/lib/CkFilter/style/index.js +1 -1
- package/lib/CustomerService/style/{style.css → index.css} +0 -0
- package/lib/CustomerService/style/index.js +1 -1
- package/lib/Descriptions/style/index.css +10 -8
- package/lib/EditTable/style/{style.css → index.css} +0 -0
- package/lib/EditTable/style/index.js +1 -1
- package/lib/EnlargeImg/style/{style.css → index.css} +0 -0
- package/lib/EnlargeImg/style/index.js +1 -1
- package/lib/Filter/style/{style.css → index.css} +0 -0
- package/lib/Filter/style/index.js +1 -1
- package/lib/IconFont/index.js +3 -2
- package/lib/IconSelect/style/{style.css → index.css} +0 -0
- package/lib/IconSelect/style/index.js +1 -1
- package/lib/Input/style/{style.css → index.css} +0 -0
- package/lib/Input/style/index.js +1 -1
- package/lib/LeftTable/style/{style.css → index.css} +0 -0
- package/lib/LeftTable/style/index.js +1 -1
- package/lib/LmEditTable/style/{style.css → index.css} +0 -0
- package/lib/LmEditTable/style/index.d.ts +1 -1
- package/lib/LmEditTable/style/index.js +1 -1
- package/lib/LmFilter/LmFilter.js +27 -0
- package/lib/LmFilter/baseFilter/fuzzySearch.js +53 -0
- package/lib/LmFilter/baseFilter/index.js +34 -0
- package/lib/LmFilter/clearFilter/index.js +35 -0
- package/lib/LmFilter/complexFilter/index.js +17 -0
- package/lib/LmFilter/components/CascaderFilter.js +159 -0
- package/lib/LmFilter/components/CheckboxFilter.js +197 -0
- package/lib/LmFilter/components/DateFilter.js +139 -0
- package/lib/LmFilter/components/DropdownFIlter.js +230 -0
- package/lib/LmFilter/components/EmptyFilter.js +27 -0
- package/lib/LmFilter/components/InputFilter.js +52 -0
- package/lib/LmFilter/components/InputSearchClose.js +74 -0
- package/lib/LmFilter/components/SelectFilter.js +113 -0
- package/lib/LmFilter/components/index.js +140 -0
- package/lib/LmFilter/customFilter/index.js +17 -0
- package/lib/LmFilter/filterFns/index.js +54 -0
- package/lib/LmFilter/hooks/index.js +18 -0
- package/lib/LmFilter/hooks/useDelayedFn.js +29 -0
- package/lib/LmFilter/icon_placeholder.png +0 -0
- package/lib/LmFilter/index.js +16 -0
- package/lib/LmFilter/style/index.js +3 -0
- package/lib/LmFilter/style/style.css +205 -0
- package/lib/LmFilter/utils.js +71 -0
- package/lib/LmFilter/wrapper/Filter.js +33 -0
- package/lib/LmFilter/wrapper/FilterContainer.js +29 -0
- package/lib/LmFilter/wrapper/FilterRoot.js +120 -0
- package/lib/LmFilter/wrapper/FilterWrapper.js +25 -0
- package/lib/LmTable/style/{style.css → index.css} +0 -0
- package/lib/LmTable/style/index.js +1 -1
- package/lib/OldModal/style/{style.css → index.css} +0 -0
- package/lib/OldModal/style/index.js +1 -1
- package/lib/PopTable/style/{style.css → index.css} +0 -0
- package/lib/PopTable/style/index.js +1 -1
- package/lib/ProTable/style/{style.css → index.css} +0 -0
- package/lib/ProTable/style/index.js +1 -1
- package/lib/QuickMenu/index.d.ts +14 -0
- package/lib/QuickMenu/index.js +187 -0
- package/lib/QuickMenu/style/index.css +560 -0
- package/lib/QuickMenu/style/index.d.ts +1 -0
- package/lib/QuickMenu/style/index.js +3 -0
- package/lib/Radio/style/{style.css → index.css} +0 -0
- package/lib/Radio/style/index.js +1 -1
- package/lib/TableRender/style/{style.css → index.css} +0 -0
- package/lib/TableRender/style/index.js +1 -1
- package/lib/Tag/index.d.ts +4 -0
- package/lib/Tag/index.js +48 -1
- package/lib/Tag/style/index.css +4 -1
- package/lib/Upload/index.d.ts +5 -1
- package/lib/Upload/index.js +8 -2
- package/lib/Upload/style/index.css +35 -0
- package/lib/UploadOss/style/{style.css → index.css} +0 -0
- package/lib/UploadOss/style/index.js +1 -1
- package/lib/VirtualList/style/{style.css → index.css} +0 -0
- package/lib/VirtualList/style/index.js +1 -1
- package/lib/_util/domTarget.d.ts +7 -0
- package/lib/_util/domTarget.js +31 -0
- package/lib/_util/getDataOrAriaProps.d.ts +1 -0
- package/lib/_util/getDataOrAriaProps.js +16 -0
- package/lib/_util/reactNode.d.ts +7 -0
- package/lib/_util/reactNode.js +24 -0
- package/lib/_util/throttleByAnimationFrame.d.ts +8 -0
- package/lib/_util/throttleByAnimationFrame.js +72 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +11 -3
- package/lib/message/hooks/useMessage.d.ts +7 -0
- package/lib/message/hooks/useMessage.js +101 -0
- package/lib/message/index.d.ts +63 -4
- package/lib/message/index.js +262 -16
- package/lib/message/style/index.css +28 -1
- package/lib/notification/hooks/useNotification.d.ts +7 -0
- package/lib/notification/hooks/useNotification.js +69 -0
- package/lib/notification/index.d.ts +54 -0
- package/lib/notification/index.js +365 -0
- package/lib/notification/style/index.css +546 -0
- package/lib/notification/style/index.d.ts +1 -0
- package/lib/notification/style/index.js +3 -0
- package/package.json +5 -2
- package/dist/Notification/index.d.ts +0 -7
- package/es/Notification/index.d.ts +0 -7
- package/es/Notification/index.js +0 -10
- package/lib/Notification/index.d.ts +0 -7
- package/lib/Notification/index.js +0 -23
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _TablePagination = _interopRequireDefault(require("./TablePagination"));
|
|
13
|
+
|
|
14
|
+
var CardTablePager = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
15
|
+
var table = _ref.table;
|
|
16
|
+
var pagination = table.pagination,
|
|
17
|
+
pagerConfig = table.pagerConfig; // left || right:插槽
|
|
18
|
+
|
|
19
|
+
var left = pagerConfig.left,
|
|
20
|
+
right = pagerConfig.right; // 底部工具栏左侧插槽: 默认空 div 标签占位
|
|
21
|
+
|
|
22
|
+
var LeftSlot = function LeftSlot() {
|
|
23
|
+
if (!left) {
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
;
|
|
28
|
+
return typeof left === 'function' ? left(table) : left;
|
|
29
|
+
}; // 底部工具栏右侧插槽
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
var RighSlot = function RighSlot() {
|
|
33
|
+
if (!right) {
|
|
34
|
+
return pagination ? /*#__PURE__*/_react.default.createElement(_TablePagination.default, {
|
|
35
|
+
table: table
|
|
36
|
+
}) : null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return typeof right === 'function' ? right(table, _TablePagination.default) : right;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
className: "lm_card_table_pager"
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(LeftSlot, null), /*#__PURE__*/_react.default.createElement(RighSlot, null));
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
var _default = CardTablePager;
|
|
48
|
+
exports.default = _default;
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
.lm_card_table_wrapper .lm_card_table_container .lm_card_table .lm_card_table_body .lm_card_table_body_row .lm_card_table_body_cell.cell_checked {
|
|
25
25
|
border-color: var(--primary-color);
|
|
26
26
|
}
|
|
27
|
-
.lm_card_table_wrapper .
|
|
27
|
+
.lm_card_table_wrapper .lm_card_table_pager {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: space-between;
|
|
31
31
|
}
|
|
32
|
-
.lm_card_table_wrapper .
|
|
32
|
+
.lm_card_table_wrapper .lm_card_table_pager .lm_card_table_pagination {
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
35
|
height: 48px;
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
|
|
12
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
13
|
-
|
|
14
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
13
|
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
15
|
+
|
|
16
16
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
17
17
|
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -21,7 +21,8 @@ var _TableWrapper = _interopRequireDefault(require("./TableWrapper"));
|
|
|
21
21
|
|
|
22
22
|
var _fns = _interopRequireDefault(require("../fns"));
|
|
23
23
|
|
|
24
|
-
var _excluded = ["
|
|
24
|
+
var _excluded = ["checkKeys", "trigger", "checkMethod"],
|
|
25
|
+
_excluded2 = ["rowConfig", "cellConfig", "defaultConfig", "checkboxConfig", "pagerConfig", "toolbarConfig"];
|
|
25
26
|
|
|
26
27
|
var reducer = function reducer(state, action) {
|
|
27
28
|
var page = action.page,
|
|
@@ -70,6 +71,9 @@ var getInitialState = function getInitialState(props) {
|
|
|
70
71
|
checkKeys = _props$checkboxConfig2 === void 0 ? [] : _props$checkboxConfig2,
|
|
71
72
|
_props$checkboxConfig3 = _props$checkboxConfig.trigger,
|
|
72
73
|
trigger = _props$checkboxConfig3 === void 0 ? 'default' : _props$checkboxConfig3,
|
|
74
|
+
_props$checkboxConfig4 = _props$checkboxConfig.checkMethod,
|
|
75
|
+
checkMethod = _props$checkboxConfig4 === void 0 ? true : _props$checkboxConfig4,
|
|
76
|
+
resetCheckCOnfig = (0, _objectWithoutProperties2.default)(_props$checkboxConfig, _excluded),
|
|
73
77
|
_props$dataSource = props.dataSource,
|
|
74
78
|
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
75
79
|
cellKey = props.cellKey;
|
|
@@ -78,11 +82,12 @@ var getInitialState = function getInitialState(props) {
|
|
|
78
82
|
}) || [];
|
|
79
83
|
return {
|
|
80
84
|
// 复选框的配置
|
|
81
|
-
checkboxConfig: {
|
|
85
|
+
checkboxConfig: (0, _objectSpread2.default)({
|
|
82
86
|
checkKeys: checkKeys,
|
|
83
87
|
checkValues: checkValues,
|
|
84
|
-
trigger: trigger
|
|
85
|
-
|
|
88
|
+
trigger: trigger,
|
|
89
|
+
checkMethod: checkMethod
|
|
90
|
+
}, resetCheckCOnfig),
|
|
86
91
|
// 分页的配置
|
|
87
92
|
page: {
|
|
88
93
|
pageIndex: 1,
|
|
@@ -114,18 +119,17 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
|
|
|
114
119
|
var _useState = (0, _react.useState)(false),
|
|
115
120
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
116
121
|
isFullScreen = _useState2[0],
|
|
117
|
-
setIsFullScreen = _useState2[1];
|
|
122
|
+
setIsFullScreen = _useState2[1]; // 配置对象收集
|
|
118
123
|
|
|
119
|
-
var _state$checkboxConfig = state.checkboxConfig,
|
|
120
|
-
checkKeys = _state$checkboxConfig.checkKeys,
|
|
121
|
-
checkValues = _state$checkboxConfig.checkValues; // 配置对象收集
|
|
122
124
|
|
|
123
125
|
var configProps = (0, _react.useMemo)(function () {
|
|
124
126
|
var rowConfig = props.rowConfig,
|
|
125
127
|
cellConfig = props.cellConfig,
|
|
126
128
|
defaultConfig = props.defaultConfig,
|
|
127
129
|
checkboxConfig = props.checkboxConfig,
|
|
128
|
-
|
|
130
|
+
pagerConfig = props.pagerConfig,
|
|
131
|
+
toolbarConfig = props.toolbarConfig,
|
|
132
|
+
resetProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
129
133
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), {}, {
|
|
130
134
|
rowConfig: (0, _objectSpread2.default)({
|
|
131
135
|
// 行配置
|
|
@@ -137,22 +141,20 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
|
|
|
137
141
|
height: 282
|
|
138
142
|
}, cellConfig),
|
|
139
143
|
checkboxConfig: (0, _objectSpread2.default)({}, checkboxConfig),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
toolbarBottom: {}
|
|
143
|
-
},
|
|
144
|
+
pagerConfig: (0, _objectSpread2.default)({}, pagerConfig),
|
|
145
|
+
toolbarConfig: (0, _objectSpread2.default)({}, toolbarConfig),
|
|
144
146
|
defaultConfig: defaultConfig
|
|
145
147
|
});
|
|
146
148
|
}, [props]); // 方法收集
|
|
147
149
|
|
|
148
|
-
var
|
|
150
|
+
var eventProps = (0, _react.useMemo)(function () {
|
|
149
151
|
return (0, _fns.default)({
|
|
150
152
|
state: state,
|
|
151
153
|
dispatch: dispatch,
|
|
152
154
|
props: props
|
|
153
155
|
});
|
|
154
156
|
}, [state, dispatch, props]);
|
|
155
|
-
var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, configProps),
|
|
157
|
+
var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, configProps), eventProps), {}, {
|
|
156
158
|
state: state,
|
|
157
159
|
dispatch: dispatch
|
|
158
160
|
}); // 向外暴露出的方法
|
|
@@ -162,7 +164,7 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
|
|
|
162
164
|
getCheckboxRecords: function getCheckboxRecords() {
|
|
163
165
|
return state.checkboxConfig.checkValues;
|
|
164
166
|
}
|
|
165
|
-
},
|
|
167
|
+
}, eventProps);
|
|
166
168
|
});
|
|
167
169
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isFullScreen && /*#__PURE__*/_react.default.createElement(_TableWrapper.default, {
|
|
168
170
|
table: table
|
|
@@ -13,6 +13,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _TableContainer = _interopRequireDefault(require("./TableContainer"));
|
|
15
15
|
|
|
16
|
+
var _pager = _interopRequireDefault(require("../pager"));
|
|
17
|
+
|
|
16
18
|
var _ToolBarBottom = _interopRequireDefault(require("../toolbar/ToolBarBottom"));
|
|
17
19
|
|
|
18
20
|
// 包裹表格外围区域: 工具栏操作区域/主体区域/工具栏底部区域
|
|
@@ -27,6 +29,8 @@ var LmCardTableWrapper = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
27
29
|
}, style)
|
|
28
30
|
}, /*#__PURE__*/_react.default.createElement(_TableContainer.default, {
|
|
29
31
|
table: table
|
|
32
|
+
}), /*#__PURE__*/_react.default.createElement(_pager.default, {
|
|
33
|
+
table: table
|
|
30
34
|
}), /*#__PURE__*/_react.default.createElement(_ToolBarBottom.default, {
|
|
31
35
|
table: table
|
|
32
36
|
}));
|
|
@@ -9,38 +9,19 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var _TablePagination = _interopRequireDefault(require("./TablePagination"));
|
|
13
|
-
|
|
14
12
|
var CardToolBarBottom = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
15
13
|
var table = _ref.table;
|
|
16
14
|
var pagination = table.pagination,
|
|
17
|
-
|
|
18
|
-
toolbarBottom = _table$toolbarConfig.toolbarBottom,
|
|
19
|
-
pager = _table$toolbarConfig.pager; // toolbarBottom与pager一致: 用于插槽
|
|
20
|
-
|
|
21
|
-
var _ref2 = toolbarBottom || pager,
|
|
22
|
-
left = _ref2.left,
|
|
23
|
-
right = _ref2.right;
|
|
24
|
-
|
|
25
|
-
var LeftSlot = function LeftSlot() {
|
|
26
|
-
return left;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var RighSlot = function RighSlot() {
|
|
30
|
-
if (!right) {
|
|
31
|
-
return pagination && /*#__PURE__*/_react.default.createElement(_TablePagination.default, {
|
|
32
|
-
table: table
|
|
33
|
-
});
|
|
34
|
-
}
|
|
15
|
+
toolbarBottom = table.toolbarConfig.toolbarBottom;
|
|
35
16
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
17
|
+
if (!toolbarBottom) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
40
20
|
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
21
|
+
return typeof toolbarBottom === 'function' ? toolbarBottom(table) : toolbarBottom // <div className='lm_card_table_toolbar_bottom'>
|
|
22
|
+
// <ToolbarBottomSlot />
|
|
23
|
+
// </div>
|
|
24
|
+
;
|
|
44
25
|
});
|
|
45
26
|
|
|
46
27
|
var _default = CardToolBarBottom;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -508,29 +508,31 @@ html {
|
|
|
508
508
|
margin-bottom: 8px;
|
|
509
509
|
}
|
|
510
510
|
.lm_descriptions .ant-descriptions-header .ant-descriptions-title {
|
|
511
|
+
color: var(--color-85);
|
|
512
|
+
font-size: 14px;
|
|
511
513
|
/* 正文/苹方 14px Medium */
|
|
512
514
|
font-family: PingFangSC-Medium;
|
|
513
|
-
font-size: 14px;
|
|
514
515
|
line-height: 22px;
|
|
515
516
|
letter-spacing: 0px;
|
|
516
|
-
color: var(--color-85);
|
|
517
517
|
}
|
|
518
518
|
.lm_descriptions .ant-descriptions-item {
|
|
519
|
+
padding-right: 24px;
|
|
519
520
|
padding-bottom: 8px;
|
|
520
521
|
}
|
|
521
522
|
.lm_descriptions .ant-descriptions-item .ant-descriptions-item-container {
|
|
522
|
-
|
|
523
|
+
color: var(--color-85);
|
|
523
524
|
font-size: 12px;
|
|
525
|
+
font-family: PingFangSC-Regular;
|
|
524
526
|
line-height: 20px;
|
|
525
|
-
color: var(--color-85);
|
|
526
527
|
}
|
|
527
528
|
.lm_descriptions .ant-descriptions-item .ant-descriptions-item-label,
|
|
528
529
|
.lm_descriptions .ant-descriptions-item .ant-descriptions-item-content {
|
|
529
|
-
|
|
530
|
+
color: var(--color-85);
|
|
530
531
|
font-size: 12px;
|
|
532
|
+
font-family: PingFangSC-Regular;
|
|
531
533
|
line-height: 20px;
|
|
532
|
-
color: var(--color-85);
|
|
533
534
|
}
|
|
534
|
-
.lm_descriptions_default .ant-descriptions-item[colspan='1']
|
|
535
|
-
width:
|
|
535
|
+
.lm_descriptions_default .ant-descriptions-item[colspan='1'] {
|
|
536
|
+
min-width: 330px;
|
|
537
|
+
max-width: 376px;
|
|
536
538
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/Filter/style/index.js
CHANGED
package/es/IconFont/index.js
CHANGED
|
@@ -8,8 +8,9 @@ exports.default = void 0;
|
|
|
8
8
|
var _icons = require("@ant-design/icons");
|
|
9
9
|
|
|
10
10
|
var IconFont = (0, _icons.createFromIconfontCN)({
|
|
11
|
-
|
|
12
|
-
scriptUrl: require('./font/iconfont.js')
|
|
11
|
+
scriptUrl: '//at.alicdn.com/t/c/font_2966019_7jeb9gjjk63.js' // 在 iconfont.cn 上生成
|
|
12
|
+
// scriptUrl: require('./font/iconfont.js'),
|
|
13
|
+
|
|
13
14
|
});
|
|
14
15
|
var _default = IconFont;
|
|
15
16
|
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
package/es/Input/style/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './index.less';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.default = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _FilterRoot = _interopRequireDefault(require("./wrapper/FilterRoot"));
|
|
17
|
+
|
|
18
|
+
var LmFilter = function LmFilter(props, ref) {
|
|
19
|
+
var defaultRef = (0, _react.useRef)(null);
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_FilterRoot.default, (0, _extends2.default)({
|
|
21
|
+
ref: ref || defaultRef
|
|
22
|
+
}, props));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var _default = /*#__PURE__*/(0, _react.forwardRef)(LmFilter);
|
|
26
|
+
|
|
27
|
+
exports.default = _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.default = void 0;
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
14
|
+
var _InputSearchClose = _interopRequireDefault(require("../components/InputSearchClose"));
|
|
15
|
+
|
|
16
|
+
var FuzzySearch = function FuzzySearch(_ref) {
|
|
17
|
+
var instance = _ref.instance;
|
|
18
|
+
var inputRef = (0, _react.useRef)(null);
|
|
19
|
+
var state = instance.state,
|
|
20
|
+
setFilterValue = instance.setFilterValue,
|
|
21
|
+
size = instance.size,
|
|
22
|
+
placeholder = instance.placeholder,
|
|
23
|
+
searchKey = instance.searchKey; // 默认值
|
|
24
|
+
|
|
25
|
+
var defaultValue = (0, _react.useMemo)(function () {
|
|
26
|
+
var _state$basicFilter;
|
|
27
|
+
|
|
28
|
+
return ((_state$basicFilter = state.basicFilter) === null || _state$basicFilter === void 0 ? void 0 : _state$basicFilter[searchKey]) || '';
|
|
29
|
+
}, [state.basicFilter]);
|
|
30
|
+
|
|
31
|
+
var onSearch = function onSearch(val) {
|
|
32
|
+
setFilterValue(val, searchKey);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
(0, _react.useEffect)(function () {
|
|
36
|
+
if (!defaultValue) {
|
|
37
|
+
inputRef.current.setValue('');
|
|
38
|
+
}
|
|
39
|
+
}, [state.basicFilter]);
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
+
className: "lm_filter_search"
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement(_InputSearchClose.default, {
|
|
43
|
+
ref: inputRef,
|
|
44
|
+
allowClear: true,
|
|
45
|
+
defaultValue: defaultValue,
|
|
46
|
+
size: size,
|
|
47
|
+
placeholder: placeholder,
|
|
48
|
+
onSearch: onSearch
|
|
49
|
+
}));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
var _default = FuzzySearch;
|
|
53
|
+
exports.default = _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _fuzzySearch = _interopRequireDefault(require("./fuzzySearch"));
|
|
13
|
+
|
|
14
|
+
var _components = _interopRequireDefault(require("../components"));
|
|
15
|
+
|
|
16
|
+
// 二级过滤 => 基础过滤组件
|
|
17
|
+
var LmFilterBase = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
18
|
+
var instance = _ref.instance;
|
|
19
|
+
var dataSource = instance.dataSource;
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
+
className: "lm_filter_basic"
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement(_fuzzySearch.default, {
|
|
23
|
+
instance: instance
|
|
24
|
+
}), dataSource.map(function (v, index) {
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_components.default, {
|
|
26
|
+
key: (v === null || v === void 0 ? void 0 : v.field) || index,
|
|
27
|
+
instance: instance,
|
|
28
|
+
item: v
|
|
29
|
+
});
|
|
30
|
+
}));
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _default = LmFilterBase;
|
|
34
|
+
exports.default = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _linkmoreDesign = require("linkmore-design");
|
|
13
|
+
|
|
14
|
+
var LmFilterClear = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
15
|
+
var instance = _ref.instance;
|
|
16
|
+
var state = instance.state,
|
|
17
|
+
dispatch = instance.dispatch;
|
|
18
|
+
|
|
19
|
+
var handleClear = function handleClear() {
|
|
20
|
+
console.log('state', state);
|
|
21
|
+
dispatch({
|
|
22
|
+
type: 'reset'
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
+
className: "lm_filter_clear"
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
29
|
+
type: "link",
|
|
30
|
+
onClick: handleClear
|
|
31
|
+
}, "\u4E00\u952E\u6E05\u7A7A"));
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
var _default = LmFilterClear;
|
|
35
|
+
exports.default = _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var LmFilterComplex = function LmFilterComplex(e) {
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "LmFilterComplex");
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
var _default = LmFilterComplex;
|
|
17
|
+
exports.default = _default;
|