@teamix/pro 1.5.3 → 1.5.4-beta.0

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 (291) hide show
  1. package/dist/pro.css +1 -1
  2. package/dist/pro.js +20239 -19807
  3. package/dist/pro.min.css +1 -1
  4. package/dist/pro.min.js +1 -1
  5. package/dist/pro.min.js.LICENSE.txt +2 -6
  6. package/es/actions/base.js +8 -21
  7. package/es/actions/dialog-component.js +2 -9
  8. package/es/actions/dialog-form.js +37 -75
  9. package/es/actions/dialog-info.js +1 -5
  10. package/es/actions/dialog.js +57 -95
  11. package/es/actions/index.d.ts +2 -0
  12. package/es/actions/index.js +70 -156
  13. package/es/actions/link.js +3 -5
  14. package/es/actions/quick.js +0 -6
  15. package/es/actions/request.js +12 -27
  16. package/es/actions/utils.js +1 -9
  17. package/es/card/card-container.js +0 -5
  18. package/es/card/divider.js +0 -5
  19. package/es/card/index.js +56 -95
  20. package/es/card/selectable.js +4 -13
  21. package/es/card/tab.js +1 -10
  22. package/es/card/utils.js +0 -2
  23. package/es/form/Components/Editable/index.js +16 -55
  24. package/es/form/Components/FormGroup/index.d.ts +1 -0
  25. package/es/form/Components/FormGroup/index.js +7 -22
  26. package/es/form/Components/LightFilter/index.js +15 -35
  27. package/es/form/Components/ProField/index.js +2 -14
  28. package/es/form/Components/ProField/mapDateFormat.js +2 -28
  29. package/es/form/Components/Text/index.d.ts +1 -0
  30. package/es/form/Components/Text/index.js +2 -11
  31. package/es/form/Filter/AdvancedFilter.js +11 -26
  32. package/es/form/Filter/Layout.js +11 -24
  33. package/es/form/Filter/LightFilter.js +13 -24
  34. package/es/form/Filter/SimpleFilter.js +7 -21
  35. package/es/form/Filter/index.js +106 -171
  36. package/es/form/Filter/index2.js +11 -28
  37. package/es/form/Filter/useBindUrl.js +18 -46
  38. package/es/form/Filter/useSpecialProps.js +8 -13
  39. package/es/form/ProForm/addCascadeEffect.js +10 -32
  40. package/es/form/ProForm/customComponent.js +0 -5
  41. package/es/form/ProForm/index.js +23 -34
  42. package/es/form/ProForm/useAutoLayout.js +21 -42
  43. package/es/form/ProForm/useAutoSubmit.js +3 -8
  44. package/es/form/ProForm/useFieldRequest.js +0 -5
  45. package/es/form/ProForm/useFormDisplayValues.js +12 -28
  46. package/es/form/ProForm/useInitialRequest.js +0 -5
  47. package/es/form/SchemaForm/adapterComponent.js +0 -3
  48. package/es/form/SchemaForm/adapterDecorator.d.ts +1 -1
  49. package/es/form/SchemaForm/adapterDecorator.js +0 -8
  50. package/es/form/SchemaForm/adapterType.js +0 -2
  51. package/es/form/SchemaForm/index.js +78 -114
  52. package/es/form/SchemaForm/initializeArrayCards.js +0 -6
  53. package/es/form/SchemaForm/initializeArrayCollapse.js +0 -6
  54. package/es/form/SchemaForm/initializeArrayItems.js +2 -9
  55. package/es/form/SchemaForm/initializeArrayTable.js +21 -34
  56. package/es/form/SchemaForm/initializeDataSource.js +2 -6
  57. package/es/form/SchemaForm/initializeFormButton.js +14 -31
  58. package/es/form/SchemaForm/initializeFormCollapse.js +8 -18
  59. package/es/form/SchemaForm/initializeFormGroup.js +10 -20
  60. package/es/form/SchemaForm/initializeFormStep.js +11 -23
  61. package/es/form/SchemaForm/initializeFormTab.js +10 -20
  62. package/es/form/SchemaForm/initializeReactions.js +9 -33
  63. package/es/form/SchemaForm/initializeRequest.js +2 -16
  64. package/es/form/SchemaForm/initializeRules.js +4 -22
  65. package/es/form/SchemaForm/initializeSelectTable.js +7 -33
  66. package/es/form/SchemaForm/reactions.js +19 -34
  67. package/es/form/docs/ActionResponse.d.ts +1 -0
  68. package/es/form/index.d.ts +9 -9
  69. package/es/form/index.js +0 -9
  70. package/es/form/typing.d.ts +6 -4
  71. package/es/form/utils.d.ts +1 -1
  72. package/es/form/utils.js +4 -49
  73. package/es/form/warning.js +2 -7
  74. package/es/index-without-icon.js +4 -3
  75. package/es/index.d.ts +1 -1
  76. package/es/index.js +7 -8
  77. package/es/info/components/InfoGroup/index.js +21 -32
  78. package/es/info/components/InfoValueItem/index.js +66 -119
  79. package/es/info/components/ProInfoItem/index.js +13 -21
  80. package/es/info/components/baseInfo/index.js +14 -26
  81. package/es/info/components/headerInfo/index.js +8 -20
  82. package/es/info/components/tableInfo/index.js +20 -50
  83. package/es/info/index.js +53 -82
  84. package/es/info/utils/index.js +0 -11
  85. package/es/nocode/configurators/common.js +5 -6
  86. package/es/nocode/configurators/index.js +2 -3
  87. package/es/nocode/index.js +6 -6
  88. package/es/nocode/pages/editor.js +5 -9
  89. package/es/nocode/pages/index.js +4 -4
  90. package/es/nocode/pages/playground.js +18 -35
  91. package/es/nocode/pages/renderer.js +9 -42
  92. package/es/nocode/playground.js +10 -23
  93. package/es/page-header/index.d.ts +2 -2
  94. package/es/page-header/index.js +39 -75
  95. package/es/sidebar/components/sidebar-container/index.js +41 -72
  96. package/es/sidebar/components/tree/index.js +88 -144
  97. package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +11 -26
  98. package/es/sidebar/components/tree-node/components/IconAction/index.js +9 -35
  99. package/es/sidebar/components/tree-node/components/IconSwitch/index.js +12 -25
  100. package/es/sidebar/components/tree-node/index.js +41 -83
  101. package/es/sidebar/index.js +69 -94
  102. package/es/sidebar/utils/action-ref.js +2 -7
  103. package/es/sidebar/utils/index.d.ts +5 -2
  104. package/es/sidebar/utils/index.js +41 -98
  105. package/es/table/components/CardView/index.js +62 -149
  106. package/es/table/components/Filter/index.js +42 -83
  107. package/es/table/components/Layout/index.js +25 -45
  108. package/es/table/components/LoadMore/index.js +15 -34
  109. package/es/table/components/Pagination/index.js +25 -58
  110. package/es/table/components/QuickAction/index.js +3 -11
  111. package/es/table/components/ToolBar/CardSwitch.js +6 -17
  112. package/es/table/components/ToolBar/DensityIcon.js +18 -31
  113. package/es/table/components/ToolBar/FilterColumnIcon.js +50 -106
  114. package/es/table/components/ToolBar/FullScreenIcon.js +2 -6
  115. package/es/table/components/ToolBar/Fullscreen.js +19 -35
  116. package/es/table/components/ToolBar/RefreshIcon.js +2 -5
  117. package/es/table/components/ToolBar/index.js +23 -45
  118. package/es/table/index.js +226 -399
  119. package/es/table/utils/columnRender.d.ts +1 -1
  120. package/es/table/utils/columnRender.js +32 -76
  121. package/es/table/utils/genProColumnToColumn.js +5 -14
  122. package/es/table/utils/index.js +14 -47
  123. package/es/table/utils/pureColumnRender.js +21 -53
  124. package/es/table/utils/pureGenProColumnToColumn.d.ts +1 -1
  125. package/es/table/utils/pureGenProColumnToColumn.js +2 -10
  126. package/es/table/utils/useTableSelection.js +6 -33
  127. package/es/templates/List/index.js +2 -9
  128. package/es/timeline/ProTimeLineItem/index.js +24 -64
  129. package/es/timeline/index.js +8 -22
  130. package/es/timeline/typing.d.ts +1 -0
  131. package/es/utils/message.d.ts +2 -2
  132. package/es/utils/message.js +0 -5
  133. package/es/utils/useRealHistory.d.ts +8 -0
  134. package/es/utils/useRealHistory.js +23 -0
  135. package/lib/actions/base.js +8 -24
  136. package/lib/actions/confirm.js +0 -5
  137. package/lib/actions/danger-confirm.js +0 -5
  138. package/lib/actions/danger-pop-confirm.js +0 -4
  139. package/lib/actions/dialog-component.js +2 -15
  140. package/lib/actions/dialog-form.js +36 -88
  141. package/lib/actions/dialog-info.js +1 -10
  142. package/lib/actions/dialog-table.js +0 -5
  143. package/lib/actions/dialog.js +55 -111
  144. package/lib/actions/drawer-form.js +0 -3
  145. package/lib/actions/drawer-info.js +0 -3
  146. package/lib/actions/drawer-table.js +0 -3
  147. package/lib/actions/drawer.js +0 -4
  148. package/lib/actions/error.js +0 -5
  149. package/lib/actions/index.d.ts +2 -0
  150. package/lib/actions/index.js +70 -186
  151. package/lib/actions/link.js +3 -10
  152. package/lib/actions/notice.js +0 -5
  153. package/lib/actions/pop-confirm.js +0 -5
  154. package/lib/actions/quick.js +0 -13
  155. package/lib/actions/request.js +10 -32
  156. package/lib/actions/utils.js +1 -9
  157. package/lib/card/card-container.js +0 -9
  158. package/lib/card/divider.js +0 -7
  159. package/lib/card/index.js +56 -122
  160. package/lib/card/selectable.js +4 -20
  161. package/lib/card/tab.js +1 -14
  162. package/lib/card/utils.js +0 -6
  163. package/lib/field/index.js +0 -6
  164. package/lib/form/Components/Editable/index.js +15 -65
  165. package/lib/form/Components/FormGroup/index.d.ts +1 -0
  166. package/lib/form/Components/FormGroup/index.js +7 -28
  167. package/lib/form/Components/LightFilter/index.js +15 -47
  168. package/lib/form/Components/ProField/index.js +2 -21
  169. package/lib/form/Components/ProField/mapDateFormat.js +2 -32
  170. package/lib/form/Components/Text/index.d.ts +1 -0
  171. package/lib/form/Components/Text/index.js +2 -16
  172. package/lib/form/Filter/AdvancedFilter.js +11 -34
  173. package/lib/form/Filter/Layout.js +11 -33
  174. package/lib/form/Filter/LightFilter.js +13 -32
  175. package/lib/form/Filter/SimpleFilter.js +5 -27
  176. package/lib/form/Filter/index.js +105 -191
  177. package/lib/form/Filter/index2.js +11 -38
  178. package/lib/form/Filter/useBindUrl.js +18 -50
  179. package/lib/form/Filter/useSpecialProps.js +6 -13
  180. package/lib/form/ProForm/addCascadeEffect.js +10 -35
  181. package/lib/form/ProForm/customComponent.js +0 -8
  182. package/lib/form/ProForm/index.js +23 -57
  183. package/lib/form/ProForm/useAutoLayout.js +21 -45
  184. package/lib/form/ProForm/useAutoSubmit.js +3 -10
  185. package/lib/form/ProForm/useFieldRequest.js +0 -8
  186. package/lib/form/ProForm/useFormDisplayValues.js +12 -34
  187. package/lib/form/ProForm/useInitialRequest.js +0 -6
  188. package/lib/form/SchemaForm/adapterComponent.js +0 -6
  189. package/lib/form/SchemaForm/adapterDecorator.d.ts +1 -1
  190. package/lib/form/SchemaForm/adapterDecorator.js +0 -12
  191. package/lib/form/SchemaForm/adapterType.js +0 -5
  192. package/lib/form/SchemaForm/index.js +78 -144
  193. package/lib/form/SchemaForm/initializeArrayCards.js +0 -7
  194. package/lib/form/SchemaForm/initializeArrayCollapse.js +0 -7
  195. package/lib/form/SchemaForm/initializeArrayItems.js +2 -10
  196. package/lib/form/SchemaForm/initializeArrayTable.js +21 -34
  197. package/lib/form/SchemaForm/initializeDataSource.js +2 -8
  198. package/lib/form/SchemaForm/initializeFormButton.js +14 -32
  199. package/lib/form/SchemaForm/initializeFormCollapse.js +8 -18
  200. package/lib/form/SchemaForm/initializeFormGroup.js +10 -20
  201. package/lib/form/SchemaForm/initializeFormStep.js +11 -23
  202. package/lib/form/SchemaForm/initializeFormTab.js +10 -20
  203. package/lib/form/SchemaForm/initializeReactions.js +9 -37
  204. package/lib/form/SchemaForm/initializeRequest.js +2 -18
  205. package/lib/form/SchemaForm/initializeRules.js +4 -24
  206. package/lib/form/SchemaForm/initializeSelectTable.js +7 -36
  207. package/lib/form/SchemaForm/reactions.js +17 -37
  208. package/lib/form/docs/ActionResponse.d.ts +1 -0
  209. package/lib/form/docs/ActionResponse.js +0 -5
  210. package/lib/form/index.d.ts +9 -9
  211. package/lib/form/index.js +0 -25
  212. package/lib/form/typing.d.ts +6 -4
  213. package/lib/form/utils.d.ts +1 -1
  214. package/lib/form/utils.js +4 -61
  215. package/lib/form/warning.js +2 -8
  216. package/lib/hooks/index.js +0 -5
  217. package/lib/index-without-icon.js +2 -36
  218. package/lib/index.d.ts +1 -1
  219. package/lib/index.js +1 -39
  220. package/lib/info/components/InfoGroup/index.js +21 -42
  221. package/lib/info/components/InfoValueItem/index.js +66 -134
  222. package/lib/info/components/ProInfoItem/index.js +13 -29
  223. package/lib/info/components/baseInfo/index.js +14 -38
  224. package/lib/info/components/headerInfo/index.js +8 -31
  225. package/lib/info/components/tableInfo/index.js +20 -62
  226. package/lib/info/index.js +53 -97
  227. package/lib/info/utils/index.js +0 -19
  228. package/lib/info/utils/utils.js +0 -1
  229. package/lib/nocode/configurators/PageHeader.js +0 -2
  230. package/lib/nocode/configurators/ProTable.js +0 -2
  231. package/lib/nocode/configurators/common.js +5 -10
  232. package/lib/nocode/configurators/index.js +2 -10
  233. package/lib/nocode/configurators/map.js +0 -5
  234. package/lib/nocode/index.js +0 -11
  235. package/lib/nocode/pages/editor.js +5 -19
  236. package/lib/nocode/pages/index.js +2 -9
  237. package/lib/nocode/pages/playground.js +18 -52
  238. package/lib/nocode/pages/renderer.js +9 -53
  239. package/lib/nocode/playground.js +10 -35
  240. package/lib/page-container/index.js +0 -6
  241. package/lib/page-header/index.d.ts +2 -2
  242. package/lib/page-header/index.js +38 -88
  243. package/lib/sidebar/components/sidebar-container/index.js +41 -84
  244. package/lib/sidebar/components/tree/index.js +88 -158
  245. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +11 -34
  246. package/lib/sidebar/components/tree-node/components/IconAction/index.js +9 -46
  247. package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +12 -35
  248. package/lib/sidebar/components/tree-node/index.js +41 -99
  249. package/lib/sidebar/index.js +69 -112
  250. package/lib/sidebar/utils/action-ref.js +2 -8
  251. package/lib/sidebar/utils/index.d.ts +5 -2
  252. package/lib/sidebar/utils/index.js +41 -106
  253. package/lib/skeleton/index.js +0 -6
  254. package/lib/table/components/CardView/index.js +62 -161
  255. package/lib/table/components/EmptyContent/index.js +0 -6
  256. package/lib/table/components/Filter/index.js +42 -93
  257. package/lib/table/components/Layout/index.js +25 -58
  258. package/lib/table/components/LoadMore/index.js +15 -44
  259. package/lib/table/components/Pagination/index.js +25 -68
  260. package/lib/table/components/QuickAction/index.js +3 -15
  261. package/lib/table/components/ToolBar/CardSwitch.js +6 -28
  262. package/lib/table/components/ToolBar/DensityIcon.js +18 -42
  263. package/lib/table/components/ToolBar/FilterColumnIcon.js +50 -118
  264. package/lib/table/components/ToolBar/FullScreenIcon.js +3 -13
  265. package/lib/table/components/ToolBar/Fullscreen.js +19 -42
  266. package/lib/table/components/ToolBar/RefreshIcon.js +3 -12
  267. package/lib/table/components/ToolBar/index.js +23 -63
  268. package/lib/table/index.js +226 -423
  269. package/lib/table/utils/columnRender.d.ts +1 -1
  270. package/lib/table/utils/columnRender.js +32 -89
  271. package/lib/table/utils/genProColumnToColumn.js +5 -19
  272. package/lib/table/utils/getTableProps.js +0 -2
  273. package/lib/table/utils/getTableSortIcons.js +0 -5
  274. package/lib/table/utils/index.js +12 -55
  275. package/lib/table/utils/pureColumnRender.js +21 -64
  276. package/lib/table/utils/pureGenProColumnToColumn.d.ts +1 -1
  277. package/lib/table/utils/pureGenProColumnToColumn.js +2 -11
  278. package/lib/table/utils/useTableSelection.js +6 -35
  279. package/lib/templates/Detail/index.js +0 -5
  280. package/lib/templates/Form/index.js +0 -5
  281. package/lib/templates/List/index.js +2 -19
  282. package/lib/templates/index.js +0 -6
  283. package/lib/timeline/ProTimeLineItem/index.js +24 -75
  284. package/lib/timeline/index.js +8 -33
  285. package/lib/timeline/typing.d.ts +1 -0
  286. package/lib/utils/index.js +0 -6
  287. package/lib/utils/message.d.ts +2 -2
  288. package/lib/utils/message.js +0 -10
  289. package/lib/utils/useRealHistory.d.ts +8 -0
  290. package/lib/utils/useRealHistory.js +32 -0
  291. package/package.json +1 -1
@@ -10,4 +10,4 @@ export declare const renderColumnsTitle: (item: ProTableColumnProps, actionRef:
10
10
  /**
11
11
  * 负责单元格的具体渲染
12
12
  */
13
- export declare const renderCell: (value: any, item: ProTableColumnProps, index: number, record: any, actionRef: React.MutableRefObject<ProTableActionType | undefined>, context?: any, dataTeamixSpm?: string | undefined) => JSX.Element;
13
+ export declare const renderCell: (value: any, item: ProTableColumnProps, index: number, record: any, actionRef: React.MutableRefObject<ProTableActionType | undefined>, context?: any, dataTeamixSpm?: string) => JSX.Element;
@@ -1,29 +1,16 @@
1
1
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
-
3
2
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
-
5
3
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
-
7
4
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
-
9
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
-
11
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
-
13
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
-
15
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16
-
17
9
  function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
18
-
19
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
-
21
11
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
-
23
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24
-
25
13
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
-
27
14
  /**
28
15
  * 渲染列的逻辑函数
29
16
  */
@@ -35,36 +22,28 @@ import Filter from '../components/Filter';
35
22
  /**
36
23
  * 增加了 icon 的功能 render title
37
24
  */
38
-
39
25
  export var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
40
26
  var filterMode = item.filterMode,
41
- filters = item.filters,
42
- dataSource = item.dataSource,
43
- dataIndex = item.dataIndex,
44
- valueType = item.valueType; // 为列过滤添加状态标题
45
-
27
+ filters = item.filters,
28
+ dataSource = item.dataSource,
29
+ dataIndex = item.dataIndex,
30
+ valueType = item.valueType;
31
+ // 为列过滤添加状态标题
46
32
  var getItemLabel = function getItemLabel() {
47
33
  if (filters && filterMode !== 'multiple') {
48
34
  var _actionRef$current$ge, _actionRef$current, _actionRef$current$ge2;
49
-
50
35
  var selectedItem = (_actionRef$current$ge = (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$ge2 = _actionRef$current.getState) === null || _actionRef$current$ge2 === void 0 ? void 0 : _actionRef$current$ge2.call(_actionRef$current).filterRules) !== null && _actionRef$current$ge !== void 0 ? _actionRef$current$ge : {};
51
-
52
36
  if (Object.keys(selectedItem).length > 0) {
53
37
  var _selectedItem$dataInd;
54
-
55
38
  if ((_selectedItem$dataInd = selectedItem[dataIndex]) === null || _selectedItem$dataInd === void 0 ? void 0 : _selectedItem$dataInd.params) {
56
39
  var _targetFilters$find;
57
-
58
40
  // 找到对应的 label
59
41
  var targetFilters = filters !== null && filters !== void 0 ? filters : [];
60
-
61
42
  if (filters === true) {
62
43
  targetFilters = dataSource !== null && dataSource !== void 0 ? dataSource : [];
63
44
  }
64
-
65
45
  var label = (_targetFilters$find = targetFilters.find(function (item) {
66
46
  var _selectedItem$dataInd2;
67
-
68
47
  return item.value === ((_selectedItem$dataInd2 = selectedItem[dataIndex]) === null || _selectedItem$dataInd2 === void 0 ? void 0 : _selectedItem$dataInd2.params);
69
48
  })) === null || _targetFilters$find === void 0 ? void 0 : _targetFilters$find.label;
70
49
  var value = "".concat(item.title, " (").concat(label, ")");
@@ -82,7 +61,6 @@ export var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
82
61
  }
83
62
  }
84
63
  }
85
-
86
64
  return /*#__PURE__*/React.createElement(ProField, {
87
65
  style: {
88
66
  display: 'inline-flex'
@@ -95,7 +73,6 @@ export var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
95
73
  }
96
74
  });
97
75
  };
98
-
99
76
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelIconTip, {
100
77
  label: item.title,
101
78
  tooltip: item.tooltip,
@@ -108,25 +85,22 @@ export var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
108
85
  /**
109
86
  * 负责单元格的具体渲染
110
87
  */
111
-
112
- export var renderCell = function renderCell(value, item, index, record, actionRef,
113
- /** 接收外部比如 dialog-table 传过来的 context,用于弹窗关闭等 */
114
- context, // 用于埋点
88
+ export var renderCell = function renderCell(value, item, index, record, actionRef, /** 接收外部比如 dialog-table 传过来的 context,用于弹窗关闭等 */
89
+ context,
90
+ // 用于埋点
115
91
  dataTeamixSpm) {
116
92
  var _actionSchema$actions;
117
-
118
93
  var _item$valueType = item.valueType,
119
- valueType = _item$valueType === void 0 ? 'text' : _item$valueType,
120
- render = item.render,
121
- actionSchema = item.actionSchema,
122
- dataIndex = item.dataIndex,
123
- format = item.format; // 如果没传 dataIndex,返回 null
124
-
94
+ valueType = _item$valueType === void 0 ? 'text' : _item$valueType,
95
+ render = item.render,
96
+ actionSchema = item.actionSchema,
97
+ dataIndex = item.dataIndex,
98
+ format = item.format;
99
+ // 如果没传 dataIndex,返回 null
125
100
  if (!dataIndex) {
126
101
  value = null;
127
- } // 处理 dataIndex 为数组的情况
128
-
129
-
102
+ }
103
+ // 处理 dataIndex 为数组的情况
130
104
  if (Array.isArray(dataIndex)) {
131
105
  value = dataIndex.map(function (item) {
132
106
  return getTargetValue("{{".concat(item, "}}"), _objectSpread(_objectSpread({}, record), {}, {
@@ -134,18 +108,16 @@ dataTeamixSpm) {
134
108
  }));
135
109
  });
136
110
  }
137
-
138
111
  var newRender = null;
139
112
  var newDataSource = null;
140
- var props = item.props; // 如果 render 直接传函数
141
-
113
+ var props = item.props;
114
+ // 如果 render 直接传函数
142
115
  if (typeof render === 'function') {
143
116
  newRender = function newRender() {
144
117
  return render === null || render === void 0 ? void 0 : render(value, index, record);
145
118
  };
146
119
  } else {
147
120
  newRender = processBuriedPoint(processRenderFunction(render, value, index, record), record, value, index);
148
-
149
121
  if (valueType === 'selectGroup') {
150
122
  newRender = _objectSpread(_objectSpread({
151
123
  maxShowNumber: 'auto',
@@ -162,15 +134,13 @@ dataTeamixSpm) {
162
134
  }
163
135
  }, props);
164
136
  }
165
-
166
137
  if ((render === null || render === void 0 ? void 0 : render.type) === 'step') {
167
138
  newRender = _objectSpread(_objectSpread({}, newRender), {}, {
168
139
  ellipsis: false
169
140
  });
170
141
  }
171
- } // 渲染操作组
172
-
173
-
142
+ }
143
+ // 渲染操作组
174
144
  if (actionSchema && ((_actionSchema$actions = actionSchema.actions) === null || _actionSchema$actions === void 0 ? void 0 : _actionSchema$actions.length)) {
175
145
  // 默认 context
176
146
  var defaultContext = _objectSpread({
@@ -179,29 +149,24 @@ dataTeamixSpm) {
179
149
  record: record,
180
150
  action: actionRef.current
181
151
  }, context);
182
-
183
152
  return /*#__PURE__*/React.createElement(ProActionGroup, _objectSpread(_objectSpread({
184
153
  type: "text"
185
154
  }, actionSchema), {}, {
186
155
  context: _objectSpread(_objectSpread({}, defaultContext), actionSchema.context),
187
156
  "data-teamix-spm": dataTeamixSpm ? "".concat(dataTeamixSpm, "-columnAction") : undefined
188
157
  }));
189
- } // dataSource可传函数
190
-
191
-
158
+ }
159
+ // dataSource可传函数
192
160
  if (typeof item.dataSource === 'function') {
193
161
  var _item$dataSource;
194
-
195
162
  newDataSource = (_item$dataSource = item.dataSource) === null || _item$dataSource === void 0 ? void 0 : _item$dataSource.call(item, value, index, record);
196
163
  } else {
197
164
  var _item$dataSource2;
198
-
199
165
  newDataSource = ((_item$dataSource2 = item.dataSource) !== null && _item$dataSource2 !== void 0 ? _item$dataSource2 : []).map(function (item) {
200
166
  return Object.fromEntries(Object.entries(item).map(function (_ref) {
201
167
  var _ref2 = _slicedToArray(_ref, 2),
202
- k = _ref2[0],
203
- v = _ref2[1];
204
-
168
+ k = _ref2[0],
169
+ v = _ref2[1];
205
170
  return [k, getTargetValue(v, _objectSpread(_objectSpread({}, record), {}, {
206
171
  record: record,
207
172
  value: value,
@@ -209,9 +174,8 @@ dataTeamixSpm) {
209
174
  }))];
210
175
  }));
211
176
  });
212
- } // 渲染 ProField
213
-
214
-
177
+ }
178
+ // 渲染 ProField
215
179
  return /*#__PURE__*/React.createElement(ProField, _objectSpread({
216
180
  type: valueType || 'text',
217
181
  value: value,
@@ -228,7 +192,6 @@ dataTeamixSpm) {
228
192
  * @param record table cell record
229
193
  * @returns
230
194
  */
231
-
232
195
  var processRenderFunction = function processRenderFunction() {
233
196
  var render = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
234
197
  var value = arguments.length > 1 ? arguments[1] : undefined;
@@ -238,25 +201,20 @@ var processRenderFunction = function processRenderFunction() {
238
201
  var external = ['linkOnClick', 'link', 'value', 'renderEdit', 'descriptionRenderEdit', 'editPopConfirmProps', 'descriptionEditPopConfirmProps', 'editOnClick', 'descriptionEditOnClick', 'extra', 'prefixExtra'];
239
202
  return Object.fromEntries(Object.entries(render).map(function (_ref3) {
240
203
  var _ref4 = _slicedToArray(_ref3, 2),
241
- k = _ref4[0],
242
- v = _ref4[1];
243
-
204
+ k = _ref4[0],
205
+ v = _ref4[1];
244
206
  if (typeof v === 'function') {
245
207
  var _v;
246
-
247
208
  if (external.includes(k)) {
248
209
  return [k, function () {
249
210
  for (var _len = arguments.length, others = new Array(_len), _key = 0; _key < _len; _key++) {
250
211
  others[_key] = arguments[_key];
251
212
  }
252
-
253
213
  return v === null || v === void 0 ? void 0 : v.apply(void 0, [value, index, record].concat(others));
254
214
  }];
255
215
  }
256
-
257
216
  return [k, (_v = v === null || v === void 0 ? void 0 : v(value, index, record)) !== null && _v !== void 0 ? _v : ''];
258
217
  }
259
-
260
218
  return [k, v];
261
219
  }));
262
220
  };
@@ -266,20 +224,18 @@ var processRenderFunction = function processRenderFunction() {
266
224
  * @param record table cell record
267
225
  * @returns
268
226
  */
269
-
270
-
271
227
  var processBuriedPoint = function processBuriedPoint() {
272
228
  var render = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
273
229
  var record = arguments.length > 1 ? arguments[1] : undefined;
274
230
  var value = arguments.length > 2 ? arguments[2] : undefined;
275
231
  var index = arguments.length > 3 ? arguments[3] : undefined;
276
- return Object.fromEntries([// 默认 ellipsis、descriptionEllipsis 为 true
232
+ return Object.fromEntries([
233
+ // 默认 ellipsis、descriptionEllipsis 为 true
277
234
  // emptyText 默认为 '-'
278
235
  ['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(_toConsumableArray(Object.entries(render).map(function (_ref5) {
279
236
  var _ref6 = _slicedToArray(_ref5, 2),
280
- k = _ref6[0],
281
- v = _ref6[1];
282
-
237
+ k = _ref6[0],
238
+ v = _ref6[1];
283
239
  return [k, getTargetValue(v, _objectSpread(_objectSpread({}, record), {}, {
284
240
  record: record,
285
241
  value: value,
@@ -1,15 +1,9 @@
1
1
  var _excluded = ["filters", "dataIndex"];
2
-
3
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
-
5
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
-
7
4
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
-
9
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
-
11
6
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
-
13
7
  import React from 'react';
14
8
  import { renderColumnsTitle, renderCell } from './columnRender';
15
9
  import { ProSkeletonRaw as Skeleton } from '../../skeleton';
@@ -17,18 +11,16 @@ import { getLanguage } from '@teamix/utils';
17
11
  /**
18
12
  * ProColumn => Column
19
13
  */
20
-
21
- export default function genProColumnToColumn(columns,
22
- /** 是否渲染骨架屏 */
14
+ export default function genProColumnToColumn(columns, /** 是否渲染骨架屏 */
23
15
  showSkeleton, actionRef) {
24
16
  var context = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
25
- var // 用于埋点
17
+ var
18
+ // 用于埋点
26
19
  dataTeamixSpm = arguments.length > 4 ? arguments[4] : undefined;
27
20
  return columns.map(function (columnProps) {
28
21
  var filters = columnProps.filters,
29
- dataIndex = columnProps.dataIndex,
30
- others = _objectWithoutProperties(columnProps, _excluded);
31
-
22
+ dataIndex = columnProps.dataIndex,
23
+ others = _objectWithoutProperties(columnProps, _excluded);
32
24
  if (showSkeleton) {
33
25
  return _objectSpread(_objectSpread({}, others), {}, {
34
26
  filters: undefined,
@@ -40,7 +32,6 @@ showSkeleton, actionRef) {
40
32
  }
41
33
  });
42
34
  }
43
-
44
35
  return _objectSpread(_objectSpread({
45
36
  // 金钱样式默认右对齐
46
37
  align: columnProps.valueType === 'money' ? 'right' : 'left',
@@ -1,36 +1,24 @@
1
1
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
-
3
2
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
-
5
3
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
-
7
4
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
-
9
5
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
-
11
6
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
-
13
7
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
14
-
15
8
  function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16
-
17
9
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
-
19
- import cloneDeepLodash from 'lodash.clonedeep'; // 所有 ProTable 组件公用一套组件内事件转发机制
20
-
21
- var tableCallback = {}; // 组件内对全局状态的更改
22
-
10
+ import cloneDeepLodash from 'lodash.clonedeep';
11
+ // 所有 ProTable 组件公用一套组件内事件转发机制
12
+ var tableCallback = {};
13
+ // 组件内对全局状态的更改
23
14
  var getMutations = function getMutations(actionRef) {
24
15
  var _actionRef$current2, _actionRef$current2$g, _actionRef$current2$g2;
25
-
26
16
  return {
27
17
  setFullScreenState: function setFullScreenState(fullScreenState) {
28
18
  var _actionRef$current, _actionRef$current$se;
29
-
30
19
  (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setState) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, 'fullScreenState', fullScreenState);
31
20
  },
32
21
  filterColumns: (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$g = _actionRef$current2.getState) === null || _actionRef$current2$g === void 0 ? void 0 : (_actionRef$current2$g2 = _actionRef$current2$g.call(_actionRef$current2)) === null || _actionRef$current2$g2 === void 0 ? void 0 : _actionRef$current2$g2.filterColumns,
33
-
34
22
  /**
35
23
  * 设置筛选列规则
36
24
  * @param rules 规则
@@ -38,49 +26,40 @@ var getMutations = function getMutations(actionRef) {
38
26
  */
39
27
  setFilterRules: function setFilterRules(rules) {
40
28
  var _actionRef$current3, _actionRef$current3$s;
41
-
42
29
  (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$s = _actionRef$current3.setState) === null || _actionRef$current3$s === void 0 ? void 0 : _actionRef$current3$s.call(_actionRef$current3, 'filterRules', rules);
43
30
  },
44
-
45
31
  /**
46
32
  * 获取筛选规则。为params
47
33
  */
48
34
  getFilterRules: function getFilterRules() {
49
35
  var _actionRef$current4, _actionRef$current4$g;
50
-
51
36
  var result = {};
52
37
  var filterRules = (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$g = _actionRef$current4.getState) === null || _actionRef$current4$g === void 0 ? void 0 : _actionRef$current4$g.call(_actionRef$current4).filterRules;
53
-
54
38
  if (filterRules) {
55
39
  result = Object.entries(filterRules).map(function (_ref) {
56
40
  var _ref2 = _slicedToArray(_ref, 2),
57
- k = _ref2[0],
58
- v = _ref2[1];
59
-
41
+ k = _ref2[0],
42
+ v = _ref2[1];
60
43
  return _defineProperty({}, k, v.params);
61
44
  }).reduce(function (acc, cur) {
62
45
  acc = _objectSpread(_objectSpread({}, acc), cur);
63
46
  return acc;
64
47
  }, {});
65
48
  }
66
-
67
49
  return result;
68
50
  }
69
51
  };
70
- }; // 调用绑定的监听函数
71
-
72
-
52
+ };
53
+ // 调用绑定的监听函数
73
54
  export function actionRefUseStateOn(callback, state) {
74
55
  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
75
56
  args[_key - 2] = arguments[_key];
76
57
  }
77
-
78
58
  if (callback[state]) {
79
59
  Object.entries(callback[state]).forEach(function (_ref4) {
80
60
  var _ref5 = _slicedToArray(_ref4, 2),
81
- k = _ref5[0],
82
- v = _ref5[1];
83
-
61
+ k = _ref5[0],
62
+ v = _ref5[1];
84
63
  if (v) {
85
64
  v === null || v === void 0 ? void 0 : v.apply(void 0, args);
86
65
  }
@@ -88,33 +67,27 @@ export function actionRefUseStateOn(callback, state) {
88
67
  }
89
68
  }
90
69
  /** table 组件内监听 不对外暴露 */
91
-
92
70
  export function on(fun, key) {
93
71
  tableCallback[key] = fun;
94
72
  }
95
73
  /** table 组件内销毁监听 不对外暴露 */
96
-
97
74
  export function off(key) {
98
75
  if (tableCallback[key]) {
99
76
  delete tableCallback[key];
100
77
  }
101
78
  }
102
79
  /** table 组件内触发事件 不对外暴露 */
103
-
104
80
  export function emit(key) {
105
81
  var fun = tableCallback[key];
106
-
107
82
  if (fun) {
108
83
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
109
84
  args[_key2 - 1] = arguments[_key2];
110
85
  }
111
-
112
86
  fun.apply(void 0, args);
113
87
  }
114
88
  }
115
89
  export function initActionRef(ref, action) {
116
90
  var userAction = _objectSpread(_objectSpread({}, action), getMutations(ref));
117
-
118
91
  ref.current = userAction;
119
92
  }
120
93
  export function useActionType(ref, action) {
@@ -128,30 +101,24 @@ export function cloneDeep(obj) {
128
101
  * @param columns
129
102
  * @param ref
130
103
  */
131
-
132
104
  export function processDefaultFilter(columns, ref, defaultFilterParams) {
133
105
  columns.forEach(function (column) {
134
106
  var _column$dataIndex$toS, _column$dataIndex;
135
-
136
107
  var defaultRules = defaultFilterParams === null || defaultFilterParams === void 0 ? void 0 : defaultFilterParams[(_column$dataIndex$toS = column === null || column === void 0 ? void 0 : (_column$dataIndex = column.dataIndex) === null || _column$dataIndex === void 0 ? void 0 : _column$dataIndex.toString()) !== null && _column$dataIndex$toS !== void 0 ? _column$dataIndex$toS : ''];
137
-
138
108
  if (defaultRules) {
139
109
  var _ref$current$getState, _ref$current, _ref$current$getState2, _ref$current$getState3, _ref$current2, _ref$current2$setFilt;
140
-
141
110
  var params = '';
142
111
  var rules = [];
143
-
144
112
  if (Array.isArray(defaultRules)) {
145
113
  params = defaultRules.join(',');
146
114
  rules = defaultRules;
147
115
  } else {
148
116
  params = defaultRules;
149
117
  rules = [defaultRules];
150
- } // 需要带上其他所有的信息
151
-
152
-
153
- var otherRules = (_ref$current$getState = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : (_ref$current$getState2 = _ref$current.getState) === null || _ref$current$getState2 === void 0 ? void 0 : (_ref$current$getState3 = _ref$current$getState2.call(_ref$current)) === null || _ref$current$getState3 === void 0 ? void 0 : _ref$current$getState3.filterRules) !== null && _ref$current$getState !== void 0 ? _ref$current$getState : {}; // 再设置所有的列筛选状态
154
-
118
+ }
119
+ // 需要带上其他所有的信息
120
+ var otherRules = (_ref$current$getState = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : (_ref$current$getState2 = _ref$current.getState) === null || _ref$current$getState2 === void 0 ? void 0 : (_ref$current$getState3 = _ref$current$getState2.call(_ref$current)) === null || _ref$current$getState3 === void 0 ? void 0 : _ref$current$getState3.filterRules) !== null && _ref$current$getState !== void 0 ? _ref$current$getState : {};
121
+ // 再设置所有的列筛选状态
155
122
  (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : (_ref$current2$setFilt = _ref$current2.setFilterRules) === null || _ref$current2$setFilt === void 0 ? void 0 : _ref$current2$setFilt.call(_ref$current2, _objectSpread(_objectSpread({}, otherRules), {}, _defineProperty({}, column.dataIndex, {
156
123
  rules: rules,
157
124
  params: params