@teamix/pro 1.5.13 → 1.5.16

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 (59) hide show
  1. package/es/actions/dialog.js +1 -1
  2. package/es/actions/index.scss +1 -1
  3. package/es/card/index.scss +2 -0
  4. package/es/card/xconsole.scss +3 -0
  5. package/es/global.scss +1 -0
  6. package/es/index.d.ts +1 -1
  7. package/es/index.js +1 -1
  8. package/es/next-xconsole.scss +34 -0
  9. package/es/nocode/configurators/ProTable.js +1 -22
  10. package/es/nocode/pages/index.js +1 -26
  11. package/es/page-header/index.scss +2 -1
  12. package/es/page-header/xconsole.scss +5 -0
  13. package/es/table/components/Filter/index.d.ts +5 -3
  14. package/es/table/components/Filter/index.js +94 -73
  15. package/es/table/components/Layout/index.js +5 -2
  16. package/es/table/components/Layout/index.scss +1 -0
  17. package/es/table/index.js +51 -18
  18. package/es/table/typing.d.ts +14 -0
  19. package/es/table/utils/columnRender.d.ts +2 -2
  20. package/es/table/utils/columnRender.js +4 -2
  21. package/es/table/utils/genProColumnToColumn.d.ts +2 -2
  22. package/es/table/utils/genProColumnToColumn.js +3 -1
  23. package/es/table/utils/util.d.ts +5 -0
  24. package/es/table/utils/util.js +19 -0
  25. package/es/xconsole.scss +6 -1
  26. package/lib/actions/dialog.js +1 -1
  27. package/lib/actions/index.scss +1 -1
  28. package/lib/card/index.scss +2 -0
  29. package/lib/card/xconsole.scss +3 -0
  30. package/lib/global.scss +1 -0
  31. package/lib/index.d.ts +1 -1
  32. package/lib/index.js +1 -1
  33. package/lib/next-xconsole.scss +34 -0
  34. package/lib/nocode/configurators/ProTable.js +1 -22
  35. package/lib/nocode/pages/index.js +1 -26
  36. package/lib/page-header/index.scss +2 -1
  37. package/lib/page-header/xconsole.scss +5 -0
  38. package/lib/table/components/Filter/index.d.ts +5 -3
  39. package/lib/table/components/Filter/index.js +93 -72
  40. package/lib/table/components/Layout/index.js +5 -2
  41. package/lib/table/components/Layout/index.scss +1 -0
  42. package/lib/table/index.js +51 -18
  43. package/lib/table/typing.d.ts +14 -0
  44. package/lib/table/utils/columnRender.d.ts +2 -2
  45. package/lib/table/utils/columnRender.js +4 -2
  46. package/lib/table/utils/genProColumnToColumn.d.ts +2 -2
  47. package/lib/table/utils/genProColumnToColumn.js +3 -1
  48. package/lib/table/utils/util.d.ts +5 -0
  49. package/lib/table/utils/util.js +25 -0
  50. package/lib/xconsole.scss +6 -1
  51. package/package.json +1 -1
  52. package/dist/fonts/txddinmedium.woff +0 -0
  53. package/dist/pro.all.min.css +0 -1
  54. package/dist/pro.css +0 -1
  55. package/dist/pro.js +0 -114283
  56. package/dist/pro.min.css +0 -1
  57. package/dist/pro.min.js +0 -2
  58. package/dist/pro.min.js.LICENSE.txt +0 -47
  59. package/dist/pro.xconsole.min.css +0 -1
@@ -168,6 +168,10 @@ export declare type ProTableProps = {
168
168
  defaultView?: 'table' | 'card';
169
169
  /** 空状态配置 **/
170
170
  emptyProps?: EmptyContentProps;
171
+ /** 是否绑定 url **/
172
+ bindUrl?: boolean;
173
+ /** 绑定 url 配置 **/
174
+ bindUrlProps?: ProTableBindUrlProps;
171
175
  } & Omit<TableProps, 'columns'> & ProTableTopAreaProps;
172
176
  export declare type rowSelectionType = {
173
177
  getProps?: (record: any, index: number) => any;
@@ -315,6 +319,8 @@ export declare type ProTableLayoutProps = {
315
319
  defaultView?: 'table' | 'card';
316
320
  autoRefresh?: ProTableProps['autoRefresh'];
317
321
  autoRefreshProps?: ProTableProps['autoRefreshProps'];
322
+ bindUrl?: ProTableProps['bindUrl'];
323
+ bindUrlProps?: ProTableProps['bindUrlProps'];
318
324
  } & ProTableTopAreaProps;
319
325
  /** columns 列过滤 */
320
326
  export declare type ProTableColumnsFilterItemProps = {
@@ -401,4 +407,12 @@ export declare type ProTableCardViewProps = {
401
407
  /** 表格分页器参数 **/
402
408
  tablePaginationProps?: PaginationProps;
403
409
  };
410
+ export declare type ProTableBindUrlProps = {
411
+ /** 翻页器区域 **/
412
+ pagination?: boolean;
413
+ /** 搜索区域 **/
414
+ filters?: boolean;
415
+ /** 表格标题过滤器区域 **/
416
+ headerFilters?: boolean;
417
+ };
404
418
  export {};
@@ -2,11 +2,11 @@
2
2
  * 渲染列的逻辑函数
3
3
  */
4
4
  import React from 'react';
5
- import { ProTableColumnProps, ProTableActionType } from '../typing';
5
+ import { ProTableColumnProps, ProTableActionType, ProTableProps } from '../typing';
6
6
  /**
7
7
  * 增加了 icon 的功能 render title
8
8
  */
9
- export declare const renderColumnsTitle: (item: ProTableColumnProps, actionRef: React.MutableRefObject<ProTableActionType | undefined>) => JSX.Element;
9
+ export declare const renderColumnsTitle: (item: ProTableColumnProps, actionRef: React.MutableRefObject<ProTableActionType | undefined>, bindUrl?: ProTableProps['bindUrl'], bindUrlProps?: ProTableProps['bindUrlProps']) => JSX.Element;
10
10
  /**
11
11
  * 负责单元格的具体渲染
12
12
  */
@@ -22,7 +22,7 @@ import Filter from '../components/Filter';
22
22
  /**
23
23
  * 增加了 icon 的功能 render title
24
24
  */
25
- export var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
25
+ export var renderColumnsTitle = function renderColumnsTitle(item, actionRef, bindUrl, bindUrlProps) {
26
26
  var filterMode = item.filterMode,
27
27
  filters = item.filters,
28
28
  dataSource = item.dataSource,
@@ -79,7 +79,9 @@ export var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
79
79
  icon: item.tooltipIcon
80
80
  }), item.filters && /*#__PURE__*/React.createElement(Filter, {
81
81
  column: item,
82
- actionRef: actionRef
82
+ actionRef: actionRef,
83
+ bindUrl: bindUrl,
84
+ bindUrlProps: bindUrlProps
83
85
  }));
84
86
  };
85
87
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ProTableColumnProps, ProTableActionType } from '../typing';
2
+ import { ProTableColumnProps, ProTableActionType, ProTableProps } from '../typing';
3
3
  import { ColumnProps } from '@alicloudfe/components/types/table';
4
4
  declare type FixedColumnProps = ColumnProps & {
5
5
  wordBreak?: string;
@@ -9,5 +9,5 @@ declare type FixedColumnProps = ColumnProps & {
9
9
  */
10
10
  export default function genProColumnToColumn(columns: ProTableColumnProps[],
11
11
  /** 是否渲染骨架屏 */
12
- showSkeleton: boolean, actionRef: React.MutableRefObject<ProTableActionType | undefined>, context?: any, dataTeamixSpm?: string): FixedColumnProps[];
12
+ showSkeleton: boolean, actionRef: React.MutableRefObject<ProTableActionType | undefined>, context?: any, dataTeamixSpm?: string, bindUrl?: ProTableProps['bindUrl'], bindUrlProps?: ProTableProps['bindUrlProps']): FixedColumnProps[];
13
13
  export {};
@@ -17,6 +17,8 @@ showSkeleton, actionRef) {
17
17
  var
18
18
  // 用于埋点
19
19
  dataTeamixSpm = arguments.length > 4 ? arguments[4] : undefined;
20
+ var bindUrl = arguments.length > 5 ? arguments[5] : undefined;
21
+ var bindUrlProps = arguments.length > 6 ? arguments[6] : undefined;
20
22
  return columns.map(function (columnProps) {
21
23
  var filters = columnProps.filters,
22
24
  dataIndex = columnProps.dataIndex,
@@ -40,7 +42,7 @@ showSkeleton, actionRef) {
40
42
  }, others), {}, {
41
43
  children: children ? genProColumnToColumn(children, showSkeleton, actionRef, context) : undefined,
42
44
  dataIndex: dataIndex === null || dataIndex === void 0 ? void 0 : dataIndex.toString(),
43
- title: renderColumnsTitle(columnProps, actionRef),
45
+ title: renderColumnsTitle(columnProps, actionRef, bindUrl, bindUrlProps),
44
46
  cell: function cell(value, index, record) {
45
47
  return renderCell(value, columnProps, index, record, actionRef, context, dataTeamixSpm);
46
48
  }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ProTableActionType } from '../typing';
3
+ export declare function getUrlStateFilter(urlState: {
4
+ [key: string]: any;
5
+ }, actionRef: React.MutableRefObject<ProTableActionType | undefined>): void;
@@ -0,0 +1,19 @@
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
+ 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; }
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; }
4
+ export function getUrlStateFilter(urlState, actionRef) {
5
+ var _actionRef$current$ge, _actionRef$current, _actionRef$current$ge2, _actionRef$current$ge3, _actionRef$current2, _actionRef$current2$s;
6
+ var filters = Object.keys(urlState).filter(function (item) {
7
+ return /^filter.+$/.test(item);
8
+ });
9
+ var urlStateParams = Object.fromEntries(filters.map(function (item) {
10
+ var _item$split, _urlState$item, _urlState$item$join, _urlState$item$split, _urlState$item2, _urlState$item2$split;
11
+ return [(_item$split = item.split('filter')) === null || _item$split === void 0 ? void 0 : _item$split[1], {
12
+ params: Array.isArray(urlState === null || urlState === void 0 ? void 0 : urlState[item]) ? urlState === null || urlState === void 0 ? void 0 : (_urlState$item = urlState[item]) === null || _urlState$item === void 0 ? void 0 : (_urlState$item$join = _urlState$item.join) === null || _urlState$item$join === void 0 ? void 0 : _urlState$item$join.call(_urlState$item, ',') : urlState === null || urlState === void 0 ? void 0 : urlState[item],
13
+ rules: Array.isArray(urlState === null || urlState === void 0 ? void 0 : urlState[item]) ? urlState === null || urlState === void 0 ? void 0 : urlState[item] : (_urlState$item$split = urlState === null || urlState === void 0 ? void 0 : (_urlState$item2 = urlState[item]) === null || _urlState$item2 === void 0 ? void 0 : (_urlState$item2$split = _urlState$item2.split) === null || _urlState$item2$split === void 0 ? void 0 : _urlState$item2$split.call(_urlState$item2, ',')) !== null && _urlState$item$split !== void 0 ? _urlState$item$split : []
14
+ }];
15
+ }));
16
+ var rules = (_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$ge3 = _actionRef$current$ge2.call(_actionRef$current)) === null || _actionRef$current$ge3 === void 0 ? void 0 : _actionRef$current$ge3.filterRules) !== null && _actionRef$current$ge !== void 0 ? _actionRef$current$ge : {};
17
+ // 再设置所有的列筛选状态
18
+ (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$s = _actionRef$current2.setFilterRules) === null || _actionRef$current2$s === void 0 ? void 0 : _actionRef$current2$s.call(_actionRef$current2, _objectSpread(_objectSpread({}, rules), urlStateParams));
19
+ }
package/es/xconsole.scss CHANGED
@@ -74,8 +74,9 @@
74
74
  --color-event-p5: rgba(209, 187, 79, 1);
75
75
  --color-event-p6: rgba(0, 179, 199, 1);
76
76
  --color-event-p7: rgba(0, 146, 199, 1);
77
- --color-text1-4: #1A1A1A;
77
+ --color-text1-4: var(--color-text-1, #1A1A1A);
78
78
  --color-text1-3: rgba(51, 51, 51, 1);
79
+ --color-text1-2: rgba(105,105,105,1);
79
80
  --color-notice-7: rgba(88, 154, 219, 1);
80
81
  --color-notice-5: rgba(0, 100, 200, 1);
81
82
  --color-notice-6: rgba(0, 87, 173, 1);
@@ -487,6 +488,10 @@
487
488
 
488
489
  --teamix-status-tag-loading-background: var(--G40, #AAAAAA);
489
490
 
491
+ --color-text1-3: #555555;
492
+ --color-text1-2: #888888;
493
+
494
+
490
495
  .teamix-pro-lable-icon-tip-icon i {
491
496
  color: var(--G40, #AAAAAA);
492
497
  }
@@ -218,7 +218,7 @@ function useDialogAction(action, actionContext, hasForm) {
218
218
  className: (0, _classnames.default)('teamix-pro-dialog-footer-description', getFooterAlignClass(isDrawer, footerAlign))
219
219
  }, renderDialogFooterDescription(footerDescription)))), _defineProperty(_objectSpread2, "footerAlign", footerAlign), _defineProperty(_objectSpread2, "className", (0, _classnames.default)('teamix-pro-action-dialog', {
220
220
  'has-footer-description': !!footerDescription
221
- })), _defineProperty(_objectSpread2, "footer", addContextForReactNode(footer, dialogContext)), _objectSpread2), containerProps), containerOtherProps);
221
+ })), _defineProperty(_objectSpread2, isDrawer ? 'renderFooter' : 'footer', addContextForReactNode(footer, dialogContext)), _objectSpread2), containerProps), containerOtherProps);
222
222
  // TODO Drawer 基础组件未支持此配置,日后支持,并修改onOk、onCancel写法
223
223
  if ((!dialogType || dialogType === 'dialog') && hideFooter) {
224
224
  quickShowProps['footer'] = !hideFooter;
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  &.teamix-pro-actions-type-button {
13
- & > button {
13
+ & > button,& > span {
14
14
  &:not(:last-child) {
15
15
  margin-right: var(--s-2);
16
16
  }
@@ -1,3 +1,5 @@
1
+ @import "xconsole";
2
+
1
3
  .teamix-pro-card {
2
4
  width: 100%;
3
5
 
@@ -0,0 +1,3 @@
1
+ .theme-xconsole {
2
+
3
+ }
package/lib/global.scss CHANGED
@@ -1,4 +1,5 @@
1
1
  @import "./xconsole.scss";
2
+ @import "next-xconsole";
2
3
  // transition 切换主题优化,暂时先写到 pro 里,后面加到基础组件里
3
4
 
4
5
  // table 行背景色
package/lib/index.d.ts CHANGED
@@ -28,5 +28,5 @@ export * from './table';
28
28
  export * from './sidebar';
29
29
  export * from './utils';
30
30
  export * from './timeline';
31
- declare const version = "1.5.13";
31
+ declare const version = "1.5.16";
32
32
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
package/lib/index.js CHANGED
@@ -280,7 +280,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
280
280
  if (!((_window = window) === null || _window === void 0 ? void 0 : _window.TEAMIXPRO_WITHOUT_ICON)) {
281
281
  _icon.default.setConfig(_utils.default.getTeamixIconConfig());
282
282
  }
283
- var version = '1.5.13';
283
+ var version = '1.5.16';
284
284
  // By TeamixTest
285
285
  exports.version = version;
286
286
  window.postMessage({
@@ -0,0 +1,34 @@
1
+ .theme-xconsole {
2
+ //.next-drawer-header {
3
+ // color: var(--color-text-1, #1A1A1A)
4
+ //}
5
+ //.next-message.next-message-success.next-toast .next-message-title {
6
+ // color: var(--color-text-1, #1A1A1A)
7
+ //}
8
+
9
+ --message-success-color-border-toast: var(--color-border-4, #E5E5E5);
10
+
11
+ /* --card-border-color: var(--color-text1-4, #E3E4E6); */
12
+ --card-border-color: var(--color-border-4, #E5E5E5);
13
+ /* --tab-pure-divider-border-color: var(--color-text1-4, #e5e5e5); */
14
+ --tab-pure-divider-border-color: var(--color-border-4, #E5E5E5);
15
+ --drawer-title-border-color: var(--color-border-4, #E5E5E5);
16
+
17
+ --popup-local-border-color: var(--color-border-4, #E5E5E5);
18
+
19
+ --btn-pure-normal-bg-disabled: var(--color-fill-2, #F7F7F7);
20
+ --checkbox-disabled-bg-color: var(--color-border-1, #D9D9D9);
21
+
22
+ --btn-pure-normal-border-color-disabled: var(--color-border-1, #D9D9D9);
23
+ --btn-pure-primary-border-color-disabled: var(--color-border-1, #D9D9D9);
24
+
25
+ --tab-item-margin-lr-size-m: 16px;
26
+ --tab-pure-hover-bg: transparent;
27
+
28
+ --progress-line-underlay-color: var(--color-border-4, #E5E5E5);
29
+ --range-normal-unselected-color: var(--color-border-4, #E5E5E5);
30
+
31
+ .next-formily-item-inset {
32
+ border: 1px solid var(--color-border-1, #D9D9D9);
33
+ }
34
+ }
@@ -6,28 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _common = require("./common");
8
8
  var initialValues = {
9
- columns: [{
10
- dataIndex: 'instanceName',
11
- title: '实例ID/实例名称'
12
- }, {
13
- dataIndex: 'organizationName',
14
- title: '组织',
15
- tooltip: '我这一列是可以被复制的~',
16
- render: {
17
- copy: true
18
- }
19
- }],
20
- url: 'https://oneapi.alibaba-inc.com/mock/teamix-pro/api/getTableResource',
21
- formatResult: {
22
- data: 'data',
23
- total: 'pageInfo.total'
24
- },
25
- mainAction: {
26
- actions: [{
27
- key: 'action',
28
- children: '操作按钮'
29
- }]
30
- }
9
+ columns: []
31
10
  };
32
11
  var defaultValues = {
33
12
  showSkeleton: true,
@@ -54,32 +54,7 @@ var PageMap = {
54
54
  // 全部页面模板默认初始值
55
55
  exports.PageMap = PageMap;
56
56
  var PageDefaultInitialValues = {
57
- LIST: {
58
- header: {
59
- title: '页面标题'
60
- },
61
- content: {
62
- header: {
63
- title: '表格标题'
64
- },
65
- columns: [{
66
- dataIndex: 'instanceName',
67
- title: '实例ID/实例名称'
68
- }, {
69
- dataIndex: 'organizationName',
70
- title: '组织',
71
- tooltip: '我这一列是可以被复制的~',
72
- render: {
73
- copy: true
74
- }
75
- }],
76
- url: 'https://oneapi.alibaba-inc.com/mock/teamix-pro/api/getTableResource',
77
- formatResult: {
78
- data: 'data',
79
- total: 'pageInfo.total'
80
- }
81
- }
82
- },
57
+ LIST: {},
83
58
  DETAIL: {},
84
59
  FORM: {}
85
60
  };
@@ -1,3 +1,4 @@
1
+ @import "xconsole";
1
2
  $prefix: 'teamix-pro-page-header';
2
3
 
3
4
  .#{$prefix} {
@@ -12,7 +13,7 @@ $prefix: 'teamix-pro-page-header';
12
13
  justify-content: space-between;
13
14
  align-items: center;
14
15
  min-height: 18px;
15
- height: var(--layout-header-height, auto);
16
+ height: auto;
16
17
  margin-bottom: var(--s-2, 8px);
17
18
 
18
19
  &.with-description {
@@ -0,0 +1,5 @@
1
+ .theme-xconsole {
2
+ .teamix-pro-page-header .teamix-pro-page-header-title{
3
+ color: var(--color-text-1, #1A1A1A);
4
+ }
5
+ }
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
2
  import './index.scss';
3
- import { ProTableColumnProps, ProTableActionType } from '../../typing';
3
+ import { ProTableColumnProps, ProTableActionType, ProTableProps } from '../../typing';
4
4
  declare type ProTableFilterProps = {
5
5
  column: ProTableColumnProps;
6
6
  actionRef: React.MutableRefObject<ProTableActionType | undefined>;
7
7
  switchCardView?: 'table' | 'card';
8
+ bindUrl?: ProTableProps['bindUrl'];
9
+ bindUrlProps?: ProTableProps['bindUrlProps'];
8
10
  };
9
- declare const Filter: React.FC<ProTableFilterProps>;
10
- export default Filter;
11
+ declare const _default: React.NamedExoticComponent<ProTableFilterProps>;
12
+ export default _default;
@@ -10,6 +10,7 @@ var _icon = _interopRequireDefault(require("@teamix/icon"));
10
10
  var _components = require("@alicloudfe/components");
11
11
  var _utils = require("@teamix/utils");
12
12
  require("./index.scss");
13
+ var _hooks = require("@teamix/hooks");
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -30,13 +31,20 @@ var CheckboxItem = _components.Menu.CheckboxItem;
30
31
  var cls = (0, _utils.usePrefixCls)('teamix-pro-table-toolbar-filter');
31
32
  var RadioItem = _components.Menu.RadioItem;
32
33
  var Filter = function Filter(props) {
34
+ var _urlState$split, _urlState, _urlState$split2;
33
35
  var column = props.column,
34
36
  actionRef = props.actionRef,
35
- switchCardView = props.switchCardView;
37
+ switchCardView = props.switchCardView,
38
+ bindUrlProps = props.bindUrlProps,
39
+ bindUrl = props.bindUrl;
36
40
  var _column$filtersWidth = column.filtersWidth,
37
41
  filtersWidth = _column$filtersWidth === void 0 ? 130 : _column$filtersWidth;
42
+ var _ref = bindUrl ? (0, _hooks.useUrlState)() : [],
43
+ _ref2 = _slicedToArray(_ref, 2),
44
+ urlState = _ref2[0],
45
+ setUrlState = _ref2[1];
38
46
  // 选中过滤项
39
- var _useState = (0, _react.useState)([]),
47
+ var _useState = (0, _react.useState)((_urlState$split = urlState === null || urlState === void 0 ? void 0 : (_urlState = urlState["filter".concat(column === null || column === void 0 ? void 0 : column.dataIndex)]) === null || _urlState === void 0 ? void 0 : (_urlState$split2 = _urlState.split) === null || _urlState$split2 === void 0 ? void 0 : _urlState$split2.call(_urlState, ',')) !== null && _urlState$split !== void 0 ? _urlState$split : []),
40
48
  _useState2 = _slicedToArray(_useState, 2),
41
49
  selected = _useState2[0],
42
50
  setSelected = _useState2[1];
@@ -48,7 +56,10 @@ var Filter = function Filter(props) {
48
56
  var _actionRef$current$ge, _actionRef$current, _actionRef$current$ge2, _actionRef$current$ge3, _actionRef$current$ge4, _actionRef$current$ge5;
49
57
  // 从全局状态中读取上次存储的条件
50
58
  var rules = (_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$ge3 = _actionRef$current$ge2.call(_actionRef$current)) === null || _actionRef$current$ge3 === void 0 ? void 0 : (_actionRef$current$ge4 = _actionRef$current$ge3.filterRules) === null || _actionRef$current$ge4 === void 0 ? void 0 : (_actionRef$current$ge5 = _actionRef$current$ge4[column.dataIndex]) === null || _actionRef$current$ge5 === void 0 ? void 0 : _actionRef$current$ge5.rules) !== null && _actionRef$current$ge !== void 0 ? _actionRef$current$ge : [];
51
- setSelected(rules);
59
+ // 全局状态中需要有值才赋值。优先级:全局状态 > urlState
60
+ if (rules && rules.length > 0) {
61
+ setSelected(rules);
62
+ }
52
63
  }, []);
53
64
  // 获取过滤项
54
65
  var filters = (0, _react.useMemo)(function () {
@@ -58,11 +69,11 @@ var Filter = function Filter(props) {
58
69
  var filters = column.dataSource;
59
70
  // 转换 valueEnum 为 options
60
71
  if (!Array.isArray(column.dataSource)) {
61
- filters = Object.entries(column.dataSource).map(function (_ref) {
72
+ filters = Object.entries(column.dataSource).map(function (_ref3) {
62
73
  var _nv$label, _nv$color;
63
- var _ref2 = _slicedToArray(_ref, 2),
64
- k = _ref2[0],
65
- v = _ref2[1];
74
+ var _ref4 = _slicedToArray(_ref3, 2),
75
+ k = _ref4[0],
76
+ v = _ref4[1];
66
77
  var nv = v;
67
78
  return _objectSpread(_objectSpread({
68
79
  value: k
@@ -75,12 +86,78 @@ var Filter = function Filter(props) {
75
86
  // console.log(filters);
76
87
  return filters;
77
88
  }, []);
89
+ // 点击确定回调
90
+ var onFilterOk = function onFilterOk() {
91
+ var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge6, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$s, _actionRef$current5, _actionRef$current7, _actionRef$current7$r, _actionRef$current8, _actionRef$current8$r, _actionRef$current9, _actionRef$current9$c;
92
+ (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$f = _actionRef$current2.filterDataSource) === null || _actionRef$current2$f === void 0 ? void 0 : _actionRef$current2$f.call(_actionRef$current2, column.dataIndex);
93
+ // 先获取此列的param
94
+ var param = '';
95
+ if (column.beforeFilter) {
96
+ var _column$beforeFilter;
97
+ param = (_column$beforeFilter = column.beforeFilter) === null || _column$beforeFilter === void 0 ? void 0 : _column$beforeFilter.call(column, selected);
98
+ } else {
99
+ param = selected.join(',');
100
+ }
101
+ // 需要带上其他所有的信息
102
+ var rules = (_actionRef$current$ge6 = (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$g = _actionRef$current3.getState) === null || _actionRef$current3$g === void 0 ? void 0 : (_actionRef$current3$g2 = _actionRef$current3$g.call(_actionRef$current3)) === null || _actionRef$current3$g2 === void 0 ? void 0 : _actionRef$current3$g2.filterRules) !== null && _actionRef$current$ge6 !== void 0 ? _actionRef$current$ge6 : {};
103
+ // 再设置所有的列筛选状态
104
+ (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$s = _actionRef$current4.setFilterRules) === null || _actionRef$current4$s === void 0 ? void 0 : _actionRef$current4$s.call(_actionRef$current4, _objectSpread(_objectSpread({}, rules), {}, _defineProperty({}, column.dataIndex, {
105
+ rules: selected,
106
+ params: param
107
+ })));
108
+ var targetPageKey = 'currentPage';
109
+ var pageInfo = (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : _actionRef$current5.pageInfo;
110
+ if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
111
+ targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
112
+ }
113
+ if (switchCardView === 'card') {
114
+ var _actionRef$current6, _actionRef$current6$s;
115
+ (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$s = _actionRef$current6.setData) === null || _actionRef$current6$s === void 0 ? void 0 : _actionRef$current6$s.call(_actionRef$current6, []);
116
+ }
117
+ // 发送请求
118
+ (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$r = _actionRef$current7.request) === null || _actionRef$current7$r === void 0 ? void 0 : _actionRef$current7$r.call(_actionRef$current7, _defineProperty({}, targetPageKey, 1));
119
+ (_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$r = _actionRef$current8.resetPage) === null || _actionRef$current8$r === void 0 ? void 0 : _actionRef$current8$r.call(_actionRef$current8);
120
+ // 清空表格选择
121
+ (_actionRef$current9 = actionRef.current) === null || _actionRef$current9 === void 0 ? void 0 : (_actionRef$current9$c = _actionRef$current9.clearRowSelection) === null || _actionRef$current9$c === void 0 ? void 0 : _actionRef$current9$c.call(_actionRef$current9);
122
+ setVisible(false);
123
+ // 设置 url
124
+ if (bindUrl && (bindUrlProps === null || bindUrlProps === void 0 ? void 0 : bindUrlProps.headerFilters) !== false && (urlState === null || urlState === void 0 ? void 0 : urlState["filter".concat(column === null || column === void 0 ? void 0 : column.dataIndex)]) !== selected.join(',')) {
125
+ setUrlState === null || setUrlState === void 0 ? void 0 : setUrlState(_defineProperty({}, "filter".concat(column === null || column === void 0 ? void 0 : column.dataIndex), selected.join(',')));
126
+ }
127
+ };
128
+ // 重置回调
129
+ var onFilterReset = function onFilterReset() {
130
+ var _actionRef$current$ge7, _actionRef$current10, _actionRef$current10$, _actionRef$current10$2, _actionRef$current11, _actionRef$current11$, _actionRef$current12, _actionRef$current12$;
131
+ setSelected([]);
132
+ var rules = (_actionRef$current$ge7 = (_actionRef$current10 = actionRef.current) === null || _actionRef$current10 === void 0 ? void 0 : (_actionRef$current10$ = _actionRef$current10.getState) === null || _actionRef$current10$ === void 0 ? void 0 : (_actionRef$current10$2 = _actionRef$current10$.call(_actionRef$current10)) === null || _actionRef$current10$2 === void 0 ? void 0 : _actionRef$current10$2.filterRules) !== null && _actionRef$current$ge7 !== void 0 ? _actionRef$current$ge7 : {};
133
+ (_actionRef$current11 = actionRef.current) === null || _actionRef$current11 === void 0 ? void 0 : (_actionRef$current11$ = _actionRef$current11.setFilterRules) === null || _actionRef$current11$ === void 0 ? void 0 : _actionRef$current11$.call(_actionRef$current11, _objectSpread(_objectSpread({}, rules), {}, _defineProperty({}, column.dataIndex, {
134
+ rules: [],
135
+ params: ''
136
+ })));
137
+ (_actionRef$current12 = actionRef.current) === null || _actionRef$current12 === void 0 ? void 0 : (_actionRef$current12$ = _actionRef$current12.filterDataSource) === null || _actionRef$current12$ === void 0 ? void 0 : _actionRef$current12$.call(_actionRef$current12, column.dataIndex);
138
+ if (selected.length > 0) {
139
+ var _actionRef$current13, _actionRef$current14, _actionRef$current14$, _actionRef$current15, _actionRef$current15$, _actionRef$current16, _actionRef$current16$;
140
+ var targetPageKey = 'currentPage';
141
+ var pageInfo = (_actionRef$current13 = actionRef.current) === null || _actionRef$current13 === void 0 ? void 0 : _actionRef$current13.pageInfo;
142
+ if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
143
+ targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
144
+ }
145
+ // 发送请求
146
+ (_actionRef$current14 = actionRef.current) === null || _actionRef$current14 === void 0 ? void 0 : (_actionRef$current14$ = _actionRef$current14.request) === null || _actionRef$current14$ === void 0 ? void 0 : _actionRef$current14$.call(_actionRef$current14, _defineProperty({}, targetPageKey, 1));
147
+ (_actionRef$current15 = actionRef.current) === null || _actionRef$current15 === void 0 ? void 0 : (_actionRef$current15$ = _actionRef$current15.resetPage) === null || _actionRef$current15$ === void 0 ? void 0 : _actionRef$current15$.call(_actionRef$current15);
148
+ // 清空表格选择
149
+ (_actionRef$current16 = actionRef.current) === null || _actionRef$current16 === void 0 ? void 0 : (_actionRef$current16$ = _actionRef$current16.clearRowSelection) === null || _actionRef$current16$ === void 0 ? void 0 : _actionRef$current16$.call(_actionRef$current16);
150
+ if (bindUrl && (bindUrlProps === null || bindUrlProps === void 0 ? void 0 : bindUrlProps.headerFilters) !== false) {
151
+ setUrlState === null || setUrlState === void 0 ? void 0 : setUrlState(_defineProperty({}, "filter".concat(column === null || column === void 0 ? void 0 : column.dataIndex), undefined));
152
+ }
153
+ }
154
+ };
78
155
  // 渲染单选
79
156
  var renderSingle = function renderSingle() {
80
- return filters === null || filters === void 0 ? void 0 : filters.map(function (_ref3) {
157
+ return filters === null || filters === void 0 ? void 0 : filters.map(function (_ref5) {
81
158
  var _value$toString;
82
- var label = _ref3.label,
83
- value = _ref3.value;
159
+ var label = _ref5.label,
160
+ value = _ref5.value;
84
161
  var valueStr = (_value$toString = value === null || value === void 0 ? void 0 : value.toString()) !== null && _value$toString !== void 0 ? _value$toString : '';
85
162
  return /*#__PURE__*/_react.default.createElement(RadioItem, {
86
163
  id: valueStr,
@@ -94,10 +171,10 @@ var Filter = function Filter(props) {
94
171
  };
95
172
  // 渲染多选
96
173
  var renderMultiple = function renderMultiple() {
97
- return filters === null || filters === void 0 ? void 0 : filters.map(function (_ref4) {
174
+ return filters === null || filters === void 0 ? void 0 : filters.map(function (_ref6) {
98
175
  var _value$toString2;
99
- var label = _ref4.label,
100
- value = _ref4.value;
176
+ var label = _ref6.label,
177
+ value = _ref6.value;
101
178
  var valueStr = (_value$toString2 = value === null || value === void 0 ? void 0 : value.toString()) !== null && _value$toString2 !== void 0 ? _value$toString2 : '';
102
179
  return /*#__PURE__*/_react.default.createElement(CheckboxItem, {
103
180
  key: valueStr,
@@ -154,71 +231,15 @@ var Filter = function Filter(props) {
154
231
  className: cls({
155
232
  btn: true
156
233
  }),
157
- onClick: function onClick() {
158
- var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge6, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$s, _actionRef$current5, _actionRef$current7, _actionRef$current7$r, _actionRef$current8, _actionRef$current8$r, _actionRef$current9, _actionRef$current9$c;
159
- (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$f = _actionRef$current2.filterDataSource) === null || _actionRef$current2$f === void 0 ? void 0 : _actionRef$current2$f.call(_actionRef$current2, column.dataIndex);
160
- // 先获取此列的param
161
- var param = '';
162
- if (column.beforeFilter) {
163
- var _column$beforeFilter;
164
- param = (_column$beforeFilter = column.beforeFilter) === null || _column$beforeFilter === void 0 ? void 0 : _column$beforeFilter.call(column, selected);
165
- } else {
166
- param = selected.join(',');
167
- }
168
- // 需要带上其他所有的信息
169
- var rules = (_actionRef$current$ge6 = (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$g = _actionRef$current3.getState) === null || _actionRef$current3$g === void 0 ? void 0 : (_actionRef$current3$g2 = _actionRef$current3$g.call(_actionRef$current3)) === null || _actionRef$current3$g2 === void 0 ? void 0 : _actionRef$current3$g2.filterRules) !== null && _actionRef$current$ge6 !== void 0 ? _actionRef$current$ge6 : {};
170
- // 再设置所有的列筛选状态
171
- (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$s = _actionRef$current4.setFilterRules) === null || _actionRef$current4$s === void 0 ? void 0 : _actionRef$current4$s.call(_actionRef$current4, _objectSpread(_objectSpread({}, rules), {}, _defineProperty({}, column.dataIndex, {
172
- rules: selected,
173
- params: param
174
- })));
175
- var targetPageKey = 'currentPage';
176
- var pageInfo = (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : _actionRef$current5.pageInfo;
177
- if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
178
- targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
179
- }
180
- if (switchCardView === 'card') {
181
- var _actionRef$current6, _actionRef$current6$s;
182
- (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$s = _actionRef$current6.setData) === null || _actionRef$current6$s === void 0 ? void 0 : _actionRef$current6$s.call(_actionRef$current6, []);
183
- }
184
- // 发送请求
185
- (_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$r = _actionRef$current7.request) === null || _actionRef$current7$r === void 0 ? void 0 : _actionRef$current7$r.call(_actionRef$current7, _defineProperty({}, targetPageKey, 1));
186
- (_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$r = _actionRef$current8.resetPage) === null || _actionRef$current8$r === void 0 ? void 0 : _actionRef$current8$r.call(_actionRef$current8);
187
- // 清空表格选择
188
- (_actionRef$current9 = actionRef.current) === null || _actionRef$current9 === void 0 ? void 0 : (_actionRef$current9$c = _actionRef$current9.clearRowSelection) === null || _actionRef$current9$c === void 0 ? void 0 : _actionRef$current9$c.call(_actionRef$current9);
189
- setVisible(false);
190
- }
234
+ onClick: onFilterOk
191
235
  }, (0, _utils.getMessage)('ok')), /*#__PURE__*/_react.default.createElement(_components.Button, {
192
236
  type: "normal",
193
237
  size: "small",
194
238
  className: cls({
195
239
  btn: true
196
240
  }),
197
- onClick: function onClick() {
198
- var _actionRef$current$ge7, _actionRef$current10, _actionRef$current10$, _actionRef$current10$2, _actionRef$current11, _actionRef$current11$, _actionRef$current12, _actionRef$current12$;
199
- setSelected([]);
200
- var rules = (_actionRef$current$ge7 = (_actionRef$current10 = actionRef.current) === null || _actionRef$current10 === void 0 ? void 0 : (_actionRef$current10$ = _actionRef$current10.getState) === null || _actionRef$current10$ === void 0 ? void 0 : (_actionRef$current10$2 = _actionRef$current10$.call(_actionRef$current10)) === null || _actionRef$current10$2 === void 0 ? void 0 : _actionRef$current10$2.filterRules) !== null && _actionRef$current$ge7 !== void 0 ? _actionRef$current$ge7 : {};
201
- (_actionRef$current11 = actionRef.current) === null || _actionRef$current11 === void 0 ? void 0 : (_actionRef$current11$ = _actionRef$current11.setFilterRules) === null || _actionRef$current11$ === void 0 ? void 0 : _actionRef$current11$.call(_actionRef$current11, _objectSpread(_objectSpread({}, rules), {}, _defineProperty({}, column.dataIndex, {
202
- rules: [],
203
- params: ''
204
- })));
205
- (_actionRef$current12 = actionRef.current) === null || _actionRef$current12 === void 0 ? void 0 : (_actionRef$current12$ = _actionRef$current12.filterDataSource) === null || _actionRef$current12$ === void 0 ? void 0 : _actionRef$current12$.call(_actionRef$current12, column.dataIndex);
206
- if (selected.length > 0) {
207
- var _actionRef$current13, _actionRef$current14, _actionRef$current14$, _actionRef$current15, _actionRef$current15$, _actionRef$current16, _actionRef$current16$;
208
- var targetPageKey = 'currentPage';
209
- var pageInfo = (_actionRef$current13 = actionRef.current) === null || _actionRef$current13 === void 0 ? void 0 : _actionRef$current13.pageInfo;
210
- if (pageInfo && (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey)) {
211
- targetPageKey = pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.targetPageKey;
212
- }
213
- // 发送请求
214
- (_actionRef$current14 = actionRef.current) === null || _actionRef$current14 === void 0 ? void 0 : (_actionRef$current14$ = _actionRef$current14.request) === null || _actionRef$current14$ === void 0 ? void 0 : _actionRef$current14$.call(_actionRef$current14, _defineProperty({}, targetPageKey, 1));
215
- (_actionRef$current15 = actionRef.current) === null || _actionRef$current15 === void 0 ? void 0 : (_actionRef$current15$ = _actionRef$current15.resetPage) === null || _actionRef$current15$ === void 0 ? void 0 : _actionRef$current15$.call(_actionRef$current15);
216
- // 清空表格选择
217
- (_actionRef$current16 = actionRef.current) === null || _actionRef$current16 === void 0 ? void 0 : (_actionRef$current16$ = _actionRef$current16.clearRowSelection) === null || _actionRef$current16$ === void 0 ? void 0 : _actionRef$current16$.call(_actionRef$current16);
218
- }
219
- // setVisible(!visible);
220
- }
241
+ onClick: onFilterReset
221
242
  }, (0, _utils.getMessage)('reset'))))));
222
243
  };
223
- var _default = Filter;
244
+ var _default = /*#__PURE__*/(0, _react.memo)(Filter);
224
245
  exports.default = _default;
@@ -12,7 +12,7 @@ var _form = require("../../../form");
12
12
  var _ToolBar = _interopRequireDefault(require("../ToolBar"));
13
13
  var _QuickAction = _interopRequireDefault(require("../QuickAction"));
14
14
  require("./index.scss");
15
- var _excluded = ["header", "mainAction", "extra", "actionRef", "dataFilter", "dataFilterFormRef", "afterDataFilter", "rowSelection", "toolBar", "dataTeamixSpm"];
15
+ var _excluded = ["header", "mainAction", "extra", "actionRef", "dataFilter", "dataFilterFormRef", "afterDataFilter", "rowSelection", "toolBar", "dataTeamixSpm", "bindUrl", "bindUrlProps"];
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -34,6 +34,8 @@ var Layout = function Layout(props) {
34
34
  rowSelection = props.rowSelection,
35
35
  toolBar = props.toolBar,
36
36
  dataTeamixSpm = props.dataTeamixSpm,
37
+ bindUrl = props.bindUrl,
38
+ bindUrlProps = props.bindUrlProps,
37
39
  otherProps = _objectWithoutProperties(props, _excluded);
38
40
  // 渲染主操作区
39
41
  var renderMainAction = function renderMainAction() {
@@ -112,7 +114,8 @@ var Layout = function Layout(props) {
112
114
  (dataFilter === null || dataFilter === void 0 ? void 0 : dataFilter.onExpand) && (dataFilter === null || dataFilter === void 0 ? void 0 : dataFilter.onExpand(expand));
113
115
  },
114
116
  addonBefore: renderMainAction(),
115
- addonAfter: renderAddonAfter()
117
+ addonAfter: renderAddonAfter(),
118
+ bindUrl: bindUrl && (bindUrlProps === null || bindUrlProps === void 0 ? void 0 : bindUrlProps.filters) !== false
116
119
  }, dataFilter)), afterDataFilter && /*#__PURE__*/_react.default.createElement("div", {
117
120
  className: "mb8 ".concat(cls('after-data-filter-wrapper'))
118
121
  }, afterDataFilter));
@@ -43,5 +43,6 @@ $prefix: 'teamix-pro-table-layout';
43
43
  &-addon-after-wrapper {
44
44
  display: flex;
45
45
  align-items: center;
46
+ margin-bottom: 8px;
46
47
  }
47
48
  }