@zgfe/business-lib 1.0.0-beta.5 → 1.0.0-beta.6

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 (36) hide show
  1. package/es/attributeSelector/index.d.ts +4 -2
  2. package/es/attributeSelector/index.js +30 -15
  3. package/es/chart/demo/bar.js +2 -1
  4. package/es/chart/index.d.ts +16 -0
  5. package/es/chart/index.js +14 -2
  6. package/es/chart/util/chartConfig.d.ts +1 -1
  7. package/es/chart/util/chartConfig.js +11 -8
  8. package/es/commonStyle/icon.less +19 -3
  9. package/es/commonStyle/theme.less +5 -2
  10. package/es/dialog/index.js +11 -7
  11. package/es/dialog/style/index.less +3 -1
  12. package/es/eventSelector/index.d.ts +5 -0
  13. package/es/eventSelector/index.js +111 -32
  14. package/es/globalAttributes/index.d.ts +3 -2
  15. package/es/globalAttributes/index.js +18 -23
  16. package/es/index.d.ts +2 -1
  17. package/es/index.js +2 -1
  18. package/es/multipleSelector/index.js +32 -4
  19. package/es/targetConditionGroup/components/conditionGroup.d.ts +4 -4
  20. package/es/targetConditionGroup/components/conditionGroup.js +27 -26
  21. package/es/targetConditionGroup/components/conditionItem.d.ts +4 -4
  22. package/es/targetConditionGroup/components/conditionItem.js +81 -108
  23. package/es/targetConditionGroup/demo/group.d.ts +2 -0
  24. package/es/targetConditionGroup/demo/group.js +42 -0
  25. package/es/targetConditionGroup/demo/index.js +15 -25
  26. package/es/targetConditionGroup/group.d.ts +56 -0
  27. package/es/targetConditionGroup/group.js +204 -0
  28. package/es/targetConditionGroup/index.d.ts +6 -0
  29. package/es/targetConditionGroup/index.js +148 -83
  30. package/es/targetConditionGroup/index.less +12 -0
  31. package/es/targetConditionGroup/type.d.ts +47 -2
  32. package/es/targetSelector/demo/form.js +1 -1
  33. package/es/targetSelector/demo/index.js +1 -1
  34. package/es/targetSelector/index.d.ts +17 -1
  35. package/es/targetSelector/index.js +56 -10
  36. package/package.json +1 -1
@@ -12,6 +12,8 @@ export interface AttrsListProps extends BasicOption {
12
12
  value_dict?: boolean;
13
13
  hidden?: boolean | number;
14
14
  dimension_sub?: string | number;
15
+ id?: number;
16
+ label?: string;
15
17
  [prop: string]: any;
16
18
  }
17
19
  interface BasicOption {
@@ -29,8 +31,8 @@ export interface AttributeProps {
29
31
  */
30
32
  value?: string | number | AttrsListProps | null;
31
33
  /**
32
- * @description 默认选项
33
- * @description.zh-CN
34
+ * @description 默认选项,
35
+ * @description.zh-CN 可以是属性,也可以是事件属性的attr_name,其他属性的name -> value
34
36
  * @default -
35
37
  */
36
38
  defaultValue?: string | number | AttrsListProps | null;
@@ -141,12 +141,17 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
141
141
  var eList = group.eventList || [];
142
142
  eList.forEach(function (event) {
143
143
  event.event_attrs.forEach(function (prop) {
144
+ // prop.attrId = Math.random().toString();
144
145
  prop.id = prop.attr_id;
145
- prop.name = prop.alias_name || prop.attr_name || '';
146
+ prop.label = prop.alias_name || prop.attr_name;
146
147
  prop.value = prop.attr_name;
148
+ prop.type = prop.prop_type;
147
149
  prop.dimensionId = [prop.dimension_sub, prop.value].join(','); // 增加属性细分唯一字段,区分同名自定义属性
148
150
 
149
- prop.attrId = Math.random().toString();
151
+ prop.isEventProp = true;
152
+ prop.realTime = true;
153
+ prop.custom = true;
154
+ prop.attrType = 'EVENT_PROP';
150
155
  });
151
156
  var randomId = Math.random().toString(); // 事件(分组)添加锚点id
152
157
 
@@ -267,12 +272,21 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
267
272
  var userOptions = JSON.parse(JSON.stringify(options && options.user || userProps)); // 添加属性
268
273
 
269
274
  var userList = userOptions.map(function (prop) {
270
- prop.name = prop.alias_name || prop.text;
275
+ prop.attrId = Math.random().toString();
276
+ prop.label = prop.alias_name || prop.text;
271
277
  prop.value = prop.name;
278
+ prop.isUserProp = true;
272
279
  prop.custom = prop.category === 'custom';
280
+ prop.attrType = 'USER_PROP'; // 内置属性(名称、类型、诸葛ID 、用户ID): 实时
281
+
282
+ if (prop.name === 'name' || prop.name === 'is_anonymous' || prop.name === 'zg_id' || prop.name === 'app_user_id') {
283
+ prop.realTime = true;
284
+ } else {
285
+ prop.realTime = false;
286
+ }
287
+
273
288
  prop.dimensionId = [prop.dimension_sub, prop.value].join(','); // 增加属性细分唯一字段,区分同名自定义属性
274
289
 
275
- prop.attrId = Math.random().toString();
276
290
  return prop;
277
291
  });
278
292
  anchors = _objectSpread(_objectSpread({}, anchors), {}, {
@@ -293,11 +307,15 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
293
307
  };
294
308
  var envOptions = JSON.parse(JSON.stringify(options && options.env || eventEnv));
295
309
  var envList = envOptions.map(function (prop) {
310
+ prop.attrId = Math.random().toString();
311
+ prop.label = prop.text;
296
312
  prop.value = prop.name;
297
- prop.name = prop.text;
298
313
  prop.dimensionId = [prop.dimension_sub, prop.value].join(','); // 增加属性细分唯一字段,区分同名自定义属性
299
314
 
300
- prop.attrId = Math.random().toString();
315
+ prop.isEnvProp = true;
316
+ prop.realTime = true;
317
+ prop.custom = false;
318
+ prop.attrType = 'ENV_PROP';
301
319
  return prop;
302
320
  });
303
321
  anchors = _objectSpread(_objectSpread({}, anchors), {}, {
@@ -345,11 +363,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
345
363
  var defaultData;
346
364
 
347
365
  if (_typeof(intoValue) === 'object') {
348
- if (intoValue.attr_id) {
349
- defaultData = intoValue.attr_name || '';
350
- } else {
351
- defaultData = intoValue.name || '';
352
- }
366
+ defaultData = intoValue.value || intoValue.attr_name || intoValue.name || '';
353
367
  } else {
354
368
  defaultData = intoValue || '';
355
369
  }
@@ -427,7 +441,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
427
441
  res = _objectWithoutProperties(attr, _excluded);
428
442
 
429
443
  var child = _children.filter(function (item) {
430
- return item.name && item.name.indexOf(searchValue) > -1;
444
+ return item.label && item.label.indexOf(searchValue) > -1;
431
445
  });
432
446
 
433
447
  searchOptions.push(_objectSpread(_objectSpread({}, res), {}, {
@@ -456,7 +470,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
456
470
  }
457
471
  }, /*#__PURE__*/React.createElement("div", {
458
472
  className: "biz-input ".concat(children && 'biz-bg-gray')
459
- }, attrs.name ? attrs.name : /*#__PURE__*/React.createElement("span", {
473
+ }, attrs.label ? attrs.label : /*#__PURE__*/React.createElement("span", {
460
474
  className: "biz-placeholder"
461
475
  }, placeholder)), /*#__PURE__*/React.createElement(IconFont, {
462
476
  className: "biz-select-zhankai",
@@ -537,7 +551,8 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
537
551
  var _item$name;
538
552
 
539
553
  return /*#__PURE__*/React.createElement("div", {
540
- key: child.attrId,
554
+ // key={child.attrId}
555
+ key: child.dimensionId,
541
556
  className: "biz-drop-option biz-drop-index boxBg\n ".concat(child.value === attrs.value && 'box-active', "\n ").concat(child.value && attrs.value !== child.value && disabled.indexOf(child.value) > -1 && 'box-disabled'),
542
557
  onClick: function onClick(e) {
543
558
  e.stopPropagation();
@@ -567,7 +582,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
567
582
  type: "".concat(item.name && item.name.indexOf('用户') > -1 ? 'icon-yonghushuxing' : item.name && ((_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.indexOf('事件')) > -1 ? 'icon-shijianshuxing1' : 'icon-chufahuanjing')
568
583
  }), /*#__PURE__*/React.createElement("span", {
569
584
  dangerouslySetInnerHTML: {
570
- __html: util.setHighLight(child.name || '', searchValue)
585
+ __html: util.setHighLight(child.label || '', searchValue)
571
586
  }
572
587
  }));
573
588
  });
@@ -9,6 +9,7 @@ export default (function () {
9
9
  showList: ['付款成功', '搜索商品', '查看商品详情']
10
10
  }), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(BizChart, {
11
11
  data: chartData,
12
- type: "bar"
12
+ type: "bar",
13
+ xRotate: -45
13
14
  }));
14
15
  });
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { EChartsOption } from 'echarts/types/dist/shared';
2
3
  import './util/data/china.js';
3
4
  import { DataProps } from './type';
4
5
  interface BizChartProps {
@@ -12,6 +13,11 @@ interface BizChartProps {
12
13
  * @default -
13
14
  */
14
15
  data: DataProps;
16
+ /**
17
+ * @description 自定义图表配置
18
+ * @default -
19
+ */
20
+ option?: EChartsOption;
15
21
  /**
16
22
  * @description 柱图是同色还是一柱一色(仅对柱图单一系列作用)
17
23
  * @default true
@@ -47,6 +53,16 @@ interface BizChartProps {
47
53
  * @default -
48
54
  */
49
55
  valueUnit?: string;
56
+ /**
57
+ * @description x轴刻度标签旋转的角度
58
+ * @default -
59
+ */
60
+ xRotate?: number;
61
+ /**
62
+ * @description y轴刻度标签旋转的角度
63
+ * @default -
64
+ */
65
+ yRotate?: number;
50
66
  /**
51
67
  * @description 图例位置
52
68
  * @default -
package/es/chart/index.js CHANGED
@@ -29,6 +29,7 @@ var BizChart = function BizChart(props) {
29
29
  var type = props.type,
30
30
  data = props.data,
31
31
  showList = props.showList,
32
+ option = props.option,
32
33
  userGroup = props.userGroup,
33
34
  _props$showAll = props.showAll,
34
35
  showAll = _props$showAll === void 0 ? true : _props$showAll,
@@ -38,6 +39,10 @@ var BizChart = function BizChart(props) {
38
39
  reverseXAxis = _props$reverseXAxis === void 0 ? false : _props$reverseXAxis,
39
40
  _props$isCity = props.isCity,
40
41
  isCity = _props$isCity === void 0 ? true : _props$isCity,
42
+ _props$xRotate = props.xRotate,
43
+ xRotate = _props$xRotate === void 0 ? 0 : _props$xRotate,
44
+ _props$yRotate = props.yRotate,
45
+ yRotate = _props$yRotate === void 0 ? 0 : _props$yRotate,
41
46
  seriesName = props.seriesName,
42
47
  tooltipFormatter = props.tooltipFormatter,
43
48
  xAxisFormatter = props.xAxisFormatter,
@@ -67,6 +72,13 @@ var BizChart = function BizChart(props) {
67
72
  return data;
68
73
  }, [showList]);
69
74
  useEffect(function () {
75
+ if (option) {
76
+ setChartOption(function () {
77
+ return _objectSpread({}, option);
78
+ });
79
+ return;
80
+ }
81
+
70
82
  var eOption = {};
71
83
 
72
84
  if (type === 'pie') {
@@ -75,7 +87,7 @@ var BizChart = function BizChart(props) {
75
87
  } else if (type === 'line' || type === 'bar') {
76
88
  var _rData = formatChartData(data, reverseXAxis, showMap, showList);
77
89
 
78
- eOption = getChartOption(type, reverseXAxis && showList ? showList : _rData.x_axis, _rData.series, sameColor, legendPosition, legendOrient, valueUnit, tooltipFormatter, xAxisFormatter, yAxisFormatter, reverseXAxis, seriesName);
90
+ eOption = getChartOption(type, reverseXAxis && showList ? showList : _rData.x_axis, _rData.series, sameColor, legendPosition, legendOrient, valueUnit, xRotate, yRotate, tooltipFormatter, xAxisFormatter, yAxisFormatter, reverseXAxis, seriesName);
79
91
  } else if (type === 'map') {
80
92
  var series = isCity ? citySeries(data, !!userGroup) : provinceSeries(data, !!userGroup);
81
93
  var maxMin = maxMinValue(series[0]);
@@ -86,7 +98,7 @@ var BizChart = function BizChart(props) {
86
98
  setChartOption(function () {
87
99
  return _objectSpread({}, eOption);
88
100
  });
89
- }, [data, type, reverseXAxis]);
101
+ }, [option, data, type, reverseXAxis]);
90
102
  return /*#__PURE__*/React.createElement(ReactEChartsCore, {
91
103
  echarts: echarts,
92
104
  option: chartOption,
@@ -31,7 +31,7 @@ export declare const tooltipConfig: TooltipComponentOption;
31
31
  * @param seriesName 系列名称
32
32
  *
33
33
  */
34
- export declare const getChartOption: (chartType: string, xData?: string[] | undefined, seriesData?: object[], sameColor?: boolean, legendPosition?: 'top' | 'bottom' | 'middle', legendOrient?: 'horizontal' | 'vertical', unit?: string | undefined, tooltipFormatter?: ((value: any) => string) | undefined, xAxisFormatter?: ((value: any) => string) | undefined, yAxisFormatter?: ((value: any) => string) | undefined, reverseXAxis?: boolean | undefined, seriesName?: string | undefined) => EChartsOption;
34
+ export declare const getChartOption: (chartType: string, xData?: string[] | undefined, seriesData?: object[], sameColor?: boolean, legendPosition?: 'top' | 'bottom' | 'middle', legendOrient?: 'horizontal' | 'vertical', unit?: string | undefined, xRotate?: number, yRotate?: number, tooltipFormatter?: ((value: any) => string) | undefined, xAxisFormatter?: ((value: any) => string) | undefined, yAxisFormatter?: ((value: any) => string) | undefined, reverseXAxis?: boolean | undefined, seriesName?: string | undefined) => EChartsOption;
35
35
  /**
36
36
  * 饼图配置
37
37
  * @param seriesData 数据 [{name:'',value:''}]
@@ -132,11 +132,13 @@ export var getChartOption = function getChartOption(chartType, xData) {
132
132
  var legendPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'top';
133
133
  var legendOrient = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'horizontal';
134
134
  var unit = arguments.length > 6 ? arguments[6] : undefined;
135
- var tooltipFormatter = arguments.length > 7 ? arguments[7] : undefined;
136
- var xAxisFormatter = arguments.length > 8 ? arguments[8] : undefined;
137
- var yAxisFormatter = arguments.length > 9 ? arguments[9] : undefined;
138
- var reverseXAxis = arguments.length > 10 ? arguments[10] : undefined;
139
- var seriesName = arguments.length > 11 ? arguments[11] : undefined;
135
+ var xRotate = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
136
+ var yRotate = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 0;
137
+ var tooltipFormatter = arguments.length > 9 ? arguments[9] : undefined;
138
+ var xAxisFormatter = arguments.length > 10 ? arguments[10] : undefined;
139
+ var yAxisFormatter = arguments.length > 11 ? arguments[11] : undefined;
140
+ var reverseXAxis = arguments.length > 12 ? arguments[12] : undefined;
141
+ var seriesName = arguments.length > 13 ? arguments[13] : undefined;
140
142
 
141
143
  var xAxis = JSON.parse(JSON.stringify(xAxisConfig)),
142
144
  tooltip = JSON.parse(JSON.stringify(tooltipConfig)),
@@ -154,7 +156,7 @@ export var getChartOption = function getChartOption(chartType, xData) {
154
156
  xAxis.axisLabel = xAxis.axisLabel || {
155
157
  rotate: 0
156
158
  };
157
- xAxis.axisLabel.rotate = chartType === 'bar' ? 45 : 0;
159
+ xAxis.axisLabel.rotate = xRotate;
158
160
 
159
161
  if (xAxisFormatter) {
160
162
  xAxis.axisLabel.formatter = xAxisFormatter;
@@ -164,6 +166,7 @@ export var getChartOption = function getChartOption(chartType, xData) {
164
166
 
165
167
 
166
168
  yAxis.axisLabel = yAxis.axisLabel || {};
169
+ yAxis.axisLabel.rotate = yRotate;
167
170
 
168
171
  if (yAxisFormatter) {
169
172
  yAxis.axisLabel.formatter = yAxisFormatter;
@@ -225,9 +228,9 @@ export var getChartOption = function getChartOption(chartType, xData) {
225
228
 
226
229
 
227
230
  if (legendPosition === 'top') {
228
- grid.top = series.length > 1 || series[0].name ? 45 : 10;
231
+ grid.top = series.length > 1 || series.length > 0 && series[0].name ? 45 : 10;
229
232
  } else if (legendPosition === 'bottom') {
230
- grid.bottom = series.length > 1 || series[0].name ? 45 : 0;
233
+ grid.bottom = series.length > 1 || series.length > 0 && series[0].name ? 45 : 0;
231
234
  } // 图例配置
232
235
 
233
236
 
@@ -9,7 +9,7 @@
9
9
  line-height: 20px;
10
10
  cursor: pointer;
11
11
 
12
- &:hover {
12
+ &:not(.biz-disabled):hover {
13
13
  color: @hoverColor;
14
14
  background: @hoverBgColor;
15
15
  border-radius: 3px;
@@ -22,6 +22,15 @@
22
22
  .biz-icon-text {
23
23
  margin-left: 6px;
24
24
  }
25
+
26
+ &.biz-disabled {
27
+ color: @disableColor;
28
+ cursor: not-allowed;
29
+
30
+ span {
31
+ color: @disableColor;
32
+ }
33
+ }
25
34
  }
26
35
 
27
36
  .biz-icon {
@@ -51,15 +60,20 @@
51
60
  border-radius: 4px;
52
61
  cursor: pointer;
53
62
 
54
- &:hover {
63
+ &:not(.biz-disabled):hover {
55
64
  color: @hoverColor;
56
65
  background-color: @hoverBgColor;
57
66
  }
58
67
 
59
- &.biz-option-icon-delete:hover {
68
+ &.biz-option-icon-delete:not(.biz-disabled):hover {
60
69
  color: @deleteHoverColor;
61
70
  background-color: @deleteHoverBgColor;
62
71
  }
72
+
73
+ &.biz-disabled {
74
+ color: @disableColor;
75
+ cursor: not-allowed;
76
+ }
63
77
  }
64
78
 
65
79
  .biz-btn,
@@ -71,6 +85,7 @@
71
85
  line-height: 20px;
72
86
  border-radius: 4px;
73
87
  cursor: pointer;
88
+
74
89
  .anticon {
75
90
  margin-right: 8px;
76
91
  font-size: 24px;
@@ -87,6 +102,7 @@
87
102
  &:active {
88
103
  background: #85adfc;
89
104
  }
105
+
90
106
  &:focus {
91
107
  background: #1451db;
92
108
  }
@@ -240,11 +240,11 @@
240
240
  }
241
241
 
242
242
  .ant-dropdown-menu-item {
243
- &:not(.box-active):hover {
243
+ &:not(.box-active, .ant-dropdown-menu-item-disabled, .ant-dropdown-menu-submenu-title-disabled):hover {
244
244
  .box-hover();
245
245
  }
246
246
 
247
- &.box-active:hover {
247
+ &.box-active:not(.ant-dropdown-menu-item-disabled, .ant-dropdown-menu-submenu-title-disabled):hover {
248
248
  .box-active();
249
249
  }
250
250
 
@@ -252,6 +252,9 @@
252
252
  margin-right: 15px;
253
253
  font-size: @iconSize;
254
254
  }
255
+ &.ant-dropdown-menu-item-disabled {
256
+ color: @disableColor;
257
+ }
255
258
  }
256
259
 
257
260
  /* input-search/clear */
@@ -1,7 +1,13 @@
1
- var _excluded = ["width", "title", "initialValues", "fields", "visible", "showMark", "layout", "onOk", "onCancel"];
1
+ var _excluded = ["width", "initialValues", "fields", "visible", "showMark", "layout", "onOk", "onCancel"];
2
2
 
3
3
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
4
4
 
5
+ 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; }
6
+
7
+ 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; }
8
+
9
+ 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; }
10
+
5
11
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6
12
 
7
13
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -36,8 +42,6 @@ import BizList from './components/list';
36
42
  var BizDialog = function BizDialog(props) {
37
43
  var _props$width = props.width,
38
44
  width = _props$width === void 0 ? 520 : _props$width,
39
- _props$title = props.title,
40
- title = _props$title === void 0 ? 'Title' : _props$title,
41
45
  initialValues = props.initialValues,
42
46
  fields = props.fields,
43
47
  _props$visible = props.visible,
@@ -141,11 +145,10 @@ var BizDialog = function BizDialog(props) {
141
145
  return _toConsumableArray(fields);
142
146
  });
143
147
  }, [fields]);
144
- return /*#__PURE__*/React.createElement(Modal, {
148
+ return /*#__PURE__*/React.createElement(Modal, _objectSpread(_objectSpread({
145
149
  width: width,
146
150
  centered: true,
147
151
  visible: visible,
148
- title: title,
149
152
  maskStyle: {
150
153
  background: '#021429',
151
154
  opacity: 0.8
@@ -155,7 +158,8 @@ var BizDialog = function BizDialog(props) {
155
158
  },
156
159
  cancelText: "\u53D6\u6D88",
157
160
  okText: "\u786E\u5B9A",
158
- closable: false,
161
+ closable: false
162
+ }, res), {}, {
159
163
  onCancel: function onCancel() {
160
164
  return _onCancel && _onCancel();
161
165
  },
@@ -166,7 +170,7 @@ var BizDialog = function BizDialog(props) {
166
170
  console.log('Validate Failed:', info);
167
171
  });
168
172
  }
169
- }, /*#__PURE__*/React.createElement(Form, {
173
+ }), /*#__PURE__*/React.createElement(Form, {
170
174
  className: "biz-dialog",
171
175
  form: form,
172
176
  name: "form_in_modal",
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  .ant-modal-footer {
55
- padding-bottom: 32px;
55
+ padding: 0 24px 24px 24px;
56
56
  border-top: none;
57
57
 
58
58
  .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
@@ -68,11 +68,13 @@
68
68
  color: #000;
69
69
  font-weight: 500;
70
70
  font-size: 24px;
71
+ line-height: 24px;
71
72
  }
72
73
  }
73
74
 
74
75
  .ant-modal-body {
75
76
  max-height: 400px;
77
+ padding-bottom: 0;
76
78
  overflow: auto;
77
79
  }
78
80
 
@@ -17,6 +17,11 @@ interface EventBoxProps extends FormProps {
17
17
  * @default -
18
18
  */
19
19
  aliasName?: string;
20
+ /**
21
+ * @description 是否展示事件概览
22
+ * @default true
23
+ */
24
+ showAll?: boolean;
20
25
  /**
21
26
  * @description 选择完成后的回调
22
27
  * @default -