@teamix/pro 1.2.27 → 1.2.28

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.
@@ -41,6 +41,7 @@ export interface ProActionCommonProps {
41
41
  export interface ProActionMenuButtonProps extends ProActionCommonProps, Omit<MenuButtonProps, 'visible'> {
42
42
  actions: ProActionProps[];
43
43
  icon?: string;
44
+ noArrow?: boolean;
44
45
  }
45
46
  export declare const ProActionMenuButton: (props: ProActionMenuButtonProps) => JSX.Element;
46
47
  export interface ProActionDividerProps extends ProActionCommonProps {
@@ -61,9 +62,7 @@ export declare type ProActionGroupProps = {
61
62
  */
62
63
  moreText?: string;
63
64
  /** 更多按钮的配置,只有在actions数量超过max时才有效 */
64
- more?: string | (ProActionButtonProps & {
65
- noArrow?: boolean;
66
- });
65
+ more?: string | Omit<ProActionMenuButtonProps, 'actions'>;
67
66
  /** 是否有分割线,只有type="text"时生效,默认有分割线 */
68
67
  divider?: boolean;
69
68
  } & React.HTMLAttributes<HTMLElement>;
@@ -1,12 +1,11 @@
1
1
  var _excluded = ["type"],
2
2
  _excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "onClick"],
3
3
  _excluded3 = ["loading"],
4
- _excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type"],
4
+ _excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type", "className", "noArrow"],
5
5
  _excluded5 = ["context", "text"],
6
- _excluded6 = ["noArrow", "className"],
7
- _excluded7 = ["key", "actions"],
8
- _excluded8 = ["key", "config"],
9
- _excluded9 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className"];
6
+ _excluded6 = ["key", "actions"],
7
+ _excluded7 = ["key", "config"],
8
+ _excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className"];
10
9
 
11
10
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12
11
 
@@ -243,6 +242,8 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
243
242
  context = props.context,
244
243
  _props$type2 = props.type,
245
244
  type = _props$type2 === void 0 ? 'primary' : _props$type2,
245
+ className = props.className,
246
+ noArrow = props.noArrow,
246
247
  others = _objectWithoutProperties(props, _excluded4);
247
248
 
248
249
  return /*#__PURE__*/React.createElement(MenuButton, _objectSpread({
@@ -256,7 +257,10 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
256
257
  v2: true
257
258
  },
258
259
  type: type,
259
- label: buttonContent(label || children, icon, iconSize, context)
260
+ label: buttonContent(label || children, icon, iconSize, context),
261
+ className: cls(className, {
262
+ 'teamix-pro-actions-text-menu-btn-no-arrow': noArrow
263
+ })
260
264
  }, others), actions.map(function (action, i) {
261
265
  return renderCommonActionButtonMenuItem(action, action.key || i, context);
262
266
  }));
@@ -316,14 +320,12 @@ function renderCommonActionButton(button, context, isTypeText) {
316
320
  }
317
321
 
318
322
  function getDefaultMoreButton(type, more) {
319
- var noArrowClassName = 'teamix-pro-actions-text-menu-btn-no-arrow';
320
323
  var defaultConfig = type === 'button' ? {
321
324
  children: getMessage('more')
322
325
  } : {
323
326
  icon: 'more-line',
324
- // iconSize: 'small',
325
327
  autoWidth: false,
326
- className: noArrowClassName
328
+ noArrow: true
327
329
  };
328
330
 
329
331
  if (!more) {
@@ -338,13 +340,7 @@ function getDefaultMoreButton(type, more) {
338
340
  return Object.assign(defaultConfig, moreConfig);
339
341
  }
340
342
 
341
- var noArrow = moreConfig.noArrow,
342
- className = moreConfig.className,
343
- others = _objectWithoutProperties(moreConfig, _excluded6);
344
-
345
- return _objectSpread({
346
- className: cls(className, _defineProperty({}, "".concat(noArrowClassName), noArrow))
347
- }, others);
343
+ return moreConfig;
348
344
  }
349
345
 
350
346
  var MAX_ACTTIONS = 4;
@@ -361,7 +357,7 @@ function getActionConfig(action, index, context) {
361
357
  if (action.actions) {
362
358
  var _key = action.key,
363
359
  actions = action.actions,
364
- _others = _objectWithoutProperties(action, _excluded7);
360
+ _others = _objectWithoutProperties(action, _excluded6);
365
361
 
366
362
  return _objectSpread({
367
363
  key: getKey(index, _key),
@@ -373,7 +369,7 @@ function getActionConfig(action, index, context) {
373
369
 
374
370
  var key = action.key,
375
371
  config = action.config,
376
- others = _objectWithoutProperties(action, _excluded8);
372
+ others = _objectWithoutProperties(action, _excluded7);
377
373
 
378
374
  return _objectSpread({
379
375
  key: getKey(index, key),
@@ -394,7 +390,7 @@ export function ProActionGroup(props) {
394
390
  _props$actions = props.actions,
395
391
  actions = _props$actions === void 0 ? [] : _props$actions,
396
392
  className = props.className,
397
- containerProps = _objectWithoutProperties(props, _excluded9);
393
+ containerProps = _objectWithoutProperties(props, _excluded8);
398
394
 
399
395
  var isTypeText = type === 'text';
400
396
  var filteredActions = actions.map(function (action, index) {
package/es/index.d.ts CHANGED
@@ -24,5 +24,5 @@ export * from './skeleton';
24
24
  export * from './table';
25
25
  export * from './utils';
26
26
  export * from './step';
27
- declare const version = "1.2.27";
27
+ declare const version = "1.2.28";
28
28
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProStep, hooks, nocode, templates, utils, };
package/es/index.js CHANGED
@@ -30,7 +30,7 @@ export * from './table';
30
30
  export * from './utils'; // export * from './sidebar';
31
31
 
32
32
  export * from './step';
33
- var version = '1.2.27';
33
+ var version = '1.2.28';
34
34
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, // ProLayout,
35
35
  ProPageContainer, ProPageHeader, ProSkeleton, ProTable, // ProSidebar,
36
36
  ProStep, hooks, nocode, templates, utils };
package/es/table/index.js CHANGED
@@ -121,7 +121,7 @@ var globalFormatSort = function globalFormatSort(sort) {
121
121
  };
122
122
 
123
123
  var ProTable = function ProTable(props) {
124
- var _rowSelection$selecte;
124
+ var _rowSelection$selecte, _dataFilterForm4;
125
125
 
126
126
  var header = props.header,
127
127
  className = props.className,
@@ -278,7 +278,7 @@ var ProTable = function ProTable(props) {
278
278
  var normalDataFilterForm = normalDataFilterFormRef.current;
279
279
  var fullscreenDataFilterForm = fullscreenDataFilterFormRef.current; // 传给 QueryFilter 的 formRef
280
280
 
281
- var dataFilterFormRef = fullscreenState ? normalDataFilterFormRef : fullscreenDataFilterFormRef;
281
+ var dataFilterFormRef = !fullscreenState ? normalDataFilterFormRef : fullscreenDataFilterFormRef;
282
282
  var dataFilterForm = dataFilterFormRef.current; // 整个内容区是否超过一屏。用于表格在非全屏模式下的吸底
283
283
 
284
284
  var _useState25 = useState(false),
@@ -450,12 +450,12 @@ var ProTable = function ProTable(props) {
450
450
  _request(params);
451
451
  },
452
452
  reset: function reset() {
453
- var _actionRef$current3, _actionRef$current3$s;
453
+ var _actionRef$current3, _actionRef$current3$s, _dataFilterForm;
454
454
 
455
455
  (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset()); // 清空列过滤参数
456
456
 
457
457
  (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$s = _actionRef$current3.setFilterRules) === null || _actionRef$current3$s === void 0 ? void 0 : _actionRef$current3$s.call(_actionRef$current3, {});
458
- dataFilterForm === null || dataFilterForm === void 0 ? void 0 : dataFilterForm.reset();
458
+ (_dataFilterForm = dataFilterForm) === null || _dataFilterForm === void 0 ? void 0 : _dataFilterForm.reset();
459
459
  setCurrentPage(1);
460
460
 
461
461
  _request(_defineProperty({}, targetPageKey, 1));
@@ -569,7 +569,7 @@ var ProTable = function ProTable(props) {
569
569
  }); // 请求函数
570
570
 
571
571
  function _request(params, noLoading) {
572
- var _actionRef$current$ge, _actionRef$current4, _actionRef$current4$g, _objectSpread2;
572
+ var _dataFilterForm2, _actionRef$current$ge, _actionRef$current4, _actionRef$current4$g, _objectSpread2;
573
573
 
574
574
  // 如果没有传 url 且没有 customRequest,直接返回
575
575
  if (!url && !customRequest) {
@@ -582,7 +582,7 @@ var ProTable = function ProTable(props) {
582
582
 
583
583
  var sortParams = targetFormatSort(sort); // 筛选区请求参数
584
584
 
585
- var dataFilterParams = toJS(dataFilterForm === null || dataFilterForm === void 0 ? void 0 : dataFilterForm.values); // 列过滤请求参数
585
+ var dataFilterParams = toJS((_dataFilterForm2 = dataFilterForm) === null || _dataFilterForm2 === void 0 ? void 0 : _dataFilterForm2.values); // 列过滤请求参数
586
586
 
587
587
  var columnsFilterParams = (_actionRef$current$ge = (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$g = _actionRef$current4.getFilterRules) === null || _actionRef$current4$g === void 0 ? void 0 : _actionRef$current4$g.call(_actionRef$current4)) !== null && _actionRef$current$ge !== void 0 ? _actionRef$current$ge : {}; // 格式化后的请求参数
588
588
 
@@ -633,8 +633,11 @@ var ProTable = function ProTable(props) {
633
633
  }
634
634
 
635
635
  useEffect(function () {
636
+ var _dataFilterForm3;
637
+
636
638
  // 初始化 actionRef state、callback 此时 actionRef 已初始化完成
637
- initActionRef(); // 监听 浏览器变化 更吸底状态
639
+ initActionRef();
640
+ dataFilterForm = dataFilterFormRef.current; // 监听 浏览器变化 更吸底状态
638
641
 
639
642
  if (footerSuction) {
640
643
  getFooterSuctionState();
@@ -644,7 +647,7 @@ var ProTable = function ProTable(props) {
644
647
  };
645
648
  }
646
649
 
647
- if (requestWhenMount) {
650
+ if (requestWhenMount && ((_dataFilterForm3 = dataFilterForm) === null || _dataFilterForm3 === void 0 ? void 0 : _dataFilterForm3.id)) {
648
651
  // 在请求发送之前 处理漏斗默认数据
649
652
  processDefaultFilter(propsColumns, actionRef, defaultFilterParams);
650
653
 
@@ -662,7 +665,7 @@ var ProTable = function ProTable(props) {
662
665
 
663
666
  actionRef.current = undefined;
664
667
  };
665
- }, []);
668
+ }, [(_dataFilterForm4 = dataFilterForm) === null || _dataFilterForm4 === void 0 ? void 0 : _dataFilterForm4.id]);
666
669
 
667
670
  function onSort(dataIndex, order) {
668
671
  var nextSort = _defineProperty({}, dataIndex, order);
@@ -687,8 +690,10 @@ var ProTable = function ProTable(props) {
687
690
  _request(_defineProperty({}, targetPageKey, 1));
688
691
  },
689
692
  onReset: function onReset() {
693
+ var _dataFilterForm5;
694
+
690
695
  (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset());
691
- dataFilterForm === null || dataFilterForm === void 0 ? void 0 : dataFilterForm.reset();
696
+ (_dataFilterForm5 = dataFilterForm) === null || _dataFilterForm5 === void 0 ? void 0 : _dataFilterForm5.reset();
692
697
  setCurrentPage(1);
693
698
 
694
699
  _request(_defineProperty({}, targetPageKey, 1));
@@ -41,6 +41,7 @@ export interface ProActionCommonProps {
41
41
  export interface ProActionMenuButtonProps extends ProActionCommonProps, Omit<MenuButtonProps, 'visible'> {
42
42
  actions: ProActionProps[];
43
43
  icon?: string;
44
+ noArrow?: boolean;
44
45
  }
45
46
  export declare const ProActionMenuButton: (props: ProActionMenuButtonProps) => JSX.Element;
46
47
  export interface ProActionDividerProps extends ProActionCommonProps {
@@ -61,9 +62,7 @@ export declare type ProActionGroupProps = {
61
62
  */
62
63
  moreText?: string;
63
64
  /** 更多按钮的配置,只有在actions数量超过max时才有效 */
64
- more?: string | (ProActionButtonProps & {
65
- noArrow?: boolean;
66
- });
65
+ more?: string | Omit<ProActionMenuButtonProps, 'actions'>;
67
66
  /** 是否有分割线,只有type="text"时生效,默认有分割线 */
68
67
  divider?: boolean;
69
68
  } & React.HTMLAttributes<HTMLElement>;
@@ -56,12 +56,11 @@ require("./index.scss");
56
56
  var _excluded = ["type"],
57
57
  _excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "onClick"],
58
58
  _excluded3 = ["loading"],
59
- _excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type"],
59
+ _excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type", "className", "noArrow"],
60
60
  _excluded5 = ["context", "text"],
61
- _excluded6 = ["noArrow", "className"],
62
- _excluded7 = ["key", "actions"],
63
- _excluded8 = ["key", "config"],
64
- _excluded9 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className"];
61
+ _excluded6 = ["key", "actions"],
62
+ _excluded7 = ["key", "config"],
63
+ _excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className"];
65
64
 
66
65
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
67
66
 
@@ -282,6 +281,8 @@ var ProActionMenuButton = function ProActionMenuButton(props) {
282
281
  context = props.context,
283
282
  _props$type2 = props.type,
284
283
  type = _props$type2 === void 0 ? 'primary' : _props$type2,
284
+ className = props.className,
285
+ noArrow = props.noArrow,
285
286
  others = _objectWithoutProperties(props, _excluded4);
286
287
 
287
288
  return /*#__PURE__*/_react.default.createElement(_components.MenuButton, _objectSpread({
@@ -295,7 +296,10 @@ var ProActionMenuButton = function ProActionMenuButton(props) {
295
296
  v2: true
296
297
  },
297
298
  type: type,
298
- label: buttonContent(label || children, icon, iconSize, context)
299
+ label: buttonContent(label || children, icon, iconSize, context),
300
+ className: (0, _classnames.default)(className, {
301
+ 'teamix-pro-actions-text-menu-btn-no-arrow': noArrow
302
+ })
299
303
  }, others), actions.map(function (action, i) {
300
304
  return renderCommonActionButtonMenuItem(action, action.key || i, context);
301
305
  }));
@@ -358,14 +362,12 @@ function renderCommonActionButton(button, context, isTypeText) {
358
362
  }
359
363
 
360
364
  function getDefaultMoreButton(type, more) {
361
- var noArrowClassName = 'teamix-pro-actions-text-menu-btn-no-arrow';
362
365
  var defaultConfig = type === 'button' ? {
363
366
  children: (0, _utils.getMessage)('more')
364
367
  } : {
365
368
  icon: 'more-line',
366
- // iconSize: 'small',
367
369
  autoWidth: false,
368
- className: noArrowClassName
370
+ noArrow: true
369
371
  };
370
372
 
371
373
  if (!more) {
@@ -380,13 +382,7 @@ function getDefaultMoreButton(type, more) {
380
382
  return Object.assign(defaultConfig, moreConfig);
381
383
  }
382
384
 
383
- var noArrow = moreConfig.noArrow,
384
- className = moreConfig.className,
385
- others = _objectWithoutProperties(moreConfig, _excluded6);
386
-
387
- return _objectSpread({
388
- className: (0, _classnames.default)(className, _defineProperty({}, "".concat(noArrowClassName), noArrow))
389
- }, others);
385
+ return moreConfig;
390
386
  }
391
387
 
392
388
  var MAX_ACTTIONS = 4;
@@ -403,7 +399,7 @@ function getActionConfig(action, index, context) {
403
399
  if (action.actions) {
404
400
  var _key = action.key,
405
401
  actions = action.actions,
406
- _others = _objectWithoutProperties(action, _excluded7);
402
+ _others = _objectWithoutProperties(action, _excluded6);
407
403
 
408
404
  return _objectSpread({
409
405
  key: getKey(index, _key),
@@ -415,7 +411,7 @@ function getActionConfig(action, index, context) {
415
411
 
416
412
  var key = action.key,
417
413
  config = action.config,
418
- others = _objectWithoutProperties(action, _excluded8);
414
+ others = _objectWithoutProperties(action, _excluded7);
419
415
 
420
416
  return _objectSpread({
421
417
  key: getKey(index, key),
@@ -436,7 +432,7 @@ function ProActionGroup(props) {
436
432
  _props$actions = props.actions,
437
433
  actions = _props$actions === void 0 ? [] : _props$actions,
438
434
  className = props.className,
439
- containerProps = _objectWithoutProperties(props, _excluded9);
435
+ containerProps = _objectWithoutProperties(props, _excluded8);
440
436
 
441
437
  var isTypeText = type === 'text';
442
438
  var filteredActions = actions.map(function (action, index) {
package/lib/index.d.ts CHANGED
@@ -24,5 +24,5 @@ export * from './skeleton';
24
24
  export * from './table';
25
25
  export * from './utils';
26
26
  export * from './step';
27
- declare const version = "1.2.27";
27
+ declare const version = "1.2.28";
28
28
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProStep, hooks, nocode, templates, utils, };
package/lib/index.js CHANGED
@@ -285,5 +285,5 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
285
285
  // 设置图标源
286
286
  _icon.default.setConfig(_utils.default.getTeamixIconConfig());
287
287
 
288
- var version = '1.2.27';
288
+ var version = '1.2.28';
289
289
  exports.version = version;
@@ -165,7 +165,7 @@ var globalFormatSort = function globalFormatSort(sort) {
165
165
  };
166
166
 
167
167
  var ProTable = function ProTable(props) {
168
- var _rowSelection$selecte;
168
+ var _rowSelection$selecte, _dataFilterForm4;
169
169
 
170
170
  var header = props.header,
171
171
  className = props.className,
@@ -322,7 +322,7 @@ var ProTable = function ProTable(props) {
322
322
  var normalDataFilterForm = normalDataFilterFormRef.current;
323
323
  var fullscreenDataFilterForm = fullscreenDataFilterFormRef.current; // 传给 QueryFilter 的 formRef
324
324
 
325
- var dataFilterFormRef = fullscreenState ? normalDataFilterFormRef : fullscreenDataFilterFormRef;
325
+ var dataFilterFormRef = !fullscreenState ? normalDataFilterFormRef : fullscreenDataFilterFormRef;
326
326
  var dataFilterForm = dataFilterFormRef.current; // 整个内容区是否超过一屏。用于表格在非全屏模式下的吸底
327
327
 
328
328
  var _useState25 = (0, _react.useState)(false),
@@ -494,12 +494,12 @@ var ProTable = function ProTable(props) {
494
494
  _request(params);
495
495
  },
496
496
  reset: function reset() {
497
- var _actionRef$current3, _actionRef$current3$s;
497
+ var _actionRef$current3, _actionRef$current3$s, _dataFilterForm;
498
498
 
499
499
  (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset()); // 清空列过滤参数
500
500
 
501
501
  (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$s = _actionRef$current3.setFilterRules) === null || _actionRef$current3$s === void 0 ? void 0 : _actionRef$current3$s.call(_actionRef$current3, {});
502
- dataFilterForm === null || dataFilterForm === void 0 ? void 0 : dataFilterForm.reset();
502
+ (_dataFilterForm = dataFilterForm) === null || _dataFilterForm === void 0 ? void 0 : _dataFilterForm.reset();
503
503
  setCurrentPage(1);
504
504
 
505
505
  _request(_defineProperty({}, targetPageKey, 1));
@@ -613,7 +613,7 @@ var ProTable = function ProTable(props) {
613
613
  }); // 请求函数
614
614
 
615
615
  function _request(params, noLoading) {
616
- var _actionRef$current$ge, _actionRef$current4, _actionRef$current4$g, _objectSpread2;
616
+ var _dataFilterForm2, _actionRef$current$ge, _actionRef$current4, _actionRef$current4$g, _objectSpread2;
617
617
 
618
618
  // 如果没有传 url 且没有 customRequest,直接返回
619
619
  if (!url && !customRequest) {
@@ -626,7 +626,7 @@ var ProTable = function ProTable(props) {
626
626
 
627
627
  var sortParams = targetFormatSort(sort); // 筛选区请求参数
628
628
 
629
- var dataFilterParams = toJS(dataFilterForm === null || dataFilterForm === void 0 ? void 0 : dataFilterForm.values); // 列过滤请求参数
629
+ var dataFilterParams = toJS((_dataFilterForm2 = dataFilterForm) === null || _dataFilterForm2 === void 0 ? void 0 : _dataFilterForm2.values); // 列过滤请求参数
630
630
 
631
631
  var columnsFilterParams = (_actionRef$current$ge = (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$g = _actionRef$current4.getFilterRules) === null || _actionRef$current4$g === void 0 ? void 0 : _actionRef$current4$g.call(_actionRef$current4)) !== null && _actionRef$current$ge !== void 0 ? _actionRef$current$ge : {}; // 格式化后的请求参数
632
632
 
@@ -677,8 +677,11 @@ var ProTable = function ProTable(props) {
677
677
  }
678
678
 
679
679
  (0, _react.useEffect)(function () {
680
+ var _dataFilterForm3;
681
+
680
682
  // 初始化 actionRef state、callback 此时 actionRef 已初始化完成
681
- (0, _utils2.initActionRef)(); // 监听 浏览器变化 更吸底状态
683
+ (0, _utils2.initActionRef)();
684
+ dataFilterForm = dataFilterFormRef.current; // 监听 浏览器变化 更吸底状态
682
685
 
683
686
  if (footerSuction) {
684
687
  getFooterSuctionState();
@@ -688,7 +691,7 @@ var ProTable = function ProTable(props) {
688
691
  };
689
692
  }
690
693
 
691
- if (requestWhenMount) {
694
+ if (requestWhenMount && ((_dataFilterForm3 = dataFilterForm) === null || _dataFilterForm3 === void 0 ? void 0 : _dataFilterForm3.id)) {
692
695
  // 在请求发送之前 处理漏斗默认数据
693
696
  (0, _utils2.processDefaultFilter)(propsColumns, actionRef, defaultFilterParams);
694
697
 
@@ -706,7 +709,7 @@ var ProTable = function ProTable(props) {
706
709
 
707
710
  actionRef.current = undefined;
708
711
  };
709
- }, []);
712
+ }, [(_dataFilterForm4 = dataFilterForm) === null || _dataFilterForm4 === void 0 ? void 0 : _dataFilterForm4.id]);
710
713
 
711
714
  function onSort(dataIndex, order) {
712
715
  var nextSort = _defineProperty({}, dataIndex, order);
@@ -731,8 +734,10 @@ var ProTable = function ProTable(props) {
731
734
  _request(_defineProperty({}, targetPageKey, 1));
732
735
  },
733
736
  onReset: function onReset() {
737
+ var _dataFilterForm5;
738
+
734
739
  (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onReset());
735
- dataFilterForm === null || dataFilterForm === void 0 ? void 0 : dataFilterForm.reset();
740
+ (_dataFilterForm5 = dataFilterForm) === null || _dataFilterForm5 === void 0 ? void 0 : _dataFilterForm5.reset();
736
741
  setCurrentPage(1);
737
742
 
738
743
  _request(_defineProperty({}, targetPageKey, 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamix/pro",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
4
4
  "description": "TeamixPro大包",
5
5
  "repository": "http://gitlab.alibaba-inc.com/teamix/pro",
6
6
  "author": "Velociraptor(迅猛龙)",