@teamix/pro 1.4.12 → 1.4.15

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 (67) hide show
  1. package/dist/pro.css +1 -1
  2. package/dist/pro.js +532 -167
  3. package/dist/pro.min.css +1 -1
  4. package/dist/pro.min.js +1 -1
  5. package/es/actions/index.scss +1 -1
  6. package/es/form/ProForm/index.js +14 -32
  7. package/es/form/ProForm/index.scss +5 -0
  8. package/es/form/ProForm/useAutoLayout.d.ts +9 -0
  9. package/es/form/ProForm/useAutoLayout.js +114 -0
  10. package/es/form/SchemaForm/index.js +12 -4
  11. package/es/form/SchemaForm/initializeDataSource.d.ts +3 -0
  12. package/es/form/SchemaForm/initializeDataSource.js +7 -0
  13. package/es/form/SchemaForm/initializeFormButton.js +4 -5
  14. package/es/form/typing.d.ts +4 -0
  15. package/es/index.d.ts +1 -1
  16. package/es/index.js +1 -1
  17. package/es/info/components/ProInfoItem/index.js +33 -4
  18. package/es/info/components/ProInfoItem/index.scss +18 -11
  19. package/es/info/components/baseInfo/index.js +4 -1
  20. package/es/info/components/baseInfo/index.scss +4 -1
  21. package/es/info/components/headerInfo/index.js +4 -1
  22. package/es/info/components/headerInfo/index.scss +3 -0
  23. package/es/info/components/tableInfo/index.js +2 -1
  24. package/es/info/index.js +6 -3
  25. package/es/info/typing.d.ts +3 -1
  26. package/es/nocode/index.scss +2 -2
  27. package/es/nocode/pages/playground.js +1 -1
  28. package/es/nocode/pages/renderer.js +1 -1
  29. package/es/nocode/playground.js +1 -1
  30. package/es/table/components/Layout/index.js +8 -4
  31. package/es/table/components/QuickAction/index.js +1 -1
  32. package/es/table/index.js +121 -54
  33. package/es/table/index.scss +5 -0
  34. package/es/table/typing.d.ts +3 -1
  35. package/es/table/utils/columnRender.js +2 -1
  36. package/lib/actions/index.scss +1 -1
  37. package/lib/form/ProForm/index.js +13 -31
  38. package/lib/form/ProForm/index.scss +5 -0
  39. package/lib/form/ProForm/useAutoLayout.d.ts +9 -0
  40. package/lib/form/ProForm/useAutoLayout.js +124 -0
  41. package/lib/form/SchemaForm/index.js +11 -3
  42. package/lib/form/SchemaForm/initializeDataSource.d.ts +3 -0
  43. package/lib/form/SchemaForm/initializeDataSource.js +10 -2
  44. package/lib/form/SchemaForm/initializeFormButton.js +3 -4
  45. package/lib/form/typing.d.ts +4 -0
  46. package/lib/index.d.ts +1 -1
  47. package/lib/index.js +1 -1
  48. package/lib/info/components/ProInfoItem/index.js +33 -4
  49. package/lib/info/components/ProInfoItem/index.scss +18 -11
  50. package/lib/info/components/baseInfo/index.js +4 -1
  51. package/lib/info/components/baseInfo/index.scss +4 -1
  52. package/lib/info/components/headerInfo/index.js +4 -1
  53. package/lib/info/components/headerInfo/index.scss +3 -0
  54. package/lib/info/components/tableInfo/index.js +3 -1
  55. package/lib/info/index.js +5 -2
  56. package/lib/info/typing.d.ts +3 -1
  57. package/lib/nocode/index.scss +2 -2
  58. package/lib/nocode/pages/playground.js +1 -1
  59. package/lib/nocode/pages/renderer.js +1 -1
  60. package/lib/nocode/playground.js +1 -1
  61. package/lib/table/components/Layout/index.js +8 -4
  62. package/lib/table/components/QuickAction/index.js +1 -1
  63. package/lib/table/index.js +120 -52
  64. package/lib/table/index.scss +5 -0
  65. package/lib/table/typing.d.ts +3 -1
  66. package/lib/table/utils/columnRender.js +2 -1
  67. package/package.json +1 -1
@@ -55,7 +55,7 @@ var _utils2 = require("../utils");
55
55
 
56
56
  var _warning = _interopRequireDefault(require("../warning"));
57
57
 
58
- var _excluded = ["component", "type", "name", "decorator", "decoratorProps", "dataSource", "reactions", "rules", "children", "items", "tooltip", "request", "data"];
58
+ var _excluded = ["type", "name", "component", "props", "decorator", "decoratorProps", "dataSource", "reactions", "rules", "children", "items", "tooltip", "request", "data"];
59
59
 
60
60
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
61
61
 
@@ -173,9 +173,10 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
173
173
  }
174
174
 
175
175
  var _newItem2 = newItem,
176
- component = _newItem2.component,
177
176
  type = _newItem2.type,
178
177
  name = _newItem2.name,
178
+ component = _newItem2.component,
179
+ props = _newItem2.props,
179
180
  decorator = _newItem2.decorator,
180
181
  decoratorProps = _newItem2.decoratorProps,
181
182
  dataSource = _newItem2.dataSource,
@@ -211,7 +212,8 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
211
212
  defaultDataSource = _initializeDataSource.dataSource,
212
213
  dataSourceReactions = _initializeDataSource.reactions,
213
214
  dataSourceScope = _initializeDataSource.scope,
214
- dataSourceData = _initializeDataSource.data; // 初始化rules validator
215
+ dataSourceData = _initializeDataSource.data,
216
+ dataSourceProps = _initializeDataSource.props; // 初始化rules validator
215
217
 
216
218
 
217
219
  var _initializeRules = (0, _initializeRules2.default)(rules, "".concat(suffix, "v")),
@@ -227,10 +229,16 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
227
229
  v = _ref3[1];
228
230
 
229
231
  schemaScopeRef.current[k] = v;
232
+ }); // 合并字段属性
233
+
234
+ var defaultProps = _objectSpread(_objectSpread(_objectSpread({}, props), dataSourceProps), {}, {
235
+ className: (0, _utils.cls)(props === null || props === void 0 ? void 0 : props.className, dataSourceProps === null || dataSourceProps === void 0 ? void 0 : dataSourceProps.className)
230
236
  });
237
+
231
238
  var formatParam = (0, _utils2.mapSchemaName)(_objectSpread(_objectSpread({}, otherProps), {}, {
232
239
  type: defaultType,
233
240
  component: component,
241
+ props: defaultProps,
234
242
  decorator: defaultDecorator,
235
243
  decoratorProps: defaultDecoratorProps,
236
244
  rules: defaultRules,
@@ -6,6 +6,9 @@ interface IInitializeDataSource {
6
6
  [x: string]: any;
7
7
  };
8
8
  data?: any;
9
+ props?: {
10
+ [x: string]: any;
11
+ };
9
12
  };
10
13
  }
11
14
  declare const initializeDataSource: IInitializeDataSource;
@@ -5,12 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _utils = require("../utils");
8
+ var _utils = require("@teamix/utils");
9
+
10
+ var _utils2 = require("../utils");
9
11
 
10
12
  var initializeDataSource = function initializeDataSource(dataSource, suffix) {
11
13
  var _dataSource$extraConf;
12
14
 
13
- var _initializeRequestExp = (0, _utils.initializeRequestExpression)(dataSource, '$dataSource', suffix),
15
+ var _initializeRequestExp = (0, _utils2.initializeRequestExpression)(dataSource, '$dataSource', suffix),
14
16
  expression = _initializeRequestExp.expression,
15
17
  scope = _initializeRequestExp.scope;
16
18
 
@@ -19,6 +21,12 @@ var initializeDataSource = function initializeDataSource(dataSource, suffix) {
19
21
  scope: scope,
20
22
  data: {
21
23
  readOnlyOnLoading: (dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$extraConf = dataSource.extraConfig) === null || _dataSource$extraConf === void 0 ? void 0 : _dataSource$extraConf.readOnly) !== false
24
+ },
25
+ props: {
26
+ className: 'teamix-test-request',
27
+ 'data-teamix-test-request': "url=".concat(dataSource === null || dataSource === void 0 ? void 0 : dataSource.url, "&formatResult=").concat(!!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.formatResult)),
28
+ 'data-teamix-test-params': (0, _utils.getTestRequestParams)(dataSource === null || dataSource === void 0 ? void 0 : dataSource.params),
29
+ 'data-teamix-test-data': (0, _utils.getTestRequestData)('dataSource')
22
30
  }
23
31
  } : {
24
32
  reactions: [],
@@ -52,15 +52,14 @@ var initialize = function initialize(item) {
52
52
  return initializeButton(item);
53
53
  }
54
54
 
55
- var commonMode = _objectSpread(_objectSpread({
56
- title: ' '
57
- }, item), {}, {
55
+ var commonMode = _objectSpread(_objectSpread({}, item), {}, {
58
56
  component: component,
59
57
  props: otherProps,
60
58
  decorator: 'FormButtonGroup.FormItem',
61
59
  decoratorProps: _objectSpread({
62
60
  inset: false,
63
- fullness: true
61
+ fullness: true,
62
+ className: (0, _utils.cls)('teamix-button-group-item', decoratorProps === null || decoratorProps === void 0 ? void 0 : decoratorProps.className)
64
63
  }, decoratorProps)
65
64
  }); // 吸底模式
66
65
 
@@ -59,6 +59,9 @@ export interface ProFormSchemaItem {
59
59
  data?: AnyObject;
60
60
  }
61
61
  export declare type ProFormSchema = ProFormSchemaItem[];
62
+ interface AutoLayout {
63
+ autoLabel?: boolean;
64
+ }
62
65
  export interface ProFormProps extends Omit<IFormLayoutProps, 'breakpoints'> {
63
66
  form?: FormType | false;
64
67
  schema?: ProFormSchema;
@@ -78,6 +81,7 @@ export interface ProFormProps extends Omit<IFormLayoutProps, 'breakpoints'> {
78
81
  onSubmitFailed?: (feedbacks: IFormFeedback[]) => void;
79
82
  onInitialComplete?: (form: FormType) => void;
80
83
  breakpoints?: number[] | boolean;
84
+ autoLayout?: AutoLayout | boolean;
81
85
  }
82
86
  export interface FilterProps extends ProFormProps {
83
87
  form: FormType;
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.4.12";
31
+ declare const version = "1.4.15";
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
@@ -317,5 +317,5 @@ if (!((_window = window) === null || _window === void 0 ? void 0 : _window.TEAMI
317
317
  _icon.default.setConfig(_utils.default.getTeamixIconConfig());
318
318
  }
319
319
 
320
- var version = '1.4.12';
320
+ var version = '1.4.15';
321
321
  exports.version = version;
@@ -19,7 +19,7 @@ require("./index.scss");
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
- var cls = (0, _utils.usePrefixCls)('teamix-pro-field-info-form-item');
22
+ var cls = (0, _utils.usePrefixCls)('teamix-pro-info-item');
23
23
  var Row = _components.Grid.Row,
24
24
  Col = _components.Grid.Col;
25
25
 
@@ -30,7 +30,26 @@ var ProInfoItem = function ProInfoItem(prop) {
30
30
  headerInfoLayout = prop.headerInfoLayout,
31
31
  loading = prop.loading,
32
32
  tooltip = prop.tooltip,
33
- tooltipIcon = prop.tooltipIcon;
33
+ tooltipIcon = prop.tooltipIcon,
34
+ valueType = prop.valueType,
35
+ render = prop.render,
36
+ alignItems = prop.alignItems; // 判断是否需要居中
37
+
38
+ var isAlignItemsCenter = function isAlignItemsCenter() {
39
+ if (typeof render !== 'function') {
40
+ var type = render === null || render === void 0 ? void 0 : render.type;
41
+
42
+ if (valueType === 'selectGroup') {
43
+ return true;
44
+ }
45
+
46
+ if (type === 'tag' || type === 'statusIconTag' || type === 'eventLevelTag' || type === 'warningLevelTag') {
47
+ return true;
48
+ }
49
+ }
50
+
51
+ return false;
52
+ };
34
53
 
35
54
  if (baseInfoLayout) {
36
55
  var labelCol = baseInfoLayout.labelCol,
@@ -39,7 +58,13 @@ var ProInfoItem = function ProInfoItem(prop) {
39
58
  className: cls('')
40
59
  }, /*#__PURE__*/_react.default.createElement(Row, {
41
60
  gutter: 10,
42
- className: cls('base-row')
61
+ className: cls({
62
+ 'base-row': true,
63
+ 'base-row-center': isAlignItemsCenter()
64
+ }),
65
+ style: alignItems ? {
66
+ alignItems: alignItems
67
+ } : {}
43
68
  }, /*#__PURE__*/_react.default.createElement(Col, {
44
69
  span: labelCol === null || labelCol === void 0 ? void 0 : labelCol.span,
45
70
  className: cls('label')
@@ -63,7 +88,11 @@ var ProInfoItem = function ProInfoItem(prop) {
63
88
  return /*#__PURE__*/_react.default.createElement("div", {
64
89
  className: cls()
65
90
  }, /*#__PURE__*/_react.default.createElement(Row, {
66
- className: cls('header-row')
91
+ className: cls({
92
+ 'header-row': true,
93
+ 'header-row-center': isAlignItemsCenter()
94
+ }),
95
+ style: {}
67
96
  }, /*#__PURE__*/_react.default.createElement("div", {
68
97
  className: cls('header-label')
69
98
  }, /*#__PURE__*/_react.default.createElement(_field.LabelIconTip, {
@@ -14,43 +14,50 @@ $header-text-size: var(--font-size-body-1, 12px);
14
14
 
15
15
  $item-padding-bottom: 8px;
16
16
 
17
- .teamix-pro-field-info-form-item {
17
+ .teamix-pro-info-item {
18
18
  width: 100%;
19
19
  padding-bottom: $item-padding-bottom;
20
20
  &-header-row {
21
21
  display: flex;
22
- align-items: center;
22
+ align-items: flex-start;
23
+
24
+ &-center {
25
+ align-items: center;
26
+ }
23
27
  }
24
28
  &-base-row {
25
29
  display: flex;
26
- align-items: center;
30
+ align-items: flex-start;
31
+ &-center {
32
+ align-items: center;
33
+ }
27
34
  }
28
35
  }
29
36
 
30
- .teamix-pro-field-info-form-item-label {
37
+ .teamix-pro-info-item-label {
31
38
  color: $label-color;
32
39
  font-size: $label-size;
33
40
  // font-weight: $label-weight;
34
41
  display: unset;
35
42
  }
36
43
 
37
- .teamix-pro-field-info-form-item-value {
44
+ .teamix-pro-info-item-value {
38
45
  color: $text-color;
39
46
  font-size: $text-size;
40
- display: unset;
47
+ //display: unset;
41
48
  width: 100%;
42
49
  padding-right: 20px;
43
50
  }
44
51
 
45
- .teamix-pro-field-info-form-item-header-label {
52
+ .teamix-pro-info-item-header-label {
46
53
  color: $header-label-color;
47
54
  font-size: $header-label-size;
48
55
  // font-weight: $header-label-weight;
49
56
  display: inline-block;
50
- white-space:nowrap;
57
+ white-space: nowrap;
51
58
  }
52
59
 
53
- .teamix-pro-field-info-form-item-header-value {
60
+ .teamix-pro-info-item-header-value {
54
61
  color: $header-text-color;
55
62
  font-size: $header-text-size;
56
63
  display: inline-block;
@@ -58,9 +65,9 @@ $item-padding-bottom: 8px;
58
65
  padding-right: 20px;
59
66
  }
60
67
 
61
- .teamix-pro-field-info-form-item-base-skeleton-box {
68
+ .teamix-pro-info-item-base-skeleton-box {
62
69
  width: 100%;
63
- height: 100%;
70
+ height: 18px;
64
71
  display: flex;
65
72
  align-items: center;
66
73
  span {
@@ -97,7 +97,10 @@ var ProBaseInfo = function ProBaseInfo(props) {
97
97
  }),
98
98
  baseInfoLayout: getFormItemLayout((_item$colSpan = item === null || item === void 0 ? void 0 : item.colSpan) !== null && _item$colSpan !== void 0 ? _item$colSpan : 0),
99
99
  tooltip: item.tooltip,
100
- tooltipIcon: item.tooltipIcon
100
+ tooltipIcon: item.tooltipIcon,
101
+ render: item.render,
102
+ valueType: item.valueType,
103
+ alignItems: item.alignItems
101
104
  }));
102
105
  });
103
106
  };
@@ -1,3 +1,6 @@
1
1
  .teamix-pro-info {
2
2
  width: 100%;
3
- }
3
+ }
4
+ .teamix-pro-info-content-row {
5
+ align-items: flex-start;
6
+ }
@@ -73,7 +73,10 @@ var ProHeaderInfo = function ProHeaderInfo(props) {
73
73
  }),
74
74
  headerInfoLayout: layout !== null && layout !== void 0 ? layout : defaultLayout,
75
75
  tooltip: item.tooltip,
76
- tooltipIcon: item.tooltipIcon
76
+ tooltipIcon: item.tooltipIcon,
77
+ render: item.render,
78
+ valueType: item.valueType,
79
+ alignItems: item.alignItems
77
80
  }));
78
81
  });
79
82
  };
@@ -0,0 +1,3 @@
1
+ .teamix-pro-info-content-row {
2
+ align-items: flex-start;
3
+ }
@@ -21,6 +21,8 @@ var _2 = require("../../..");
21
21
 
22
22
  var _utils = require("../../utils");
23
23
 
24
+ var _lodash = _interopRequireDefault(require("lodash.clonedeep"));
25
+
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
27
 
26
28
  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); }
@@ -92,7 +94,7 @@ var ProTableInfo = function ProTableInfo(props) {
92
94
 
93
95
  var newDataSource = (0, _react.useMemo)(function () {
94
96
  var nResult = [];
95
- var columnsCopy = JSON.parse(JSON.stringify(columns)); // 取当前行的数据。直到取完
97
+ var columnsCopy = (0, _lodash.default)(columns); // 取当前行的数据。直到取完
96
98
 
97
99
  while (columnsCopy.length > 0) {
98
100
  var filterColumns = [];
package/lib/info/index.js CHANGED
@@ -199,8 +199,11 @@ var ProInfo = function ProInfo(props) {
199
199
 
200
200
  return /*#__PURE__*/_react.default.createElement("div", {
201
201
  ref: ref,
202
- className: "teamix-pro-info ".concat(className !== null && className !== void 0 ? className : ''),
203
- style: style
202
+ style: style,
203
+ className: (0, _utils2.cls)('teamix-pro-info', className, 'teamix-test-request'),
204
+ "data-teamix-test-request": "url=".concat(url, "&formatResult=").concat(!!formatResult),
205
+ "data-teamix-test-params": (0, _utils2.getTestRequestParams)(params),
206
+ "data-teamix-test-data": (0, _utils2.getTestRequestData)(columns)
204
207
  }, /*#__PURE__*/_react.default.createElement(_.ProCard, _objectSpread(_objectSpread(_objectSpread({
205
208
  compacted: true,
206
209
  hoveredShadow: false,
@@ -96,6 +96,8 @@ export interface ProInfoColumnsProps {
96
96
  extra?: React.ReactNode;
97
97
  /** 其他 ProField 配置 */
98
98
  props?: any;
99
+ /** 对齐方式 **/
100
+ alignItems?: 'center' | 'flex-start' | 'flex-end' | string;
99
101
  }
100
102
  export declare type ProInfoActionType = {
101
103
  /** 刷新Info */
@@ -113,7 +115,7 @@ export declare type IProProInfoItem = {
113
115
  headerInfoLayout?: ProHeaderInfoLayoutProps;
114
116
  /** loading 状态 */
115
117
  loading?: boolean;
116
- } & Pick<ProInfoColumnsProps, 'tooltip' | 'tooltipIcon'>;
118
+ } & Pick<ProInfoColumnsProps, 'tooltip' | 'tooltipIcon' | 'render' | 'valueType' | 'alignItems'>;
117
119
  /** header info 定义 */
118
120
  export declare type IProHeaderInfo = {
119
121
  /** 布局值 */
@@ -1,4 +1,4 @@
1
- .teamix-nocode {
1
+ .teamix-pro-nocode {
2
2
  &-empty {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -75,7 +75,7 @@
75
75
  right: 20px;
76
76
  bottom: 20px;
77
77
 
78
- &>i {
78
+ & > i {
79
79
  cursor: pointer;
80
80
  color: var(--color-text1-8, #848484);
81
81
  background-color: rgba(0, 0, 0, 0.06);
@@ -51,7 +51,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
51
51
 
52
52
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
 
54
- var cls = (0, _utils.usePrefixCls)('teamix-nocode');
54
+ var cls = (0, _utils.usePrefixCls)('teamix-pro-nocode');
55
55
 
56
56
  var PagePlayground = function PagePlayground(props) {
57
57
  var _useState = (0, _react.useState)(undefined),
@@ -57,7 +57,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
57
57
 
58
58
  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; }
59
59
 
60
- var cls = (0, _utils.usePrefixCls)('teamix-nocode');
60
+ var cls = (0, _utils.usePrefixCls)('teamix-pro-nocode');
61
61
 
62
62
  var Loading = function Loading(props) {
63
63
  return /*#__PURE__*/_react.default.createElement(_pageContainer.default, _objectSpread({
@@ -37,7 +37,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
37
37
 
38
38
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
39
39
 
40
- var cls = (0, _utils.usePrefixCls)('teamix-nocode-playground');
40
+ var cls = (0, _utils.usePrefixCls)('teamix-pro-nocode-playground');
41
41
 
42
42
  var PlayGroundLayout = function PlayGroundLayout(props) {
43
43
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -143,14 +143,18 @@ var Layout = function Layout(props) {
143
143
  }
144
144
  } else if (mainAction) {
145
145
  // 没传 dataFilter 但是传了 mainAction
146
- return /*#__PURE__*/_react.default.createElement(_form.QueryFilterLayout, {
146
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_form.QueryFilterLayout, {
147
147
  addonBefore: renderMainAction(),
148
148
  addonAfter: renderAddonAfter()
149
- });
149
+ }), afterDataFilter && /*#__PURE__*/_react.default.createElement("div", {
150
+ className: "mb8 ".concat(cls('after-data-filter-wrapper'))
151
+ }, afterDataFilter));
150
152
  } else {
151
- return /*#__PURE__*/_react.default.createElement(_form.QueryFilterLayout, {
153
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_form.QueryFilterLayout, {
152
154
  addonAfter: renderAddonAfter()
153
- });
155
+ }), ' ', afterDataFilter && /*#__PURE__*/_react.default.createElement("div", {
156
+ className: "mb8 ".concat(cls('after-data-filter-wrapper'))
157
+ }, afterDataFilter));
154
158
  }
155
159
  }; // 区域组合渲染
156
160
 
@@ -26,7 +26,7 @@ var QuickAction = function QuickAction(props) {
26
26
  actionRef = props.actionRef,
27
27
  rowSelection = props.rowSelection; // 如果传对象的话,默认为主要文字类型的 ProActionButton
28
28
 
29
- if (_typeof(quickAction) === 'object') {
29
+ if (_typeof(quickAction) === 'object' && (quickAction === null || quickAction === void 0 ? void 0 : quickAction.config)) {
30
30
  // 默认 context
31
31
  var defaultContext = {
32
32
  action: actionRef.current,