@zgfe/business-lib 1.0.27-adanalysis.0 → 1.0.27-adanalysis.2
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/addToPanel/index.js +33 -16
- package/es/assets/iconfont/demo_index.html +647 -3
- package/es/assets/iconfont/iconfont.css +115 -3
- package/es/assets/iconfont/iconfont.js +37 -33
- package/es/assets/iconfont/iconfont.json +196 -0
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/assets/styles/resetAntd.less +7 -2
- package/es/attrConditions/components/stringList.js +1 -1
- package/es/attrConditions/components/valuesList.js +7 -5
- package/es/attrConditions/group.js +4 -4
- package/es/attrConditions/types.d.ts +1 -0
- package/es/attributeSelector/styles/index.less +31 -2
- package/es/attributeSelector/util.js +9 -1
- package/es/chart/demo/bar.js +3 -4
- package/es/chart/demo/data/data.d.ts +7 -0
- package/es/chart/demo/data/data.js +10 -0
- package/es/chart/demo/data/data3.d.ts +0 -2
- package/es/chart/demo/data/data3.js +15 -574
- package/es/chart/demo/map.js +1 -2
- package/es/chart/index.js +2 -2
- package/es/chart/util/chartOptionConfig.d.ts +1 -54
- package/es/chart/util/chartOptionConfig.js +13 -7
- package/es/chart/util/formatData.js +2 -1
- package/es/chart/util/formatOption.js +7 -23
- package/es/chart/util/mapUtil.d.ts +2 -2
- package/es/chart/util/mapUtil.js +59 -75
- package/es/cycleTime/demo/disable.d.ts +2 -0
- package/es/cycleTime/demo/disable.js +17 -0
- package/es/cycleTime/index.d.ts +1 -0
- package/es/cycleTime/index.js +12 -5
- package/es/cycleTime/month.d.ts +1 -0
- package/es/cycleTime/month.js +6 -3
- package/es/cycleTime/styles/month.less +12 -0
- package/es/datePicker/utils.js +3 -0
- package/es/eventSelector/index.js +2 -2
- package/es/eventSelector/listPanel.js +20 -5
- package/es/eventSelector/types.d.ts +1 -1
- package/es/layout/analysisLayout/demo/index.js +5 -1
- package/es/layout/analysisLayout/index.js +5 -5
- package/es/layout/analysisLayout/index.less +0 -6
- package/es/select/demo/multiple.js +3 -2
- package/es/select/handle.js +50 -12
- package/es/select/index.js +44 -9
- package/es/select/overlay.d.ts +1 -1
- package/es/select/overlay.js +4 -5
- package/es/select/styles/handle.less +50 -28
- package/es/select/types.d.ts +6 -0
- package/es/targetConditionGroup/index.js +3 -1
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/index.js +13 -0
- package/es/targetSelector/styles/index.less +1 -0
- package/es/userCondition/conditions/styles/eventCondition.less +1 -1
- package/es/userCondition/conditions/styles/tagsCondition.less +1 -1
- package/es/userCondition/conditions/tagsCondition.js +26 -13
- package/es/userCondition/conditions/textDesc.js +29 -8
- package/es/userCondition/demo/index.js +5 -228
- package/es/userCondition/demo/mockData.d.ts +85 -0
- package/es/userCondition/demo/mockData.js +546 -0
- package/es/userCondition/types.d.ts +21 -3
- package/es/userCondition/util.d.ts +23 -1
- package/es/userCondition/util.js +39 -5
- package/es/userTagsSelector/cascaderOverlay.js +132 -42
- package/es/userTagsSelector/demo/index.js +12 -5
- package/es/userTagsSelector/groups/groupOption.js +3 -2
- package/es/userTagsSelector/groups/index.js +18 -11
- package/es/userTagsSelector/groups/styles/option.less +6 -1
- package/es/userTagsSelector/index.js +17 -3
- package/es/userTagsSelector/multipleCheckPanel/checkOption.js +2 -1
- package/es/userTagsSelector/multipleCheckPanel/index.js +7 -16
- package/es/userTagsSelector/styles/cascaderOverlay.less +9 -4
- package/es/userTagsSelector/types.d.ts +1 -10
- package/es/userTagsSelector/util.d.ts +1 -1
- package/es/userTagsSelector/util.js +6 -2
- package/es/utils/ajax.js +5 -1
- package/package.json +3 -3
|
@@ -5,6 +5,202 @@
|
|
|
5
5
|
"css_prefix_text": "",
|
|
6
6
|
"description": "诸葛业务平台",
|
|
7
7
|
"glyphs": [
|
|
8
|
+
{
|
|
9
|
+
"icon_id": "31661450",
|
|
10
|
+
"name": "下载",
|
|
11
|
+
"font_class": "xiazai1",
|
|
12
|
+
"unicode": "e7b9",
|
|
13
|
+
"unicode_decimal": 59321
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"icon_id": "31659188",
|
|
17
|
+
"name": "复制",
|
|
18
|
+
"font_class": "fuzhi",
|
|
19
|
+
"unicode": "e6d7",
|
|
20
|
+
"unicode_decimal": 59095
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"icon_id": "31659190",
|
|
24
|
+
"name": "字符串",
|
|
25
|
+
"font_class": "zifuchuan",
|
|
26
|
+
"unicode": "e6d9",
|
|
27
|
+
"unicode_decimal": 59097
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"icon_id": "31659191",
|
|
31
|
+
"name": "日期",
|
|
32
|
+
"font_class": "riqi",
|
|
33
|
+
"unicode": "e6da",
|
|
34
|
+
"unicode_decimal": 59098
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"icon_id": "31659192",
|
|
38
|
+
"name": "数值",
|
|
39
|
+
"font_class": "shuzhi",
|
|
40
|
+
"unicode": "e6db",
|
|
41
|
+
"unicode_decimal": 59099
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"icon_id": "31623999",
|
|
45
|
+
"name": "left",
|
|
46
|
+
"font_class": "left",
|
|
47
|
+
"unicode": "e6d2",
|
|
48
|
+
"unicode_decimal": 59090
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"icon_id": "31624000",
|
|
52
|
+
"name": "inner",
|
|
53
|
+
"font_class": "inner",
|
|
54
|
+
"unicode": "e6d3",
|
|
55
|
+
"unicode_decimal": 59091
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"icon_id": "31624006",
|
|
59
|
+
"name": "right",
|
|
60
|
+
"font_class": "right",
|
|
61
|
+
"unicode": "e6d4",
|
|
62
|
+
"unicode_decimal": 59092
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"icon_id": "31624012",
|
|
66
|
+
"name": "all",
|
|
67
|
+
"font_class": "all",
|
|
68
|
+
"unicode": "e6d5",
|
|
69
|
+
"unicode_decimal": 59093
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"icon_id": "31393133",
|
|
73
|
+
"name": "删除桶",
|
|
74
|
+
"font_class": "shanchutong",
|
|
75
|
+
"unicode": "e6b1",
|
|
76
|
+
"unicode_decimal": 59057
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"icon_id": "31393376",
|
|
80
|
+
"name": "删除",
|
|
81
|
+
"font_class": "shanchu2",
|
|
82
|
+
"unicode": "e6b2",
|
|
83
|
+
"unicode_decimal": 59058
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"icon_id": "31393404",
|
|
87
|
+
"name": "重新加载",
|
|
88
|
+
"font_class": "zhongxinjiazai",
|
|
89
|
+
"unicode": "e6b3",
|
|
90
|
+
"unicode_decimal": 59059
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"icon_id": "31393455",
|
|
94
|
+
"name": "调整大小-左右",
|
|
95
|
+
"font_class": "tiaozhengdaxiao-zuoyou",
|
|
96
|
+
"unicode": "e6b4",
|
|
97
|
+
"unicode_decimal": 59060
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"icon_id": "31393456",
|
|
101
|
+
"name": "调整大小-上下",
|
|
102
|
+
"font_class": "tiaozhengdaxiao-shangxia",
|
|
103
|
+
"unicode": "e6b5",
|
|
104
|
+
"unicode_decimal": 59061
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"icon_id": "31393505",
|
|
108
|
+
"name": "拖拽",
|
|
109
|
+
"font_class": "tuozhuai",
|
|
110
|
+
"unicode": "e6b6",
|
|
111
|
+
"unicode_decimal": 59062
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"icon_id": "31393091",
|
|
115
|
+
"name": "更多操作",
|
|
116
|
+
"font_class": "gengduocaozuo2",
|
|
117
|
+
"unicode": "e6b0",
|
|
118
|
+
"unicode_decimal": 59056
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"icon_id": "31393024",
|
|
122
|
+
"name": "数据集业务",
|
|
123
|
+
"font_class": "shujujiyewu",
|
|
124
|
+
"unicode": "e6ad",
|
|
125
|
+
"unicode_decimal": 59053
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"icon_id": "31393063",
|
|
129
|
+
"name": "重命名",
|
|
130
|
+
"font_class": "zhongmingming",
|
|
131
|
+
"unicode": "e6ae",
|
|
132
|
+
"unicode_decimal": 59054
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"icon_id": "31393075",
|
|
136
|
+
"name": "编辑",
|
|
137
|
+
"font_class": "bianji1",
|
|
138
|
+
"unicode": "e6af",
|
|
139
|
+
"unicode_decimal": 59055
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"icon_id": "31393004",
|
|
143
|
+
"name": "输出",
|
|
144
|
+
"font_class": "shuchu",
|
|
145
|
+
"unicode": "e6ac",
|
|
146
|
+
"unicode_decimal": 59052
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"icon_id": "31392973",
|
|
150
|
+
"name": "数据拆分",
|
|
151
|
+
"font_class": "shujuchaifen",
|
|
152
|
+
"unicode": "e6a9",
|
|
153
|
+
"unicode_decimal": 59049
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"icon_id": "31392994",
|
|
157
|
+
"name": "聚合",
|
|
158
|
+
"font_class": "juhe",
|
|
159
|
+
"unicode": "e6ab",
|
|
160
|
+
"unicode_decimal": 59051
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"icon_id": "31392962",
|
|
164
|
+
"name": "列转列",
|
|
165
|
+
"font_class": "liezhuanlie",
|
|
166
|
+
"unicode": "e6a8",
|
|
167
|
+
"unicode_decimal": 59048
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"icon_id": "31392944",
|
|
171
|
+
"name": "行转列",
|
|
172
|
+
"font_class": "hangzhuanlie",
|
|
173
|
+
"unicode": "e6a7",
|
|
174
|
+
"unicode_decimal": 59047
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"icon_id": "31392910",
|
|
178
|
+
"name": "字段设置",
|
|
179
|
+
"font_class": "ziduanshezhi",
|
|
180
|
+
"unicode": "e6a6",
|
|
181
|
+
"unicode_decimal": 59046
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"icon_id": "31392809",
|
|
185
|
+
"name": "连接",
|
|
186
|
+
"font_class": "lianjie",
|
|
187
|
+
"unicode": "e6a4",
|
|
188
|
+
"unicode_decimal": 59044
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"icon_id": "31392856",
|
|
192
|
+
"name": "合并",
|
|
193
|
+
"font_class": "hebing",
|
|
194
|
+
"unicode": "e6a5",
|
|
195
|
+
"unicode_decimal": 59045
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"icon_id": "31389407",
|
|
199
|
+
"name": "全屏展示",
|
|
200
|
+
"font_class": "quanpingzhanshi",
|
|
201
|
+
"unicode": "e6a3",
|
|
202
|
+
"unicode_decimal": 59043
|
|
203
|
+
},
|
|
8
204
|
{
|
|
9
205
|
"icon_id": "31360676",
|
|
10
206
|
"name": "收藏",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// 输入框(带icon)
|
|
6
6
|
.ant-input-affix-wrapper {
|
|
7
7
|
background-color: @background-color-base!important;
|
|
8
|
-
border-color:
|
|
8
|
+
border-color: @background-color-base !important;
|
|
9
9
|
border-radius: @border-radius-small!important;
|
|
10
10
|
|
|
11
11
|
.ant-input {
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
|
|
35
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
|
|
36
|
+
border-color: @error-color!important;
|
|
37
|
+
}
|
|
34
38
|
// 输入框
|
|
35
39
|
.ant-input {
|
|
36
40
|
background-color: @background-color-base!important;
|
|
@@ -142,9 +146,10 @@
|
|
|
142
146
|
display: none !important;
|
|
143
147
|
}
|
|
144
148
|
|
|
149
|
+
&,
|
|
145
150
|
&.ant-picker-range {
|
|
146
151
|
background-color: @background-color-base;
|
|
147
|
-
border:
|
|
152
|
+
border-color: @background-color-base;
|
|
148
153
|
}
|
|
149
154
|
}
|
|
150
155
|
|
|
@@ -176,7 +176,7 @@ var StringList = function StringList(props) {
|
|
|
176
176
|
className: "".concat(classPrefix, "-multi-select"),
|
|
177
177
|
value: current,
|
|
178
178
|
multiple: true,
|
|
179
|
-
enableCreate:
|
|
179
|
+
enableCreate: false,
|
|
180
180
|
theme: props.theme,
|
|
181
181
|
size: "middle",
|
|
182
182
|
disable: props.operate === OperateTypes.IsNull || props.operate === OperateTypes.IsNotNull,
|
|
@@ -42,8 +42,8 @@ var ValuesList = function ValuesList(props) {
|
|
|
42
42
|
|
|
43
43
|
var _useState5 = useState(true),
|
|
44
44
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
isFirst = _useState6[0],
|
|
46
|
+
setIsFirst = _useState6[1];
|
|
47
47
|
|
|
48
48
|
useEffect(function () {
|
|
49
49
|
if (defaultValue) {
|
|
@@ -55,16 +55,18 @@ var ValuesList = function ValuesList(props) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
setIsFirst(false);
|
|
59
59
|
}, []);
|
|
60
60
|
useEffect(function () {
|
|
61
|
+
if (isFirst) return;
|
|
62
|
+
|
|
61
63
|
if (operate === OperateTypes.Absolute || operate === OperateTypes.Relative) {
|
|
62
64
|
var data = operate === OperateTypes.Absolute ? initValue : ['30', '1'];
|
|
63
65
|
onChange(data);
|
|
64
66
|
}
|
|
65
67
|
}, [operate]);
|
|
66
68
|
useEffect(function () {
|
|
67
|
-
if (!
|
|
69
|
+
if (!isFirst && (attr === null || attr === void 0 ? void 0 : attr.type) !== PropType.DATE) {
|
|
68
70
|
onChange([]);
|
|
69
71
|
setCurrent([]);
|
|
70
72
|
}
|
|
@@ -115,7 +117,7 @@ var ValuesList = function ValuesList(props) {
|
|
|
115
117
|
return current && current > moment().endOf('day');
|
|
116
118
|
};
|
|
117
119
|
|
|
118
|
-
if (!attr || !operate ||
|
|
120
|
+
if (!attr || !operate || isFirst) {
|
|
119
121
|
return /*#__PURE__*/React.createElement(BizSelect, {
|
|
120
122
|
disable: true,
|
|
121
123
|
className: "".concat(classPrefix, "-multi-select"),
|
|
@@ -53,7 +53,7 @@ var BizConditionGroup = function BizConditionGroup(props, ref) {
|
|
|
53
53
|
var data = props.defaultValue || props.value;
|
|
54
54
|
|
|
55
55
|
if (data) {
|
|
56
|
-
if (data.relation) setRelation(data.relation);
|
|
56
|
+
if (data.relation) setRelation(props.onlyAnd ? 'and' : data.relation);
|
|
57
57
|
|
|
58
58
|
if (data.conditions) {
|
|
59
59
|
setConditions(function () {
|
|
@@ -77,7 +77,7 @@ var BizConditionGroup = function BizConditionGroup(props, ref) {
|
|
|
77
77
|
},
|
|
78
78
|
setValue: function setValue(data) {
|
|
79
79
|
if (data) {
|
|
80
|
-
if (data.relation) setRelation(data.relation);
|
|
80
|
+
if (data.relation) setRelation(props.onlyAnd ? 'and' : data.relation);
|
|
81
81
|
|
|
82
82
|
if (data.conditions) {
|
|
83
83
|
setConditions(function () {
|
|
@@ -169,8 +169,8 @@ var BizConditionGroup = function BizConditionGroup(props, ref) {
|
|
|
169
169
|
className: "".concat(classPrefix, "-group-operate"),
|
|
170
170
|
onClick: onClickRelation
|
|
171
171
|
}, /*#__PURE__*/React.createElement("div", {
|
|
172
|
-
className: "".concat(classPrefix, "-group-operate-text ").concat(relation === 'and' ? 'active' : '')
|
|
173
|
-
}, "\u4E14"), /*#__PURE__*/React.createElement("div", {
|
|
172
|
+
className: "".concat(classPrefix, "-group-operate-text ").concat(relation === 'and' || props.onlyAnd ? 'active' : '')
|
|
173
|
+
}, "\u4E14"), !props.onlyAnd && /*#__PURE__*/React.createElement("div", {
|
|
174
174
|
className: "".concat(classPrefix, "-group-operate-text ").concat(relation === 'or' ? 'active' : '')
|
|
175
175
|
}, "\u6216"))), /*#__PURE__*/React.createElement("div", {
|
|
176
176
|
className: "".concat(classPrefix, "-item-container")
|
|
@@ -36,6 +36,7 @@ export declare namespace AttrConditionTypes {
|
|
|
36
36
|
interface GroupProp extends BasicAttrTypes {
|
|
37
37
|
defaultValue?: GroupValue;
|
|
38
38
|
value?: GroupValue;
|
|
39
|
+
onlyAnd?: boolean;
|
|
39
40
|
onChange?: (value: GroupValue) => void;
|
|
40
41
|
onConditionsCount?: (value: number) => void;
|
|
41
42
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
@import '../../assets/styles/inner.less';
|
|
2
|
+
|
|
2
3
|
.biz-attr-select {
|
|
3
4
|
&-handle {
|
|
4
5
|
display: flex;
|
|
5
6
|
flex-direction: row;
|
|
6
7
|
.__select-handle();
|
|
8
|
+
|
|
7
9
|
&:hover .biz-attr-select-del-icon {
|
|
8
10
|
display: flex;
|
|
9
11
|
align-items: center;
|
|
10
12
|
justify-content: center;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
15
|
+
|
|
13
16
|
&-del-icon {
|
|
14
17
|
display: none;
|
|
15
18
|
flex: none;
|
|
@@ -21,48 +24,69 @@
|
|
|
21
24
|
.__error-hover();
|
|
22
25
|
}
|
|
23
26
|
}
|
|
27
|
+
|
|
24
28
|
&-drowdown {
|
|
25
29
|
.__select-panel();
|
|
30
|
+
|
|
26
31
|
&.nodata {
|
|
27
32
|
.__select-nodata();
|
|
28
33
|
}
|
|
29
34
|
}
|
|
35
|
+
|
|
30
36
|
&-anchor-panel {
|
|
31
37
|
padding: 12px 0;
|
|
38
|
+
|
|
32
39
|
.ant-anchor {
|
|
33
40
|
display: flex;
|
|
34
41
|
flex-direction: row;
|
|
42
|
+
|
|
35
43
|
.ant-anchor-ink::before {
|
|
36
44
|
width: 0;
|
|
37
45
|
}
|
|
46
|
+
|
|
38
47
|
.ant-anchor-link {
|
|
39
48
|
padding: 0;
|
|
49
|
+
|
|
40
50
|
&:last-of-type .ant-btn {
|
|
41
51
|
margin-right: 0;
|
|
42
52
|
}
|
|
43
53
|
}
|
|
54
|
+
|
|
44
55
|
.ant-btn {
|
|
45
56
|
margin-right: 8px;
|
|
46
57
|
}
|
|
58
|
+
|
|
47
59
|
.ant-anchor-link-active .ant-btn {
|
|
48
|
-
|
|
60
|
+
&,
|
|
61
|
+
&:focus {
|
|
62
|
+
.__default-hover();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ant-btn:focus {
|
|
67
|
+
color: @text-color;
|
|
68
|
+
border-color: @border-color-base;
|
|
49
69
|
}
|
|
50
70
|
}
|
|
51
71
|
}
|
|
72
|
+
|
|
52
73
|
&-container {
|
|
53
|
-
max-height:
|
|
74
|
+
max-height: 224px;
|
|
54
75
|
overflow-x: hidden;
|
|
55
76
|
overflow-y: auto;
|
|
56
77
|
}
|
|
78
|
+
|
|
57
79
|
&-nodata {
|
|
58
80
|
.__select-nodata();
|
|
59
81
|
}
|
|
82
|
+
|
|
60
83
|
&-group {
|
|
61
84
|
position: relative;
|
|
62
85
|
height: 32px;
|
|
63
86
|
padding: 0 @padding-sm;
|
|
64
87
|
color: @text-color-secondary;
|
|
65
88
|
line-height: 32px;
|
|
89
|
+
|
|
66
90
|
&::before {
|
|
67
91
|
position: absolute;
|
|
68
92
|
top: 9px;
|
|
@@ -73,6 +97,7 @@
|
|
|
73
97
|
border-radius: 10px;
|
|
74
98
|
content: '';
|
|
75
99
|
}
|
|
100
|
+
|
|
76
101
|
& > span {
|
|
77
102
|
position: relative;
|
|
78
103
|
display: inline-block;
|
|
@@ -82,6 +107,7 @@
|
|
|
82
107
|
.__default-overflow();
|
|
83
108
|
}
|
|
84
109
|
}
|
|
110
|
+
|
|
85
111
|
&-split {
|
|
86
112
|
position: absolute;
|
|
87
113
|
top: 18px;
|
|
@@ -89,12 +115,15 @@
|
|
|
89
115
|
height: 0;
|
|
90
116
|
border-bottom: 1px solid @border-color-base;
|
|
91
117
|
}
|
|
118
|
+
|
|
92
119
|
&-option {
|
|
93
120
|
.__select-option();
|
|
121
|
+
|
|
94
122
|
&:not(.active, :hover, .disabled) .biz-attr-select-highlight {
|
|
95
123
|
color: @primary-color;
|
|
96
124
|
}
|
|
97
125
|
}
|
|
126
|
+
|
|
98
127
|
&-option-icon {
|
|
99
128
|
margin-right: @margin-xs;
|
|
100
129
|
}
|
|
@@ -14,6 +14,8 @@ export default function convertAttributeData(store) {
|
|
|
14
14
|
name: group_.groupName,
|
|
15
15
|
eventList: []
|
|
16
16
|
};
|
|
17
|
+
var list = [];
|
|
18
|
+
var markList = [];
|
|
17
19
|
group_.eventList.forEach(function (e) {
|
|
18
20
|
if (e.is_delete) return;
|
|
19
21
|
var event = {
|
|
@@ -39,8 +41,14 @@ export default function convertAttributeData(store) {
|
|
|
39
41
|
eventHidden: e.event_hidden,
|
|
40
42
|
marked: Boolean(e.mark_type)
|
|
41
43
|
};
|
|
42
|
-
|
|
44
|
+
|
|
45
|
+
if (event.marked) {
|
|
46
|
+
markList.push(event);
|
|
47
|
+
} else {
|
|
48
|
+
list.push(event);
|
|
49
|
+
}
|
|
43
50
|
});
|
|
51
|
+
group.eventList = [].concat(markList, list);
|
|
44
52
|
(_res$eventGroupList = res.eventGroupList) === null || _res$eventGroupList === void 0 ? void 0 : _res$eventGroupList.push(group);
|
|
45
53
|
});
|
|
46
54
|
res.envPropList = (_store$envPropList = store.envPropList) === null || _store$envPropList === void 0 ? void 0 : _store$envPropList.map(function (prop) {
|
package/es/chart/demo/bar.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BizChart } from '@zgfe/business-lib';
|
|
3
|
-
import chartData from './data/data';
|
|
3
|
+
import chartData, { barData } from './data/data';
|
|
4
4
|
export default (function () {
|
|
5
5
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizChart, {
|
|
6
|
-
data:
|
|
6
|
+
data: barData,
|
|
7
7
|
type: "bar",
|
|
8
|
-
reverseXAxis: true
|
|
9
|
-
showList: ['付款成功', '搜索商品', '查看商品详情']
|
|
8
|
+
reverseXAxis: true
|
|
10
9
|
}), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(BizChart, {
|
|
11
10
|
data: chartData,
|
|
12
11
|
type: "bar",
|
|
@@ -25,4 +25,14 @@ export default {
|
|
|
25
25
|
names: ['申请退货'],
|
|
26
26
|
values: [5, 11, 14, 9, 8, 14, 9, 10, 12, 12, 14, 16, 12, 10]
|
|
27
27
|
}]
|
|
28
|
+
};
|
|
29
|
+
export var barData = {
|
|
30
|
+
x_axis: ['2022-08-23|2022-08-30'],
|
|
31
|
+
series: [{
|
|
32
|
+
names: ['北京市', '所有用户', '查看商品'],
|
|
33
|
+
values: [1560]
|
|
34
|
+
}, {
|
|
35
|
+
names: ['北京市', '最近7天活跃用户', '查看商品'],
|
|
36
|
+
values: [1560]
|
|
37
|
+
}]
|
|
28
38
|
};
|