@zgfe/business-lib 1.0.0-beta.1
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/README.md +12 -0
- package/es/analysisLayout/demo/index.d.ts +3 -0
- package/es/analysisLayout/demo/index.js +30 -0
- package/es/analysisLayout/demo/index.less +12 -0
- package/es/analysisLayout/index.d.ts +13 -0
- package/es/analysisLayout/index.js +153 -0
- package/es/analysisLayout/index.less +115 -0
- package/es/attributeSelector/data/env.d.ts +11 -0
- package/es/attributeSelector/data/env.js +181 -0
- package/es/attributeSelector/data/event.d.ts +237 -0
- package/es/attributeSelector/data/event.js +3483 -0
- package/es/attributeSelector/data/user.d.ts +22 -0
- package/es/attributeSelector/data/user.js +218 -0
- package/es/attributeSelector/demo/multi.d.ts +2 -0
- package/es/attributeSelector/demo/multi.js +39 -0
- package/es/attributeSelector/demo/multiForm.d.ts +2 -0
- package/es/attributeSelector/demo/multiForm.js +64 -0
- package/es/attributeSelector/demo/single.d.ts +2 -0
- package/es/attributeSelector/demo/single.js +43 -0
- package/es/attributeSelector/demo/singleForm.d.ts +2 -0
- package/es/attributeSelector/demo/singleForm.js +66 -0
- package/es/attributeSelector/group.d.ts +31 -0
- package/es/attributeSelector/group.js +225 -0
- package/es/attributeSelector/index.d.ts +110 -0
- package/es/attributeSelector/index.js +578 -0
- package/es/attributeSelector/index.less +172 -0
- package/es/chart/chartConfig.d.ts +28 -0
- package/es/chart/chartConfig.js +256 -0
- package/es/chart/color.d.ts +1 -0
- package/es/chart/color.js +1 -0
- package/es/chart/demo/bar.d.ts +2 -0
- package/es/chart/demo/bar.js +19 -0
- package/es/chart/demo/data.d.ts +11 -0
- package/es/chart/demo/data.js +37 -0
- package/es/chart/demo/index.d.ts +2 -0
- package/es/chart/demo/index.js +9 -0
- package/es/chart/demo/pie.d.ts +2 -0
- package/es/chart/demo/pie.js +30 -0
- package/es/chart/index.d.ts +63 -0
- package/es/chart/index.js +76 -0
- package/es/chart/index.less +38 -0
- package/es/chart/style/circle.svg +4 -0
- package/es/commonStyle/icon.less +147 -0
- package/es/commonStyle/index.less +171 -0
- package/es/commonStyle/select.less +101 -0
- package/es/commonStyle/theme.less +432 -0
- package/es/commonStyle/variable.less +124 -0
- package/es/datePicker/data.d.ts +9 -0
- package/es/datePicker/data.js +65 -0
- package/es/datePicker/demo/form.d.ts +2 -0
- package/es/datePicker/demo/form.js +53 -0
- package/es/datePicker/demo/index.d.ts +2 -0
- package/es/datePicker/demo/index.js +30 -0
- package/es/datePicker/index.d.ts +29 -0
- package/es/datePicker/index.js +207 -0
- package/es/datePicker/index.less +388 -0
- package/es/dialog/components/list.d.ts +15 -0
- package/es/dialog/components/list.js +57 -0
- package/es/dialog/components/selectToInput.d.ts +43 -0
- package/es/dialog/components/selectToInput.js +107 -0
- package/es/dialog/components/style/list.less +59 -0
- package/es/dialog/components/style/tab.less +61 -0
- package/es/dialog/components/tab.d.ts +9 -0
- package/es/dialog/components/tab.js +50 -0
- package/es/dialog/data/chart.d.ts +11 -0
- package/es/dialog/data/chart.js +62 -0
- package/es/dialog/demo/index.d.ts +2 -0
- package/es/dialog/demo/index.js +122 -0
- package/es/dialog/demo/index2.d.ts +2 -0
- package/es/dialog/demo/index2.js +79 -0
- package/es/dialog/demo/index3.d.ts +2 -0
- package/es/dialog/demo/index3.js +61 -0
- package/es/dialog/index.d.ts +68 -0
- package/es/dialog/index.js +188 -0
- package/es/dialog/style/index.less +70 -0
- package/es/eventSelector/cascade.less +120 -0
- package/es/eventSelector/demo/form.d.ts +2 -0
- package/es/eventSelector/demo/form.js +89 -0
- package/es/eventSelector/demo/index.d.ts +2 -0
- package/es/eventSelector/demo/index.js +69 -0
- package/es/eventSelector/demo/nodata.d.ts +2 -0
- package/es/eventSelector/demo/nodata.js +13 -0
- package/es/eventSelector/index.d.ts +27 -0
- package/es/eventSelector/index.js +390 -0
- package/es/eventSelector/type.d.ts +41 -0
- package/es/eventSelector/type.js +1 -0
- package/es/globalAttributes/demo/data/env.d.ts +11 -0
- package/es/globalAttributes/demo/data/env.js +181 -0
- package/es/globalAttributes/demo/data/event.d.ts +237 -0
- package/es/globalAttributes/demo/data/event.js +3483 -0
- package/es/globalAttributes/demo/data/user.d.ts +22 -0
- package/es/globalAttributes/demo/data/user.js +218 -0
- package/es/globalAttributes/demo/index.d.ts +2 -0
- package/es/globalAttributes/demo/index.js +50 -0
- package/es/globalAttributes/index.d.ts +46 -0
- package/es/globalAttributes/index.js +116 -0
- package/es/index.d.ts +23 -0
- package/es/index.js +25 -0
- package/es/multipleSelector/demo/index.d.ts +2 -0
- package/es/multipleSelector/demo/index.js +35 -0
- package/es/multipleSelector/index.d.ts +36 -0
- package/es/multipleSelector/index.js +109 -0
- package/es/multipleSelector/index.less +138 -0
- package/es/select/demo/index.d.ts +2 -0
- package/es/select/demo/index.js +22 -0
- package/es/select/index.d.ts +42 -0
- package/es/select/index.js +142 -0
- package/es/table/demo/data/color.d.ts +1 -0
- package/es/table/demo/data/color.js +1 -0
- package/es/table/demo/data/data.d.ts +11 -0
- package/es/table/demo/data/data.js +37 -0
- package/es/table/demo/data/table.d.ts +4 -0
- package/es/table/demo/data/table.js +37 -0
- package/es/table/demo/index.d.ts +3 -0
- package/es/table/demo/index.js +171 -0
- package/es/table/demo/index.less +8 -0
- package/es/table/demo/index2.d.ts +2 -0
- package/es/table/demo/index2.js +9 -0
- package/es/table/index.d.ts +32 -0
- package/es/table/index.js +80 -0
- package/es/table/index.less +102 -0
- package/es/targetConditionGroup/components/conditionGroup.d.ts +30 -0
- package/es/targetConditionGroup/components/conditionGroup.js +111 -0
- package/es/targetConditionGroup/components/conditionItem.d.ts +47 -0
- package/es/targetConditionGroup/components/conditionItem.js +259 -0
- package/es/targetConditionGroup/components/style/group.less +47 -0
- package/es/targetConditionGroup/components/style/index.less +16 -0
- package/es/targetConditionGroup/data/operates.d.ts +36 -0
- package/es/targetConditionGroup/data/operates.js +98 -0
- package/es/targetConditionGroup/demo/data/env.d.ts +11 -0
- package/es/targetConditionGroup/demo/data/env.js +181 -0
- package/es/targetConditionGroup/demo/data/event.d.ts +237 -0
- package/es/targetConditionGroup/demo/data/event.js +3483 -0
- package/es/targetConditionGroup/demo/data/user.d.ts +22 -0
- package/es/targetConditionGroup/demo/data/user.js +218 -0
- package/es/targetConditionGroup/demo/form.d.ts +2 -0
- package/es/targetConditionGroup/demo/form.js +96 -0
- package/es/targetConditionGroup/demo/index.d.ts +2 -0
- package/es/targetConditionGroup/demo/index.js +73 -0
- package/es/targetConditionGroup/demo/item.d.ts +2 -0
- package/es/targetConditionGroup/demo/item.js +5 -0
- package/es/targetConditionGroup/index.d.ts +53 -0
- package/es/targetConditionGroup/index.js +265 -0
- package/es/targetConditionGroup/index.less +65 -0
- package/es/targetConditionGroup/type.d.ts +50 -0
- package/es/targetConditionGroup/type.js +1 -0
- package/es/targetSelector/components/BizCascadeBox.d.ts +34 -0
- package/es/targetSelector/components/BizCascadeBox.js +213 -0
- package/es/targetSelector/components/BizEventNameEditBox.d.ts +20 -0
- package/es/targetSelector/components/BizEventNameEditBox.js +57 -0
- package/es/targetSelector/demo/form.d.ts +2 -0
- package/es/targetSelector/demo/form.js +133 -0
- package/es/targetSelector/demo/index.d.ts +2 -0
- package/es/targetSelector/demo/index.js +107 -0
- package/es/targetSelector/demo/nodata.d.ts +2 -0
- package/es/targetSelector/demo/nodata.js +13 -0
- package/es/targetSelector/index.d.ts +40 -0
- package/es/targetSelector/index.js +204 -0
- package/es/targetSelector/index.less +53 -0
- package/es/userGroup/demo/cluster.d.ts +3 -0
- package/es/userGroup/demo/cluster.js +102 -0
- package/es/userGroup/demo/index.d.ts +3 -0
- package/es/userGroup/demo/index.js +115 -0
- package/es/userGroup/demo/index.less +3 -0
- package/es/userGroup/index.d.ts +79 -0
- package/es/userGroup/index.js +134 -0
- package/es/userGroup/index.less +2 -0
- package/es/userGroup/userCluster.d.ts +63 -0
- package/es/userGroup/userCluster.js +254 -0
- package/es/utils/ajax.d.ts +7 -0
- package/es/utils/ajax.js +139 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.js +3 -0
- package/es/utils/type.d.ts +54 -0
- package/es/utils/type.js +1 -0
- package/es/utils/util.d.ts +67 -0
- package/es/utils/util.js +204 -0
- package/package.json +55 -0
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
@import (reference) './variable.less';
|
|
2
|
+
|
|
3
|
+
/* Select-文本框样式重构 */
|
|
4
|
+
.ant-select {
|
|
5
|
+
color: @fontColor;
|
|
6
|
+
font-size: @fontSize;
|
|
7
|
+
|
|
8
|
+
&.small {
|
|
9
|
+
.ant-select-selector {
|
|
10
|
+
height: @inputHeight;
|
|
11
|
+
|
|
12
|
+
.ant-select-selection-item {
|
|
13
|
+
line-height: @inputHeight;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.middle {
|
|
19
|
+
.ant-select-selector {
|
|
20
|
+
height: @inputHeightNormal;
|
|
21
|
+
line-height: @inputHeightNormal;
|
|
22
|
+
|
|
23
|
+
.ant-select-selection-item {
|
|
24
|
+
line-height: @inputHeightNormal;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.large {
|
|
30
|
+
.ant-select-selector {
|
|
31
|
+
height: @inputHeightLarge;
|
|
32
|
+
|
|
33
|
+
.ant-select-selection-item {
|
|
34
|
+
line-height: @inputHeightLarge;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ant-select-selection-item {
|
|
40
|
+
color: @fontColor;
|
|
41
|
+
|
|
42
|
+
span {
|
|
43
|
+
color: @fontColor;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.ant-select-borderless {
|
|
48
|
+
&.biz-gray .ant-select-selector {
|
|
49
|
+
background-color: @grayColor;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ant-select-arrow {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:not(.ant-select-customize-input) .ant-select-selector {
|
|
58
|
+
padding: @inputPadding;
|
|
59
|
+
background-color: #fff;
|
|
60
|
+
border: @boxBorder;
|
|
61
|
+
border-radius: @boxRadius;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:not(.ant-select-customize-input).ant-select-focused:not(.ant-select-disabled),
|
|
65
|
+
&:not(.ant-select-disabled, .ant-select-customize-input):hover,
|
|
66
|
+
&.ant-select-borderless:hover,
|
|
67
|
+
&.ant-select-borderless.ant-select-focused:not(.ant-select-disabled) {
|
|
68
|
+
.ant-select-selector {
|
|
69
|
+
color: @themeColor !important;
|
|
70
|
+
background: @hoverBgColor;
|
|
71
|
+
border-color: transparent;
|
|
72
|
+
box-shadow: none;
|
|
73
|
+
|
|
74
|
+
.ant-select-selection-item {
|
|
75
|
+
color: @themeColor;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ant-select-arrow {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
color: @themeColor;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ant-select-arrow {
|
|
87
|
+
height: 16px;
|
|
88
|
+
margin-top: -8px;
|
|
89
|
+
color: @iconColor;
|
|
90
|
+
font-size: 16px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ant-select-selection-placeholder {
|
|
94
|
+
color: @defaultGray;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Select-下拉框样式重构 */
|
|
98
|
+
.ant-select-dropdown {
|
|
99
|
+
width: @dropdownWidth !important;
|
|
100
|
+
max-height: @dropdownHeight !important;
|
|
101
|
+
padding: @dropdownPadding;
|
|
102
|
+
border-radius: @boxRadius2;
|
|
103
|
+
box-shadow: @boxShadow;
|
|
104
|
+
|
|
105
|
+
&.small {
|
|
106
|
+
width: @dropdownWidth2 !important;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ant-dropdown-menu {
|
|
111
|
+
width: @dropdownWidth2;
|
|
112
|
+
padding: @dropdownPadding;
|
|
113
|
+
border-radius: @boxRadius2;
|
|
114
|
+
box-shadow: @boxShadow;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ant-dropdown.large {
|
|
118
|
+
.ant-dropdown-menu {
|
|
119
|
+
width: @dropdownWidth3;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ant-dropdown-menu-submenu {
|
|
124
|
+
.ant-dropdown-menu {
|
|
125
|
+
width: 120px;
|
|
126
|
+
height: 208px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ant-dropdown-menu-submenu-vertical {
|
|
131
|
+
&:hover {
|
|
132
|
+
.box-hover();
|
|
133
|
+
|
|
134
|
+
.ant-dropdown-menu-submenu-title {
|
|
135
|
+
color: @themeColor;
|
|
136
|
+
background: transparent;
|
|
137
|
+
|
|
138
|
+
.ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon {
|
|
139
|
+
color: @themeColor;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ant-dropdown-menu-submenu-title {
|
|
145
|
+
padding: 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ant-select-item-empty {
|
|
150
|
+
color: @fontColor;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ant-select-item,
|
|
154
|
+
.ant-list-item,
|
|
155
|
+
.ant-dropdown-menu-item,
|
|
156
|
+
.ant-dropdown-menu-submenu-vertical,
|
|
157
|
+
.ant-cascader-menu-item {
|
|
158
|
+
height: @selectItemHeight;
|
|
159
|
+
padding: @selectItemPadding;
|
|
160
|
+
color: @fontColor;
|
|
161
|
+
font-weight: @fontWeight;
|
|
162
|
+
font-size: @fontSize;
|
|
163
|
+
line-height: 20px;
|
|
164
|
+
border-radius: @boxRadius2;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ant-select-item-option-active:not(.ant-select-item-option-disabled),
|
|
168
|
+
.ant-cascader-menu-item:not(.ant-cascader-menu-item-disabled, .ant-cascader-menu-item-active):hover {
|
|
169
|
+
color: @hoverColor;
|
|
170
|
+
background-color: @hoverBgColor;
|
|
171
|
+
|
|
172
|
+
.biz-icon {
|
|
173
|
+
color: @hoverColor;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ant-select-item-option-selected:not(.ant-select-item-option-disabled),
|
|
178
|
+
.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled) {
|
|
179
|
+
color: @activeColor;
|
|
180
|
+
font-weight: @fontWeight;
|
|
181
|
+
background-color: @activeBgColor;
|
|
182
|
+
|
|
183
|
+
.biz-icon {
|
|
184
|
+
color: @activeColor;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.ant-select-item-option-disabled {
|
|
189
|
+
color: @disableColor;
|
|
190
|
+
background: #fff;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.ant-cascader-menu-item-active {
|
|
194
|
+
.ant-cascader-menu-item-expand-icon {
|
|
195
|
+
color: @activeColor;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover {
|
|
200
|
+
color: @activeColor;
|
|
201
|
+
background-color: @activeBgColor;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ant-dropdown-menu-item {
|
|
205
|
+
&:not(.box-active):hover {
|
|
206
|
+
.box-hover();
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.box-active:hover {
|
|
210
|
+
.box-active();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ant-dropdown-menu-item-icon {
|
|
214
|
+
margin-right: 15px;
|
|
215
|
+
font-size: @iconSize;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* input-search/clear */
|
|
220
|
+
|
|
221
|
+
.ant-input-affix-wrapper {
|
|
222
|
+
height: 40px;
|
|
223
|
+
line-height: 40px;
|
|
224
|
+
background-color: @grayColor;
|
|
225
|
+
border-color: transparent;
|
|
226
|
+
border-radius: @boxRadius;
|
|
227
|
+
|
|
228
|
+
&.biz-search-box {
|
|
229
|
+
margin-bottom: 12px;
|
|
230
|
+
border-radius: @boxRadius2;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.ant-input {
|
|
234
|
+
height: 100%;
|
|
235
|
+
padding: 0;
|
|
236
|
+
background-color: transparent;
|
|
237
|
+
border: none;
|
|
238
|
+
outline: none;
|
|
239
|
+
box-shadow: none;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&:not(.ant-input-affix-wrapper-disabled):hover {
|
|
243
|
+
background-color: #fff;
|
|
244
|
+
border-color: @themeColor;
|
|
245
|
+
box-shadow: 0 0 0 4px #e8efff;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&:focus,
|
|
249
|
+
&.ant-input-affix-wrapper-focused {
|
|
250
|
+
background: #fff;
|
|
251
|
+
border-color: @themeColor;
|
|
252
|
+
box-shadow: 0 0 0 4px #e8efff;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ant-input-suffix span {
|
|
256
|
+
color: @iconColor;
|
|
257
|
+
font-size: 16px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.ant-input-clear-icon span {
|
|
261
|
+
width: 16px;
|
|
262
|
+
height: 16px;
|
|
263
|
+
background-color: transparent;
|
|
264
|
+
border-radius: 50%;
|
|
265
|
+
|
|
266
|
+
&:hover {
|
|
267
|
+
background: @grayColor;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* 高亮 */
|
|
273
|
+
.biz-light-height {
|
|
274
|
+
color: @themeColor;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.ant-select-item-option-selected {
|
|
278
|
+
.biz-light-height {
|
|
279
|
+
color: inherit;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.ant-tooltip {
|
|
284
|
+
.ant-tooltip-inner {
|
|
285
|
+
border-radius: @boxRadius2;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&.biz-tooltip {
|
|
289
|
+
width: auto;
|
|
290
|
+
|
|
291
|
+
.ant-tooltip-inner {
|
|
292
|
+
padding: 4px;
|
|
293
|
+
color: @fontColor;
|
|
294
|
+
background-color: #fff;
|
|
295
|
+
border-radius: 4px;
|
|
296
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.ant-tooltip-arrow-content {
|
|
300
|
+
background-color: #fff;
|
|
301
|
+
--antd-arrow-background-color: #fff;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.biz-search-title {
|
|
307
|
+
// .ant-form-vertical .ant-form-item-label {
|
|
308
|
+
margin-bottom: 12px;
|
|
309
|
+
padding: 0 !important;
|
|
310
|
+
color: @titleColor;
|
|
311
|
+
font-weight: 600;
|
|
312
|
+
font-size: @fontSize;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.ant-form-item-explain-error {
|
|
316
|
+
font-size: 12px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* radio */
|
|
320
|
+
|
|
321
|
+
.ant-radio {
|
|
322
|
+
color: @fontColor;
|
|
323
|
+
|
|
324
|
+
&.ant-radio-checked {
|
|
325
|
+
.ant-radio-inner {
|
|
326
|
+
background: #fff;
|
|
327
|
+
border: 5px solid @themeColor;
|
|
328
|
+
|
|
329
|
+
&::after {
|
|
330
|
+
background-color: #fff;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.ant-radio-inner {
|
|
336
|
+
width: 18px;
|
|
337
|
+
height: 18px;
|
|
338
|
+
border-radius: 50%;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ant-radio-wrapper:hover .ant-radio,
|
|
343
|
+
.ant-radio:hover .ant-radio-inner,
|
|
344
|
+
.ant-radio-input:focus + .ant-radio-inner {
|
|
345
|
+
border-color: @themeColor;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.ant-radio-input:focus + .ant-radio-inner {
|
|
349
|
+
box-shadow: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ant-radio-button-wrapper {
|
|
353
|
+
border: 1px solid @borderColor;
|
|
354
|
+
|
|
355
|
+
&:first-child {
|
|
356
|
+
border-left: 1px solid @borderColor;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&:not(:first-child)::before {
|
|
360
|
+
background-color: @borderColor;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
&:not(.ant-radio-button-wrapper-checked, .ant-radio-button-wrapper-disabled):hover {
|
|
364
|
+
.box-hover();
|
|
365
|
+
|
|
366
|
+
.biz-icon {
|
|
367
|
+
color: @themeColor;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
|
373
|
+
color: @themeColor;
|
|
374
|
+
background: @hoverBgColor;
|
|
375
|
+
border-color: @themeColor;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
|
|
379
|
+
background-color: @themeColor;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {
|
|
383
|
+
border-color: @themeColor;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,
|
|
387
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {
|
|
388
|
+
color: @themeColor;
|
|
389
|
+
border-color: @themeColor;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before,
|
|
393
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {
|
|
394
|
+
background-color: @hoverBgColor;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {
|
|
398
|
+
box-shadow: none;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.ant-radio-button-wrapper-disabled {
|
|
402
|
+
color: @disableColor;
|
|
403
|
+
background: #fafafb;
|
|
404
|
+
border-color: @borderColor;
|
|
405
|
+
cursor: not-allowed;
|
|
406
|
+
|
|
407
|
+
.biz-icon {
|
|
408
|
+
color: @disableColor;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ant-radio-button-wrapper-disabled:first-child,
|
|
413
|
+
.ant-radio-button-wrapper-disabled:hover {
|
|
414
|
+
color: @disableColor;
|
|
415
|
+
background: #fafafb;
|
|
416
|
+
border-color: @borderColor;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.ant-radio-button-wrapper-disabled:first-child {
|
|
420
|
+
border-color: @borderColor;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
|
|
424
|
+
color: @disableColor;
|
|
425
|
+
background: #fafafb;
|
|
426
|
+
border-color: @borderColor;
|
|
427
|
+
box-shadow: none;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {
|
|
431
|
+
border-right-color: @themeColor;
|
|
432
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/** 全局变量 **/
|
|
2
|
+
@themeColor: #165dff;
|
|
3
|
+
@borderColor: #ecedf0;
|
|
4
|
+
@hoverBgColor: #e8efff;
|
|
5
|
+
/*中性色/默认灰*/
|
|
6
|
+
@defaultGray: #9797af;
|
|
7
|
+
/* 字体颜色 */
|
|
8
|
+
@fontColor: #021429;
|
|
9
|
+
/* 中性色/次要-信息2 */
|
|
10
|
+
@fontColor2: #242541;
|
|
11
|
+
/* 中性色/次要-信息3 */
|
|
12
|
+
@fontColor3: #5f6085;
|
|
13
|
+
|
|
14
|
+
/* 中性色/gray-8背景色 */
|
|
15
|
+
@grayBgColor: #fafafb;
|
|
16
|
+
/*中性色/置灰-信息线框5*/
|
|
17
|
+
/* 灰色*/
|
|
18
|
+
@grayColor: #f6f6f6;
|
|
19
|
+
@disableColor: #cacdd4;
|
|
20
|
+
/*辅助色/错误/底色*/
|
|
21
|
+
@errorColorHover: #fed5d1;
|
|
22
|
+
@errorColor: #fb5547;
|
|
23
|
+
/*box-shadow*/
|
|
24
|
+
@boxShadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
25
|
+
|
|
26
|
+
/* 标题颜色 */
|
|
27
|
+
@titleColor: @fontColor3;
|
|
28
|
+
/* 图标颜色 */
|
|
29
|
+
@iconColor: @fontColor3;
|
|
30
|
+
/* layout icon颜色 */
|
|
31
|
+
@layoutIconColor: @fontColor2;
|
|
32
|
+
/* hover背景色 */
|
|
33
|
+
// @hoverBgColor: @hoverColor;
|
|
34
|
+
|
|
35
|
+
/* hover字体颜色 */
|
|
36
|
+
@hoverColor: @themeColor;
|
|
37
|
+
/* active背景色 */
|
|
38
|
+
@activeBgColor: @themeColor;
|
|
39
|
+
/* active字体颜色 */
|
|
40
|
+
@activeColor: #ffffff;
|
|
41
|
+
/* 删除hover背景色 */
|
|
42
|
+
@deleteHoverBgColor: @errorColorHover;
|
|
43
|
+
/* 删除hover字体色 */
|
|
44
|
+
@deleteHoverColor: @errorColor;
|
|
45
|
+
/* 按钮 */
|
|
46
|
+
@btnPrimaryBgColor: @themeColor;
|
|
47
|
+
@btnPrimaryFontColor: #ffffff;
|
|
48
|
+
/* border */
|
|
49
|
+
@boxBorder: 1px solid @borderColor;
|
|
50
|
+
|
|
51
|
+
/* 字体大小 */
|
|
52
|
+
@fontSize: 14px;
|
|
53
|
+
/* 图标大小 */
|
|
54
|
+
@iconSize: 16px;
|
|
55
|
+
/* 字体weight */
|
|
56
|
+
@fontWeight: 400;
|
|
57
|
+
/*下拉框宽度*/
|
|
58
|
+
@dropdownWidth: 284px;
|
|
59
|
+
/* 分析维度, 关系 */
|
|
60
|
+
@dropdownWidth2: 120px;
|
|
61
|
+
/*更多操作*/
|
|
62
|
+
@dropdownWidth3: 200px;
|
|
63
|
+
/* 指标下拉框= 200+284*/
|
|
64
|
+
@dropdownHeight: 400px;
|
|
65
|
+
|
|
66
|
+
/*输入框,下拉框高度*/
|
|
67
|
+
@inputHeight: 32px;
|
|
68
|
+
@inputHeightNormal: 40px;
|
|
69
|
+
@inputHeightLarge: 48px;
|
|
70
|
+
|
|
71
|
+
/*下拉选项高度*/
|
|
72
|
+
@selectItemHeight: 40px;
|
|
73
|
+
/*下拉选项内边距*/
|
|
74
|
+
@selectItemPadding: 10px 8px;
|
|
75
|
+
/* 下拉框外框 */
|
|
76
|
+
@dropdownPadding: 8px;
|
|
77
|
+
/* padding */
|
|
78
|
+
@layoutPadding1: 24px;
|
|
79
|
+
@layoutPadding2: 32px;
|
|
80
|
+
@inputPadding: 0px 8px;
|
|
81
|
+
/* 边框圆角 */
|
|
82
|
+
@boxRadius: 4px;
|
|
83
|
+
/* 特殊圆角 */
|
|
84
|
+
@boxRadius2: 10px;
|
|
85
|
+
/* icon圆角 */
|
|
86
|
+
@iconRadius: 3px;
|
|
87
|
+
|
|
88
|
+
.boxBg {
|
|
89
|
+
color: @fontColor;
|
|
90
|
+
background-color: #fff;
|
|
91
|
+
|
|
92
|
+
&:hover:not(.box-active, .box-disabled) {
|
|
93
|
+
color: @hoverColor;
|
|
94
|
+
background-color: @hoverBgColor;
|
|
95
|
+
|
|
96
|
+
.biz-icon {
|
|
97
|
+
color: @hoverColor;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.box-hover {
|
|
103
|
+
color: @hoverColor;
|
|
104
|
+
background-color: @hoverBgColor;
|
|
105
|
+
|
|
106
|
+
.biz-icon {
|
|
107
|
+
color: @hoverColor;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.box-active {
|
|
112
|
+
color: @activeColor !important;
|
|
113
|
+
background-color: @activeBgColor;
|
|
114
|
+
|
|
115
|
+
.biz-icon {
|
|
116
|
+
color: @activeColor;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.box-disabled {
|
|
121
|
+
color: @fontColor !important;
|
|
122
|
+
background-color: #f5f5f5;
|
|
123
|
+
cursor: not-allowed !important;
|
|
124
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export var allDate = [{
|
|
2
|
+
unit: '按小时',
|
|
3
|
+
timeList: ['昨天', '前天']
|
|
4
|
+
}, {
|
|
5
|
+
unit: '按天',
|
|
6
|
+
timeList: ['7天', '14天', '30天']
|
|
7
|
+
}, {
|
|
8
|
+
unit: '按周',
|
|
9
|
+
timeList: ['4周', '8周', '12周']
|
|
10
|
+
}, {
|
|
11
|
+
unit: '按月',
|
|
12
|
+
timeList: ['1个月', '2个月', '3个月']
|
|
13
|
+
}];
|
|
14
|
+
export var dateType = [{
|
|
15
|
+
label: '按小时',
|
|
16
|
+
value: 'hour'
|
|
17
|
+
}, {
|
|
18
|
+
label: '按天',
|
|
19
|
+
value: 'day'
|
|
20
|
+
}, {
|
|
21
|
+
label: '按周',
|
|
22
|
+
value: 'week'
|
|
23
|
+
}, {
|
|
24
|
+
label: '按月',
|
|
25
|
+
value: 'month'
|
|
26
|
+
}];
|
|
27
|
+
export var dateList = {
|
|
28
|
+
hour: [{
|
|
29
|
+
value: '昨天',
|
|
30
|
+
count: 1
|
|
31
|
+
}, {
|
|
32
|
+
value: '前天',
|
|
33
|
+
count: 2
|
|
34
|
+
}],
|
|
35
|
+
day: [{
|
|
36
|
+
value: '7天',
|
|
37
|
+
count: 7
|
|
38
|
+
}, {
|
|
39
|
+
value: '14天',
|
|
40
|
+
count: 14
|
|
41
|
+
}, {
|
|
42
|
+
value: '30天',
|
|
43
|
+
count: 30
|
|
44
|
+
}],
|
|
45
|
+
week: [{
|
|
46
|
+
value: '4周',
|
|
47
|
+
count: 4
|
|
48
|
+
}, {
|
|
49
|
+
value: '8周',
|
|
50
|
+
count: 8
|
|
51
|
+
}, {
|
|
52
|
+
value: '12周',
|
|
53
|
+
count: 12
|
|
54
|
+
}],
|
|
55
|
+
month: [{
|
|
56
|
+
value: '1个月',
|
|
57
|
+
count: 1
|
|
58
|
+
}, {
|
|
59
|
+
value: '2个月',
|
|
60
|
+
count: 2
|
|
61
|
+
}, {
|
|
62
|
+
value: '3个月',
|
|
63
|
+
count: 3
|
|
64
|
+
}]
|
|
65
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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 React, { useState } from 'react';
|
|
14
|
+
import { Button, Form } from 'antd';
|
|
15
|
+
import { BizDatePicker } from 'business-lib';
|
|
16
|
+
export default (function () {
|
|
17
|
+
var _Form$useForm = Form.useForm(),
|
|
18
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
19
|
+
form = _Form$useForm2[0];
|
|
20
|
+
|
|
21
|
+
var _useState = useState({
|
|
22
|
+
time: {}
|
|
23
|
+
}),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
formData = _useState2[0],
|
|
26
|
+
setFormData = _useState2[1];
|
|
27
|
+
|
|
28
|
+
var onFinish = function onFinish(values) {
|
|
29
|
+
setFormData(values);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var onFinishFailed = function onFinishFailed(errorInfo) {
|
|
33
|
+
console.log('Failed:', errorInfo);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form, {
|
|
37
|
+
form: form,
|
|
38
|
+
onFinish: onFinish,
|
|
39
|
+
onFinishFailed: onFinishFailed,
|
|
40
|
+
initialValues: formData
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
42
|
+
label: "",
|
|
43
|
+
name: "time"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(BizDatePicker, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
45
|
+
wrapperCol: {
|
|
46
|
+
offset: 8,
|
|
47
|
+
span: 16
|
|
48
|
+
}
|
|
49
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
50
|
+
type: "primary",
|
|
51
|
+
htmlType: "submit"
|
|
52
|
+
}, "Submit"))), /*#__PURE__*/React.createElement("p", null, JSON.stringify(formData)));
|
|
53
|
+
});
|