linkmore-design 1.1.10 → 1.1.11

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 (222) hide show
  1. package/dist/Button/demos/type.d.ts +2 -0
  2. package/dist/CustomTableOption/index.d.ts +1 -0
  3. package/dist/CustomTableOption/locale/en_US.d.ts +19 -0
  4. package/dist/CustomTableOption/locale/zh_CN.d.ts +19 -0
  5. package/dist/LmEditTable/demos/priceTable.d.ts +2 -0
  6. package/dist/LmEditTable/util.d.ts +1 -0
  7. package/dist/LmFilter/demos/filterControl.d.ts +2 -0
  8. package/dist/Locale/default.d.ts +4 -1
  9. package/dist/Locale/zh_CN.d.ts +4 -1
  10. package/dist/Modal/demos/locale.d.ts +2 -0
  11. package/dist/Modal/locale.d.ts +7 -0
  12. package/dist/base.css +1 -0
  13. package/dist/index.umd.js +212 -173
  14. package/dist/index.umd.min.js +6 -6
  15. package/dist/variables.css +27 -12
  16. package/es/Affix/style/index.css +1 -0
  17. package/es/Alert/style/index.css +1 -0
  18. package/es/Approval/style/index.css +1 -0
  19. package/es/AutoComplete/style/index.css +1 -0
  20. package/es/Avatar/style/index.css +1 -0
  21. package/es/Badge/style/index.css +1 -0
  22. package/es/Breadcrumb/style/index.css +1 -0
  23. package/es/Button/style/index.css +4 -1
  24. package/es/Button/style/variables.css +4 -1
  25. package/es/ButtonTags/style/index.css +1 -0
  26. package/es/Calendar/style/index.css +1 -0
  27. package/es/Card/style/index.css +1 -0
  28. package/es/CardTable/style/index.css +7 -9
  29. package/es/CardTable/style/variables.css +7 -9
  30. package/es/Carousel/style/index.css +1 -0
  31. package/es/Cascader/style/index.css +1 -0
  32. package/es/Col/style/index.css +1 -0
  33. package/es/Collapse/style/index.css +1 -0
  34. package/es/Comment/style/index.css +1 -0
  35. package/es/CustomTableOption/cardSort.js +21 -16
  36. package/es/CustomTableOption/columnsSort.js +16 -16
  37. package/es/CustomTableOption/filterSort.js +11 -11
  38. package/es/CustomTableOption/index.d.ts +1 -0
  39. package/es/CustomTableOption/index.js +45 -17
  40. package/es/CustomTableOption/locale/en_US.d.ts +19 -0
  41. package/es/CustomTableOption/locale/en_US.js +19 -0
  42. package/es/CustomTableOption/locale/zh_CN.d.ts +19 -0
  43. package/es/CustomTableOption/locale/zh_CN.js +19 -0
  44. package/es/CustomTableOption/style/index.css +5 -0
  45. package/es/CustomTableOption/style/variables.css +4 -0
  46. package/es/CustomerService/style/index.css +1 -0
  47. package/es/DatePicker/style/index.css +1 -0
  48. package/es/Descriptions/style/index.css +1 -0
  49. package/es/Divider/style/index.css +1 -0
  50. package/es/Drawer/style/index.css +1 -0
  51. package/es/Dropdown/style/index.css +3 -2
  52. package/es/Dropdown/style/variables.css +2 -2
  53. package/es/EditTable/style/index.css +1 -0
  54. package/es/Empty/style/index.css +1 -0
  55. package/es/Filter/style/index.css +1 -0
  56. package/es/Form/style/index.css +1 -0
  57. package/es/FullScreen/style/index.css +1 -0
  58. package/es/Grid/style/index.css +1 -0
  59. package/es/Icon/style/index.css +1 -0
  60. package/es/Image/style/index.css +1 -0
  61. package/es/Input/style/index.css +1 -0
  62. package/es/InputNumber/style/index.css +1 -0
  63. package/es/Layout/style/index.css +1 -0
  64. package/es/LeftTable/index.js +3 -1
  65. package/es/LeftTable/style/index.css +1 -0
  66. package/es/List/style/index.css +1 -0
  67. package/es/LmEditTable/EditTable.js +39 -88
  68. package/es/LmEditTable/style/index.css +5 -0
  69. package/es/LmEditTable/style/variables.css +4 -0
  70. package/es/LmEditTable/util.d.ts +1 -0
  71. package/es/LmEditTable/util.js +27 -0
  72. package/es/LmSelect/style/index.css +1 -0
  73. package/es/LmTable/style/index.css +1 -0
  74. package/es/Locale/default.d.ts +4 -1
  75. package/es/Locale/default.js +3 -1
  76. package/es/Locale/zh_CN.d.ts +4 -1
  77. package/es/Locale/zh_CN.js +3 -1
  78. package/es/Mentions/style/index.css +1 -0
  79. package/es/Menu/style/index.css +1 -0
  80. package/es/Modal/index.js +18 -14
  81. package/es/Modal/locale.d.ts +7 -0
  82. package/es/Modal/locale.js +12 -0
  83. package/es/Modal/style/index.css +1 -0
  84. package/es/PageHeader/style/index.css +1 -0
  85. package/es/Pagination/style/index.css +1 -0
  86. package/es/Popconfirm/style/index.css +1 -0
  87. package/es/Popover/style/index.css +1 -0
  88. package/es/Progress/style/index.css +1 -0
  89. package/es/QuickMenu/style/index.css +6 -0
  90. package/es/QuickMenu/style/variables.css +5 -0
  91. package/es/Rate/style/index.css +1 -0
  92. package/es/Result/style/index.css +1 -0
  93. package/es/Row/style/index.css +1 -0
  94. package/es/Segmented/style/index.css +1 -0
  95. package/es/Select/style/index.css +1 -0
  96. package/es/Skeleton/style/index.css +1 -0
  97. package/es/Slider/style/index.css +1 -0
  98. package/es/Space/style/index.css +1 -0
  99. package/es/Spin/style/index.css +1 -0
  100. package/es/Statistic/style/index.css +1 -0
  101. package/es/Steps/style/index.css +1 -0
  102. package/es/Switch/style/index.css +1 -0
  103. package/es/Table/style/index.css +1 -0
  104. package/es/Tabs/style/index.css +1 -0
  105. package/es/Tag/style/index.css +1 -0
  106. package/es/TimePicker/style/index.css +1 -0
  107. package/es/Timeline/style/index.css +1 -0
  108. package/es/Tooltip/style/index.css +1 -0
  109. package/es/Transfer/style/index.css +1 -0
  110. package/es/Tree/style/index.css +1 -0
  111. package/es/TreeSelect/style/index.css +1 -0
  112. package/es/Typography/style/index.css +1 -0
  113. package/es/Upload/style/index.css +1 -0
  114. package/es/locale-provider/style/index.css +1 -0
  115. package/es/message/style/index.css +1 -0
  116. package/es/notification/style/index.css +1 -0
  117. package/es/styles/main.css +1 -0
  118. package/es/styles/variables.css +27 -12
  119. package/lib/Affix/style/index.css +1 -0
  120. package/lib/Alert/style/index.css +1 -0
  121. package/lib/Approval/style/index.css +1 -0
  122. package/lib/AutoComplete/style/index.css +1 -0
  123. package/lib/Avatar/style/index.css +1 -0
  124. package/lib/Badge/style/index.css +1 -0
  125. package/lib/Breadcrumb/style/index.css +1 -0
  126. package/lib/Button/style/index.css +4 -1
  127. package/lib/Button/style/variables.css +4 -1
  128. package/lib/ButtonTags/style/index.css +1 -0
  129. package/lib/Calendar/style/index.css +1 -0
  130. package/lib/Card/style/index.css +1 -0
  131. package/lib/CardTable/style/index.css +7 -9
  132. package/lib/CardTable/style/variables.css +7 -9
  133. package/lib/Carousel/style/index.css +1 -0
  134. package/lib/Cascader/style/index.css +1 -0
  135. package/lib/Col/style/index.css +1 -0
  136. package/lib/Collapse/style/index.css +1 -0
  137. package/lib/Comment/style/index.css +1 -0
  138. package/lib/CustomTableOption/cardSort.js +20 -15
  139. package/lib/CustomTableOption/columnsSort.js +16 -16
  140. package/lib/CustomTableOption/filterSort.js +11 -11
  141. package/lib/CustomTableOption/index.d.ts +1 -0
  142. package/lib/CustomTableOption/index.js +45 -16
  143. package/lib/CustomTableOption/locale/en_US.d.ts +19 -0
  144. package/lib/CustomTableOption/locale/en_US.js +26 -0
  145. package/lib/CustomTableOption/locale/zh_CN.d.ts +19 -0
  146. package/lib/CustomTableOption/locale/zh_CN.js +26 -0
  147. package/lib/CustomTableOption/style/index.css +5 -0
  148. package/lib/CustomTableOption/style/variables.css +4 -0
  149. package/lib/CustomerService/style/index.css +1 -0
  150. package/lib/DatePicker/style/index.css +1 -0
  151. package/lib/Descriptions/style/index.css +1 -0
  152. package/lib/Divider/style/index.css +1 -0
  153. package/lib/Drawer/style/index.css +1 -0
  154. package/lib/Dropdown/style/index.css +3 -2
  155. package/lib/Dropdown/style/variables.css +2 -2
  156. package/lib/EditTable/style/index.css +1 -0
  157. package/lib/Empty/style/index.css +1 -0
  158. package/lib/Filter/style/index.css +1 -0
  159. package/lib/Form/style/index.css +1 -0
  160. package/lib/FullScreen/style/index.css +1 -0
  161. package/lib/Grid/style/index.css +1 -0
  162. package/lib/Icon/style/index.css +1 -0
  163. package/lib/Image/style/index.css +1 -0
  164. package/lib/Input/style/index.css +1 -0
  165. package/lib/InputNumber/style/index.css +1 -0
  166. package/lib/Layout/style/index.css +1 -0
  167. package/lib/LeftTable/index.js +3 -1
  168. package/lib/LeftTable/style/index.css +1 -0
  169. package/lib/List/style/index.css +1 -0
  170. package/lib/LmEditTable/EditTable.js +39 -87
  171. package/lib/LmEditTable/style/index.css +5 -0
  172. package/lib/LmEditTable/style/variables.css +4 -0
  173. package/lib/LmEditTable/util.d.ts +1 -0
  174. package/lib/LmEditTable/util.js +30 -0
  175. package/lib/LmSelect/style/index.css +1 -0
  176. package/lib/LmTable/style/index.css +1 -0
  177. package/lib/Locale/default.d.ts +4 -1
  178. package/lib/Locale/default.js +4 -1
  179. package/lib/Locale/zh_CN.d.ts +4 -1
  180. package/lib/Locale/zh_CN.js +4 -1
  181. package/lib/Mentions/style/index.css +1 -0
  182. package/lib/Menu/style/index.css +1 -0
  183. package/lib/Modal/index.js +22 -14
  184. package/lib/Modal/locale.d.ts +7 -0
  185. package/lib/Modal/locale.js +25 -0
  186. package/lib/Modal/style/index.css +1 -0
  187. package/lib/PageHeader/style/index.css +1 -0
  188. package/lib/Pagination/style/index.css +1 -0
  189. package/lib/Popconfirm/style/index.css +1 -0
  190. package/lib/Popover/style/index.css +1 -0
  191. package/lib/Progress/style/index.css +1 -0
  192. package/lib/QuickMenu/style/index.css +6 -0
  193. package/lib/QuickMenu/style/variables.css +5 -0
  194. package/lib/Rate/style/index.css +1 -0
  195. package/lib/Result/style/index.css +1 -0
  196. package/lib/Row/style/index.css +1 -0
  197. package/lib/Segmented/style/index.css +1 -0
  198. package/lib/Select/style/index.css +1 -0
  199. package/lib/Skeleton/style/index.css +1 -0
  200. package/lib/Slider/style/index.css +1 -0
  201. package/lib/Space/style/index.css +1 -0
  202. package/lib/Spin/style/index.css +1 -0
  203. package/lib/Statistic/style/index.css +1 -0
  204. package/lib/Steps/style/index.css +1 -0
  205. package/lib/Switch/style/index.css +1 -0
  206. package/lib/Table/style/index.css +1 -0
  207. package/lib/Tabs/style/index.css +1 -0
  208. package/lib/Tag/style/index.css +1 -0
  209. package/lib/TimePicker/style/index.css +1 -0
  210. package/lib/Timeline/style/index.css +1 -0
  211. package/lib/Tooltip/style/index.css +1 -0
  212. package/lib/Transfer/style/index.css +1 -0
  213. package/lib/Tree/style/index.css +1 -0
  214. package/lib/TreeSelect/style/index.css +1 -0
  215. package/lib/Typography/style/index.css +1 -0
  216. package/lib/Upload/style/index.css +1 -0
  217. package/lib/locale-provider/style/index.css +1 -0
  218. package/lib/message/style/index.css +1 -0
  219. package/lib/notification/style/index.css +1 -0
  220. package/lib/styles/main.css +1 -0
  221. package/lib/styles/variables.css +27 -12
  222. package/package.json +1 -1
@@ -26,10 +26,10 @@ var SortItem = function SortItem(props) {
26
26
  };
27
27
  return /*#__PURE__*/React.createElement("div", Object.assign({
28
28
  ref: setNodeRef,
29
- className: 'lm_custom_item',
29
+ className: "lm_custom_item",
30
30
  style: style
31
31
  }, attributes), /*#__PURE__*/React.createElement(Checkbox, {
32
- checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) === false ? false : true,
32
+ checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
33
33
  onChange: function onChange(e) {
34
34
  return props.toggleShow(e.target.checked, props.id);
35
35
  },
@@ -56,7 +56,7 @@ var SortItem = function SortItem(props) {
56
56
  props.addFiexd(props.id, 'right');
57
57
  }
58
58
  })), /*#__PURE__*/React.createElement(HolderOutlined, Object.assign({}, listeners, {
59
- className: 'lm_custom_icon sort_item',
59
+ className: "lm_custom_icon sort_item",
60
60
  style: {
61
61
  color: 'var(--tip-text-color)'
62
62
  }
@@ -109,7 +109,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
109
109
  var order = (_a = colStateValue[item.dataIndex]) === null || _a === void 0 ? void 0 : _a.order;
110
110
  item.fixed = ((_b = colStateValue[item.dataIndex]) === null || _b === void 0 ? void 0 : _b.fixed) || undefined;
111
111
  item.order = [undefined, null].includes(order) ? index : order;
112
- item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) === false ? false : true;
112
+ item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) !== false;
113
113
  }
114
114
  });
115
115
  var leftSortItem = [];
@@ -135,7 +135,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
135
135
  return item.show !== false;
136
136
  });
137
137
  return {
138
- indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length ? true : false,
138
+ indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length),
139
139
  checkAll: showLength.length === localColumns.length
140
140
  };
141
141
  }, [localColumns]);
@@ -203,7 +203,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
203
203
  var resultColumns = localColumns.map(function (item) {
204
204
  if (item.dataIndex === id) {
205
205
  return Object.assign(Object.assign({}, item), {
206
- show: item.show === false ? true : false
206
+ show: item.show === false
207
207
  });
208
208
  }
209
209
 
@@ -232,7 +232,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
232
232
  var onCheckAllChange = function onCheckAllChange() {
233
233
  var resultColumns = localColumns.map(function (item) {
234
234
  return Object.assign(Object.assign({}, item), {
235
- show: isCheckAll.checkAll ? false : true
235
+ show: !isCheckAll.checkAll
236
236
  });
237
237
  });
238
238
  setLocalColumns(resultColumns);
@@ -249,15 +249,15 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
249
249
  obj[item.dataIndex] = {};
250
250
 
251
251
  if (![undefined, null].includes(item.order)) {
252
- obj[item.dataIndex]['order'] = item.order;
252
+ obj[item.dataIndex].order = item.order;
253
253
  }
254
254
 
255
255
  if (![undefined, null].includes(item.show)) {
256
- obj[item.dataIndex]['show'] = item.show;
256
+ obj[item.dataIndex].show = item.show;
257
257
  }
258
258
 
259
259
  if (![undefined, null].includes(item.fixed)) {
260
- obj[item.dataIndex]['fixed'] = item.fixed;
260
+ obj[item.dataIndex].fixed = item.fixed;
261
261
  }
262
262
  });
263
263
  return obj;
@@ -265,9 +265,9 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
265
265
  };
266
266
  });
267
267
  return /*#__PURE__*/React.createElement("div", {
268
- className: 'lm_custom_option_columns'
268
+ className: "lm_custom_option_columns"
269
269
  }, /*#__PURE__*/React.createElement("div", {
270
- className: 'global_search'
270
+ className: "global_search"
271
271
  }, /*#__PURE__*/React.createElement(Search, {
272
272
  value: searchIngValue,
273
273
  onChange: function onChange(e) {
@@ -275,7 +275,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
275
275
  },
276
276
  onSearch: handleSearch
277
277
  })), /*#__PURE__*/React.createElement("div", {
278
- className: 'global_setting'
278
+ className: "global_setting"
279
279
  }, /*#__PURE__*/React.createElement(Checkbox, {
280
280
  indeterminate: isCheckAll.indeterminate,
281
281
  onChange: onCheckAllChange,
@@ -285,7 +285,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
285
285
  return setLocalColumns(columns);
286
286
  }
287
287
  }, "\u91CD\u7F6E")), !!((_a = sortMenu.leftSortItem) === null || _a === void 0 ? void 0 : _a.length) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
288
- className: 'fixed_title'
288
+ className: "fixed_title"
289
289
  }, "\u56FA\u5B9A\u5728\u5DE6\u4FA7"), /*#__PURE__*/React.createElement(DndContext, {
290
290
  sensors: leftSensors,
291
291
  collisionDetection: closestCenter,
@@ -304,7 +304,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
304
304
  id: item.dataIndex
305
305
  });
306
306
  })))), !!((_c = sortMenu.items) === null || _c === void 0 ? void 0 : _c.length) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
307
- className: 'fixed_title'
307
+ className: "fixed_title"
308
308
  }, " \u4E0D\u56FA\u5B9A "), /*#__PURE__*/React.createElement(DndContext, {
309
309
  sensors: sensors,
310
310
  collisionDetection: closestCenter,
@@ -323,7 +323,7 @@ var ColumnsSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
323
323
  id: item.dataIndex
324
324
  });
325
325
  })))), !!((_f = sortMenu.rigthSortItem) === null || _f === void 0 ? void 0 : _f.length) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
326
- className: 'fixed_title'
326
+ className: "fixed_title"
327
327
  }, "\u56FA\u5B9A\u5728\u53F3\u4FA7"), /*#__PURE__*/React.createElement(DndContext, {
328
328
  sensors: rightSensors,
329
329
  collisionDetection: closestCenter,
@@ -27,16 +27,16 @@ var SortItem = function SortItem(props) {
27
27
  };
28
28
  return /*#__PURE__*/React.createElement("div", Object.assign({
29
29
  ref: setNodeRef,
30
- className: 'lm_custom_item',
30
+ className: "lm_custom_item",
31
31
  style: style
32
32
  }, attributes), /*#__PURE__*/React.createElement(Checkbox, {
33
- checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) === false ? false : true,
33
+ checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
34
34
  onChange: function onChange(e) {
35
35
  return props.toggleShow(e.target.checked, props.id);
36
36
  },
37
37
  className: "filter_item-content"
38
38
  }, (_b = props.item) === null || _b === void 0 ? void 0 : _b.title), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(HolderOutlined, Object.assign({}, listeners, {
39
- className: 'lm_custom_icon sort_item'
39
+ className: "lm_custom_icon sort_item"
40
40
  }))));
41
41
  };
42
42
  /** order show fixed */
@@ -90,7 +90,7 @@ var FilterSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
90
90
  return item.show !== false;
91
91
  });
92
92
  return {
93
- indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length ? true : false,
93
+ indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length),
94
94
  checkAll: showLength.length === localFilter.length
95
95
  };
96
96
  }, [localFilter]);
@@ -136,7 +136,7 @@ var FilterSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
136
136
  var resultColumns = localFilter.map(function (item) {
137
137
  if (item.field === id) {
138
138
  return Object.assign(Object.assign({}, item), {
139
- show: item.show === false ? true : false
139
+ show: item.show === false
140
140
  });
141
141
  }
142
142
 
@@ -150,7 +150,7 @@ var FilterSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
150
150
  var onCheckAllChange = function onCheckAllChange() {
151
151
  var resultColumns = localFilter.map(function (item) {
152
152
  return Object.assign(Object.assign({}, item), {
153
- show: isCheckAll.checkAll ? false : true
153
+ show: !isCheckAll.checkAll
154
154
  });
155
155
  });
156
156
  console.log(resultColumns, 'resultColumns');
@@ -168,11 +168,11 @@ var FilterSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
168
168
  obj[item.field] = {};
169
169
 
170
170
  if (![undefined, null].includes(item.order)) {
171
- obj[item.field]['order'] = item.order;
171
+ obj[item.field].order = item.order;
172
172
  }
173
173
 
174
174
  if (![undefined, null].includes(item.show)) {
175
- obj[item.field]['show'] = item.show;
175
+ obj[item.field].show = item.show;
176
176
  }
177
177
  });
178
178
  return obj;
@@ -180,9 +180,9 @@ var FilterSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
180
180
  };
181
181
  });
182
182
  return /*#__PURE__*/React.createElement("div", {
183
- className: 'lm_custom_option_columns'
183
+ className: "lm_custom_option_columns"
184
184
  }, /*#__PURE__*/React.createElement("div", {
185
- className: 'global_search'
185
+ className: "global_search"
186
186
  }, /*#__PURE__*/React.createElement(Search, {
187
187
  value: searchIngValue,
188
188
  onChange: function onChange(e) {
@@ -190,7 +190,7 @@ var FilterSort = /*#__PURE__*/forwardRef(function (_ref, ref) {
190
190
  },
191
191
  onSearch: handleSearch
192
192
  })), /*#__PURE__*/React.createElement("div", {
193
- className: 'global_setting'
193
+ className: "global_setting"
194
194
  }, /*#__PURE__*/React.createElement(Checkbox, {
195
195
  indeterminate: isCheckAll.indeterminate,
196
196
  onChange: onCheckAllChange,
@@ -9,6 +9,7 @@ export interface ICustomTableOptionProps {
9
9
  columns?: TableProps<any>['columns'];
10
10
  card?: TableProps<any>['columns'];
11
11
  onSave?: (data: any) => void;
12
+ recommendNumObj?: Record<string, number>;
12
13
  }
13
14
  declare const LMCustomTableOption: React.FC<ICustomTableOptionProps>;
14
15
  export default LMCustomTableOption;
@@ -2,7 +2,8 @@ import "antd/es/tooltip/style";
2
2
  import _Tooltip from "antd/es/tooltip";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import React, { forwardRef, useState, useEffect, useRef } from 'react';
5
- import { Drawer, Tabs, Radio, IconFont, Space, Button, Switch } from 'linkmore-design';
5
+ import { ExclamationCircleOutlined } from '@ant-design/icons';
6
+ import { Drawer, Tabs, Radio, IconFont, Space, Button, Switch, Modal } from 'linkmore-design';
6
7
  import ColumnsSort from './columnsSort';
7
8
  import CardSort from './cardSort';
8
9
  import FilterSort from './filterSort';
@@ -23,7 +24,7 @@ var optionsWithDisabled = [{
23
24
  }];
24
25
  var prefixCls = 'lm_custom-table-option';
25
26
  var LMCustomTableOption = /*#__PURE__*/forwardRef(function (props, ref) {
26
- var _a, _b, _c;
27
+ var _a, _b, _c, _d;
27
28
 
28
29
  var className = props.className,
29
30
  _props$tooltip = props.tooltip,
@@ -69,7 +70,7 @@ var LMCustomTableOption = /*#__PURE__*/forwardRef(function (props, ref) {
69
70
  /** 提交按钮 */
70
71
 
71
72
  var onOk = function onOk() {
72
- var _a, _b, _c, _d, _e, _f, _g;
73
+ var _a, _b, _c, _d, _e, _f, _g, _h;
73
74
  /** tableInfo */
74
75
 
75
76
 
@@ -81,19 +82,45 @@ var LMCustomTableOption = /*#__PURE__*/forwardRef(function (props, ref) {
81
82
  var filterStateValue = (_d = filterRef.current) === null || _d === void 0 ? void 0 : _d.getFilterStateValue();
82
83
  var cardData = ((_e = cardRef.current) === null || _e === void 0 ? void 0 : _e.getLocalFilter()) || [];
83
84
  var cardStateValue = ((_f = cardRef.current) === null || _f === void 0 ? void 0 : _f.getFilterStateValue()) || {};
84
- console.log('--columnsData:', columnsData, ColStateValue, '--filterData:', filterData, filterStateValue, 'size:', lmOptions.size);
85
- (_g = props.onSave) === null || _g === void 0 ? void 0 : _g.call(props, Object.assign({
86
- columnsData: columnsData,
87
- ColStateValue: ColStateValue,
88
- filterData: filterData,
89
- filterStateValue: filterStateValue,
90
- size: lmOptions.size,
91
- saveSetting: saveSetting
92
- }, lmOptions.card.length ? {
93
- cardData: cardData,
94
- cardStateValue: cardStateValue
95
- } : {}));
96
- setVisible(false);
85
+
86
+ if (cardData.length > (((_g = props.recommendNumObj) === null || _g === void 0 ? void 0 : _g.card) || 10)) {
87
+ Modal.confirm({
88
+ title: '当前选择的卡片字段数量会导致卡片高度过高,是否继续?',
89
+ icon: /*#__PURE__*/React.createElement(ExclamationCircleOutlined, null),
90
+ content: '',
91
+ okText: '确认',
92
+ cancelText: '取消',
93
+ onOk: function onOk() {
94
+ var _a;
95
+
96
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, Object.assign({
97
+ columnsData: columnsData,
98
+ ColStateValue: ColStateValue,
99
+ filterData: filterData,
100
+ filterStateValue: filterStateValue,
101
+ size: lmOptions.size,
102
+ saveSetting: saveSetting
103
+ }, lmOptions.card.length ? {
104
+ cardData: cardData,
105
+ cardStateValue: cardStateValue
106
+ } : {}));
107
+ setVisible(false);
108
+ }
109
+ });
110
+ } else {
111
+ (_h = props.onSave) === null || _h === void 0 ? void 0 : _h.call(props, Object.assign({
112
+ columnsData: columnsData,
113
+ ColStateValue: ColStateValue,
114
+ filterData: filterData,
115
+ filterStateValue: filterStateValue,
116
+ size: lmOptions.size,
117
+ saveSetting: saveSetting
118
+ }, lmOptions.card.length ? {
119
+ cardData: cardData,
120
+ cardStateValue: cardStateValue
121
+ } : {}));
122
+ setVisible(false);
123
+ }
97
124
  };
98
125
 
99
126
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Tooltip, Object.assign({}, tooltip), /*#__PURE__*/React.createElement(Button, {
@@ -140,7 +167,8 @@ var LMCustomTableOption = /*#__PURE__*/forwardRef(function (props, ref) {
140
167
  forceRender: true
141
168
  }, /*#__PURE__*/React.createElement(CardSort, {
142
169
  ref: cardRef,
143
- card: lmOptions.card
170
+ card: lmOptions.card,
171
+ showPromptNum: ((_d = props.recommendNumObj) === null || _d === void 0 ? void 0 : _d.card) || 10
144
172
  })), /*#__PURE__*/React.createElement(TabPane, {
145
173
  tab: "\u5176\u4ED6",
146
174
  key: "3",
@@ -0,0 +1,19 @@
1
+ declare const locale: {
2
+ lang: {
3
+ setting: string;
4
+ cancel: string;
5
+ confirm: string;
6
+ filterSetting: string;
7
+ columnsSetting: string;
8
+ cardSetting: string;
9
+ other: string;
10
+ listStyle: string;
11
+ isSaveSetting: string;
12
+ selectAll: string;
13
+ reset: string;
14
+ fixedInLeft: string;
15
+ noFixed: string;
16
+ fixedInRight: string;
17
+ };
18
+ };
19
+ export default locale;
@@ -0,0 +1,19 @@
1
+ var locale = {
2
+ lang: {
3
+ setting: 'Personalization Settings',
4
+ cancel: 'Cancel',
5
+ confirm: 'Confirm',
6
+ filterSetting: 'Filter Setting',
7
+ columnsSetting: 'Columns Setting',
8
+ cardSetting: 'Card Setting',
9
+ other: 'Other',
10
+ listStyle: 'List Style',
11
+ isSaveSetting: 'Is Save Setting',
12
+ selectAll: 'selectAll',
13
+ reset: 'Reset',
14
+ fixedInLeft: 'Fixed Left',
15
+ noFixed: 'No Fixed',
16
+ fixedInRight: 'Fixed Right'
17
+ }
18
+ };
19
+ export default locale;
@@ -0,0 +1,19 @@
1
+ declare const locale: {
2
+ lang: {
3
+ setting: string;
4
+ cancel: string;
5
+ confirm: string;
6
+ filterSetting: string;
7
+ columnsSetting: string;
8
+ cardSetting: string;
9
+ other: string;
10
+ listStyle: string;
11
+ isSaveSetting: string;
12
+ selectAll: string;
13
+ reset: string;
14
+ fixedInLeft: string;
15
+ noFixed: string;
16
+ fixedInRight: string;
17
+ };
18
+ };
19
+ export default locale;
@@ -0,0 +1,19 @@
1
+ var locale = {
2
+ lang: {
3
+ setting: '个性化设置',
4
+ cancel: '取消',
5
+ confirm: '确认',
6
+ filterSetting: '筛选设置',
7
+ columnsSetting: '列表字段设置',
8
+ cardSetting: '卡片字段设置',
9
+ other: '其他',
10
+ listStyle: '列表样式',
11
+ isSaveSetting: '是否记住页面使用状态',
12
+ selectAll: '全选',
13
+ reset: '重置',
14
+ fixedInLeft: '固定在左侧',
15
+ noFixed: '不固定',
16
+ fixedInRight: '固定在右侧'
17
+ }
18
+ };
19
+ export default locale;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -573,6 +574,10 @@ p {
573
574
  display: none;
574
575
  color: var(--primary-color);
575
576
  }
577
+ .lm_custom_option_columns .card_prompt .anticon {
578
+ font-size: 16px;
579
+ color: var(--warning-color);
580
+ }
576
581
  .lm_custom_size_warp {
577
582
  display: flex;
578
583
  flex-direction: column;
@@ -62,6 +62,10 @@
62
62
  display: none;
63
63
  color: var(--primary-color);
64
64
  }
65
+ .lm_custom_option_columns .card_prompt .anticon {
66
+ font-size: 16px;
67
+ color: var(--warning-color);
68
+ }
65
69
  .lm_custom_size_warp {
66
70
  display: flex;
67
71
  flex-direction: column;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -534,7 +535,7 @@ p {
534
535
  background-color: var(--disabled-bg-color);
535
536
  }
536
537
  .lm_dropdown_button {
537
- border-radius: 4px;
538
+ border-radius: 2px;
538
539
  border: 1px solid var(--color-15);
539
540
  box-sizing: content-box;
540
541
  }
@@ -572,7 +573,7 @@ p {
572
573
  .lm_dropdown_button:hover {
573
574
  color: var(--primary-hover-color) !important;
574
575
  border: 1px solid var(--primary-hover-color);
575
- border-radius: 4px;
576
+ border-radius: 2px;
576
577
  }
577
578
  .lm_dropdown_button:hover .ant-btn {
578
579
  color: var(--primary-hover-color) !important;
@@ -23,7 +23,7 @@
23
23
  background-color: var(--disabled-bg-color);
24
24
  }
25
25
  .lm_dropdown_button {
26
- border-radius: 4px;
26
+ border-radius: 2px;
27
27
  border: 1px solid var(--color-15);
28
28
  box-sizing: content-box;
29
29
  }
@@ -61,7 +61,7 @@
61
61
  .lm_dropdown_button:hover {
62
62
  color: var(--primary-hover-color) !important;
63
63
  border: 1px solid var(--primary-hover-color);
64
- border-radius: 4px;
64
+ border-radius: 2px;
65
65
  }
66
66
  .lm_dropdown_button:hover .ant-btn {
67
67
  color: var(--primary-hover-color) !important;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -160,7 +160,9 @@ var LeftSide = function LeftSide(props) {
160
160
  className: useToggle ? "lm_grid_tree ".concat(modeTypeCls) : "lm_grid_tree grid_toggle ".concat(modeTypeCls)
161
161
  }, /*#__PURE__*/_react.default.createElement("div", {
162
162
  className: "grid_tree_title",
163
- onClick: onHeaderClick
163
+ onClick: function onClick(e) {
164
+ onHeaderClick && onHeaderClick(e);
165
+ }
164
166
  }, /*#__PURE__*/_react.default.createElement("div", {
165
167
  className: "grid_tree_title_left"
166
168
  }, /*#__PURE__*/_react.default.createElement("span", null, useTree.title)), treeType && /*#__PURE__*/_react.default.createElement(_Popover.default, {
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;
@@ -198,6 +198,7 @@
198
198
  --font-size-base: 14px;
199
199
  --font-size-lg: calc(var(--font-size-base) + 2px);
200
200
  --font-size-sm: 12px;
201
+ --border-radius: 2px;
201
202
  --color-contrast: #fff;
202
203
  --color-100: #000;
203
204
  --color-85: #262626;