@zat-design/sisyphus-react 3.13.2-beta.2 → 3.13.2-beta.3

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.
@@ -5710,6 +5710,9 @@ input[type='button'] {
5710
5710
  .ant-table .ant-empty-normal {
5711
5711
  margin: calc(var(--zaui-space-size-lg, 32px) * var(--zaui-size, 1)) 0;
5712
5712
  }
5713
+ .ant-table .ant-table-tbody .ant-table-cell-fix-left-last:after {
5714
+ width: 8px;
5715
+ }
5713
5716
  .ant-table.pro-table-no-stripe .ant-table-tbody .ant-table-row {
5714
5717
  background: #fff !important;
5715
5718
  }
@@ -16,7 +16,8 @@ var RenderTabs = function RenderTabs(props) {
16
16
  transformResponse = props.transformResponse,
17
17
  tabsProps = props.tabsProps,
18
18
  name = props.name,
19
- formTableProps = props.formTableProps;
19
+ formTableProps = props.formTableProps,
20
+ transformParams = props.transformParams;
20
21
  var _ref = formTableProps || {},
21
22
  form = _ref.form,
22
23
  onSearch = _ref.onSearch;
@@ -67,7 +68,11 @@ var RenderTabs = function RenderTabs(props) {
67
68
  var fieldsValues = (form === null || form === void 0 ? void 0 : form.getFieldsValue()) || {};
68
69
  setActiveKey(key);
69
70
  form.setFieldValue(name, key);
70
- onSearch === null || onSearch === void 0 ? void 0 : onSearch(_objectSpread(_objectSpread({}, fieldsValues), {}, _defineProperty({}, name, key)));
71
+ var params = _objectSpread(_objectSpread({}, fieldsValues), {}, _defineProperty({}, name, key));
72
+ if (transformParams && typeof transformParams === 'function') {
73
+ params = transformParams(params);
74
+ }
75
+ onSearch === null || onSearch === void 0 ? void 0 : onSearch(params);
71
76
  },
72
77
  type: "card"
73
78
  }, tabsProps), {}, {
@@ -337,6 +337,12 @@ export interface ProTableTabsType {
337
337
  label: string;
338
338
  value: string;
339
339
  }[];
340
+ /**
341
+ * 转换查询参数
342
+ * @description 转换查询参数
343
+ * @default undefined
344
+ */
345
+ transformParams?: (params: any) => any;
340
346
  /**
341
347
  * 枚举数据源转换
342
348
  * @description 枚举数据源转换
@@ -107,6 +107,11 @@
107
107
  .@{ant-prefix}-empty-normal {
108
108
  margin: calc(var(--zaui-space-size-lg; 32px) * var(--zaui-size; 1)) 0;
109
109
  }
110
+ .@{ant-prefix}-table-tbody{
111
+ .@{ant-prefix}-table-cell-fix-left-last:after{
112
+ width: 8px;
113
+ }
114
+ }
110
115
  &.pro-table-no-stripe {
111
116
  .@{ant-prefix}-table-tbody {
112
117
  .@{ant-prefix}-table-row {
@@ -20,7 +20,8 @@ var RenderTabs = function RenderTabs(props) {
20
20
  transformResponse = props.transformResponse,
21
21
  tabsProps = props.tabsProps,
22
22
  name = props.name,
23
- formTableProps = props.formTableProps;
23
+ formTableProps = props.formTableProps,
24
+ transformParams = props.transformParams;
24
25
  var _ref = formTableProps || {},
25
26
  form = _ref.form,
26
27
  onSearch = _ref.onSearch;
@@ -71,7 +72,11 @@ var RenderTabs = function RenderTabs(props) {
71
72
  var fieldsValues = (form === null || form === void 0 ? void 0 : form.getFieldsValue()) || {};
72
73
  setActiveKey(key);
73
74
  form.setFieldValue(name, key);
74
- onSearch === null || onSearch === void 0 ? void 0 : onSearch((0, _objectSpread3.default)((0, _objectSpread3.default)({}, fieldsValues), {}, (0, _defineProperty2.default)({}, name, key)));
75
+ var params = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, fieldsValues), {}, (0, _defineProperty2.default)({}, name, key));
76
+ if (transformParams && typeof transformParams === 'function') {
77
+ params = transformParams(params);
78
+ }
79
+ onSearch === null || onSearch === void 0 ? void 0 : onSearch(params);
75
80
  },
76
81
  type: "card"
77
82
  }, tabsProps), {}, {
@@ -337,6 +337,12 @@ export interface ProTableTabsType {
337
337
  label: string;
338
338
  value: string;
339
339
  }[];
340
+ /**
341
+ * 转换查询参数
342
+ * @description 转换查询参数
343
+ * @default undefined
344
+ */
345
+ transformParams?: (params: any) => any;
340
346
  /**
341
347
  * 枚举数据源转换
342
348
  * @description 枚举数据源转换
@@ -107,6 +107,11 @@
107
107
  .@{ant-prefix}-empty-normal {
108
108
  margin: calc(var(--zaui-space-size-lg; 32px) * var(--zaui-size; 1)) 0;
109
109
  }
110
+ .@{ant-prefix}-table-tbody{
111
+ .@{ant-prefix}-table-cell-fix-left-last:after{
112
+ width: 8px;
113
+ }
114
+ }
110
115
  &.pro-table-no-stripe {
111
116
  .@{ant-prefix}-table-tbody {
112
117
  .@{ant-prefix}-table-row {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.2-beta.2",
3
+ "version": "3.13.2-beta.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",