@zgfe/business-lib 1.2.50 → 1.2.51-heyh.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.
@@ -5,6 +5,237 @@
5
5
  "css_prefix_text": "",
6
6
  "description": "诸葛业务平台",
7
7
  "glyphs": [
8
+ {
9
+ "icon_id": "41442688",
10
+ "name": "quanping 1",
11
+ "font_class": "a-quanping1",
12
+ "unicode": "e64f",
13
+ "unicode_decimal": 58959
14
+ },
15
+ {
16
+ "icon_id": "41214661",
17
+ "name": "鸿蒙",
18
+ "font_class": "hongmeng",
19
+ "unicode": "e64a",
20
+ "unicode_decimal": 58954
21
+ },
22
+ {
23
+ "icon_id": "41358802",
24
+ "name": "帮助中心",
25
+ "font_class": "bangzhuzhongxin",
26
+ "unicode": "e64b",
27
+ "unicode_decimal": 58955
28
+ },
29
+ {
30
+ "icon_id": "41358804",
31
+ "name": "历史记录",
32
+ "font_class": "lishijilu",
33
+ "unicode": "e64c",
34
+ "unicode_decimal": 58956
35
+ },
36
+ {
37
+ "icon_id": "41358803",
38
+ "name": "小屏幕展示",
39
+ "font_class": "xiaopingmuzhanshi",
40
+ "unicode": "e64d",
41
+ "unicode_decimal": 58957
42
+ },
43
+ {
44
+ "icon_id": "41358801",
45
+ "name": "新建话题",
46
+ "font_class": "xinjianhuati",
47
+ "unicode": "e64e",
48
+ "unicode_decimal": 58958
49
+ },
50
+ {
51
+ "icon_id": "41262540",
52
+ "name": "时间",
53
+ "font_class": "shijian",
54
+ "unicode": "e7cd",
55
+ "unicode_decimal": 59341
56
+ },
57
+ {
58
+ "icon_id": "41262538",
59
+ "name": "日历",
60
+ "font_class": "rili",
61
+ "unicode": "e7ce",
62
+ "unicode_decimal": 59342
63
+ },
64
+ {
65
+ "icon_id": "41262539",
66
+ "name": "日历-2",
67
+ "font_class": "rili-2",
68
+ "unicode": "e7cc",
69
+ "unicode_decimal": 59340
70
+ },
71
+ {
72
+ "icon_id": "41211242",
73
+ "name": "其他",
74
+ "font_class": "qita",
75
+ "unicode": "e649",
76
+ "unicode_decimal": 58953
77
+ },
78
+ {
79
+ "icon_id": "41170258",
80
+ "name": "结束",
81
+ "font_class": "jieshu",
82
+ "unicode": "e7cb",
83
+ "unicode_decimal": 59339
84
+ },
85
+ {
86
+ "icon_id": "41168988",
87
+ "name": "消息通知",
88
+ "font_class": "xiaoxitongzhi",
89
+ "unicode": "e7ca",
90
+ "unicode_decimal": 59338
91
+ },
92
+ {
93
+ "icon_id": "41169079",
94
+ "name": "审批",
95
+ "font_class": "shenpi",
96
+ "unicode": "e7c9",
97
+ "unicode_decimal": 59337
98
+ },
99
+ {
100
+ "icon_id": "41153342",
101
+ "name": "上传图片",
102
+ "font_class": "shangchuantupian",
103
+ "unicode": "e648",
104
+ "unicode_decimal": 58952
105
+ },
106
+ {
107
+ "icon_id": "41153408",
108
+ "name": "插入指标",
109
+ "font_class": "charuzhibiao",
110
+ "unicode": "e644",
111
+ "unicode_decimal": 58948
112
+ },
113
+ {
114
+ "icon_id": "41153407",
115
+ "name": "添加标题",
116
+ "font_class": "tianjiabiaoti",
117
+ "unicode": "e645",
118
+ "unicode_decimal": 58949
119
+ },
120
+ {
121
+ "icon_id": "41153406",
122
+ "name": "添加文本",
123
+ "font_class": "tianjiawenben",
124
+ "unicode": "e646",
125
+ "unicode_decimal": 58950
126
+ },
127
+ {
128
+ "icon_id": "41153405",
129
+ "name": "添加图片",
130
+ "font_class": "tianjiatupian",
131
+ "unicode": "e647",
132
+ "unicode_decimal": 58951
133
+ },
134
+ {
135
+ "icon_id": "41047713",
136
+ "name": "js 2",
137
+ "font_class": "a-js2",
138
+ "unicode": "e63f",
139
+ "unicode_decimal": 58943
140
+ },
141
+ {
142
+ "icon_id": "41047712",
143
+ "name": "微信小程序",
144
+ "font_class": "weixinxiaochengxu",
145
+ "unicode": "e640",
146
+ "unicode_decimal": 58944
147
+ },
148
+ {
149
+ "icon_id": "41047711",
150
+ "name": "ios",
151
+ "font_class": "ios1",
152
+ "unicode": "e641",
153
+ "unicode_decimal": 58945
154
+ },
155
+ {
156
+ "icon_id": "41047710",
157
+ "name": "android2",
158
+ "font_class": "android1",
159
+ "unicode": "e642",
160
+ "unicode_decimal": 58946
161
+ },
162
+ {
163
+ "icon_id": "41047709",
164
+ "name": "服务器",
165
+ "font_class": "fuwuqi",
166
+ "unicode": "e643",
167
+ "unicode_decimal": 58947
168
+ },
169
+ {
170
+ "icon_id": "40911670",
171
+ "name": "菜单-用户营销",
172
+ "font_class": "yonghuyingxiao",
173
+ "unicode": "e63a",
174
+ "unicode_decimal": 58938
175
+ },
176
+ {
177
+ "icon_id": "40624563",
178
+ "name": "菜单-理财业务分析",
179
+ "font_class": "licaiyewufenxi",
180
+ "unicode": "e7c8",
181
+ "unicode_decimal": 59336
182
+ },
183
+ {
184
+ "icon_id": "40533696",
185
+ "name": "菜单-信用卡业务",
186
+ "font_class": "xinyongkayewu",
187
+ "unicode": "e7c6",
188
+ "unicode_decimal": 59334
189
+ },
190
+ {
191
+ "icon_id": "40533695",
192
+ "name": "菜单-信用卡分期",
193
+ "font_class": "xinyongkafenqi",
194
+ "unicode": "e7c7",
195
+ "unicode_decimal": 59335
196
+ },
197
+ {
198
+ "icon_id": "39969156",
199
+ "name": "LTV 分析",
200
+ "font_class": "a-LTVfenxi",
201
+ "unicode": "e7c5",
202
+ "unicode_decimal": 59333
203
+ },
204
+ {
205
+ "icon_id": "39962950",
206
+ "name": "导航二级箭头",
207
+ "font_class": "daohangerjijiantou",
208
+ "unicode": "e632",
209
+ "unicode_decimal": 58930
210
+ },
211
+ {
212
+ "icon_id": "39962949",
213
+ "name": "导航一级箭头收起",
214
+ "font_class": "daohangyijijiantoushouqi",
215
+ "unicode": "e634",
216
+ "unicode_decimal": 58932
217
+ },
218
+ {
219
+ "icon_id": "39962948",
220
+ "name": "角色交换",
221
+ "font_class": "jiaosejiaohuan",
222
+ "unicode": "e635",
223
+ "unicode_decimal": 58933
224
+ },
225
+ {
226
+ "icon_id": "39962947",
227
+ "name": "导航一级箭头展开",
228
+ "font_class": "daohangyijijiantouzhankai",
229
+ "unicode": "e636",
230
+ "unicode_decimal": 58934
231
+ },
232
+ {
233
+ "icon_id": "39799478",
234
+ "name": "菜单-存款业务分析",
235
+ "font_class": "cunkuanyewu",
236
+ "unicode": "e7c4",
237
+ "unicode_decimal": 59332
238
+ },
8
239
  {
9
240
  "icon_id": "39634357",
10
241
  "name": "埋点",
@@ -924,8 +1155,8 @@
924
1155
  },
925
1156
  {
926
1157
  "icon_id": "31623999",
927
- "name": "left",
928
- "font_class": "left",
1158
+ "name": "数据集-left",
1159
+ "font_class": "shujuji_left",
929
1160
  "unicode": "e6d2",
930
1161
  "unicode_decimal": 59090
931
1162
  },
@@ -938,8 +1169,8 @@
938
1169
  },
939
1170
  {
940
1171
  "icon_id": "31624006",
941
- "name": "right",
942
- "font_class": "right",
1172
+ "name": "数据集-right",
1173
+ "font_class": "shujuji_right",
943
1174
  "unicode": "e6d4",
944
1175
  "unicode_decimal": 59092
945
1176
  },
Binary file
Binary file
Binary file
package/es/index.d.ts CHANGED
@@ -46,8 +46,9 @@ import { chartColors } from './chart/util/color';
46
46
  import useBizStore from './hooks/useBizStore';
47
47
  import useChanged from './hooks/useChanged';
48
48
  import useSubject from './hooks/useSubject';
49
+ import BizPlatformSelector from './platformSelector';
49
50
  import DataSetGroup from './dataSetGroup';
50
- export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, };
51
+ export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizPlatformSelector, };
51
52
  export type { UserGroupTypes } from './userGroup/types';
52
53
  export type { BizProductConditionT } from './productCondition/types';
53
54
  export type { BizSelectTypes } from './select/types';
package/es/index.js CHANGED
@@ -45,5 +45,6 @@ import { chartColors } from './chart/util/color';
45
45
  import useBizStore from './hooks/useBizStore';
46
46
  import useChanged from './hooks/useChanged';
47
47
  import useSubject from './hooks/useSubject';
48
+ import BizPlatformSelector from './platformSelector';
48
49
  import DataSetGroup from './dataSetGroup';
49
- export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup };
50
+ export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizPlatformSelector };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { BizPlatformSelector } from '@zgfe/business-lib';
3
+ import InnerDemo from '../../demoWrapper/innerDemo';
4
+ export default (function () {
5
+ return /*#__PURE__*/React.createElement(InnerDemo, null, /*#__PURE__*/React.createElement("div", {
6
+ style: {
7
+ padding: '16px',
8
+ border: '1px solid #eee',
9
+ background: '#ddd'
10
+ }
11
+ }, /*#__PURE__*/React.createElement(BizPlatformSelector, {
12
+ onChange: function onChange(value) {
13
+ console.log('>>>>>>>>回传值', value);
14
+ }
15
+ })));
16
+ });
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { platItemProp } from './types';
3
+ import './styles/index.less';
4
+ declare const BizPlatformSelector: React.FC<{
5
+ onChange: (val: {
6
+ key: number;
7
+ value: string;
8
+ }) => void;
9
+ defaultValue?: {
10
+ key: number;
11
+ value: string;
12
+ };
13
+ value?: number;
14
+ valueOption?: platItemProp[];
15
+ }>;
16
+ export default BizPlatformSelector;
@@ -0,0 +1,44 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useState, useEffect } from 'react';
8
+ import { BizSelect } from '@zgfe/business-lib';
9
+ import { platformOption } from './util';
10
+ import './styles/index.less';
11
+ var BizPlatformSelector = function BizPlatformSelector(props) {
12
+ var classPrefix = 'biz-platform-selector';
13
+ var _useState = useState(),
14
+ _useState2 = _slicedToArray(_useState, 2),
15
+ currentValue = _useState2[0],
16
+ setCurrentValue = _useState2[1];
17
+ useEffect(function () {
18
+ if (props.value) {
19
+ var selectValue = platformOption.find(function (item) {
20
+ return item.key === props.value;
21
+ });
22
+ setCurrentValue(selectValue || platformOption[0]);
23
+ }
24
+ }, [props.value]);
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ className: classPrefix
27
+ }, /*#__PURE__*/React.createElement(BizSelect, {
28
+ className: "".concat(classPrefix, "-select"),
29
+ overlayClassName: "".concat(classPrefix, "-select-overlay"),
30
+ options: props.valueOption && props.valueOption.length ? props.valueOption : platformOption,
31
+ overlayWidth: 134,
32
+ keyField: "key",
33
+ labelField: "value",
34
+ value: currentValue,
35
+ defaultValue: props.defaultValue ? props.defaultValue : {
36
+ value: '全部平台',
37
+ key: 0
38
+ },
39
+ onChange: function onChange(val) {
40
+ props.onChange(val);
41
+ }
42
+ }));
43
+ };
44
+ export default BizPlatformSelector;
@@ -0,0 +1,22 @@
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-platform-selector {
3
+ width: 134px;
4
+ border: 1px solid #f2f3f4;
5
+ border-radius: 4px;
6
+ .biz-platform-selector-select .biz-select-handle-input {
7
+ background-color: #fff;
8
+ .biz-select-handle-content .biz-select-handle-icon .bsicon {
9
+ color: #9aa1a9;
10
+ }
11
+ }
12
+ }
13
+ .biz-platform-selector-select-overlay .biz-select-list-panel .biz-select-option {
14
+ .biz-select-option-icon .bsicon {
15
+ color: #9aa1a9;
16
+ }
17
+ &:hover {
18
+ .biz-select-option-icon .bsicon {
19
+ color: #165dff;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export interface platItemProp {
3
+ key: number;
4
+ value: string;
5
+ icon?: ReactNode;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { platItemProp } from './types';
2
+ export declare const platformOption: platItemProp[];
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { IconFont } from '@zgfe/business-lib';
3
+ export var platformOption = [{
4
+ key: 0,
5
+ value: '全部平台'
6
+ }, {
7
+ key: 1,
8
+ value: 'Android',
9
+ icon: /*#__PURE__*/React.createElement(IconFont, {
10
+ type: "android1",
11
+ size: 16
12
+ })
13
+ }, {
14
+ key: 2,
15
+ value: 'IOS',
16
+ icon: /*#__PURE__*/React.createElement(IconFont, {
17
+ type: "ios1",
18
+ size: 16
19
+ })
20
+ }, {
21
+ key: 3,
22
+ value: 'JS',
23
+ icon: /*#__PURE__*/React.createElement(IconFont, {
24
+ type: "a-js2",
25
+ size: 16
26
+ })
27
+ }, {
28
+ key: 4,
29
+ value: '微信小程序',
30
+ icon: /*#__PURE__*/React.createElement(IconFont, {
31
+ type: "weixinxiaochengxu",
32
+ size: 16
33
+ })
34
+ }, {
35
+ key: 5,
36
+ value: '服务端',
37
+ icon: /*#__PURE__*/React.createElement(IconFont, {
38
+ type: "fuwuqi",
39
+ size: 16
40
+ })
41
+ }, {
42
+ key: -1,
43
+ value: '其他'
44
+ }];
@@ -21,6 +21,7 @@ import moment from 'moment';
21
21
  import { BizUserConditionContext } from '..';
22
22
  import request from '../../utils/ajax';
23
23
  import Apis from '../../constants/apis';
24
+ import IconFont from '../../icon/iconFont';
24
25
  var classPrefix = 'biz-user-condition-cdp';
25
26
  var CdpConditionItem = function CdpConditionItem(props) {
26
27
  var _useContext = useContext(BizUserConditionContext),
@@ -263,7 +264,13 @@ var CdpConditionItem = function CdpConditionItem(props) {
263
264
  keyField: "metaDatasetId",
264
265
  value: dataset,
265
266
  onChange: onTableChange
266
- }), dataset ? /*#__PURE__*/React.createElement("div", {
267
+ }), /*#__PURE__*/React.createElement("a", {
268
+ target: "_blank",
269
+ href: "https://docs.zhugeio.com/datamanager/detail_data.html"
270
+ }, /*#__PURE__*/React.createElement(IconFont, {
271
+ type: "bangzhu",
272
+ className: "".concat(classPrefix, "-select-tips")
273
+ })), dataset ? /*#__PURE__*/React.createElement("div", {
267
274
  className: "".concat(classPrefix, "-item")
268
275
  }, /*#__PURE__*/React.createElement(BizSelect, {
269
276
  className: "".concat(classPrefix, "-select-field"),
@@ -21,6 +21,7 @@ import moment from 'moment';
21
21
  import { BizUserConditionContext } from '..';
22
22
  import request from '../../utils/ajax';
23
23
  import Apis from '../../constants/apis';
24
+ import IconFont from '../../icon/iconFont';
24
25
  var classPrefix = 'biz-user-condition-cdp-csh';
25
26
  var CdpConditionItem = function CdpConditionItem(props) {
26
27
  var _useContext = useContext(BizUserConditionContext),
@@ -407,7 +408,13 @@ var CdpConditionItem = function CdpConditionItem(props) {
407
408
  keyField: "metaDatasetId",
408
409
  value: subDataset,
409
410
  onChange: onSubTableChange
410
- }), /*#__PURE__*/React.createElement("div", {
411
+ }), /*#__PURE__*/React.createElement("a", {
412
+ target: "_blank",
413
+ href: "https://docs.zhugeio.com/datamanager/detail_data.html"
414
+ }, /*#__PURE__*/React.createElement(IconFont, {
415
+ type: "bangzhu",
416
+ className: "".concat(classPrefix, "-select-tips")
417
+ })), /*#__PURE__*/React.createElement("div", {
411
418
  className: "".concat(classPrefix, "-item")
412
419
  }, /*#__PURE__*/React.createElement(BizSelect, {
413
420
  className: "".concat(classPrefix, "-select-field"),
@@ -464,7 +471,13 @@ var CdpConditionItem = function CdpConditionItem(props) {
464
471
  keyField: "metaDatasetId",
465
472
  value: dataset,
466
473
  onChange: onTableChange
467
- }), dataset ? /*#__PURE__*/React.createElement("div", {
474
+ }), /*#__PURE__*/React.createElement("a", {
475
+ target: "_blank",
476
+ href: "https://docs.zhugeio.com/datamanager/detail_data.html"
477
+ }, /*#__PURE__*/React.createElement(IconFont, {
478
+ type: "bangzhu",
479
+ className: "".concat(classPrefix, "-select-tips")
480
+ })), dataset ? /*#__PURE__*/React.createElement("div", {
468
481
  className: "".concat(classPrefix, "-item")
469
482
  }, /*#__PURE__*/React.createElement(BizSelect, {
470
483
  className: "".concat(classPrefix, "-select-field"),
@@ -21,6 +21,12 @@
21
21
  &-select-dataset {
22
22
  width: 255px;
23
23
  }
24
+ &-select-tips {
25
+ height: 32px;
26
+ margin-left: 8px;
27
+ color: #9aa1a9;
28
+ line-height: 32px;
29
+ }
24
30
  &-select-field {
25
31
  width: 129px;
26
32
  }
@@ -27,6 +27,12 @@
27
27
  &-select-dataset {
28
28
  width: 150px;
29
29
  }
30
+ &-select-tips {
31
+ height: 32px;
32
+ margin-left: 8px;
33
+ color: #9aa1a9;
34
+ line-height: 32px;
35
+ }
30
36
  &-select-field {
31
37
  width: 129px;
32
38
  }
@@ -45,7 +45,8 @@ var Overlay = function Overlay(_ref2) {
45
45
  var _useContext = useContext(BizGlobalDataContext),
46
46
  userGroupList = _useContext.userGroupList,
47
47
  showUserGroupModal = _useContext.showUserGroupModal,
48
- setUserGroupList = _useContext.setUserGroupList;
48
+ setUserGroupList = _useContext.setUserGroupList,
49
+ currentApp = _useContext.currentApp;
49
50
  var _useState5 = useState(),
50
51
  _useState6 = _slicedToArray(_useState5, 2),
51
52
  currentGroup = _useState6[0],
@@ -96,10 +97,10 @@ var Overlay = function Overlay(_ref2) {
96
97
  className: "".concat(classPrefix, "-typelist")
97
98
  }, [{
98
99
  type: 'userGroup',
99
- label: '用户分群'
100
+ label: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5206\u7FA4")
100
101
  }, {
101
102
  type: 'tag',
102
- label: '用户标签'
103
+ label: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u6807\u7B7E")
103
104
  }].map(function (item) {
104
105
  return /*#__PURE__*/React.createElement("div", {
105
106
  key: item.type,
@@ -123,13 +124,13 @@ var Overlay = function Overlay(_ref2) {
123
124
  }, /*#__PURE__*/React.createElement(Search, {
124
125
  show: true,
125
126
  onChange: onSearch,
126
- placeholder: "\u641C\u7D22\u7528\u6237\u7FA4\u540D\u79F0"
127
+ placeholder: "\u641C\u7D22\u5206\u7FA4\u540D\u79F0"
127
128
  }), /*#__PURE__*/React.createElement("a", {
128
129
  className: "".concat(classPrefix, "-add"),
129
130
  onClick: onClickAdd
130
131
  }, /*#__PURE__*/React.createElement(IconFont, {
131
132
  type: "zengjia"
132
- }), "\u65B0\u5EFA\u7528\u6237\u7FA4")), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
133
+ }), "\u6DFB\u52A0\u5206\u7FA4")), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
133
134
  data: showList || [],
134
135
  itemHeight: 32,
135
136
  itemKey: "id",
@@ -8,11 +8,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  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; }
9
9
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import React, { useEffect } from 'react';
11
+ import React, { useEffect, useContext } from 'react';
12
12
  import './styles/index.less';
13
13
  import { Space, Tooltip } from 'antd';
14
14
  import BizUserGroup from '../userGroup';
15
15
  import IconFont from '../icon/iconFont';
16
+ import BizGlobalDataContext from '../context';
16
17
  import _ from 'lodash';
17
18
  var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
18
19
  var max = _ref.max,
@@ -21,6 +22,8 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
21
22
  enableTags = _ref.enableTags,
22
23
  title = _ref.title,
23
24
  placeholder = _ref.placeholder;
25
+ var _useContext = useContext(BizGlobalDataContext),
26
+ currentApp = _useContext.currentApp;
24
27
  var classPrefix = 'biz-user-group-header';
25
28
  var _React$useState = React.useState([]),
26
29
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -55,7 +58,7 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
55
58
  className: classPrefix
56
59
  }, /*#__PURE__*/React.createElement("div", {
57
60
  className: "".concat(classPrefix, "-title")
58
- }, title || '分析用户群'), /*#__PURE__*/React.createElement(Space, {
61
+ }, title || (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '分析用户群' : '主体分群'), /*#__PURE__*/React.createElement(Space, {
59
62
  size: 16,
60
63
  className: "".concat(classPrefix, "-container")
61
64
  }, [tempValue.map(function (item, i) {
@@ -74,10 +77,10 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
74
77
  list[i].value = val;
75
78
  setTempValue(list);
76
79
  },
77
- placeholder: placeholder
80
+ placeholder: placeholder || '请选择分群'
78
81
  });
79
82
  })], /*#__PURE__*/React.createElement(Tooltip, {
80
- title: "\u6DFB\u52A0\u7528\u6237\u7FA4\u505A\u5BF9\u6BD4"
83
+ title: "\u6DFB\u52A0\u5206\u7FA4\u505A\u5BF9\u6BD4"
81
84
  }, /*#__PURE__*/React.createElement(IconFont, {
82
85
  type: "tianjia",
83
86
  className: "".concat(classPrefix, "-add ").concat(max && tempValue.length >= max ? 'disabled' : ''),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.50",
3
+ "version": "1.2.51-heyh.1",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "43bb6c649f157574dd89b35c9d491644708aecad",
58
+ "gitHead": "b470f53cee3a0c88ac6d1fa6cf4fe05d67e11fe1",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }