@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,136 +0,0 @@
|
|
|
1
|
-
@import '../commonStyle/theme.less';
|
|
2
|
-
|
|
3
|
-
.biz-multi-container {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex: 1;
|
|
7
|
-
align-items: center;
|
|
8
|
-
padding-left: 10px;
|
|
9
|
-
color: @fontColor;
|
|
10
|
-
background-color: #f6f6f6;
|
|
11
|
-
border-radius: @boxRadius;
|
|
12
|
-
|
|
13
|
-
.ant-select-selection-overflow-item {
|
|
14
|
-
&:not(:last-child) {
|
|
15
|
-
margin-right: 4px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
.ant-select-selection-item {
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
height: 20px;
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 0 6px;
|
|
24
|
-
background: transparent;
|
|
25
|
-
border: 1px solid #cacdd4;
|
|
26
|
-
border-radius: @boxRadius;
|
|
27
|
-
|
|
28
|
-
&:hover {
|
|
29
|
-
border-color: @themeColor;
|
|
30
|
-
.box-hover();
|
|
31
|
-
span {
|
|
32
|
-
color: @themeColor;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ant-select-selection-item-remove,
|
|
36
|
-
.ant-tag-close-icon {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
margin-left: 7px;
|
|
40
|
-
color: @themeColor;
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ant-select-selection-item-content {
|
|
46
|
-
max-width: 70px;
|
|
47
|
-
margin-right: 0;
|
|
48
|
-
}
|
|
49
|
-
.ant-select-selection-item-remove,
|
|
50
|
-
.ant-tag-close-icon {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&:hover,
|
|
56
|
-
&.active {
|
|
57
|
-
.box-hover();
|
|
58
|
-
|
|
59
|
-
.biz-select-zhankai {
|
|
60
|
-
display: block;
|
|
61
|
-
color: @themeColor;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
66
|
-
background: transparent;
|
|
67
|
-
border: none;
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input)
|
|
72
|
-
.ant-select-selector {
|
|
73
|
-
border: none;
|
|
74
|
-
box-shadow: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ant-select-selector {
|
|
78
|
-
border: none;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.biz-multi-select {
|
|
83
|
-
// &.ant-select-dropdown {
|
|
84
|
-
// width: @dropdownWidth !important;
|
|
85
|
-
// min-width: @dropdownWidth !important;
|
|
86
|
-
// padding: @selectItemPadding;
|
|
87
|
-
// background: #ffffff;
|
|
88
|
-
// border-radius: @boxRadius2;
|
|
89
|
-
// box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
90
|
-
// }
|
|
91
|
-
|
|
92
|
-
.ant-select-item {
|
|
93
|
-
// display: flex;
|
|
94
|
-
// flex-direction: row;
|
|
95
|
-
// align-items: center;
|
|
96
|
-
// height: 48px;
|
|
97
|
-
// padding: @dropdownItemPadding;
|
|
98
|
-
// padding-left: 8px;
|
|
99
|
-
// font-weight: 400;
|
|
100
|
-
// border-radius: @specialRadius;
|
|
101
|
-
|
|
102
|
-
.biz-icon-notcheck {
|
|
103
|
-
color: #cacdd4;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.biz-icon-checked {
|
|
107
|
-
display: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.biz-icon-notcheck,
|
|
111
|
-
.biz-icon-checked {
|
|
112
|
-
margin-right: 8px;
|
|
113
|
-
font-size: @iconSize;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
|
|
118
|
-
.biz-icon-notcheck {
|
|
119
|
-
color: @themeColor;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
|
|
124
|
-
color: @hoverColor !important;
|
|
125
|
-
background-color: #ffffff !important;
|
|
126
|
-
|
|
127
|
-
.biz-icon-notcheck {
|
|
128
|
-
display: none;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.biz-icon-checked {
|
|
132
|
-
display: inline-block;
|
|
133
|
-
color: @themeColor;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
package/es/table/demo/index.less
DELETED
package/es/table/index.less
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
@import '../commonStyle/theme.less';
|
|
2
|
-
|
|
3
|
-
.ant-table {
|
|
4
|
-
color: @fontColor3;
|
|
5
|
-
border: 1px solid @borderColor;
|
|
6
|
-
border-radius: 10px;
|
|
7
|
-
|
|
8
|
-
.ant-table-container {
|
|
9
|
-
.ant-table-thead > tr > th {
|
|
10
|
-
color: #021429;
|
|
11
|
-
line-height: 16px;
|
|
12
|
-
background: @grayColor;
|
|
13
|
-
border: none;
|
|
14
|
-
|
|
15
|
-
&::before {
|
|
16
|
-
width: 0 !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.ant-table-cell-fix-left-last {
|
|
20
|
-
border-right: 1px solid @borderColor;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ant-table-tbody > tr:not(:last-child) > td {
|
|
25
|
-
border-bottom: 1px solid @borderColor;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ant-table-tbody > tr > td {
|
|
29
|
-
line-height: 15px;
|
|
30
|
-
|
|
31
|
-
&.ant-table-cell-fix-left {
|
|
32
|
-
border-bottom: none;
|
|
33
|
-
|
|
34
|
-
&.ant-table-cell-fix-left-last {
|
|
35
|
-
border-right: 1px solid @borderColor;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ant-table-tbody > tr.ant-table-row:hover > td,
|
|
43
|
-
.ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
|
44
|
-
background: @hoverBgColor;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.biz-table-total {
|
|
48
|
-
color: @themeColor;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.biz-pagination {
|
|
52
|
-
.ant-select-item {
|
|
53
|
-
border-radius: 10px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ant-select-arrow {
|
|
57
|
-
height: 12px;
|
|
58
|
-
margin-top: -6px;
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
}
|
|
61
|
-
.ant-select-dropdown {
|
|
62
|
-
width: 100%;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ant-select-item-option-active:not(.ant-select-item-option-disabled, .ant-select-item-option-selected) {
|
|
66
|
-
color: @themeColor;
|
|
67
|
-
background: @hoverBgColor;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input)
|
|
71
|
-
.ant-select-selector,
|
|
72
|
-
.ant-select:not(.ant-select-disabled):hover .ant-select-selector {
|
|
73
|
-
color: @themeColor;
|
|
74
|
-
background: @hoverBgColor;
|
|
75
|
-
border-color: @themeColor;
|
|
76
|
-
box-shadow: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ant-pagination-item {
|
|
80
|
-
color: @fontColor3;
|
|
81
|
-
font-weight: 400;
|
|
82
|
-
background: #fafafb;
|
|
83
|
-
border: none;
|
|
84
|
-
border-radius: 4px;
|
|
85
|
-
|
|
86
|
-
&.ant-pagination-item-active {
|
|
87
|
-
background: @themeColor;
|
|
88
|
-
|
|
89
|
-
a {
|
|
90
|
-
color: #fff;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:not(.ant-pagination-item-active):hover {
|
|
95
|
-
a {
|
|
96
|
-
color: @themeColor;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.ant-pagination-prev,
|
|
102
|
-
.ant-pagination-next {
|
|
103
|
-
.ant-pagination-item-link {
|
|
104
|
-
color: @fontColor3;
|
|
105
|
-
font-weight: 400;
|
|
106
|
-
background: #fafafb;
|
|
107
|
-
border: none;
|
|
108
|
-
border-radius: 4px;
|
|
109
|
-
|
|
110
|
-
&:hover {
|
|
111
|
-
color: @themeColor;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.ant-select:not(.ant-select-customize-input) {
|
|
117
|
-
.ant-select-selector {
|
|
118
|
-
&:hover {
|
|
119
|
-
color: @themeColor;
|
|
120
|
-
background: @hoverBgColor;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.ant-pagination-options-quick-jumper input {
|
|
126
|
-
padding: 6px 12px;
|
|
127
|
-
color: @fontColor2;
|
|
128
|
-
background-color: #fff;
|
|
129
|
-
background-image: none;
|
|
130
|
-
border: 1px solid @borderColor;
|
|
131
|
-
border-radius: @boxRadius;
|
|
132
|
-
|
|
133
|
-
&:focus {
|
|
134
|
-
background: #fff !important;
|
|
135
|
-
border-color: @themeColor !important;
|
|
136
|
-
box-shadow: 0 0 0 4px #e8efff !important;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AttrGroup } from '../type';
|
|
3
|
-
import './style/group.less';
|
|
4
|
-
interface ConditionGroupProps {
|
|
5
|
-
/**
|
|
6
|
-
* @description 默认值
|
|
7
|
-
* @description.zh-CN
|
|
8
|
-
* @default
|
|
9
|
-
*/
|
|
10
|
-
defaultValue?: AttrGroup;
|
|
11
|
-
/**
|
|
12
|
-
* @description 属性配置项
|
|
13
|
-
* @description.zh-CN
|
|
14
|
-
* @default
|
|
15
|
-
*/
|
|
16
|
-
options?: object;
|
|
17
|
-
/**
|
|
18
|
-
* @description 如果是事件属性,则传事件id,多个用逗号隔开
|
|
19
|
-
* @default -
|
|
20
|
-
*/
|
|
21
|
-
eventId?: string | number;
|
|
22
|
-
/**
|
|
23
|
-
* @description 参数改变回调
|
|
24
|
-
* @description.zh-CN
|
|
25
|
-
* @default
|
|
26
|
-
*/
|
|
27
|
-
onChange?: (data: AttrGroup) => void;
|
|
28
|
-
}
|
|
29
|
-
declare const BizConditionGroup: React.FC<ConditionGroupProps>;
|
|
30
|
-
export default BizConditionGroup;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
|
|
3
|
-
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; }
|
|
4
|
-
|
|
5
|
-
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; }
|
|
6
|
-
|
|
7
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
-
|
|
9
|
-
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."); }
|
|
10
|
-
|
|
11
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
12
|
-
|
|
13
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
14
|
-
|
|
15
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
-
|
|
17
|
-
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."); }
|
|
18
|
-
|
|
19
|
-
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); }
|
|
20
|
-
|
|
21
|
-
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; }
|
|
22
|
-
|
|
23
|
-
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; }
|
|
24
|
-
|
|
25
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
|
-
|
|
27
|
-
import React, { useEffect, useState } from 'react';
|
|
28
|
-
import BizConditionItem from './conditionItem';
|
|
29
|
-
import './style/group.less';
|
|
30
|
-
import util from '../../utils/util';
|
|
31
|
-
|
|
32
|
-
var BizConditionGroup = function BizConditionGroup(props) {
|
|
33
|
-
var _props$defaultValue = props.defaultValue,
|
|
34
|
-
defaultValue = _props$defaultValue === void 0 ? {
|
|
35
|
-
relation: 'and',
|
|
36
|
-
conditions: []
|
|
37
|
-
} : _props$defaultValue,
|
|
38
|
-
options = props.options,
|
|
39
|
-
eventId = props.eventId,
|
|
40
|
-
_onChange = props.onChange;
|
|
41
|
-
|
|
42
|
-
var _useState = useState([]),
|
|
43
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
44
|
-
conditions = _useState2[0],
|
|
45
|
-
setConditions = _useState2[1];
|
|
46
|
-
|
|
47
|
-
var _useState3 = useState('and'),
|
|
48
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
49
|
-
operate = _useState4[0],
|
|
50
|
-
setOperate = _useState4[1];
|
|
51
|
-
|
|
52
|
-
useEffect(function () {
|
|
53
|
-
if (util.equal(conditions, defaultValue.conditions)) return;
|
|
54
|
-
setConditions(function () {
|
|
55
|
-
return defaultValue.conditions ? _toConsumableArray(defaultValue.conditions) : [];
|
|
56
|
-
});
|
|
57
|
-
setOperate(defaultValue.relation || 'and');
|
|
58
|
-
}, [defaultValue]);
|
|
59
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: "biz-attr-group-container"
|
|
61
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
className: "biz-attr-group-operate"
|
|
63
|
-
}, conditions.length > 1 && /*#__PURE__*/React.createElement("div", {
|
|
64
|
-
className: "biz-attr-operate",
|
|
65
|
-
onClick: function onClick(e) {
|
|
66
|
-
e.stopPropagation();
|
|
67
|
-
var relation = e.target.innerText === '且' ? 'and' : 'or';
|
|
68
|
-
setOperate(function () {
|
|
69
|
-
return relation;
|
|
70
|
-
});
|
|
71
|
-
_onChange && _onChange({
|
|
72
|
-
relation: relation,
|
|
73
|
-
conditions: conditions
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
77
|
-
className: operate === 'and' ? 'active' : ''
|
|
78
|
-
}, "\u4E14"), /*#__PURE__*/React.createElement("div", {
|
|
79
|
-
className: operate === 'or' ? 'active' : ''
|
|
80
|
-
}, "\u6216"))), /*#__PURE__*/React.createElement("div", {
|
|
81
|
-
className: "biz-attr-group-content"
|
|
82
|
-
}, conditions.map(function (item, index) {
|
|
83
|
-
return /*#__PURE__*/React.createElement(BizConditionItem, {
|
|
84
|
-
key: item.key || index,
|
|
85
|
-
options: options,
|
|
86
|
-
eventId: eventId,
|
|
87
|
-
defaultValue: item,
|
|
88
|
-
onDelete: function onDelete() {
|
|
89
|
-
setConditions(function (data) {
|
|
90
|
-
data.splice(index, 1);
|
|
91
|
-
_onChange && _onChange({
|
|
92
|
-
relation: operate,
|
|
93
|
-
conditions: _toConsumableArray(data)
|
|
94
|
-
});
|
|
95
|
-
return _toConsumableArray(data);
|
|
96
|
-
});
|
|
97
|
-
},
|
|
98
|
-
onChange: function onChange(data) {
|
|
99
|
-
setConditions(function (attr) {
|
|
100
|
-
attr[index] = _objectSpread({}, data);
|
|
101
|
-
_onChange && _onChange({
|
|
102
|
-
relation: operate,
|
|
103
|
-
conditions: _toConsumableArray(attr)
|
|
104
|
-
});
|
|
105
|
-
return _toConsumableArray(attr);
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
})));
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export default BizConditionGroup;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './style/index.less';
|
|
3
|
-
import { AttrItem } from '../type';
|
|
4
|
-
import { EventMetaProps } from '../../utils/type';
|
|
5
|
-
interface ConditionItemProps {
|
|
6
|
-
/**
|
|
7
|
-
* @description 默认选项
|
|
8
|
-
* @description.zh-CN
|
|
9
|
-
* @default -
|
|
10
|
-
*/
|
|
11
|
-
defaultValue?: AttrItem;
|
|
12
|
-
/**
|
|
13
|
-
* @description 属性的配置项
|
|
14
|
-
* @description.zh-CN
|
|
15
|
-
* @default -
|
|
16
|
-
*/
|
|
17
|
-
options?: EventMetaProps;
|
|
18
|
-
/**
|
|
19
|
-
* @description 如果是事件属性,则传事件id,多个用逗号隔开
|
|
20
|
-
* @default -
|
|
21
|
-
*/
|
|
22
|
-
eventId?: string | number;
|
|
23
|
-
/**
|
|
24
|
-
* @description 软件id
|
|
25
|
-
* @default -
|
|
26
|
-
*/
|
|
27
|
-
appId?: Number;
|
|
28
|
-
/**
|
|
29
|
-
* @description 平台id
|
|
30
|
-
* @default -
|
|
31
|
-
*/
|
|
32
|
-
platform?: Number;
|
|
33
|
-
/**
|
|
34
|
-
* @description 选中 option 时,调用此函数
|
|
35
|
-
* @description.zh-CN
|
|
36
|
-
* @default
|
|
37
|
-
*/
|
|
38
|
-
onChange?: (data: AttrItem) => void;
|
|
39
|
-
/**
|
|
40
|
-
* @description 删除属性
|
|
41
|
-
* @description.zh-CN
|
|
42
|
-
* @default -
|
|
43
|
-
*/
|
|
44
|
-
onDelete?: () => void;
|
|
45
|
-
}
|
|
46
|
-
declare const BizConditionItem: React.FC<ConditionItemProps>;
|
|
47
|
-
export default BizConditionItem;
|