@zgfe/business-lib 1.0.0-beta.6 → 1.0.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.
- package/es/analysisLayout/demo/index.js +4 -1
- package/es/analysisLayout/index.d.ts +1 -28
- package/es/analysisLayout/index.js +38 -48
- package/es/analysisLayout/index.less +1 -1
- package/es/assets/styles/chunks.less +143 -0
- package/es/assets/styles/inner.less +3 -0
- package/es/assets/styles/resetAntd.less +398 -0
- package/es/assets/styles/variable.less +21 -0
- package/es/assets/theme.d.ts +5 -0
- package/es/assets/theme.js +4 -0
- package/es/attrConditions/components/operateList.d.ts +8 -0
- package/es/attrConditions/components/operateList.js +83 -0
- package/es/attrConditions/components/stringList.d.ts +9 -0
- package/es/attrConditions/components/stringList.js +168 -0
- package/es/attrConditions/components/valuesList.d.ts +10 -0
- package/es/attrConditions/components/valuesList.js +188 -0
- package/es/{attributeSelector/demo/multi.d.ts → attrConditions/demo/group.d.ts} +0 -0
- package/es/attrConditions/demo/group.js +82 -0
- package/es/{globalAttributes → attrConditions}/demo/index.d.ts +0 -0
- package/es/{datePicker/demo/form.js → attrConditions/demo/index.js} +43 -23
- package/es/attrConditions/group.d.ts +5 -0
- package/es/attrConditions/group.js +183 -0
- package/es/attrConditions/index.d.ts +6 -0
- package/es/attrConditions/index.js +160 -0
- package/es/attrConditions/styles/group.less +49 -0
- package/es/attrConditions/styles/index.less +94 -0
- package/es/attrConditions/types.d.ts +63 -0
- package/es/attrConditions/types.js +19 -0
- package/es/attrConditions/utils/operates.d.ts +16 -0
- package/es/attrConditions/utils/operates.js +67 -0
- package/es/attributeSelector/demo/index.d.ts +3 -0
- package/es/attributeSelector/demo/{singleForm.js → index.js} +42 -44
- package/es/attributeSelector/index.d.ts +4 -111
- package/es/attributeSelector/index.js +88 -543
- package/es/attributeSelector/listPanel.d.ts +4 -0
- package/es/attributeSelector/listPanel.js +208 -0
- package/es/attributeSelector/option.d.ts +15 -0
- package/es/attributeSelector/option.js +53 -0
- package/es/attributeSelector/styles/index.less +100 -0
- package/es/attributeSelector/types.d.ts +79 -0
- package/es/attributeSelector/types.js +15 -0
- package/es/attributeSelector/util.d.ts +7 -0
- package/es/attributeSelector/util.js +69 -0
- package/es/chart/demo/pie.js +1 -0
- package/es/chart/index.d.ts +2 -96
- package/es/chart/index.js +28 -35
- package/es/chart/styles/index.less +50 -0
- package/es/chart/types.d.ts +46 -0
- package/es/chart/{type.js → types.js} +0 -0
- package/es/chart/util/{chartConfig.d.ts → chartOptionConfig.d.ts} +4 -35
- package/es/chart/util/{chartConfig.js → chartOptionConfig.js} +45 -111
- package/es/chart/util/formatData.d.ts +3 -7
- package/es/chart/util/formatData.js +47 -26
- package/es/chart/util/formatOption.d.ts +2 -1
- package/es/chart/util/formatOption.js +22 -9
- package/es/chart/util/mapUtil.d.ts +3 -3
- package/es/chart/util/mapUtil.js +9 -19
- package/es/commonStyle/icon.less +116 -112
- package/es/commonStyle/select.less +1 -1
- package/es/commonStyle/theme.less +520 -473
- package/es/components/iconFont.js +4 -2
- package/es/context/index.d.ts +16 -0
- package/es/context/index.js +3 -0
- package/es/datePicker/datePicker.d.ts +10 -0
- package/es/datePicker/datePicker.js +115 -0
- package/es/datePicker/demo/index.d.ts +1 -0
- package/es/datePicker/demo/index.js +9 -2
- package/es/datePicker/index.d.ts +4 -27
- package/es/datePicker/index.js +72 -148
- package/es/datePicker/styles/index.less +48 -0
- package/es/datePicker/types.d.ts +24 -0
- package/es/{eventSelector/type.js → datePicker/types.js} +0 -0
- package/es/datePicker/utils.d.ts +6 -0
- package/es/datePicker/utils.js +70 -0
- package/es/dialog/components/itemNode.d.ts +10 -0
- package/es/dialog/components/itemNode.js +109 -0
- package/es/dialog/components/list.d.ts +3 -13
- package/es/dialog/components/list.js +15 -12
- package/es/dialog/components/selectToInput.d.ts +4 -48
- package/es/dialog/components/selectToInput.js +74 -80
- package/es/dialog/components/styles/handle.less +39 -0
- package/es/dialog/components/styles/list.less +60 -0
- package/es/dialog/components/styles/tab.less +55 -0
- package/es/dialog/components/tab.d.ts +3 -7
- package/es/dialog/components/tab.js +57 -19
- package/es/dialog/data/{chart.d.ts → data.d.ts} +9 -0
- package/es/dialog/data/{chart.js → data.js} +11 -0
- package/es/dialog/demo/index.d.ts +23 -0
- package/es/dialog/demo/index.js +34 -3
- package/es/dialog/demo/index2.js +14 -2
- package/es/dialog/index.d.ts +4 -97
- package/es/dialog/index.js +54 -109
- package/es/dialog/styles/index.less +11 -0
- package/es/dialog/types.d.ts +77 -0
- package/es/{targetConditionGroup/type.js → dialog/types.js} +0 -0
- package/es/eventSelector/demo/index.js +26 -44
- package/es/eventSelector/index.d.ts +4 -30
- package/es/eventSelector/index.js +90 -416
- package/es/eventSelector/listPanel.d.ts +4 -0
- package/es/eventSelector/listPanel.js +197 -0
- package/es/eventSelector/option.d.ts +17 -0
- package/es/eventSelector/option.js +54 -0
- package/es/eventSelector/styles/index.less +77 -0
- package/es/eventSelector/types.d.ts +31 -0
- package/es/eventSelector/types.js +1 -0
- package/es/index.d.ts +14 -11
- package/es/index.js +9 -11
- package/es/{attributeSelector/data → mock}/env.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/env.js +0 -0
- package/es/{attributeSelector/data → mock}/event.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/event.js +0 -0
- package/es/{attributeSelector/data → mock}/user.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/user.js +0 -0
- package/es/{multipleSelector → searchInput}/demo/index.d.ts +0 -0
- package/es/searchInput/demo/index.js +5 -0
- package/es/searchInput/index.d.ts +8 -0
- package/es/searchInput/index.js +31 -0
- package/es/{attributeSelector/demo/multiForm.d.ts → select/demo/group.d.ts} +0 -0
- package/es/{globalAttributes/demo/index.js → select/demo/group.js} +49 -31
- package/es/select/demo/index.js +49 -21
- package/es/{attributeSelector/demo/single.d.ts → select/demo/multiple.d.ts} +0 -0
- package/es/{multipleSelector/demo/index.js → select/demo/multiple.js} +55 -12
- package/es/select/handle.d.ts +5 -0
- package/es/select/handle.js +119 -0
- package/es/select/index.d.ts +4 -49
- package/es/select/index.js +168 -122
- package/es/select/option.d.ts +4 -0
- package/es/select/option.js +59 -0
- package/es/select/overlay.d.ts +4 -0
- package/es/select/overlay.js +154 -0
- package/es/select/styles/handle.less +111 -0
- package/es/select/styles/index.less +99 -0
- package/es/select/types.d.ts +65 -0
- package/es/select/types.js +1 -0
- package/es/table/demo/data/table.js +1 -1
- package/es/table/demo/index.d.ts +1 -1
- package/es/table/demo/index.js +9 -8
- package/es/table/demo/index3.js +9 -18
- package/es/table/index.d.ts +4 -30
- package/es/table/index.js +30 -26
- package/es/table/styles/index.less +5 -0
- package/es/table/type.d.ts +10 -0
- package/es/table/type.js +1 -0
- package/es/targetConditionGroup/components/targetDimension.d.ts +8 -0
- package/es/targetConditionGroup/components/targetDimension.js +153 -0
- package/es/targetConditionGroup/data/operates.d.ts +8 -24
- package/es/targetConditionGroup/data/operates.js +26 -69
- package/es/targetConditionGroup/demo/group.d.ts +1 -0
- package/es/targetConditionGroup/demo/group.js +108 -23
- package/es/targetConditionGroup/demo/index.js +34 -34
- package/es/targetConditionGroup/demo/styles/index.less +29 -0
- package/es/targetConditionGroup/index.d.ts +4 -57
- package/es/targetConditionGroup/index.js +177 -274
- package/es/targetConditionGroup/styles/index.less +25 -0
- package/es/targetConditionGroup/types.d.ts +32 -0
- package/es/targetConditionGroup/types.js +1 -0
- package/es/targetSelector/demo/index.d.ts +1 -0
- package/es/targetSelector/demo/index.js +29 -71
- package/es/targetSelector/editBox.d.ts +8 -0
- package/es/targetSelector/{components/BizEventNameEditBox.js → editBox.js} +49 -24
- package/es/targetSelector/index.d.ts +5 -55
- package/es/targetSelector/index.js +103 -214
- package/es/targetSelector/optionIcon.d.ts +9 -0
- package/es/targetSelector/optionIcon.js +24 -0
- package/es/targetSelector/optionMenu.d.ts +7 -0
- package/es/targetSelector/optionMenu.js +38 -0
- package/es/targetSelector/styles/index.less +88 -0
- package/es/targetSelector/types.d.ts +18 -0
- package/es/targetSelector/types.js +1 -0
- package/es/userCondition/conditionTypeList.d.ts +10 -0
- package/es/userCondition/conditionTypeList.js +43 -0
- package/es/userCondition/conditionWrap.d.ts +7 -0
- package/es/userCondition/conditionWrap.js +18 -0
- package/es/userCondition/conditions/eventCondition.d.ts +8 -0
- package/es/userCondition/conditions/eventCondition.js +104 -0
- package/es/userCondition/conditions/periodCondition.d.ts +11 -0
- package/es/userCondition/conditions/periodCondition.js +156 -0
- package/es/userCondition/conditions/propCondition.d.ts +11 -0
- package/es/userCondition/conditions/propCondition.js +147 -0
- package/es/userCondition/conditions/runTimesCondition.d.ts +9 -0
- package/es/userCondition/conditions/runTimesCondition.js +78 -0
- package/es/userCondition/conditions/styles/eventCondition.less +49 -0
- package/es/userCondition/conditions/styles/periodCondition.less +14 -0
- package/es/userCondition/conditions/styles/propCondition.less +36 -0
- package/es/userCondition/conditions/styles/runTimesCondition.less +16 -0
- package/es/{attributeSelector/demo/singleForm.d.ts → userCondition/demo/index.d.ts} +0 -0
- package/es/userCondition/demo/index.js +97 -0
- package/es/userCondition/index.d.ts +7 -0
- package/es/userCondition/index.js +146 -0
- package/es/userCondition/orConditions.d.ts +5 -0
- package/es/userCondition/orConditions.js +202 -0
- package/es/userCondition/relationLabel.d.ts +6 -0
- package/es/userCondition/relationLabel.js +12 -0
- package/es/userCondition/styles/conditionTypeList.less +31 -0
- package/es/userCondition/styles/conditionWrap.less +14 -0
- package/es/userCondition/styles/index.less +13 -0
- package/es/userCondition/styles/orConditions.less +16 -0
- package/es/userCondition/styles/relationLabel.less +18 -0
- package/es/userCondition/types.d.ts +79 -0
- package/es/userCondition/types.js +1 -0
- package/es/userCondition/util.d.ts +2 -0
- package/es/userCondition/util.js +54 -0
- package/es/{datePicker/demo/form.d.ts → userGroup/demo/group.d.ts} +0 -0
- package/es/{targetConditionGroup/demo/form.js → userGroup/demo/group.js} +68 -72
- package/es/userGroup/demo/index.d.ts +0 -1
- package/es/userGroup/demo/index.js +5 -62
- package/es/userGroup/index.d.ts +3 -77
- package/es/userGroup/index.js +60 -108
- package/es/userGroup/styles/index.less +20 -0
- package/es/userGroup/types.d.ts +15 -0
- package/es/userGroup/types.js +1 -0
- package/es/utils/ajax.js +5 -20
- package/es/utils/type.d.ts +42 -44
- package/es/utils/util.d.ts +1 -35
- package/es/utils/util.js +27 -57
- package/package.json +11 -4
- package/es/attributeSelector/demo/multi.js +0 -39
- package/es/attributeSelector/demo/multiForm.js +0 -64
- package/es/attributeSelector/demo/single.js +0 -43
- package/es/attributeSelector/group.d.ts +0 -31
- package/es/attributeSelector/group.js +0 -225
- package/es/attributeSelector/index.less +0 -172
- package/es/chart/index.less +0 -38
- package/es/chart/style/circle.svg +0 -4
- package/es/chart/type.d.ts +0 -22
- package/es/datePicker/data.d.ts +0 -9
- package/es/datePicker/data.js +0 -65
- package/es/datePicker/index.less +0 -364
- package/es/dialog/components/style/list.less +0 -59
- package/es/dialog/components/style/tab.less +0 -61
- package/es/dialog/style/index.less +0 -86
- package/es/eventSelector/demo/form.d.ts +0 -2
- package/es/eventSelector/demo/form.js +0 -89
- package/es/eventSelector/demo/nodata.d.ts +0 -2
- package/es/eventSelector/demo/nodata.js +0 -13
- package/es/eventSelector/index.less +0 -121
- package/es/eventSelector/type.d.ts +0 -41
- package/es/globalAttributes/demo/data/env.d.ts +0 -11
- package/es/globalAttributes/demo/data/env.js +0 -181
- package/es/globalAttributes/demo/data/event.d.ts +0 -237
- package/es/globalAttributes/demo/data/event.js +0 -3483
- package/es/globalAttributes/demo/data/user.d.ts +0 -22
- package/es/globalAttributes/demo/data/user.js +0 -218
- package/es/globalAttributes/index.d.ts +0 -47
- package/es/globalAttributes/index.js +0 -112
- package/es/multipleSelector/index.d.ts +0 -36
- package/es/multipleSelector/index.js +0 -131
- package/es/multipleSelector/index.less +0 -136
- package/es/table/demo/index.less +0 -8
- package/es/table/index.less +0 -139
- package/es/targetConditionGroup/components/conditionGroup.d.ts +0 -30
- package/es/targetConditionGroup/components/conditionGroup.js +0 -112
- package/es/targetConditionGroup/components/conditionItem.d.ts +0 -47
- package/es/targetConditionGroup/components/conditionItem.js +0 -232
- package/es/targetConditionGroup/components/style/group.less +0 -47
- package/es/targetConditionGroup/components/style/index.less +0 -16
- package/es/targetConditionGroup/demo/data/env.d.ts +0 -11
- package/es/targetConditionGroup/demo/data/env.js +0 -181
- package/es/targetConditionGroup/demo/data/event.d.ts +0 -237
- package/es/targetConditionGroup/demo/data/event.js +0 -3483
- package/es/targetConditionGroup/demo/data/user.d.ts +0 -22
- package/es/targetConditionGroup/demo/data/user.js +0 -218
- package/es/targetConditionGroup/demo/form.d.ts +0 -2
- package/es/targetConditionGroup/demo/item.d.ts +0 -2
- package/es/targetConditionGroup/demo/item.js +0 -5
- package/es/targetConditionGroup/group.d.ts +0 -56
- package/es/targetConditionGroup/group.js +0 -204
- package/es/targetConditionGroup/index.less +0 -76
- package/es/targetConditionGroup/type.d.ts +0 -95
- package/es/targetSelector/components/BizCascadeBox.d.ts +0 -34
- package/es/targetSelector/components/BizCascadeBox.js +0 -213
- package/es/targetSelector/components/BizEventNameEditBox.d.ts +0 -20
- package/es/targetSelector/demo/form.d.ts +0 -2
- package/es/targetSelector/demo/form.js +0 -133
- package/es/targetSelector/demo/nodata.d.ts +0 -2
- package/es/targetSelector/demo/nodata.js +0 -13
- package/es/targetSelector/index.less +0 -28
- package/es/userGroup/demo/cluster.d.ts +0 -3
- package/es/userGroup/demo/cluster.js +0 -102
- package/es/userGroup/demo/index.less +0 -3
- package/es/userGroup/index.less +0 -2
- package/es/userGroup/userCluster.d.ts +0 -63
- package/es/userGroup/userCluster.js +0 -255
|
@@ -10,40 +10,78 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
|
+
import { Dropdown, Radio, Space } from 'antd';
|
|
13
14
|
import React, { useState } from 'react';
|
|
14
15
|
import IconFont from '../../components/iconFont';
|
|
15
|
-
import
|
|
16
|
-
import './style/tab.less';
|
|
16
|
+
import './styles/tab.less';
|
|
17
17
|
|
|
18
18
|
var BizTab = function BizTab(props) {
|
|
19
|
-
var _props$
|
|
20
|
-
options = _props$options === void 0 ? [] : _props$options,
|
|
21
|
-
value = props.value,
|
|
22
|
-
onChange = props.onChange;
|
|
19
|
+
var _props$value;
|
|
23
20
|
|
|
24
|
-
var _useState = useState(value),
|
|
21
|
+
var _useState = useState((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.split(',')),
|
|
25
22
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
23
|
tab = _useState2[0],
|
|
27
24
|
setTab = _useState2[1];
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var
|
|
26
|
+
var classPrefix = 'biz-tab';
|
|
27
|
+
|
|
28
|
+
var ChildList = function ChildList(data) {
|
|
29
|
+
var _data$children;
|
|
30
|
+
|
|
33
31
|
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "".concat(classPrefix, "-drop")
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
34
|
+
value: tab && tab[1]
|
|
35
|
+
}, /*#__PURE__*/React.createElement(Space, null, (_data$children = data.children) === null || _data$children === void 0 ? void 0 : _data$children.map(function (item) {
|
|
36
|
+
return /*#__PURE__*/React.createElement(Radio, {
|
|
37
|
+
key: item.value,
|
|
38
|
+
value: item.value,
|
|
39
|
+
onClick: function onClick() {
|
|
40
|
+
return onChange(data, item);
|
|
41
|
+
}
|
|
42
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
43
|
+
className: "".concat(classPrefix, "-radio-icon"),
|
|
44
|
+
type: item.icon
|
|
45
|
+
}));
|
|
46
|
+
}))));
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var onChange = function onChange(data, child) {
|
|
50
|
+
setTab([data.value, child.value]);
|
|
51
|
+
props.onChange && props.onChange("".concat(data.value, ",").concat(child.value));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var _onClick = function onClick(data) {
|
|
55
|
+
if (data.disabled || tab && tab[0] === data.value) return;
|
|
56
|
+
var item = [data.value];
|
|
57
|
+
|
|
58
|
+
if (data.children) {
|
|
59
|
+
item.push(data.children[0].value);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
setTab(item);
|
|
63
|
+
props.onChange && props.onChange(item.join(','));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: classPrefix
|
|
68
|
+
}, props.options.map(function (item) {
|
|
69
|
+
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
34
70
|
key: item.value,
|
|
35
|
-
|
|
71
|
+
placement: "top",
|
|
72
|
+
disabled: item.disabled || !item.children,
|
|
73
|
+
overlay: function overlay() {
|
|
74
|
+
return ChildList(item);
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
className: "".concat(classPrefix, "-item ").concat(item.disabled ? 'disabled' : '', " ").concat(tab && tab[0] === item.value ? 'active' : ''),
|
|
36
78
|
onClick: function onClick() {
|
|
37
|
-
|
|
38
|
-
setTab(function () {
|
|
39
|
-
return item.value;
|
|
40
|
-
});
|
|
41
|
-
onChange && onChange(item.value);
|
|
79
|
+
return _onClick(item);
|
|
42
80
|
}
|
|
43
81
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
44
|
-
className: "
|
|
82
|
+
className: "".concat(classPrefix, "-icon"),
|
|
45
83
|
type: item.icon
|
|
46
|
-
}), /*#__PURE__*/React.createElement("span", null, item.label));
|
|
84
|
+
}), /*#__PURE__*/React.createElement("span", null, item.label)));
|
|
47
85
|
}));
|
|
48
86
|
};
|
|
49
87
|
|
|
@@ -59,4 +59,15 @@ export var typeMenus = [{
|
|
|
59
59
|
title: '收入',
|
|
60
60
|
content: '收入情况',
|
|
61
61
|
icon: 'icon-fenshu'
|
|
62
|
+
}];
|
|
63
|
+
export var inputOptions = [{
|
|
64
|
+
label: '公开',
|
|
65
|
+
value: 1
|
|
66
|
+
}, {
|
|
67
|
+
label: '指定人员明显',
|
|
68
|
+
value: 2,
|
|
69
|
+
title: '通过看板的共享功能指定可见成员'
|
|
70
|
+
}, {
|
|
71
|
+
label: '仅自己可见',
|
|
72
|
+
value: 3
|
|
62
73
|
}];
|
|
@@ -1,2 +1,25 @@
|
|
|
1
|
+
export declare const chartTypes: ({
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
disabled?: undefined;
|
|
6
|
+
children?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
children?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
children: {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
}[];
|
|
22
|
+
disabled?: undefined;
|
|
23
|
+
})[];
|
|
1
24
|
declare const _default: () => JSX.Element;
|
|
2
25
|
export default _default;
|
package/es/dialog/demo/index.js
CHANGED
|
@@ -29,7 +29,37 @@ var options = [{
|
|
|
29
29
|
id: 33,
|
|
30
30
|
name: '分分类三一'
|
|
31
31
|
}];
|
|
32
|
-
var chartTypes = [
|
|
32
|
+
export var chartTypes = [{
|
|
33
|
+
label: '趋势图',
|
|
34
|
+
value: 'line',
|
|
35
|
+
icon: 'icon-qushitu1'
|
|
36
|
+
}, {
|
|
37
|
+
label: '汇总图',
|
|
38
|
+
value: 'bar',
|
|
39
|
+
icon: 'icon-huizongtu'
|
|
40
|
+
}, {
|
|
41
|
+
label: '地图',
|
|
42
|
+
value: 'map',
|
|
43
|
+
icon: 'icon-ditu',
|
|
44
|
+
disabled: true
|
|
45
|
+
}, {
|
|
46
|
+
label: '表格',
|
|
47
|
+
value: 'table',
|
|
48
|
+
icon: 'icon-biaoge',
|
|
49
|
+
children: [{
|
|
50
|
+
label: '趋势图',
|
|
51
|
+
value: 'line',
|
|
52
|
+
icon: 'icon-qushitu1'
|
|
53
|
+
}, {
|
|
54
|
+
label: '汇总图',
|
|
55
|
+
value: 'bar',
|
|
56
|
+
icon: 'icon-huizongtu'
|
|
57
|
+
}]
|
|
58
|
+
}, {
|
|
59
|
+
label: '分数',
|
|
60
|
+
value: 'fraction',
|
|
61
|
+
icon: 'icon-fenshu'
|
|
62
|
+
}];
|
|
33
63
|
var fields = [{
|
|
34
64
|
label: '分类',
|
|
35
65
|
name: 'class',
|
|
@@ -46,7 +76,7 @@ var fields = [{
|
|
|
46
76
|
message: '请选择分类'
|
|
47
77
|
}],
|
|
48
78
|
onChange: function onChange(val) {
|
|
49
|
-
console.log('
|
|
79
|
+
console.log('value>>>', val);
|
|
50
80
|
}
|
|
51
81
|
}, {
|
|
52
82
|
label: '名称',
|
|
@@ -91,7 +121,8 @@ var formData = {
|
|
|
91
121
|
name: '分类一'
|
|
92
122
|
},
|
|
93
123
|
range: 'public',
|
|
94
|
-
show: 'dynamic'
|
|
124
|
+
show: 'dynamic',
|
|
125
|
+
chart: 'line'
|
|
95
126
|
};
|
|
96
127
|
export default (function () {
|
|
97
128
|
var _useState = useState(false),
|
package/es/dialog/demo/index2.js
CHANGED
|
@@ -19,7 +19,16 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
19
19
|
import React, { useState } from 'react';
|
|
20
20
|
import { BizDialog } from '@zgfe/business-lib';
|
|
21
21
|
import { Button } from 'antd';
|
|
22
|
-
var options = [
|
|
22
|
+
var options = [{
|
|
23
|
+
label: '分类一',
|
|
24
|
+
value: 'class1'
|
|
25
|
+
}, {
|
|
26
|
+
label: '分类二',
|
|
27
|
+
value: 'class2'
|
|
28
|
+
}, {
|
|
29
|
+
label: '分类三',
|
|
30
|
+
value: 'class3'
|
|
31
|
+
}];
|
|
23
32
|
var fields = [{
|
|
24
33
|
label: '场景分类',
|
|
25
34
|
name: 'class',
|
|
@@ -57,7 +66,10 @@ var fields = [{
|
|
|
57
66
|
}]
|
|
58
67
|
}];
|
|
59
68
|
var formData = {
|
|
60
|
-
test:
|
|
69
|
+
test: {
|
|
70
|
+
label: '测试二',
|
|
71
|
+
value: 'test2'
|
|
72
|
+
}
|
|
61
73
|
};
|
|
62
74
|
export default (function () {
|
|
63
75
|
var _useState = useState(false),
|
package/es/dialog/index.d.ts
CHANGED
|
@@ -1,100 +1,7 @@
|
|
|
1
1
|
import { FormItemProps, ModalProps } from 'antd';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
label: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
interface FieldProps {
|
|
11
|
-
/**
|
|
12
|
-
* @description form.item名称
|
|
13
|
-
* @default -
|
|
14
|
-
*/
|
|
15
|
-
label?: string;
|
|
16
|
-
/**
|
|
17
|
-
* @description form.item类型
|
|
18
|
-
* @default input
|
|
19
|
-
*/
|
|
20
|
-
type?: string;
|
|
21
|
-
/**
|
|
22
|
-
* @description form.item 默认值
|
|
23
|
-
* @default -
|
|
24
|
-
*/
|
|
25
|
-
value?: string | number;
|
|
26
|
-
/**
|
|
27
|
-
* @description form.item 依赖项及其值 {age:20}
|
|
28
|
-
* @default -
|
|
29
|
-
*/
|
|
30
|
-
dependenceFields?: BizObjectDefaultProps;
|
|
31
|
-
/**
|
|
32
|
-
* @description 提示
|
|
33
|
-
* @default -
|
|
34
|
-
*/
|
|
35
|
-
placeholder?: string;
|
|
36
|
-
/**
|
|
37
|
-
* @description form.item 排列方向 'horizontal' | 'vertical'
|
|
38
|
-
* @default horizontal
|
|
39
|
-
*/
|
|
40
|
-
direction?: 'horizontal' | 'vertical';
|
|
41
|
-
/**
|
|
42
|
-
* @description form.item 下拉内容
|
|
43
|
-
* @default -
|
|
44
|
-
*/
|
|
45
|
-
options?: Array<any>;
|
|
46
|
-
/**
|
|
47
|
-
* @description 扩展名称
|
|
48
|
-
* @default -
|
|
49
|
-
*/
|
|
50
|
-
extendName?: string;
|
|
51
|
-
/**
|
|
52
|
-
* @description 下拉框的自定义节点 label、value
|
|
53
|
-
* @default { label: 'label', value: 'value' }
|
|
54
|
-
*/
|
|
55
|
-
fieldNames?: fieldNamesProps;
|
|
56
|
-
/**
|
|
57
|
-
* @description 影响的表单项
|
|
58
|
-
* @default -
|
|
59
|
-
*/
|
|
60
|
-
children?: Array<string>;
|
|
61
|
-
/**
|
|
62
|
-
* @description 值发生改变
|
|
63
|
-
* @default -
|
|
64
|
-
*/
|
|
65
|
-
onChange?: () => void;
|
|
66
|
-
}
|
|
67
|
-
interface BizDialogProps {
|
|
68
|
-
/**
|
|
69
|
-
* @description 弹窗类型
|
|
70
|
-
* @default input
|
|
71
|
-
*/
|
|
72
|
-
layout?: 'horizontal' | 'vertical' | 'inline';
|
|
73
|
-
/**
|
|
74
|
-
* @description 弹窗表单字段
|
|
75
|
-
* @default -
|
|
76
|
-
*/
|
|
77
|
-
fields: Array<FieldProps & FormItemProps>;
|
|
78
|
-
/**
|
|
79
|
-
* @description 表单默认值,只有初始化以及重置时生效
|
|
80
|
-
* @default -
|
|
81
|
-
*/
|
|
82
|
-
initialValues?: object;
|
|
83
|
-
/**
|
|
84
|
-
* @description 是否显示必填标记
|
|
85
|
-
* @default -
|
|
86
|
-
*/
|
|
87
|
-
showMark?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* @description 提交表单且数据验证成功后回调事件
|
|
90
|
-
* @default -
|
|
91
|
-
*/
|
|
92
|
-
onOk?: (data: object) => void;
|
|
93
|
-
/**
|
|
94
|
-
* @description 取消
|
|
95
|
-
* @default -
|
|
96
|
-
*/
|
|
97
|
-
onCancel?: () => void;
|
|
98
|
-
}
|
|
99
|
-
declare const BizDialog: React.FC<ModalProps & BizDialogProps & FormItemProps>;
|
|
3
|
+
import { DialogTypes } from './types';
|
|
4
|
+
import './styles/index.less';
|
|
5
|
+
export declare const classPrefix = "biz-dialog";
|
|
6
|
+
declare const BizDialog: React.FC<ModalProps & DialogTypes.Props & FormItemProps>;
|
|
100
7
|
export default BizDialog;
|
package/es/dialog/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["width", "initialValues", "fields", "visible", "showMark", "layout"
|
|
1
|
+
var _excluded = ["width", "initialValues", "fields", "visible", "showMark", "layout"];
|
|
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
|
|
|
@@ -32,26 +32,19 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
32
32
|
|
|
33
33
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
34
34
|
|
|
35
|
-
import { Form,
|
|
35
|
+
import { Form, Modal } from 'antd';
|
|
36
36
|
import React, { useEffect, useState } from 'react';
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
|
|
40
|
-
import BizList from './components/list';
|
|
37
|
+
import './styles/index.less';
|
|
38
|
+
import ItemNode from './components/itemNode';
|
|
39
|
+
export var classPrefix = 'biz-dialog';
|
|
41
40
|
|
|
42
41
|
var BizDialog = function BizDialog(props) {
|
|
43
|
-
var
|
|
44
|
-
width = _props$width === void 0 ? 520 : _props$width,
|
|
42
|
+
var width = props.width,
|
|
45
43
|
initialValues = props.initialValues,
|
|
46
44
|
fields = props.fields,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
showMark = _props$showMark === void 0 ? false : _props$showMark,
|
|
51
|
-
_props$layout = props.layout,
|
|
52
|
-
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
|
53
|
-
_onOk = props.onOk,
|
|
54
|
-
_onCancel = props.onCancel,
|
|
45
|
+
visible = props.visible,
|
|
46
|
+
showMark = props.showMark,
|
|
47
|
+
layout = props.layout,
|
|
55
48
|
res = _objectWithoutProperties(props, _excluded);
|
|
56
49
|
|
|
57
50
|
var _Form$useForm = Form.useForm(),
|
|
@@ -63,78 +56,6 @@ var BizDialog = function BizDialog(props) {
|
|
|
63
56
|
formFields = _useState2[0],
|
|
64
57
|
setFormFields = _useState2[1];
|
|
65
58
|
|
|
66
|
-
var getFormItem = function getFormItem(_ref) {
|
|
67
|
-
var type = _ref.type,
|
|
68
|
-
label = _ref.label,
|
|
69
|
-
options = _ref.options,
|
|
70
|
-
placeholder = _ref.placeholder,
|
|
71
|
-
_ref$fieldNames = _ref.fieldNames,
|
|
72
|
-
fieldNames = _ref$fieldNames === void 0 ? {
|
|
73
|
-
label: 'label',
|
|
74
|
-
value: 'value'
|
|
75
|
-
} : _ref$fieldNames,
|
|
76
|
-
extendName = _ref.extendName,
|
|
77
|
-
direction = _ref.direction,
|
|
78
|
-
onChange = _ref.onChange;
|
|
79
|
-
|
|
80
|
-
if (type === 'selectToInput') {
|
|
81
|
-
return /*#__PURE__*/React.createElement(BizSelectToInput, {
|
|
82
|
-
name: label,
|
|
83
|
-
options: options,
|
|
84
|
-
fieldNames: fieldNames,
|
|
85
|
-
extendName: extendName,
|
|
86
|
-
onChange: onChange
|
|
87
|
-
});
|
|
88
|
-
} else if (type === 'select') {
|
|
89
|
-
return /*#__PURE__*/React.createElement(BizSelect, {
|
|
90
|
-
options: options,
|
|
91
|
-
name: label,
|
|
92
|
-
size: "middle",
|
|
93
|
-
onChange: onChange
|
|
94
|
-
});
|
|
95
|
-
} else if (type === 'input') {
|
|
96
|
-
return /*#__PURE__*/React.createElement(Input, {
|
|
97
|
-
className: "biz-input",
|
|
98
|
-
placeholder: placeholder || "\u8BF7\u8F93\u5165".concat(label),
|
|
99
|
-
autoComplete: "off",
|
|
100
|
-
allowClear: {
|
|
101
|
-
clearIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
102
|
-
className: "biz-icon",
|
|
103
|
-
type: 'icon-qingchu'
|
|
104
|
-
})
|
|
105
|
-
},
|
|
106
|
-
onChange: onChange
|
|
107
|
-
});
|
|
108
|
-
} else if (type === 'password') {
|
|
109
|
-
return /*#__PURE__*/React.createElement(Input.Password, {
|
|
110
|
-
className: "biz-input",
|
|
111
|
-
placeholder: placeholder || "\u8BF7\u8F93\u5165".concat(label),
|
|
112
|
-
onChange: onChange
|
|
113
|
-
});
|
|
114
|
-
} else if (type === 'tab') {
|
|
115
|
-
return /*#__PURE__*/React.createElement(BizTab, {
|
|
116
|
-
options: options,
|
|
117
|
-
onChange: onChange
|
|
118
|
-
});
|
|
119
|
-
} else if (type === 'radio') {
|
|
120
|
-
return /*#__PURE__*/React.createElement(Radio.Group, {
|
|
121
|
-
onChange: onChange
|
|
122
|
-
}, /*#__PURE__*/React.createElement(Space, {
|
|
123
|
-
direction: direction || 'horizontal'
|
|
124
|
-
}, options && options.map(function (item) {
|
|
125
|
-
return /*#__PURE__*/React.createElement(Radio, {
|
|
126
|
-
key: item[fieldNames.value],
|
|
127
|
-
value: item[fieldNames.value]
|
|
128
|
-
}, item[fieldNames.label]);
|
|
129
|
-
})));
|
|
130
|
-
} else if (type === 'list') {
|
|
131
|
-
return /*#__PURE__*/React.createElement(BizList, {
|
|
132
|
-
options: options && options.length > 0 ? options : undefined,
|
|
133
|
-
onChange: onChange
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
59
|
useEffect(function () {
|
|
139
60
|
if (visible) {
|
|
140
61
|
form.resetFields();
|
|
@@ -145,6 +66,19 @@ var BizDialog = function BizDialog(props) {
|
|
|
145
66
|
return _toConsumableArray(fields);
|
|
146
67
|
});
|
|
147
68
|
}, [fields]);
|
|
69
|
+
|
|
70
|
+
var onOk = function onOk() {
|
|
71
|
+
form.validateFields().then(function (values) {
|
|
72
|
+
props.onOk && props.onOk(values);
|
|
73
|
+
}).catch(function (info) {
|
|
74
|
+
console.log('Validate Failed:', info);
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
var onCancel = function onCancel() {
|
|
79
|
+
if (props.onCancel) props.onCancel();
|
|
80
|
+
};
|
|
81
|
+
|
|
148
82
|
return /*#__PURE__*/React.createElement(Modal, _objectSpread(_objectSpread({
|
|
149
83
|
width: width,
|
|
150
84
|
centered: true,
|
|
@@ -160,25 +94,15 @@ var BizDialog = function BizDialog(props) {
|
|
|
160
94
|
okText: "\u786E\u5B9A",
|
|
161
95
|
closable: false
|
|
162
96
|
}, res), {}, {
|
|
163
|
-
onCancel:
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
onOk: function onOk() {
|
|
167
|
-
form.validateFields().then(function (values) {
|
|
168
|
-
_onOk && _onOk(values);
|
|
169
|
-
}).catch(function (info) {
|
|
170
|
-
console.log('Validate Failed:', info);
|
|
171
|
-
});
|
|
172
|
-
}
|
|
97
|
+
onCancel: onCancel,
|
|
98
|
+
onOk: onOk
|
|
173
99
|
}), /*#__PURE__*/React.createElement(Form, {
|
|
174
|
-
className:
|
|
100
|
+
className: classPrefix,
|
|
175
101
|
form: form,
|
|
176
|
-
name: "form_in_modal",
|
|
177
102
|
requiredMark: showMark,
|
|
178
103
|
initialValues: initialValues,
|
|
179
104
|
layout: layout
|
|
180
|
-
}, formFields === null || formFields === void 0 ? void 0 : formFields.map(function (item
|
|
181
|
-
// 判断是否有依赖项,如果依赖项的值符合,则展示,否则不展示
|
|
105
|
+
}, formFields === null || formFields === void 0 ? void 0 : formFields.map(function (item) {
|
|
182
106
|
if (item.dependenceFields && Object.keys(item.dependenceFields).length > 0) {
|
|
183
107
|
var keys = Object.keys(item.dependenceFields);
|
|
184
108
|
var dependenceFields = item.dependenceFields;
|
|
@@ -195,9 +119,18 @@ var BizDialog = function BizDialog(props) {
|
|
|
195
119
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
196
120
|
var key = _step.value;
|
|
197
121
|
|
|
198
|
-
if (
|
|
199
|
-
|
|
200
|
-
|
|
122
|
+
if (item.dependencekeys && item.dependencekeys[key]) {
|
|
123
|
+
var dKey = item.dependencekeys[key];
|
|
124
|
+
|
|
125
|
+
if (prevValues[key][dKey] !== curValues[key][dKey]) {
|
|
126
|
+
flag = true;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
} else {
|
|
130
|
+
if (prevValues[key] !== curValues[key]) {
|
|
131
|
+
flag = true;
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
201
134
|
}
|
|
202
135
|
}
|
|
203
136
|
} catch (err) {
|
|
@@ -208,8 +141,8 @@ var BizDialog = function BizDialog(props) {
|
|
|
208
141
|
|
|
209
142
|
return flag;
|
|
210
143
|
}
|
|
211
|
-
}, function (
|
|
212
|
-
var getFieldValue =
|
|
144
|
+
}, function (_ref) {
|
|
145
|
+
var getFieldValue = _ref.getFieldValue;
|
|
213
146
|
var flag = true;
|
|
214
147
|
|
|
215
148
|
var _iterator2 = _createForOfIteratorHelper(keys),
|
|
@@ -240,7 +173,10 @@ var BizDialog = function BizDialog(props) {
|
|
|
240
173
|
offset: !item.label && layout === 'horizontal' ? 2 : 0
|
|
241
174
|
},
|
|
242
175
|
shouldUpdate: true
|
|
243
|
-
},
|
|
176
|
+
}, /*#__PURE__*/React.createElement(ItemNode, {
|
|
177
|
+
field: item,
|
|
178
|
+
fieldNames: item.fieldNames
|
|
179
|
+
})) : null;
|
|
244
180
|
});
|
|
245
181
|
} else {
|
|
246
182
|
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -254,9 +190,18 @@ var BizDialog = function BizDialog(props) {
|
|
|
254
190
|
offset: !item.label && layout === 'horizontal' ? 2 : 0
|
|
255
191
|
},
|
|
256
192
|
shouldUpdate: true
|
|
257
|
-
},
|
|
193
|
+
}, /*#__PURE__*/React.createElement(ItemNode, {
|
|
194
|
+
field: item,
|
|
195
|
+
fieldNames: item.fieldNames
|
|
196
|
+
}));
|
|
258
197
|
}
|
|
259
198
|
})));
|
|
260
199
|
};
|
|
261
200
|
|
|
201
|
+
BizDialog.defaultProps = {
|
|
202
|
+
width: 520,
|
|
203
|
+
visible: false,
|
|
204
|
+
showMark: false,
|
|
205
|
+
layout: 'horizontal'
|
|
206
|
+
};
|
|
262
207
|
export default BizDialog;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { FormItemProps } from 'antd';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { BizSelectTypes } from '../select/types';
|
|
4
|
+
export declare namespace TabTypes {
|
|
5
|
+
interface Props {
|
|
6
|
+
value?: string;
|
|
7
|
+
options: Array<TabItem>;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
}
|
|
10
|
+
interface TabItemChild {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface TabItem extends TabItemChild {
|
|
17
|
+
children?: Array<TabItemChild>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface SelectInputProps {
|
|
21
|
+
name?: string;
|
|
22
|
+
extendName?: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
onChange?: (value?: BizSelectTypes.Option | undefined) => void;
|
|
25
|
+
}
|
|
26
|
+
export interface ItemProps {
|
|
27
|
+
id: string | number;
|
|
28
|
+
title?: string;
|
|
29
|
+
content?: string;
|
|
30
|
+
icon?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ListProps {
|
|
33
|
+
value?: string | number;
|
|
34
|
+
options?: Array<ItemProps>;
|
|
35
|
+
onChange?: (value: string | number) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace DialogTypes {
|
|
38
|
+
export interface FieldOption {
|
|
39
|
+
label: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}
|
|
42
|
+
interface Option {
|
|
43
|
+
[otherProp: string]: any;
|
|
44
|
+
}
|
|
45
|
+
export interface FieldProps {
|
|
46
|
+
label?: string;
|
|
47
|
+
type?: string;
|
|
48
|
+
value?: string | number;
|
|
49
|
+
dependenceFields?: {
|
|
50
|
+
[pro: string]: string;
|
|
51
|
+
};
|
|
52
|
+
dependencekeys?: {
|
|
53
|
+
[pro: string]: string;
|
|
54
|
+
};
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
direction?: 'horizontal' | 'vertical';
|
|
57
|
+
options?: Option[];
|
|
58
|
+
extendName?: string;
|
|
59
|
+
fieldNames?: FieldOption;
|
|
60
|
+
children?: Array<string>;
|
|
61
|
+
multiple?: boolean;
|
|
62
|
+
selectType?: 'group' | 'normal';
|
|
63
|
+
enableSearch?: boolean;
|
|
64
|
+
overlayWidth?: number;
|
|
65
|
+
extra?: (option: Option) => ReactNode;
|
|
66
|
+
onChange?: (value?: any) => void;
|
|
67
|
+
}
|
|
68
|
+
export interface Props {
|
|
69
|
+
layout?: 'horizontal' | 'vertical' | 'inline';
|
|
70
|
+
fields: Array<FieldProps & FormItemProps>;
|
|
71
|
+
initialValues?: object;
|
|
72
|
+
showMark?: boolean;
|
|
73
|
+
onOk?: (data: object) => void;
|
|
74
|
+
onCancel?: () => void;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
}
|
|
File without changes
|