linkmore-design 1.0.49 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/Button/style/index.d.ts +1 -1
  2. package/dist/CardTable/fns/index.d.ts +9 -0
  3. package/dist/CardTable/hooks/usePagination.d.ts +19 -0
  4. package/dist/CardTable/toolbar/TablePagination.d.ts +4 -0
  5. package/dist/CardTable/toolbar/ToolBarBottom.d.ts +3 -0
  6. package/dist/List/demos/basic.d.ts +2 -0
  7. package/dist/List/index.d.ts +2 -0
  8. package/dist/List/style/index.d.ts +1 -0
  9. package/dist/LmEditTable/DndContainer.d.ts +5 -0
  10. package/dist/LmEditTable/DragHandle.d.ts +4 -0
  11. package/dist/LmEditTable/EditTable.d.ts +31 -0
  12. package/dist/LmEditTable/demos/Editbasic.d.ts +2 -0
  13. package/dist/LmEditTable/demos/basic.d.ts +2 -0
  14. package/dist/LmEditTable/demos/formEditTable.d.ts +2 -0
  15. package/dist/LmEditTable/demos/hoverEdit.d.ts +2 -0
  16. package/dist/LmEditTable/index.d.ts +2 -0
  17. package/dist/LmEditTable/sortableBox.d.ts +5 -0
  18. package/dist/LmEditTable/sortableItem.d.ts +2 -0
  19. package/dist/LmEditTable/style/index.d.ts +1 -0
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.umd.js +3853 -689
  22. package/dist/index.umd.min.js +6 -6
  23. package/dist/message/hooks/useMessage.d.ts +7 -0
  24. package/dist/message/index.d.ts +63 -4
  25. package/es/Button/style/{style.css → index.css} +0 -0
  26. package/es/Button/style/index.d.ts +1 -1
  27. package/es/Button/style/index.js +1 -1
  28. package/es/ButtonTags/style/{style.css → index.css} +0 -0
  29. package/es/ButtonTags/style/index.js +1 -1
  30. package/es/CardTable/card/PictureTextColumn.js +11 -6
  31. package/es/CardTable/card/PictureTextRow.js +11 -6
  32. package/es/CardTable/fns/index.js +106 -0
  33. package/es/CardTable/hooks/usePagination.js +128 -0
  34. package/es/CardTable/index.js +3 -0
  35. package/{lib/CardTable/style/style.css → es/CardTable/style/index.css} +13 -1
  36. package/es/CardTable/style/index.js +1 -1
  37. package/es/CardTable/table/TableRoot.js +43 -64
  38. package/es/CardTable/table/TableWrapper.js +4 -0
  39. package/es/CardTable/toolbar/TablePagination.js +62 -0
  40. package/es/CardTable/toolbar/ToolBarBottom.js +47 -0
  41. package/es/Checkbox/style/{style.css → index.css} +0 -0
  42. package/es/Checkbox/style/index.js +1 -1
  43. package/es/CkFilter/style/{style.css → index.css} +0 -0
  44. package/es/CkFilter/style/index.js +1 -1
  45. package/es/CustomTableOption/columnsSort.js +5 -5
  46. package/es/CustomTableOption/filterSort.js +3 -3
  47. package/es/CustomTableOption/index.js +1 -2
  48. package/es/CustomerService/style/{style.css → index.css} +0 -0
  49. package/es/CustomerService/style/index.js +1 -1
  50. package/es/EditTable/style/{style.css → index.css} +0 -0
  51. package/es/EditTable/style/index.js +1 -1
  52. package/es/EnlargeImg/style/{style.css → index.css} +0 -0
  53. package/es/EnlargeImg/style/index.js +1 -1
  54. package/es/Filter/style/{style.css → index.css} +0 -0
  55. package/es/Filter/style/index.js +1 -1
  56. package/es/IconSelect/style/{style.css → index.css} +0 -0
  57. package/es/IconSelect/style/index.js +1 -1
  58. package/{lib/Input/style/style.css → es/Input/style/index.css} +21 -1
  59. package/es/Input/style/index.js +1 -1
  60. package/es/LeftTable/style/{style.css → index.css} +0 -0
  61. package/es/LeftTable/style/index.js +1 -1
  62. package/es/List/index.d.ts +2 -0
  63. package/es/List/index.js +3 -0
  64. package/es/List/style/index.css +505 -0
  65. package/es/List/style/index.d.ts +1 -0
  66. package/es/List/style/index.js +1 -0
  67. package/es/LmEditTable/DndContainer.d.ts +5 -0
  68. package/es/LmEditTable/DndContainer.js +35 -0
  69. package/es/LmEditTable/DragHandle.d.ts +4 -0
  70. package/es/LmEditTable/DragHandle.js +22 -0
  71. package/es/LmEditTable/EditTable.d.ts +31 -0
  72. package/es/LmEditTable/EditTable.js +892 -0
  73. package/es/LmEditTable/index.d.ts +2 -0
  74. package/es/LmEditTable/index.js +2 -0
  75. package/es/LmEditTable/sortableBox.d.ts +5 -0
  76. package/es/LmEditTable/sortableBox.js +13 -0
  77. package/es/LmEditTable/sortableItem.d.ts +2 -0
  78. package/es/LmEditTable/sortableItem.js +43 -0
  79. package/es/LmEditTable/style/index.css +574 -0
  80. package/es/LmEditTable/style/index.d.ts +1 -0
  81. package/es/LmEditTable/style/index.js +1 -0
  82. package/es/LmTable/Table.js +16 -6
  83. package/{lib/LmTable/style/style.css → es/LmTable/style/index.css} +6 -0
  84. package/es/LmTable/style/index.js +1 -1
  85. package/es/OldModal/style/{style.css → index.css} +0 -0
  86. package/es/OldModal/style/index.js +1 -1
  87. package/es/PopTable/style/{style.css → index.css} +0 -0
  88. package/es/PopTable/style/index.js +1 -1
  89. package/es/ProTable/style/{style.css → index.css} +0 -0
  90. package/es/ProTable/style/index.js +1 -1
  91. package/es/Radio/style/{style.css → index.css} +0 -0
  92. package/es/Radio/style/index.js +1 -1
  93. package/es/Select/style/index.css +3 -0
  94. package/es/TableRender/style/{style.css → index.css} +0 -0
  95. package/es/TableRender/style/index.js +1 -1
  96. package/es/UploadOss/style/{style.css → index.css} +0 -0
  97. package/es/UploadOss/style/index.js +1 -1
  98. package/es/VirtualList/style/{style.css → index.css} +0 -0
  99. package/es/VirtualList/style/index.js +1 -1
  100. package/es/index.d.ts +2 -0
  101. package/es/index.js +3 -1
  102. package/es/message/hooks/useMessage.d.ts +7 -0
  103. package/es/message/hooks/useMessage.js +83 -0
  104. package/es/message/index.d.ts +63 -4
  105. package/es/message/index.js +241 -12
  106. package/es/message/style/index.css +27 -1
  107. package/lib/Button/style/{style.css → index.css} +0 -0
  108. package/lib/Button/style/index.d.ts +1 -1
  109. package/lib/Button/style/index.js +1 -1
  110. package/lib/ButtonTags/style/{style.css → index.css} +0 -0
  111. package/lib/ButtonTags/style/index.js +1 -1
  112. package/lib/CardTable/card/PictureTextColumn.js +11 -6
  113. package/lib/CardTable/card/PictureTextRow.js +11 -6
  114. package/lib/CardTable/fns/index.js +106 -0
  115. package/lib/CardTable/hooks/usePagination.js +128 -0
  116. package/lib/CardTable/index.js +3 -0
  117. package/{es/CardTable/style/style.css → lib/CardTable/style/index.css} +13 -1
  118. package/lib/CardTable/style/index.js +1 -1
  119. package/lib/CardTable/table/TableRoot.js +43 -64
  120. package/lib/CardTable/table/TableWrapper.js +4 -0
  121. package/lib/CardTable/toolbar/TablePagination.js +62 -0
  122. package/lib/CardTable/toolbar/ToolBarBottom.js +47 -0
  123. package/lib/Checkbox/style/{style.css → index.css} +0 -0
  124. package/lib/Checkbox/style/index.js +1 -1
  125. package/lib/CkFilter/style/{style.css → index.css} +0 -0
  126. package/lib/CkFilter/style/index.js +1 -1
  127. package/lib/CustomTableOption/columnsSort.js +5 -5
  128. package/lib/CustomTableOption/filterSort.js +3 -3
  129. package/lib/CustomTableOption/index.js +1 -2
  130. package/lib/CustomerService/style/{style.css → index.css} +0 -0
  131. package/lib/CustomerService/style/index.js +1 -1
  132. package/lib/EditTable/style/{style.css → index.css} +0 -0
  133. package/lib/EditTable/style/index.js +1 -1
  134. package/lib/EnlargeImg/style/{style.css → index.css} +0 -0
  135. package/lib/EnlargeImg/style/index.js +1 -1
  136. package/lib/Filter/style/{style.css → index.css} +0 -0
  137. package/lib/Filter/style/index.js +1 -1
  138. package/lib/IconSelect/style/{style.css → index.css} +0 -0
  139. package/lib/IconSelect/style/index.js +1 -1
  140. package/{es/Input/style/style.css → lib/Input/style/index.css} +21 -1
  141. package/lib/Input/style/index.js +1 -1
  142. package/lib/LeftTable/style/{style.css → index.css} +0 -0
  143. package/lib/LeftTable/style/index.js +1 -1
  144. package/lib/List/index.d.ts +2 -0
  145. package/lib/List/index.js +15 -0
  146. package/lib/List/style/index.css +505 -0
  147. package/lib/List/style/index.d.ts +1 -0
  148. package/lib/List/style/index.js +3 -0
  149. package/lib/LmEditTable/DndContainer.d.ts +5 -0
  150. package/lib/LmEditTable/DndContainer.js +49 -0
  151. package/lib/LmEditTable/DragHandle.d.ts +4 -0
  152. package/lib/LmEditTable/DragHandle.js +37 -0
  153. package/lib/LmEditTable/EditTable.d.ts +31 -0
  154. package/lib/LmEditTable/EditTable.js +925 -0
  155. package/lib/LmEditTable/index.d.ts +2 -0
  156. package/lib/LmEditTable/index.js +13 -0
  157. package/lib/LmEditTable/sortableBox.d.ts +5 -0
  158. package/lib/LmEditTable/sortableBox.js +24 -0
  159. package/lib/LmEditTable/sortableItem.d.ts +2 -0
  160. package/lib/LmEditTable/sortableItem.js +55 -0
  161. package/lib/LmEditTable/style/index.css +574 -0
  162. package/lib/LmEditTable/style/index.d.ts +1 -0
  163. package/lib/LmEditTable/style/index.js +3 -0
  164. package/lib/LmTable/Table.js +16 -6
  165. package/{es/LmTable/style/style.css → lib/LmTable/style/index.css} +6 -0
  166. package/lib/LmTable/style/index.js +1 -1
  167. package/lib/OldModal/style/{style.css → index.css} +0 -0
  168. package/lib/OldModal/style/index.js +1 -1
  169. package/lib/PopTable/style/{style.css → index.css} +0 -0
  170. package/lib/PopTable/style/index.js +1 -1
  171. package/lib/ProTable/style/{style.css → index.css} +0 -0
  172. package/lib/ProTable/style/index.js +1 -1
  173. package/lib/Radio/style/{style.css → index.css} +0 -0
  174. package/lib/Radio/style/index.js +1 -1
  175. package/lib/Select/style/index.css +3 -0
  176. package/lib/TableRender/style/{style.css → index.css} +0 -0
  177. package/lib/TableRender/style/index.js +1 -1
  178. package/lib/UploadOss/style/{style.css → index.css} +0 -0
  179. package/lib/UploadOss/style/index.js +1 -1
  180. package/lib/VirtualList/style/{style.css → index.css} +0 -0
  181. package/lib/VirtualList/style/index.js +1 -1
  182. package/lib/index.d.ts +2 -0
  183. package/lib/index.js +17 -1
  184. package/lib/message/hooks/useMessage.d.ts +7 -0
  185. package/lib/message/hooks/useMessage.js +101 -0
  186. package/lib/message/index.d.ts +63 -4
  187. package/lib/message/index.js +262 -16
  188. package/lib/message/style/index.css +27 -1
  189. package/package.json +2 -1
@@ -9,19 +9,19 @@ Object.defineProperty(exports, "__esModule", {
9
9
  });
10
10
  exports.default = void 0;
11
11
 
12
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
15
 
16
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
17
-
18
16
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
19
17
 
20
18
  var _react = _interopRequireWildcard(require("react"));
21
19
 
22
20
  var _TableWrapper = _interopRequireDefault(require("./TableWrapper"));
23
21
 
24
- var _excluded = ["rowConfig", "cellConfig", "defaultConfig", "checkboxChange"];
22
+ var _fns = _interopRequireDefault(require("../fns"));
23
+
24
+ var _excluded = ["rowConfig", "cellConfig", "defaultConfig", "checkboxConfig"];
25
25
 
26
26
  var reducer = function reducer(state, action) {
27
27
  var page = action.page,
@@ -32,6 +32,7 @@ var reducer = function reducer(state, action) {
32
32
 
33
33
  switch (action.type) {
34
34
  case 'changePage':
35
+ // 分页改变
35
36
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
36
37
  page: page
37
38
  });
@@ -101,16 +102,9 @@ var getInitialState = function getInitialState(props) {
101
102
  };
102
103
 
103
104
  var LmCardTableRoot = function LmCardTableRoot(props, ref) {
104
- var rowConfig = props.rowConfig,
105
- cellConfig = props.cellConfig,
106
- defaultConfig = props.defaultConfig,
107
- checkboxChange = props.checkboxChange,
108
- resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
109
105
  var initialState = (0, _react.useMemo)(function () {
110
- return getInitialState((0, _objectSpread2.default)({
111
- checkboxChange: checkboxChange
112
- }, resetProps));
113
- }, [checkboxChange, resetProps]);
106
+ return getInitialState(props);
107
+ }, []);
114
108
 
115
109
  var _useReducer = (0, _react.useReducer)(reducer, initialState),
116
110
  _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
@@ -124,66 +118,51 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
124
118
 
125
119
  var _state$checkboxConfig = state.checkboxConfig,
126
120
  checkKeys = _state$checkboxConfig.checkKeys,
127
- checkValues = _state$checkboxConfig.checkValues; // 设置选中的数据
128
-
129
- var setSelectCells = function setSelectCells(checked, cell, cellIndex) {
130
- var nKeys = checked ? [].concat((0, _toConsumableArray2.default)(checkKeys), [cell[resetProps.cellKey]]) : checkKeys.filter(function (v) {
131
- return v !== cell[resetProps.cellKey];
132
- });
133
- var nValues = checked ? [].concat((0, _toConsumableArray2.default)(checkValues), [cell]) : checkValues.filter(function (v) {
134
- return v[resetProps.cellKey] !== cell[resetProps.cellKey];
135
- });
136
- checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange(checked, cell, cellIndex);
137
- dispatch({
138
- type: 'changeCheckboxConfig',
139
- checkboxConfig: {
140
- checkKeys: nKeys,
141
- checkValues: nValues
142
- }
121
+ checkValues = _state$checkboxConfig.checkValues; // 配置对象收集
122
+
123
+ var configProps = (0, _react.useMemo)(function () {
124
+ var rowConfig = props.rowConfig,
125
+ cellConfig = props.cellConfig,
126
+ defaultConfig = props.defaultConfig,
127
+ checkboxConfig = props.checkboxConfig,
128
+ resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
129
+ return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), {}, {
130
+ rowConfig: (0, _objectSpread2.default)({
131
+ // 行配置
132
+ gap: 16
133
+ }, rowConfig),
134
+ cellConfig: (0, _objectSpread2.default)({
135
+ // 单元格配置对象
136
+ width: 192,
137
+ height: 282
138
+ }, cellConfig),
139
+ checkboxConfig: (0, _objectSpread2.default)({}, checkboxConfig),
140
+ toolbarConfig: {
141
+ pager: {},
142
+ toolbarBottom: {}
143
+ },
144
+ defaultConfig: defaultConfig
143
145
  });
144
- }; // 外部设置选中的值
145
-
146
-
147
- var setCheckboxKeys = function setCheckboxKeys(checkKeys) {
148
- var checkValues = resetProps.dataSource.filter(function (v) {
149
- return checkKeys.includes(v[resetProps.cellKey]);
150
- }) || [];
151
- dispatch({
152
- type: 'changeCheckboxConfig',
153
- checkboxConfig: {
154
- checkKeys: checkKeys,
155
- checkValues: checkValues
156
- }
146
+ }, [props]); // 方法收集
147
+
148
+ var EventProps = (0, _react.useMemo)(function () {
149
+ return (0, _fns.default)({
150
+ state: state,
151
+ dispatch: dispatch,
152
+ props: props
157
153
  });
158
- }; // 配置对象收集
159
-
160
-
161
- var config = {
162
- rowConfig: (0, _objectSpread2.default)({
163
- // 行配置
164
- gap: 16
165
- }, rowConfig),
166
- cellConfig: (0, _objectSpread2.default)({
167
- // 单元格配置对象
168
- width: 192,
169
- height: 282
170
- }, cellConfig),
171
- defaultConfig: defaultConfig
172
- };
173
- var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
154
+ }, [state, dispatch, props]);
155
+ var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, configProps), EventProps), {}, {
174
156
  state: state,
175
157
  dispatch: dispatch
176
- }, config), resetProps), {}, {
177
- setSelectCells: setSelectCells
178
158
  }); // 向外暴露出的方法
179
159
 
180
160
  (0, _react.useImperativeHandle)(ref, function () {
181
- return {
161
+ return (0, _objectSpread2.default)({
182
162
  getCheckboxRecords: function getCheckboxRecords() {
183
163
  return state.checkboxConfig.checkValues;
184
- },
185
- setCheckboxKeys: setCheckboxKeys
186
- };
164
+ }
165
+ }, EventProps);
187
166
  });
188
167
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isFullScreen && /*#__PURE__*/_react.default.createElement(_TableWrapper.default, {
189
168
  table: table
@@ -13,6 +13,8 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _TableContainer = _interopRequireDefault(require("./TableContainer"));
15
15
 
16
+ var _ToolBarBottom = _interopRequireDefault(require("../toolbar/ToolBarBottom"));
17
+
16
18
  // 包裹表格外围区域: 工具栏操作区域/主体区域/工具栏底部区域
17
19
  var LmCardTableWrapper = /*#__PURE__*/_react.default.memo(function (_ref) {
18
20
  var table = _ref.table;
@@ -25,6 +27,8 @@ var LmCardTableWrapper = /*#__PURE__*/_react.default.memo(function (_ref) {
25
27
  }, style)
26
28
  }, /*#__PURE__*/_react.default.createElement(_TableContainer.default, {
27
29
  table: table
30
+ }), /*#__PURE__*/_react.default.createElement(_ToolBarBottom.default, {
31
+ table: table
28
32
  }));
29
33
  });
30
34
 
@@ -0,0 +1,62 @@
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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+
16
+ var _react = _interopRequireWildcard(require("react"));
17
+
18
+ var _linkmoreDesign = require("linkmore-design");
19
+
20
+ var _excluded = ["onChange"];
21
+
22
+ var LmCardTablePagination = function LmCardTablePagination(_ref) {
23
+ var table = _ref.table;
24
+ var dispatch = table.dispatch,
25
+ _table$dataSource = table.dataSource,
26
+ dataSource = _table$dataSource === void 0 ? [] : _table$dataSource,
27
+ _table$pagination = table.pagination,
28
+ onChange = _table$pagination.onChange,
29
+ paginationProps = (0, _objectWithoutProperties2.default)(_table$pagination, _excluded); // 分页改变事件
30
+
31
+ var onPageChange = function onPageChange(pageIndex, pageSize) {
32
+ dispatch({
33
+ type: 'changePage',
34
+ page: {
35
+ pageIndex: pageIndex,
36
+ pageSize: pageSize,
37
+ total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || 0
38
+ }
39
+ });
40
+ onChange === null || onChange === void 0 ? void 0 : onChange(pageIndex, pageSize);
41
+ }; // 默认的配置
42
+
43
+
44
+ var defaultProps = {
45
+ size: 'small',
46
+ showSizeChanger: true,
47
+ showQuickJumper: true,
48
+ showTotal: function showTotal(total) {
49
+ return "\u5171 ".concat(total, " \u6761");
50
+ },
51
+ total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || 0,
52
+ defaultPageSize: 20,
53
+ pageSizeOptions: [20, 50, 100, 500],
54
+ onChange: onPageChange
55
+ };
56
+ return /*#__PURE__*/_react.default.createElement("div", {
57
+ className: "lm_card_table_pagination"
58
+ }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Pagination, (0, _extends2.default)({}, defaultProps, paginationProps)));
59
+ };
60
+
61
+ var _default = LmCardTablePagination;
62
+ exports.default = _default;
@@ -0,0 +1,47 @@
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 CardToolBarBottom = /*#__PURE__*/_react.default.memo(function (_ref) {
15
+ var table = _ref.table;
16
+ var pagination = table.pagination,
17
+ _table$toolbarConfig = table.toolbarConfig,
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
+ }
35
+
36
+ if (right) {
37
+ typeof right === 'function' ? right(_TablePagination.default) : right;
38
+ }
39
+ };
40
+
41
+ return /*#__PURE__*/_react.default.createElement("div", {
42
+ className: "lm_card_table_toolbar_bottom"
43
+ }, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement(RighSlot, null));
44
+ });
45
+
46
+ var _default = CardToolBarBottom;
47
+ exports.default = _default;
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -126,11 +126,11 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
126
126
  cloneCol.forEach(function (item, index) {
127
127
  var _a, _b, _c;
128
128
 
129
- if (ColumnsStateValue === null || ColumnsStateValue === void 0 ? void 0 : ColumnsStateValue.hasOwnProperty(item.dataIndex)) {
130
- var order = (_a = ColumnsStateValue[item.dataIndex]) === null || _a === void 0 ? void 0 : _a.order;
131
- item.fixed = ((_b = ColumnsStateValue[item.dataIndex]) === null || _b === void 0 ? void 0 : _b.fixed) || undefined;
129
+ if (colStateValue === null || colStateValue === void 0 ? void 0 : colStateValue.hasOwnProperty(item.dataIndex)) {
130
+ var order = (_a = colStateValue[item.dataIndex]) === null || _a === void 0 ? void 0 : _a.order;
131
+ item.fixed = ((_b = colStateValue[item.dataIndex]) === null || _b === void 0 ? void 0 : _b.fixed) || undefined;
132
132
  item.order = [undefined, null].includes(order) ? index : order;
133
- item.show = ((_c = ColumnsStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) === false ? false : true;
133
+ item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) === false ? false : true;
134
134
  }
135
135
  });
136
136
  var leftSortItem = [];
@@ -169,7 +169,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
169
169
  (0, _react.useEffect)(function () {
170
170
  setLocalColumns(columns);
171
171
  setColStateValue(ColumnsStateValue);
172
- }, []);
172
+ }, [columns]);
173
173
  var leftSensors = (0, _core.useSensors)((0, _core.useSensor)(_core.PointerSensor), (0, _core.useSensor)(_core.KeyboardSensor, {
174
174
  coordinateGetter: _sortable.sortableKeyboardCoordinates
175
175
  }));
@@ -94,9 +94,9 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
94
94
  cloneCol.forEach(function (item, index) {
95
95
  var _a, _b;
96
96
 
97
- var order = (_a = filterStateValue[item.field]) === null || _a === void 0 ? void 0 : _a.order;
97
+ var order = (_a = colStateValue[item.field]) === null || _a === void 0 ? void 0 : _a.order;
98
98
  item.order = order !== undefined && order !== null ? order : UNLLVALUE.includes(item.order) ? index : item.order;
99
- item.show = ((_b = filterStateValue[item.field]) === null || _b === void 0 ? void 0 : _b.show) === false ? false : UNLLVALUE.includes(item.show) ? true : !!item.show;
99
+ item.show = ((_b = colStateValue[item.field]) === null || _b === void 0 ? void 0 : _b.show) === false ? false : UNLLVALUE.includes(item.show) ? true : !!item.show;
100
100
  });
101
101
  return cloneCol.filter(function (item) {
102
102
  var _a;
@@ -125,7 +125,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
125
125
  (0, _react.useEffect)(function () {
126
126
  setLocalFilter(filter);
127
127
  setColStateValue(filterStateValue);
128
- }, []);
128
+ }, [filter]);
129
129
  var sensors = (0, _core.useSensors)((0, _core.useSensor)(_core.PointerSensor), (0, _core.useSensor)(_core.KeyboardSensor, {
130
130
  coordinateGetter: _sortable.sortableKeyboardCoordinates
131
131
  }));
@@ -133,8 +133,7 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
133
133
  return setVisible(false);
134
134
  }
135
135
  }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Tabs, {
136
- defaultActiveKey: "1",
137
- destroyInactiveTabPane: true
136
+ defaultActiveKey: "1"
138
137
  }, /*#__PURE__*/_react.default.createElement(TabPane, {
139
138
  tab: "\u4E2A\u6027\u5316\u7B5B\u9009",
140
139
  key: "1",
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -660,8 +660,28 @@ html {
660
660
  .ant-input-group-wrapper.lm_input .ant-input-group-addon {
661
661
  padding: 0 8px;
662
662
  }
663
+ .ant-input-group-wrapper.lm_input .ant-input-group-addon .lm_select {
664
+ margin: -5px -8px -4px -9px;
665
+ }
663
666
  .ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon {
664
- padding: 0 5px 0 4px;
667
+ height: 26px;
668
+ }
669
+ .ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select {
670
+ height: 26px;
671
+ margin: -4px -8px -5px -9px;
672
+ }
673
+ .ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector {
674
+ height: 26px;
675
+ }
676
+ .ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector > span {
677
+ height: 26px;
678
+ line-height: 24px;
679
+ }
680
+ .ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector:after {
681
+ line-height: 26px;
682
+ }
683
+ .ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector .ant-select-selection-search-input {
684
+ height: 24px;
665
685
  }
666
686
  .ant-input-group.ant-input-group-lg .lm_input {
667
687
  height: 40px;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -0,0 +1,2 @@
1
+ import { List } from 'antd';
2
+ export default List;
@@ -0,0 +1,15 @@
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
+ require("antd/es/list/style");
11
+
12
+ var _list = _interopRequireDefault(require("antd/es/list"));
13
+
14
+ var _default = _list.default;
15
+ exports.default = _default;