linkmore-design 1.1.9 → 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 (233) hide show
  1. package/CHANGELOG.md +673 -647
  2. package/dist/Button/demos/type.d.ts +2 -0
  3. package/dist/CustomTableOption/index.d.ts +1 -0
  4. package/dist/CustomTableOption/locale/en_US.d.ts +19 -0
  5. package/dist/CustomTableOption/locale/zh_CN.d.ts +19 -0
  6. package/dist/LmEditTable/demos/priceTable.d.ts +2 -0
  7. package/dist/LmEditTable/util.d.ts +1 -0
  8. package/dist/LmFilter/demos/filterControl.d.ts +2 -0
  9. package/dist/Locale/default.d.ts +4 -1
  10. package/dist/Locale/zh_CN.d.ts +4 -1
  11. package/dist/Modal/demos/locale.d.ts +2 -0
  12. package/dist/Modal/locale.d.ts +7 -0
  13. package/dist/base.css +1 -0
  14. package/dist/index.umd.js +260 -212
  15. package/dist/index.umd.min.js +8 -8
  16. package/dist/variables.css +148 -12
  17. package/es/Affix/style/index.css +1 -0
  18. package/es/Alert/style/index.css +1 -0
  19. package/es/Approval/style/index.css +1 -0
  20. package/es/AutoComplete/style/index.css +1 -0
  21. package/es/Avatar/style/index.css +1 -0
  22. package/es/Badge/style/index.css +1 -0
  23. package/es/Breadcrumb/style/index.css +1 -0
  24. package/es/Button/style/index.css +4 -1
  25. package/es/Button/style/variables.css +4 -1
  26. package/es/ButtonTags/style/index.css +1 -0
  27. package/es/Calendar/style/index.css +1 -0
  28. package/es/Card/style/index.css +1 -0
  29. package/es/CardTable/style/index.css +7 -9
  30. package/es/CardTable/style/variables.css +7 -9
  31. package/es/Carousel/style/index.css +1 -0
  32. package/es/Cascader/style/index.css +1 -0
  33. package/es/Col/style/index.css +1 -0
  34. package/es/Collapse/style/index.css +1 -0
  35. package/es/Comment/style/index.css +1 -0
  36. package/es/CustomTableOption/cardSort.js +21 -16
  37. package/es/CustomTableOption/columnsSort.js +16 -16
  38. package/es/CustomTableOption/filterSort.js +11 -11
  39. package/es/CustomTableOption/index.d.ts +1 -0
  40. package/es/CustomTableOption/index.js +45 -17
  41. package/es/CustomTableOption/locale/en_US.d.ts +19 -0
  42. package/es/CustomTableOption/locale/en_US.js +19 -0
  43. package/es/CustomTableOption/locale/zh_CN.d.ts +19 -0
  44. package/es/CustomTableOption/locale/zh_CN.js +19 -0
  45. package/es/CustomTableOption/style/index.css +5 -0
  46. package/es/CustomTableOption/style/variables.css +4 -0
  47. package/es/CustomerService/style/index.css +1 -0
  48. package/es/DatePicker/style/index.css +1 -0
  49. package/es/Descriptions/style/index.css +1 -0
  50. package/es/Divider/style/index.css +1 -0
  51. package/es/Drawer/style/index.css +1 -0
  52. package/es/Dropdown/style/index.css +3 -2
  53. package/es/Dropdown/style/variables.css +2 -2
  54. package/es/EditTable/style/index.css +1 -0
  55. package/es/Empty/style/index.css +1 -0
  56. package/es/Filter/style/index.css +1 -0
  57. package/es/Form/style/index.css +1 -0
  58. package/es/FullScreen/style/index.css +1 -0
  59. package/es/Grid/style/index.css +1 -0
  60. package/es/Icon/style/index.css +1 -0
  61. package/es/Image/style/index.css +1 -0
  62. package/es/ImageViewer/components/Operate.js +5 -2
  63. package/es/Input/style/index.css +1 -0
  64. package/es/InputNumber/style/index.css +1 -0
  65. package/es/Layout/style/index.css +1 -0
  66. package/es/LeftTable/index.js +3 -1
  67. package/es/LeftTable/style/index.css +1 -0
  68. package/es/List/style/index.css +1 -0
  69. package/es/LmEditTable/EditTable.js +39 -88
  70. package/es/LmEditTable/style/index.css +5 -0
  71. package/es/LmEditTable/style/variables.css +4 -0
  72. package/es/LmEditTable/util.d.ts +1 -0
  73. package/es/LmEditTable/util.js +27 -0
  74. package/es/LmSelect/style/index.css +1 -0
  75. package/es/LmTable/Table.js +9 -5
  76. package/es/LmTable/style/index.css +4 -0
  77. package/es/LmTable/style/variables.css +3 -0
  78. package/es/LmUpload/style/index.css +118 -0
  79. package/es/LmUpload/style/variables.css +118 -0
  80. package/es/Locale/default.d.ts +4 -1
  81. package/es/Locale/default.js +3 -1
  82. package/es/Locale/zh_CN.d.ts +4 -1
  83. package/es/Locale/zh_CN.js +3 -1
  84. package/es/Mentions/style/index.css +1 -0
  85. package/es/Menu/style/index.css +1 -0
  86. package/es/Modal/index.js +18 -14
  87. package/es/Modal/locale.d.ts +7 -0
  88. package/es/Modal/locale.js +12 -0
  89. package/es/Modal/style/index.css +1 -0
  90. package/es/PageHeader/style/index.css +1 -0
  91. package/es/Pagination/style/index.css +1 -0
  92. package/es/Popconfirm/style/index.css +1 -0
  93. package/es/Popover/style/index.css +1 -0
  94. package/es/Progress/style/index.css +1 -0
  95. package/es/QuickMenu/style/index.css +6 -0
  96. package/es/QuickMenu/style/variables.css +5 -0
  97. package/es/Rate/style/index.css +1 -0
  98. package/es/Result/style/index.css +1 -0
  99. package/es/Row/style/index.css +1 -0
  100. package/es/Segmented/style/index.css +1 -0
  101. package/es/Select/style/index.css +1 -0
  102. package/es/Skeleton/style/index.css +1 -0
  103. package/es/Slider/style/index.css +1 -0
  104. package/es/Space/style/index.css +1 -0
  105. package/es/Spin/style/index.css +1 -0
  106. package/es/Statistic/style/index.css +1 -0
  107. package/es/Steps/style/index.css +1 -0
  108. package/es/Switch/style/index.css +1 -0
  109. package/es/Table/style/index.css +1 -0
  110. package/es/Tabs/style/index.css +1 -0
  111. package/es/Tag/style/index.css +1 -0
  112. package/es/TimePicker/style/index.css +1 -0
  113. package/es/Timeline/style/index.css +1 -0
  114. package/es/Tooltip/style/index.css +1 -0
  115. package/es/Transfer/style/index.css +1 -0
  116. package/es/Tree/style/index.css +1 -0
  117. package/es/TreeSelect/style/index.css +1 -0
  118. package/es/Typography/style/index.css +1 -0
  119. package/es/Upload/style/index.css +1 -0
  120. package/es/locale-provider/style/index.css +1 -0
  121. package/es/message/style/index.css +1 -0
  122. package/es/notification/style/index.css +1 -0
  123. package/es/styles/main.css +1 -0
  124. package/es/styles/variables.css +148 -12
  125. package/lib/Affix/style/index.css +1 -0
  126. package/lib/Alert/style/index.css +1 -0
  127. package/lib/Approval/style/index.css +1 -0
  128. package/lib/AutoComplete/style/index.css +1 -0
  129. package/lib/Avatar/style/index.css +1 -0
  130. package/lib/Badge/style/index.css +1 -0
  131. package/lib/Breadcrumb/style/index.css +1 -0
  132. package/lib/Button/style/index.css +4 -1
  133. package/lib/Button/style/variables.css +4 -1
  134. package/lib/ButtonTags/style/index.css +1 -0
  135. package/lib/Calendar/style/index.css +1 -0
  136. package/lib/Card/style/index.css +1 -0
  137. package/lib/CardTable/style/index.css +7 -9
  138. package/lib/CardTable/style/variables.css +7 -9
  139. package/lib/Carousel/style/index.css +1 -0
  140. package/lib/Cascader/style/index.css +1 -0
  141. package/lib/Col/style/index.css +1 -0
  142. package/lib/Collapse/style/index.css +1 -0
  143. package/lib/Comment/style/index.css +1 -0
  144. package/lib/CustomTableOption/cardSort.js +20 -15
  145. package/lib/CustomTableOption/columnsSort.js +16 -16
  146. package/lib/CustomTableOption/filterSort.js +11 -11
  147. package/lib/CustomTableOption/index.d.ts +1 -0
  148. package/lib/CustomTableOption/index.js +45 -16
  149. package/lib/CustomTableOption/locale/en_US.d.ts +19 -0
  150. package/lib/CustomTableOption/locale/en_US.js +26 -0
  151. package/lib/CustomTableOption/locale/zh_CN.d.ts +19 -0
  152. package/lib/CustomTableOption/locale/zh_CN.js +26 -0
  153. package/lib/CustomTableOption/style/index.css +5 -0
  154. package/lib/CustomTableOption/style/variables.css +4 -0
  155. package/lib/CustomerService/style/index.css +1 -0
  156. package/lib/DatePicker/style/index.css +1 -0
  157. package/lib/Descriptions/style/index.css +1 -0
  158. package/lib/Divider/style/index.css +1 -0
  159. package/lib/Drawer/style/index.css +1 -0
  160. package/lib/Dropdown/style/index.css +3 -2
  161. package/lib/Dropdown/style/variables.css +2 -2
  162. package/lib/EditTable/style/index.css +1 -0
  163. package/lib/Empty/style/index.css +1 -0
  164. package/lib/Filter/style/index.css +1 -0
  165. package/lib/Form/style/index.css +1 -0
  166. package/lib/FullScreen/style/index.css +1 -0
  167. package/lib/Grid/style/index.css +1 -0
  168. package/lib/Icon/style/index.css +1 -0
  169. package/lib/Image/style/index.css +1 -0
  170. package/lib/ImageViewer/components/Operate.js +6 -2
  171. package/lib/Input/style/index.css +1 -0
  172. package/lib/InputNumber/style/index.css +1 -0
  173. package/lib/Layout/style/index.css +1 -0
  174. package/lib/LeftTable/index.js +3 -1
  175. package/lib/LeftTable/style/index.css +1 -0
  176. package/lib/List/style/index.css +1 -0
  177. package/lib/LmEditTable/EditTable.js +39 -87
  178. package/lib/LmEditTable/style/index.css +5 -0
  179. package/lib/LmEditTable/style/variables.css +4 -0
  180. package/lib/LmEditTable/util.d.ts +1 -0
  181. package/lib/LmEditTable/util.js +30 -0
  182. package/lib/LmSelect/style/index.css +1 -0
  183. package/lib/LmTable/Table.js +9 -5
  184. package/lib/LmTable/style/index.css +4 -0
  185. package/lib/LmTable/style/variables.css +3 -0
  186. package/lib/LmUpload/style/index.css +118 -0
  187. package/lib/LmUpload/style/variables.css +118 -0
  188. package/lib/Locale/default.d.ts +4 -1
  189. package/lib/Locale/default.js +4 -1
  190. package/lib/Locale/zh_CN.d.ts +4 -1
  191. package/lib/Locale/zh_CN.js +4 -1
  192. package/lib/Mentions/style/index.css +1 -0
  193. package/lib/Menu/style/index.css +1 -0
  194. package/lib/Modal/index.js +22 -14
  195. package/lib/Modal/locale.d.ts +7 -0
  196. package/lib/Modal/locale.js +25 -0
  197. package/lib/Modal/style/index.css +1 -0
  198. package/lib/PageHeader/style/index.css +1 -0
  199. package/lib/Pagination/style/index.css +1 -0
  200. package/lib/Popconfirm/style/index.css +1 -0
  201. package/lib/Popover/style/index.css +1 -0
  202. package/lib/Progress/style/index.css +1 -0
  203. package/lib/QuickMenu/style/index.css +6 -0
  204. package/lib/QuickMenu/style/variables.css +5 -0
  205. package/lib/Rate/style/index.css +1 -0
  206. package/lib/Result/style/index.css +1 -0
  207. package/lib/Row/style/index.css +1 -0
  208. package/lib/Segmented/style/index.css +1 -0
  209. package/lib/Select/style/index.css +1 -0
  210. package/lib/Skeleton/style/index.css +1 -0
  211. package/lib/Slider/style/index.css +1 -0
  212. package/lib/Space/style/index.css +1 -0
  213. package/lib/Spin/style/index.css +1 -0
  214. package/lib/Statistic/style/index.css +1 -0
  215. package/lib/Steps/style/index.css +1 -0
  216. package/lib/Switch/style/index.css +1 -0
  217. package/lib/Table/style/index.css +1 -0
  218. package/lib/Tabs/style/index.css +1 -0
  219. package/lib/Tag/style/index.css +1 -0
  220. package/lib/TimePicker/style/index.css +1 -0
  221. package/lib/Timeline/style/index.css +1 -0
  222. package/lib/Tooltip/style/index.css +1 -0
  223. package/lib/Transfer/style/index.css +1 -0
  224. package/lib/Tree/style/index.css +1 -0
  225. package/lib/TreeSelect/style/index.css +1 -0
  226. package/lib/Typography/style/index.css +1 -0
  227. package/lib/Upload/style/index.css +1 -0
  228. package/lib/locale-provider/style/index.css +1 -0
  229. package/lib/message/style/index.css +1 -0
  230. package/lib/notification/style/index.css +1 -0
  231. package/lib/styles/main.css +1 -0
  232. package/lib/styles/variables.css +148 -12
  233. package/package.json +1 -6
@@ -46,16 +46,16 @@ var SortItem = function SortItem(props) {
46
46
  };
47
47
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
48
48
  ref: setNodeRef,
49
- className: 'lm_custom_item',
49
+ className: "lm_custom_item",
50
50
  style: style
51
51
  }, attributes), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
52
- checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) === false ? false : true,
52
+ checked: ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
53
53
  onChange: function onChange(e) {
54
- return props.toggleShow(e.target.checked, props.id);
54
+ return props === null || props === void 0 ? void 0 : props.toggleShow(e.target.checked, props === null || props === void 0 ? void 0 : props.id);
55
55
  },
56
56
  className: "filter_item-content"
57
- }, (_b = props.item) === null || _b === void 0 ? void 0 : _b.title), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
58
- className: 'lm_custom_icon sort_item'
57
+ }, (_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.title), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
58
+ className: "lm_custom_icon sort_item"
59
59
  }))));
60
60
  };
61
61
  /** order show */
@@ -65,7 +65,8 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
65
65
  var _ref$card = _ref.card,
66
66
  card = _ref$card === void 0 ? [] : _ref$card,
67
67
  _ref$cardStateValue = _ref.cardStateValue,
68
- cardStateValue = _ref$cardStateValue === void 0 ? {} : _ref$cardStateValue;
68
+ cardStateValue = _ref$cardStateValue === void 0 ? {} : _ref$cardStateValue,
69
+ showPromptNum = _ref.showPromptNum;
69
70
 
70
71
  var _useState = (0, _react.useState)([]),
71
72
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -109,7 +110,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
109
110
  return item.show !== false;
110
111
  });
111
112
  return {
112
- indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localCard.length ? true : false,
113
+ indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localCard.length),
113
114
  checkAll: showLength.length === localCard.length
114
115
  };
115
116
  }, [localCard]);
@@ -155,7 +156,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
155
156
  var resultColumns = localCard.map(function (item) {
156
157
  if (item.dataIndex === id) {
157
158
  return Object.assign(Object.assign({}, item), {
158
- show: item.show === false ? true : false
159
+ show: item.show === false
159
160
  });
160
161
  }
161
162
 
@@ -169,7 +170,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
169
170
  var onCheckAllChange = function onCheckAllChange() {
170
171
  var resultColumns = localCard.map(function (item) {
171
172
  return Object.assign(Object.assign({}, item), {
172
- show: isCheckAll.checkAll ? false : true
173
+ show: !isCheckAll.checkAll
173
174
  });
174
175
  });
175
176
  setLocalCard(resultColumns);
@@ -186,11 +187,11 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
186
187
  obj[item.dataIndex] = {};
187
188
 
188
189
  if (![undefined, null].includes(item.order)) {
189
- obj[item.dataIndex]['order'] = item.order;
190
+ obj[item.dataIndex].order = item.order;
190
191
  }
191
192
 
192
193
  if (![undefined, null].includes(item.show)) {
193
- obj[item.dataIndex]['show'] = item.show;
194
+ obj[item.dataIndex].show = item.show;
194
195
  }
195
196
  });
196
197
  return obj;
@@ -198,17 +199,21 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
198
199
  };
199
200
  });
200
201
  return /*#__PURE__*/_react.default.createElement("div", {
201
- className: 'lm_custom_option_columns'
202
+ className: "lm_custom_option_columns"
202
203
  }, /*#__PURE__*/_react.default.createElement("div", {
203
- className: 'global_search'
204
+ className: "global_search"
204
205
  }, /*#__PURE__*/_react.default.createElement(Search, {
205
206
  value: searchIngValue,
206
207
  onChange: function onChange(e) {
207
208
  return setSearchIngValue(e.target.value);
208
209
  },
209
210
  onSearch: handleSearch
210
- })), /*#__PURE__*/_react.default.createElement("div", {
211
- className: 'global_setting'
211
+ })), /*#__PURE__*/_react.default.createElement("p", {
212
+ className: "card_prompt"
213
+ }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
214
+ type: "lmweb-warning-circle"
215
+ }), " \u5361\u7247\u5B57\u6BB5\u5EFA\u8BAE\u6700\u591A\u663E\u793A", showPromptNum || 10, "\u4E2A\u4E3A\u4F18"), /*#__PURE__*/_react.default.createElement("div", {
216
+ className: "global_setting"
212
217
  }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
213
218
  indeterminate: isCheckAll.indeterminate,
214
219
  onChange: onCheckAllChange,
@@ -45,10 +45,10 @@ var SortItem = function SortItem(props) {
45
45
  };
46
46
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
47
47
  ref: setNodeRef,
48
- className: 'lm_custom_item',
48
+ className: "lm_custom_item",
49
49
  style: style
50
50
  }, attributes), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
51
- checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) === false ? false : true,
51
+ checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
52
52
  onChange: function onChange(e) {
53
53
  return props.toggleShow(e.target.checked, props.id);
54
54
  },
@@ -75,7 +75,7 @@ var SortItem = function SortItem(props) {
75
75
  props.addFiexd(props.id, 'right');
76
76
  }
77
77
  })), /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
78
- className: 'lm_custom_icon sort_item',
78
+ className: "lm_custom_icon sort_item",
79
79
  style: {
80
80
  color: 'var(--tip-text-color)'
81
81
  }
@@ -128,7 +128,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
128
128
  var order = (_a = colStateValue[item.dataIndex]) === null || _a === void 0 ? void 0 : _a.order;
129
129
  item.fixed = ((_b = colStateValue[item.dataIndex]) === null || _b === void 0 ? void 0 : _b.fixed) || undefined;
130
130
  item.order = [undefined, null].includes(order) ? index : order;
131
- item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) === false ? false : true;
131
+ item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) !== false;
132
132
  }
133
133
  });
134
134
  var leftSortItem = [];
@@ -154,7 +154,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
154
154
  return item.show !== false;
155
155
  });
156
156
  return {
157
- indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length ? true : false,
157
+ indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length),
158
158
  checkAll: showLength.length === localColumns.length
159
159
  };
160
160
  }, [localColumns]);
@@ -222,7 +222,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
222
222
  var resultColumns = localColumns.map(function (item) {
223
223
  if (item.dataIndex === id) {
224
224
  return Object.assign(Object.assign({}, item), {
225
- show: item.show === false ? true : false
225
+ show: item.show === false
226
226
  });
227
227
  }
228
228
 
@@ -251,7 +251,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
251
251
  var onCheckAllChange = function onCheckAllChange() {
252
252
  var resultColumns = localColumns.map(function (item) {
253
253
  return Object.assign(Object.assign({}, item), {
254
- show: isCheckAll.checkAll ? false : true
254
+ show: !isCheckAll.checkAll
255
255
  });
256
256
  });
257
257
  setLocalColumns(resultColumns);
@@ -268,15 +268,15 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
268
268
  obj[item.dataIndex] = {};
269
269
 
270
270
  if (![undefined, null].includes(item.order)) {
271
- obj[item.dataIndex]['order'] = item.order;
271
+ obj[item.dataIndex].order = item.order;
272
272
  }
273
273
 
274
274
  if (![undefined, null].includes(item.show)) {
275
- obj[item.dataIndex]['show'] = item.show;
275
+ obj[item.dataIndex].show = item.show;
276
276
  }
277
277
 
278
278
  if (![undefined, null].includes(item.fixed)) {
279
- obj[item.dataIndex]['fixed'] = item.fixed;
279
+ obj[item.dataIndex].fixed = item.fixed;
280
280
  }
281
281
  });
282
282
  return obj;
@@ -284,9 +284,9 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
284
284
  };
285
285
  });
286
286
  return /*#__PURE__*/_react.default.createElement("div", {
287
- className: 'lm_custom_option_columns'
287
+ className: "lm_custom_option_columns"
288
288
  }, /*#__PURE__*/_react.default.createElement("div", {
289
- className: 'global_search'
289
+ className: "global_search"
290
290
  }, /*#__PURE__*/_react.default.createElement(Search, {
291
291
  value: searchIngValue,
292
292
  onChange: function onChange(e) {
@@ -294,7 +294,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
294
294
  },
295
295
  onSearch: handleSearch
296
296
  })), /*#__PURE__*/_react.default.createElement("div", {
297
- className: 'global_setting'
297
+ className: "global_setting"
298
298
  }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
299
299
  indeterminate: isCheckAll.indeterminate,
300
300
  onChange: onCheckAllChange,
@@ -304,7 +304,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
304
304
  return setLocalColumns(columns);
305
305
  }
306
306
  }, "\u91CD\u7F6E")), !!((_a = sortMenu.leftSortItem) === null || _a === void 0 ? void 0 : _a.length) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("label", {
307
- className: 'fixed_title'
307
+ className: "fixed_title"
308
308
  }, "\u56FA\u5B9A\u5728\u5DE6\u4FA7"), /*#__PURE__*/_react.default.createElement(_core.DndContext, {
309
309
  sensors: leftSensors,
310
310
  collisionDetection: _core.closestCenter,
@@ -323,7 +323,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
323
323
  id: item.dataIndex
324
324
  });
325
325
  })))), !!((_c = sortMenu.items) === null || _c === void 0 ? void 0 : _c.length) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("label", {
326
- className: 'fixed_title'
326
+ className: "fixed_title"
327
327
  }, " \u4E0D\u56FA\u5B9A "), /*#__PURE__*/_react.default.createElement(_core.DndContext, {
328
328
  sensors: sensors,
329
329
  collisionDetection: _core.closestCenter,
@@ -342,7 +342,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
342
342
  id: item.dataIndex
343
343
  });
344
344
  })))), !!((_f = sortMenu.rigthSortItem) === null || _f === void 0 ? void 0 : _f.length) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("label", {
345
- className: 'fixed_title'
345
+ className: "fixed_title"
346
346
  }, "\u56FA\u5B9A\u5728\u53F3\u4FA7"), /*#__PURE__*/_react.default.createElement(_core.DndContext, {
347
347
  sensors: rightSensors,
348
348
  collisionDetection: _core.closestCenter,
@@ -46,16 +46,16 @@ var SortItem = function SortItem(props) {
46
46
  };
47
47
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
48
48
  ref: setNodeRef,
49
- className: 'lm_custom_item',
49
+ className: "lm_custom_item",
50
50
  style: style
51
51
  }, attributes), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
52
- checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) === false ? false : true,
52
+ checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
53
53
  onChange: function onChange(e) {
54
54
  return props.toggleShow(e.target.checked, props.id);
55
55
  },
56
56
  className: "filter_item-content"
57
57
  }, (_b = props.item) === null || _b === void 0 ? void 0 : _b.title), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
58
- className: 'lm_custom_icon sort_item'
58
+ className: "lm_custom_icon sort_item"
59
59
  }))));
60
60
  };
61
61
  /** order show fixed */
@@ -109,7 +109,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
109
109
  return item.show !== false;
110
110
  });
111
111
  return {
112
- indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length ? true : false,
112
+ indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length),
113
113
  checkAll: showLength.length === localFilter.length
114
114
  };
115
115
  }, [localFilter]);
@@ -155,7 +155,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
155
155
  var resultColumns = localFilter.map(function (item) {
156
156
  if (item.field === id) {
157
157
  return Object.assign(Object.assign({}, item), {
158
- show: item.show === false ? true : false
158
+ show: item.show === false
159
159
  });
160
160
  }
161
161
 
@@ -169,7 +169,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
169
169
  var onCheckAllChange = function onCheckAllChange() {
170
170
  var resultColumns = localFilter.map(function (item) {
171
171
  return Object.assign(Object.assign({}, item), {
172
- show: isCheckAll.checkAll ? false : true
172
+ show: !isCheckAll.checkAll
173
173
  });
174
174
  });
175
175
  console.log(resultColumns, 'resultColumns');
@@ -187,11 +187,11 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
187
187
  obj[item.field] = {};
188
188
 
189
189
  if (![undefined, null].includes(item.order)) {
190
- obj[item.field]['order'] = item.order;
190
+ obj[item.field].order = item.order;
191
191
  }
192
192
 
193
193
  if (![undefined, null].includes(item.show)) {
194
- obj[item.field]['show'] = item.show;
194
+ obj[item.field].show = item.show;
195
195
  }
196
196
  });
197
197
  return obj;
@@ -199,9 +199,9 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
199
199
  };
200
200
  });
201
201
  return /*#__PURE__*/_react.default.createElement("div", {
202
- className: 'lm_custom_option_columns'
202
+ className: "lm_custom_option_columns"
203
203
  }, /*#__PURE__*/_react.default.createElement("div", {
204
- className: 'global_search'
204
+ className: "global_search"
205
205
  }, /*#__PURE__*/_react.default.createElement(Search, {
206
206
  value: searchIngValue,
207
207
  onChange: function onChange(e) {
@@ -209,7 +209,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
209
209
  },
210
210
  onSearch: handleSearch
211
211
  })), /*#__PURE__*/_react.default.createElement("div", {
212
- className: 'global_setting'
212
+ className: "global_setting"
213
213
  }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
214
214
  indeterminate: isCheckAll.indeterminate,
215
215
  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;
@@ -17,6 +17,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
17
17
 
18
18
  var _react = _interopRequireWildcard(require("react"));
19
19
 
20
+ var _icons = require("@ant-design/icons");
21
+
20
22
  var _linkmoreDesign = require("linkmore-design");
21
23
 
22
24
  var _columnsSort = _interopRequireDefault(require("./columnsSort"));
@@ -43,7 +45,7 @@ var optionsWithDisabled = [{
43
45
  }];
44
46
  var prefixCls = 'lm_custom-table-option';
45
47
  var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
46
- var _a, _b, _c;
48
+ var _a, _b, _c, _d;
47
49
 
48
50
  var className = props.className,
49
51
  _props$tooltip = props.tooltip,
@@ -89,7 +91,7 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
89
91
  /** 提交按钮 */
90
92
 
91
93
  var onOk = function onOk() {
92
- var _a, _b, _c, _d, _e, _f, _g;
94
+ var _a, _b, _c, _d, _e, _f, _g, _h;
93
95
  /** tableInfo */
94
96
 
95
97
 
@@ -101,19 +103,45 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
101
103
  var filterStateValue = (_d = filterRef.current) === null || _d === void 0 ? void 0 : _d.getFilterStateValue();
102
104
  var cardData = ((_e = cardRef.current) === null || _e === void 0 ? void 0 : _e.getLocalFilter()) || [];
103
105
  var cardStateValue = ((_f = cardRef.current) === null || _f === void 0 ? void 0 : _f.getFilterStateValue()) || {};
104
- console.log('--columnsData:', columnsData, ColStateValue, '--filterData:', filterData, filterStateValue, 'size:', lmOptions.size);
105
- (_g = props.onSave) === null || _g === void 0 ? void 0 : _g.call(props, Object.assign({
106
- columnsData: columnsData,
107
- ColStateValue: ColStateValue,
108
- filterData: filterData,
109
- filterStateValue: filterStateValue,
110
- size: lmOptions.size,
111
- saveSetting: saveSetting
112
- }, lmOptions.card.length ? {
113
- cardData: cardData,
114
- cardStateValue: cardStateValue
115
- } : {}));
116
- setVisible(false);
106
+
107
+ if (cardData.length > (((_g = props.recommendNumObj) === null || _g === void 0 ? void 0 : _g.card) || 10)) {
108
+ _linkmoreDesign.Modal.confirm({
109
+ title: '当前选择的卡片字段数量会导致卡片高度过高,是否继续?',
110
+ icon: /*#__PURE__*/_react.default.createElement(_icons.ExclamationCircleOutlined, null),
111
+ content: '',
112
+ okText: '确认',
113
+ cancelText: '取消',
114
+ onOk: function onOk() {
115
+ var _a;
116
+
117
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, Object.assign({
118
+ columnsData: columnsData,
119
+ ColStateValue: ColStateValue,
120
+ filterData: filterData,
121
+ filterStateValue: filterStateValue,
122
+ size: lmOptions.size,
123
+ saveSetting: saveSetting
124
+ }, lmOptions.card.length ? {
125
+ cardData: cardData,
126
+ cardStateValue: cardStateValue
127
+ } : {}));
128
+ setVisible(false);
129
+ }
130
+ });
131
+ } else {
132
+ (_h = props.onSave) === null || _h === void 0 ? void 0 : _h.call(props, Object.assign({
133
+ columnsData: columnsData,
134
+ ColStateValue: ColStateValue,
135
+ filterData: filterData,
136
+ filterStateValue: filterStateValue,
137
+ size: lmOptions.size,
138
+ saveSetting: saveSetting
139
+ }, lmOptions.card.length ? {
140
+ cardData: cardData,
141
+ cardStateValue: cardStateValue
142
+ } : {}));
143
+ setVisible(false);
144
+ }
117
145
  };
118
146
 
119
147
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, Object.assign({}, tooltip), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
@@ -160,7 +188,8 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
160
188
  forceRender: true
161
189
  }, /*#__PURE__*/_react.default.createElement(_cardSort.default, {
162
190
  ref: cardRef,
163
- card: lmOptions.card
191
+ card: lmOptions.card,
192
+ showPromptNum: ((_d = props.recommendNumObj) === null || _d === void 0 ? void 0 : _d.card) || 10
164
193
  })), /*#__PURE__*/_react.default.createElement(TabPane, {
165
194
  tab: "\u5176\u4ED6",
166
195
  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,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var locale = {
8
+ lang: {
9
+ setting: 'Personalization Settings',
10
+ cancel: 'Cancel',
11
+ confirm: 'Confirm',
12
+ filterSetting: 'Filter Setting',
13
+ columnsSetting: 'Columns Setting',
14
+ cardSetting: 'Card Setting',
15
+ other: 'Other',
16
+ listStyle: 'List Style',
17
+ isSaveSetting: 'Is Save Setting',
18
+ selectAll: 'selectAll',
19
+ reset: 'Reset',
20
+ fixedInLeft: 'Fixed Left',
21
+ noFixed: 'No Fixed',
22
+ fixedInRight: 'Fixed Right'
23
+ }
24
+ };
25
+ var _default = locale;
26
+ exports.default = _default;
@@ -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,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var locale = {
8
+ lang: {
9
+ setting: '个性化设置',
10
+ cancel: '取消',
11
+ confirm: '确认',
12
+ filterSetting: '筛选设置',
13
+ columnsSetting: '列表字段设置',
14
+ cardSetting: '卡片字段设置',
15
+ other: '其他',
16
+ listStyle: '列表样式',
17
+ isSaveSetting: '是否记住页面使用状态',
18
+ selectAll: '全选',
19
+ reset: '重置',
20
+ fixedInLeft: '固定在左侧',
21
+ noFixed: '不固定',
22
+ fixedInRight: '固定在右侧'
23
+ }
24
+ };
25
+ var _default = locale;
26
+ exports.default = _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;
@@ -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;