@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
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
@import '../../../commonStyle/variable.less';
|
|
2
|
-
|
|
3
|
-
.biz-list-container {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
padding: 16px;
|
|
8
|
-
padding-bottom: 1px;
|
|
9
|
-
background-color: @grayBgColor;
|
|
10
|
-
border-radius: 10px;
|
|
11
|
-
|
|
12
|
-
.biz-list-item {
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
width: calc((100% - 45px) / 4);
|
|
15
|
-
margin-bottom: 15px;
|
|
16
|
-
padding: 16px 24px;
|
|
17
|
-
border: 1px solid #cacdd4;
|
|
18
|
-
border-radius: 4px;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
&:not(:nth-child(4n + 1)) {
|
|
21
|
-
margin-left: 15px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.active {
|
|
25
|
-
border-color: @themeColor;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:hover {
|
|
29
|
-
border-color: @hoverBgColor;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.active,
|
|
33
|
-
&:hover {
|
|
34
|
-
background-color: @hoverBgColor;
|
|
35
|
-
|
|
36
|
-
.biz-list-content,
|
|
37
|
-
.biz-list-title,
|
|
38
|
-
.biz-list-title .biz-icon {
|
|
39
|
-
color: @themeColor;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.biz-list-title {
|
|
44
|
-
margin-bottom: 14px;
|
|
45
|
-
color: @fontColor2;
|
|
46
|
-
line-height: 20px;
|
|
47
|
-
|
|
48
|
-
.biz-icon {
|
|
49
|
-
margin-right: 14px;
|
|
50
|
-
color: @fontColor2;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.biz-list-content {
|
|
55
|
-
color: @fontColor3;
|
|
56
|
-
font-size: 12px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
@import '../../../commonStyle/variable.less';
|
|
2
|
-
|
|
3
|
-
.biz-tab-container {
|
|
4
|
-
display: flex;
|
|
5
|
-
color: @titleColor;
|
|
6
|
-
|
|
7
|
-
.biz-tab-item {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
height: 40px;
|
|
11
|
-
padding: 0 12px;
|
|
12
|
-
background: #fff;
|
|
13
|
-
border: 1px solid @borderColor;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
|
|
16
|
-
.biz-icon {
|
|
17
|
-
margin-right: 7px;
|
|
18
|
-
color: @fontColor3;
|
|
19
|
-
font-size: 18px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:not(:last-child) {
|
|
23
|
-
border-right-color: transparent;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:first-child {
|
|
27
|
-
border-radius: 4px 0px 0px 4px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:last-child {
|
|
31
|
-
border-radius: 0px 4px 4px 0px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&.disabled {
|
|
35
|
-
color: @disableColor;
|
|
36
|
-
background: #fafafb;
|
|
37
|
-
cursor: not-allowed;
|
|
38
|
-
|
|
39
|
-
.biz-icon {
|
|
40
|
-
color: @disableColor;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&:not(.disabled, .active):hover {
|
|
45
|
-
.box-hover();
|
|
46
|
-
.biz-icon {
|
|
47
|
-
color: @themeColor;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&:not(.disabled).active {
|
|
52
|
-
color: @themeColor;
|
|
53
|
-
background: @hoverBgColor;
|
|
54
|
-
border: 1px solid @themeColor;
|
|
55
|
-
|
|
56
|
-
.biz-icon {
|
|
57
|
-
color: @themeColor;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
@import '../../commonStyle/index.less';
|
|
2
|
-
|
|
3
|
-
.biz-flex {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.biz-input {
|
|
9
|
-
flex: 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.biz-icon-switch {
|
|
13
|
-
margin-left: 5px;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
|
|
16
|
-
&:hover {
|
|
17
|
-
color: @themeColor;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.biz-dialog {
|
|
22
|
-
.ant-select:not(.ant-select-customize-input) {
|
|
23
|
-
.ant-select-selector {
|
|
24
|
-
height: @inputHeightNormal;
|
|
25
|
-
line-height: @inputHeightNormal;
|
|
26
|
-
background-color: @grayColor;
|
|
27
|
-
border-color: @grayColor;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.ant-select-focused:not(.ant-select-disabled),
|
|
31
|
-
&:hover {
|
|
32
|
-
.ant-select-selector {
|
|
33
|
-
background: #fff;
|
|
34
|
-
border-color: @themeColor;
|
|
35
|
-
box-shadow: 0 0 0 4px #e8efff;
|
|
36
|
-
|
|
37
|
-
& + .ant-select-arrow .biz-icon {
|
|
38
|
-
color: @themeColor;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.ant-form-horizontal .ant-form-item-label > label {
|
|
45
|
-
height: 40px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.ant-form-vertical .ant-form-item-label {
|
|
49
|
-
margin-bottom: 12px;
|
|
50
|
-
color: @titleColor;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.ant-modal-footer {
|
|
55
|
-
padding: 0 24px 24px 24px;
|
|
56
|
-
border-top: none;
|
|
57
|
-
|
|
58
|
-
.ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
|
|
59
|
-
margin-left: 16px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ant-modal-header {
|
|
64
|
-
padding-top: 24px;
|
|
65
|
-
border-bottom: none;
|
|
66
|
-
|
|
67
|
-
.ant-modal-title {
|
|
68
|
-
color: #000;
|
|
69
|
-
font-weight: 500;
|
|
70
|
-
font-size: 24px;
|
|
71
|
-
line-height: 24px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.ant-modal-body {
|
|
76
|
-
max-height: 400px;
|
|
77
|
-
padding-bottom: 0;
|
|
78
|
-
overflow: auto;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.biz-form-radio {
|
|
82
|
-
width: 100%;
|
|
83
|
-
height: 40px;
|
|
84
|
-
color: @titleColor;
|
|
85
|
-
line-height: 40px;
|
|
86
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
-
|
|
9
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
-
|
|
11
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
-
|
|
13
|
-
import { Button, Form } from 'antd';
|
|
14
|
-
import React, { useState } from 'react';
|
|
15
|
-
import { BizEventSelector } from '@zgfe/business-lib';
|
|
16
|
-
var cascadeOptions = [{
|
|
17
|
-
value: 1,
|
|
18
|
-
label: '整体',
|
|
19
|
-
children: [{
|
|
20
|
-
value: 'xihu',
|
|
21
|
-
label: 'West Lake'
|
|
22
|
-
}, {
|
|
23
|
-
value: 'xiasha',
|
|
24
|
-
label: 'Xia Sha'
|
|
25
|
-
}]
|
|
26
|
-
}, {
|
|
27
|
-
value: 2,
|
|
28
|
-
label: '分组',
|
|
29
|
-
children: [{
|
|
30
|
-
value: 'xihu2',
|
|
31
|
-
label: 'West Lake2'
|
|
32
|
-
}, {
|
|
33
|
-
value: 'xiasha2',
|
|
34
|
-
label: 'Xia Sha2j'
|
|
35
|
-
}]
|
|
36
|
-
}];
|
|
37
|
-
|
|
38
|
-
var EventDemo = function EventDemo() {
|
|
39
|
-
var _Form$useForm = Form.useForm(),
|
|
40
|
-
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
41
|
-
form = _Form$useForm2[0];
|
|
42
|
-
|
|
43
|
-
var _useState = useState({
|
|
44
|
-
target: 'xiasha2'
|
|
45
|
-
}),
|
|
46
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
47
|
-
formData = _useState2[0],
|
|
48
|
-
setFormData = _useState2[1];
|
|
49
|
-
|
|
50
|
-
var onFinish = function onFinish(values) {
|
|
51
|
-
setFormData(values);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
var onFinishFailed = function onFinishFailed(errorInfo) {
|
|
55
|
-
console.log('Failed:', errorInfo);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form, {
|
|
59
|
-
form: form,
|
|
60
|
-
onFinish: onFinish,
|
|
61
|
-
onFinishFailed: onFinishFailed,
|
|
62
|
-
initialValues: formData
|
|
63
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
64
|
-
label: "\u6307\u6807",
|
|
65
|
-
name: "target"
|
|
66
|
-
}, /*#__PURE__*/React.createElement(BizEventSelector, {
|
|
67
|
-
responseType: 'object',
|
|
68
|
-
options: cascadeOptions,
|
|
69
|
-
fieldNames: {
|
|
70
|
-
label: 'label',
|
|
71
|
-
value: 'value',
|
|
72
|
-
groupLabel: 'label',
|
|
73
|
-
groupValue: 'value',
|
|
74
|
-
children: 'children'
|
|
75
|
-
}
|
|
76
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
77
|
-
wrapperCol: {
|
|
78
|
-
offset: 8,
|
|
79
|
-
span: 16
|
|
80
|
-
}
|
|
81
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
82
|
-
type: "primary",
|
|
83
|
-
htmlType: "submit"
|
|
84
|
-
}, "Submit"))), /*#__PURE__*/React.createElement("p", null, JSON.stringify(formData)));
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export default (function () {
|
|
88
|
-
return /*#__PURE__*/React.createElement(EventDemo, null);
|
|
89
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BizEventSelector } from '@zgfe/business-lib';
|
|
3
|
-
var optionGroup = [];
|
|
4
|
-
|
|
5
|
-
var EventDemo = function EventDemo() {
|
|
6
|
-
return /*#__PURE__*/React.createElement(BizEventSelector, {
|
|
7
|
-
options: optionGroup
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default (function () {
|
|
12
|
-
return /*#__PURE__*/React.createElement(EventDemo, null);
|
|
13
|
-
});
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
@import '../commonStyle/select.less';
|
|
2
|
-
@import '../commonStyle/icon.less';
|
|
3
|
-
|
|
4
|
-
.dropdown {
|
|
5
|
-
height: 100%;
|
|
6
|
-
padding: @dropdownPadding;
|
|
7
|
-
overflow: auto;
|
|
8
|
-
background: #ffffff;
|
|
9
|
-
border-radius: @boxRadius2;
|
|
10
|
-
box-shadow: @boxShadow;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.biz-cascade {
|
|
14
|
-
position: relative;
|
|
15
|
-
width: 100%;
|
|
16
|
-
color: @fontColor;
|
|
17
|
-
font-size: @fontSize;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.biz-dropdown-cascade {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 40px;
|
|
23
|
-
left: -4px;
|
|
24
|
-
z-index: 9999;
|
|
25
|
-
display: none;
|
|
26
|
-
height: @dropdownHeight;
|
|
27
|
-
transition: all 0.3s;
|
|
28
|
-
|
|
29
|
-
&.biz-flex {
|
|
30
|
-
display: flex;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.biz-dropdown-menu {
|
|
34
|
-
width: @dropdownWidth3;
|
|
35
|
-
.dropdown();
|
|
36
|
-
|
|
37
|
-
.biz-dropdown-item {
|
|
38
|
-
display: flex;
|
|
39
|
-
justify-content: space-between;
|
|
40
|
-
height: @selectItemHeight;
|
|
41
|
-
padding: @selectItemPadding;
|
|
42
|
-
line-height: 20px;
|
|
43
|
-
|
|
44
|
-
.biz-count {
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
height: 20px;
|
|
49
|
-
padding: 0 4px;
|
|
50
|
-
border-radius: @boxRadius2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:hover .biz-count,
|
|
54
|
-
&.box-hover .biz-count {
|
|
55
|
-
.box-active();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.biz-dropdown-content {
|
|
61
|
-
width: @dropdownWidth;
|
|
62
|
-
.dropdown();
|
|
63
|
-
|
|
64
|
-
.biz-dropdown-item {
|
|
65
|
-
list-style-type: none;
|
|
66
|
-
border: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.biz-dropdown-box {
|
|
70
|
-
height: calc(100% - 60px);
|
|
71
|
-
overflow: auto;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.biz-dropdown-search {
|
|
75
|
-
background: #f6f6f6;
|
|
76
|
-
border-radius: 8px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.biz-dropdown-item {
|
|
81
|
-
border-radius: @boxRadius2;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
|
|
84
|
-
&:not(.box-active):hover {
|
|
85
|
-
.box-hover();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.biz-edit-modal {
|
|
91
|
-
position: absolute;
|
|
92
|
-
top: 40px;
|
|
93
|
-
left: 0;
|
|
94
|
-
z-index: 1000;
|
|
95
|
-
width: 390px;
|
|
96
|
-
padding: 4px;
|
|
97
|
-
background: #ffffff;
|
|
98
|
-
border-radius: 10px;
|
|
99
|
-
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
100
|
-
|
|
101
|
-
.biz-modal-footer {
|
|
102
|
-
display: flex;
|
|
103
|
-
flex-direction: row-reverse;
|
|
104
|
-
width: 100%;
|
|
105
|
-
margin-top: 8px;
|
|
106
|
-
|
|
107
|
-
.biz-modal-btn {
|
|
108
|
-
padding: 5px 12px;
|
|
109
|
-
font-weight: 400;
|
|
110
|
-
font-size: @fontSize;
|
|
111
|
-
line-height: 22px;
|
|
112
|
-
border-radius: 6px;
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
|
|
115
|
-
&.biz-modal-btn-primary {
|
|
116
|
-
color: @btnPrimaryFontColor;
|
|
117
|
-
background: @btnPrimaryBgColor;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export interface Option {
|
|
2
|
-
groupValue?: string | number;
|
|
3
|
-
groupLabel?: string | number;
|
|
4
|
-
children?: Event[];
|
|
5
|
-
[prop: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export interface Event {
|
|
8
|
-
value?: string | number;
|
|
9
|
-
label?: string | number;
|
|
10
|
-
[prop: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export interface FormProps {
|
|
13
|
-
/**
|
|
14
|
-
* @description 可选项数据源
|
|
15
|
-
* @default -
|
|
16
|
-
*/
|
|
17
|
-
options: Option[];
|
|
18
|
-
/**
|
|
19
|
-
* @description 输入框占位文本
|
|
20
|
-
* @default 请选择
|
|
21
|
-
*/
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
/**
|
|
24
|
-
* @description 返回数据类型
|
|
25
|
-
* @description.zh-CN id | object
|
|
26
|
-
* @default id
|
|
27
|
-
*/
|
|
28
|
-
responseType?: string;
|
|
29
|
-
/**
|
|
30
|
-
* @description 自定义节点 label、value 的字段
|
|
31
|
-
* @description.zh-CN
|
|
32
|
-
* @default { label: 'name', value: 'id', groupLabel: 'name', groupValue: 'id' }
|
|
33
|
-
*/
|
|
34
|
-
fieldNames?: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
groupLabel: string;
|
|
38
|
-
groupValue: string;
|
|
39
|
-
children: string;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
export default [{
|
|
2
|
-
dimension_sub: 'browser_brand',
|
|
3
|
-
value_dict: false,
|
|
4
|
-
name: 'browser_brand',
|
|
5
|
-
id: 0,
|
|
6
|
-
text: '浏览器品牌',
|
|
7
|
-
category: 'fixed',
|
|
8
|
-
type: 1,
|
|
9
|
-
alias_name: null
|
|
10
|
-
}, {
|
|
11
|
-
dimension_sub: 'browser_version',
|
|
12
|
-
value_dict: false,
|
|
13
|
-
name: 'browser_version',
|
|
14
|
-
id: 0,
|
|
15
|
-
text: '浏览器版本',
|
|
16
|
-
category: 'fixed',
|
|
17
|
-
type: 2,
|
|
18
|
-
alias_name: null
|
|
19
|
-
}, {
|
|
20
|
-
dimension_sub: 'website',
|
|
21
|
-
value_dict: false,
|
|
22
|
-
name: 'website',
|
|
23
|
-
id: 0,
|
|
24
|
-
text: '来源域名',
|
|
25
|
-
category: 'fixed',
|
|
26
|
-
type: 1,
|
|
27
|
-
alias_name: null
|
|
28
|
-
}, {
|
|
29
|
-
dimension_sub: 'platform',
|
|
30
|
-
value_dict: false,
|
|
31
|
-
name: 'platform',
|
|
32
|
-
id: 0,
|
|
33
|
-
text: '平台',
|
|
34
|
-
category: 'fixed',
|
|
35
|
-
type: 1,
|
|
36
|
-
alias_name: null
|
|
37
|
-
}, {
|
|
38
|
-
dimension_sub: 'referer_url',
|
|
39
|
-
value_dict: false,
|
|
40
|
-
name: 'referer_url',
|
|
41
|
-
id: 0,
|
|
42
|
-
text: '来源URL',
|
|
43
|
-
category: 'fixed',
|
|
44
|
-
type: 1,
|
|
45
|
-
alias_name: null
|
|
46
|
-
}, {
|
|
47
|
-
dimension_sub: 'current_url',
|
|
48
|
-
value_dict: false,
|
|
49
|
-
name: 'current_url',
|
|
50
|
-
id: 0,
|
|
51
|
-
text: '当前URL',
|
|
52
|
-
category: 'fixed',
|
|
53
|
-
type: 1,
|
|
54
|
-
alias_name: null
|
|
55
|
-
}, {
|
|
56
|
-
dimension_sub: 'country',
|
|
57
|
-
value_dict: false,
|
|
58
|
-
name: 'country',
|
|
59
|
-
id: 0,
|
|
60
|
-
text: '国家',
|
|
61
|
-
category: 'fixed',
|
|
62
|
-
type: 1,
|
|
63
|
-
alias_name: null
|
|
64
|
-
}, {
|
|
65
|
-
dimension_sub: 'area',
|
|
66
|
-
value_dict: false,
|
|
67
|
-
name: 'area',
|
|
68
|
-
id: 0,
|
|
69
|
-
text: '省份',
|
|
70
|
-
category: 'fixed',
|
|
71
|
-
type: 1,
|
|
72
|
-
alias_name: null
|
|
73
|
-
}, {
|
|
74
|
-
dimension_sub: 'city',
|
|
75
|
-
value_dict: false,
|
|
76
|
-
name: 'city',
|
|
77
|
-
id: 0,
|
|
78
|
-
text: '城市',
|
|
79
|
-
category: 'fixed',
|
|
80
|
-
type: 1,
|
|
81
|
-
alias_name: null
|
|
82
|
-
}, {
|
|
83
|
-
dimension_sub: 'os',
|
|
84
|
-
value_dict: false,
|
|
85
|
-
name: 'os',
|
|
86
|
-
id: 0,
|
|
87
|
-
text: '操作系统',
|
|
88
|
-
category: 'fixed',
|
|
89
|
-
type: 1,
|
|
90
|
-
alias_name: null
|
|
91
|
-
}, {
|
|
92
|
-
dimension_sub: 'ov',
|
|
93
|
-
value_dict: false,
|
|
94
|
-
name: 'ov',
|
|
95
|
-
id: 0,
|
|
96
|
-
text: '系统版本',
|
|
97
|
-
category: 'fixed',
|
|
98
|
-
type: 2,
|
|
99
|
-
alias_name: null
|
|
100
|
-
}, {
|
|
101
|
-
dimension_sub: 'resolution_h',
|
|
102
|
-
value_dict: false,
|
|
103
|
-
name: 'resolution_h',
|
|
104
|
-
id: 0,
|
|
105
|
-
text: '屏幕高度',
|
|
106
|
-
category: 'fixed',
|
|
107
|
-
type: 2,
|
|
108
|
-
alias_name: null
|
|
109
|
-
}, {
|
|
110
|
-
dimension_sub: 'resolution_l',
|
|
111
|
-
value_dict: false,
|
|
112
|
-
name: 'resolution_l',
|
|
113
|
-
id: 0,
|
|
114
|
-
text: '屏幕宽度',
|
|
115
|
-
category: 'fixed',
|
|
116
|
-
type: 2,
|
|
117
|
-
alias_name: null
|
|
118
|
-
}, {
|
|
119
|
-
dimension_sub: 'first_referer_url',
|
|
120
|
-
value_dict: false,
|
|
121
|
-
name: 'first_referer_url',
|
|
122
|
-
id: 0,
|
|
123
|
-
text: '初始来源URL',
|
|
124
|
-
category: 'fixed',
|
|
125
|
-
type: 1,
|
|
126
|
-
alias_name: null
|
|
127
|
-
}, {
|
|
128
|
-
dimension_sub: 'ip',
|
|
129
|
-
value_dict: false,
|
|
130
|
-
name: 'ip',
|
|
131
|
-
id: 0,
|
|
132
|
-
text: 'IP',
|
|
133
|
-
category: 'fixed',
|
|
134
|
-
type: 1,
|
|
135
|
-
alias_name: null
|
|
136
|
-
}, {
|
|
137
|
-
dimension_sub: 'utm_source',
|
|
138
|
-
value_dict: false,
|
|
139
|
-
name: 'utm_source',
|
|
140
|
-
id: 0,
|
|
141
|
-
text: 'utm_source',
|
|
142
|
-
category: 'fixed',
|
|
143
|
-
type: 1,
|
|
144
|
-
alias_name: null
|
|
145
|
-
}, {
|
|
146
|
-
dimension_sub: 'utm_medium',
|
|
147
|
-
value_dict: false,
|
|
148
|
-
name: 'utm_medium',
|
|
149
|
-
id: 0,
|
|
150
|
-
text: 'utm_medium',
|
|
151
|
-
category: 'fixed',
|
|
152
|
-
type: 1,
|
|
153
|
-
alias_name: null
|
|
154
|
-
}, {
|
|
155
|
-
dimension_sub: 'utm_campaign',
|
|
156
|
-
value_dict: false,
|
|
157
|
-
name: 'utm_campaign',
|
|
158
|
-
id: 0,
|
|
159
|
-
text: 'utm_campaign',
|
|
160
|
-
category: 'fixed',
|
|
161
|
-
type: 1,
|
|
162
|
-
alias_name: null
|
|
163
|
-
}, {
|
|
164
|
-
dimension_sub: 'utm_content',
|
|
165
|
-
value_dict: false,
|
|
166
|
-
name: 'utm_content',
|
|
167
|
-
id: 0,
|
|
168
|
-
text: 'utm_content',
|
|
169
|
-
category: 'fixed',
|
|
170
|
-
type: 1,
|
|
171
|
-
alias_name: null
|
|
172
|
-
}, {
|
|
173
|
-
dimension_sub: 'utm_term',
|
|
174
|
-
value_dict: false,
|
|
175
|
-
name: 'utm_term',
|
|
176
|
-
id: 0,
|
|
177
|
-
text: 'utm_term',
|
|
178
|
-
category: 'fixed',
|
|
179
|
-
type: 1,
|
|
180
|
-
alias_name: null
|
|
181
|
-
}];
|