@zgfe/business-lib 1.2.48-plat.9 → 1.2.50-alpha.0

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.
Files changed (32) hide show
  1. package/es/addToPanel/index.js +27 -2
  2. package/es/assets/iconfont/demo_index.html +17 -477
  3. package/es/assets/iconfont/iconfont.css +5 -85
  4. package/es/assets/iconfont/iconfont.js +9 -9
  5. package/es/assets/iconfont/iconfont.json +4 -144
  6. package/es/assets/iconfont/iconfont.ttf +0 -0
  7. package/es/assets/iconfont/iconfont.woff +0 -0
  8. package/es/assets/iconfont/iconfont.woff2 +0 -0
  9. package/es/chart/index.js +3 -0
  10. package/es/chart/types.d.ts +2 -0
  11. package/es/index.d.ts +1 -2
  12. package/es/index.js +1 -2
  13. package/es/userCondition/conditions/cdpCondition.js +2 -8
  14. package/es/userCondition/conditions/cdpCshCondition.js +3 -14
  15. package/es/userCondition/conditions/styles/cdpCondition.less +0 -6
  16. package/es/userCondition/conditions/styles/cdpCshCondition.less +0 -6
  17. package/es/userGroup/overlay.js +5 -7
  18. package/es/userGroupHeader/index.js +1 -1
  19. package/package.json +2 -2
  20. package/es/platformSelector/demo/index.d.ts +0 -3
  21. package/es/platformSelector/demo/index.js +0 -16
  22. package/es/platformSelector/index.d.ts +0 -14
  23. package/es/platformSelector/index.js +0 -65
  24. package/es/platformSelector/styles/index.less +0 -9
  25. package/es/table/font_2545884_ievcoe4sky/demo.css +0 -539
  26. package/es/table/font_2545884_ievcoe4sky/demo_index.html +0 -4857
  27. package/es/table/font_2545884_ievcoe4sky/iconfont.css +0 -827
  28. package/es/table/font_2545884_ievcoe4sky/iconfont.js +0 -43
  29. package/es/table/font_2545884_ievcoe4sky/iconfont.json +0 -1430
  30. package/es/table/font_2545884_ievcoe4sky/iconfont.ttf +0 -0
  31. package/es/table/font_2545884_ievcoe4sky/iconfont.woff +0 -0
  32. package/es/table/font_2545884_ievcoe4sky/iconfont.woff2 +0 -0
@@ -5,146 +5,6 @@
5
5
  "css_prefix_text": "",
6
6
  "description": "诸葛业务平台",
7
7
  "glyphs": [
8
- {
9
- "icon_id": "41153342",
10
- "name": "上传图片",
11
- "font_class": "shangchuantupian",
12
- "unicode": "e648",
13
- "unicode_decimal": 58952
14
- },
15
- {
16
- "icon_id": "41153408",
17
- "name": "插入指标",
18
- "font_class": "charuzhibiao",
19
- "unicode": "e644",
20
- "unicode_decimal": 58948
21
- },
22
- {
23
- "icon_id": "41153407",
24
- "name": "添加标题",
25
- "font_class": "tianjiabiaoti",
26
- "unicode": "e645",
27
- "unicode_decimal": 58949
28
- },
29
- {
30
- "icon_id": "41153406",
31
- "name": "添加文本",
32
- "font_class": "tianjiawenben",
33
- "unicode": "e646",
34
- "unicode_decimal": 58950
35
- },
36
- {
37
- "icon_id": "41153405",
38
- "name": "添加图片",
39
- "font_class": "tianjiatupian",
40
- "unicode": "e647",
41
- "unicode_decimal": 58951
42
- },
43
- {
44
- "icon_id": "41047713",
45
- "name": "js 2",
46
- "font_class": "a-js2",
47
- "unicode": "e63f",
48
- "unicode_decimal": 58943
49
- },
50
- {
51
- "icon_id": "41047712",
52
- "name": "微信小程序",
53
- "font_class": "weixinxiaochengxu",
54
- "unicode": "e640",
55
- "unicode_decimal": 58944
56
- },
57
- {
58
- "icon_id": "41047711",
59
- "name": "ios",
60
- "font_class": "ios1",
61
- "unicode": "e641",
62
- "unicode_decimal": 58945
63
- },
64
- {
65
- "icon_id": "41047710",
66
- "name": "android2",
67
- "font_class": "android1",
68
- "unicode": "e642",
69
- "unicode_decimal": 58946
70
- },
71
- {
72
- "icon_id": "41047709",
73
- "name": "服务器",
74
- "font_class": "fuwuqi",
75
- "unicode": "e643",
76
- "unicode_decimal": 58947
77
- },
78
- {
79
- "icon_id": "40911670",
80
- "name": "菜单-用户营销",
81
- "font_class": "caidan-yonghuyingxiao",
82
- "unicode": "e63a",
83
- "unicode_decimal": 58938
84
- },
85
- {
86
- "icon_id": "40624563",
87
- "name": "菜单-理财业务分析",
88
- "font_class": "licaiyewufenxi",
89
- "unicode": "e7c8",
90
- "unicode_decimal": 59336
91
- },
92
- {
93
- "icon_id": "40533696",
94
- "name": "菜单-信用卡业务",
95
- "font_class": "xinyongkayewu1",
96
- "unicode": "e7c6",
97
- "unicode_decimal": 59334
98
- },
99
- {
100
- "icon_id": "40533695",
101
- "name": "菜单-信用卡分期",
102
- "font_class": "xinyongkafenqi",
103
- "unicode": "e7c7",
104
- "unicode_decimal": 59335
105
- },
106
- {
107
- "icon_id": "39969156",
108
- "name": "LTV 分析",
109
- "font_class": "a-LTVfenxi",
110
- "unicode": "e7c5",
111
- "unicode_decimal": 59333
112
- },
113
- {
114
- "icon_id": "39962950",
115
- "name": "导航二级箭头",
116
- "font_class": "daohangerjijiantou",
117
- "unicode": "e632",
118
- "unicode_decimal": 58930
119
- },
120
- {
121
- "icon_id": "39962949",
122
- "name": "导航一级箭头收起",
123
- "font_class": "daohangyijijiantoushouqi",
124
- "unicode": "e634",
125
- "unicode_decimal": 58932
126
- },
127
- {
128
- "icon_id": "39962948",
129
- "name": "角色交换",
130
- "font_class": "jiaosejiaohuan",
131
- "unicode": "e635",
132
- "unicode_decimal": 58933
133
- },
134
- {
135
- "icon_id": "39962947",
136
- "name": "导航一级箭头展开",
137
- "font_class": "daohangyijijiantouzhankai",
138
- "unicode": "e636",
139
- "unicode_decimal": 58934
140
- },
141
- {
142
- "icon_id": "39799478",
143
- "name": "菜单-存款业务分析",
144
- "font_class": "cunkuanyewu",
145
- "unicode": "e7c4",
146
- "unicode_decimal": 59332
147
- },
148
8
  {
149
9
  "icon_id": "39634357",
150
10
  "name": "埋点",
@@ -1064,8 +924,8 @@
1064
924
  },
1065
925
  {
1066
926
  "icon_id": "31623999",
1067
- "name": "数据集-left",
1068
- "font_class": "shujuji_left",
927
+ "name": "left",
928
+ "font_class": "left",
1069
929
  "unicode": "e6d2",
1070
930
  "unicode_decimal": 59090
1071
931
  },
@@ -1078,8 +938,8 @@
1078
938
  },
1079
939
  {
1080
940
  "icon_id": "31624006",
1081
- "name": "数据集-right",
1082
- "font_class": "shujuji_right",
941
+ "name": "right",
942
+ "font_class": "right",
1083
943
  "unicode": "e6d4",
1084
944
  "unicode_decimal": 59092
1085
945
  },
Binary file
Binary file
Binary file
package/es/chart/index.js CHANGED
@@ -141,6 +141,9 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
141
141
  if (type === 'line') {
142
142
  eOption = dashedLineFormat(_.cloneDeep(eOption));
143
143
  }
144
+ if (data === null || data === void 0 ? void 0 : data.grid) {
145
+ eOption.grid = _objectSpread(_objectSpread({}, eOption.grid), data === null || data === void 0 ? void 0 : data.grid);
146
+ }
144
147
  setChartOption(function () {
145
148
  return _objectSpread({}, eOption);
146
149
  });
@@ -1,4 +1,5 @@
1
1
  import { EChartsOption } from 'echarts';
2
+ import { GridOption } from 'echarts/types/dist/shared';
2
3
  export interface ChartItmProps {
3
4
  names: Array<string>;
4
5
  values: Array<number>;
@@ -26,6 +27,7 @@ export declare namespace ChartTypes {
26
27
  resultFormatMap?: {
27
28
  [key: string]: string;
28
29
  };
30
+ grid?: GridOption;
29
31
  }
30
32
  interface Props {
31
33
  type?: 'bar' | 'pie' | 'line' | 'map' | 'line_bar' | 'muit_y';
package/es/index.d.ts CHANGED
@@ -46,9 +46,8 @@ 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';
50
49
  import DataSetGroup from './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, };
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, };
52
51
  export type { UserGroupTypes } from './userGroup/types';
53
52
  export type { BizProductConditionT } from './productCondition/types';
54
53
  export type { BizSelectTypes } from './select/types';
package/es/index.js CHANGED
@@ -45,6 +45,5 @@ 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';
49
48
  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, BizPlatformSelector };
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 };
@@ -16,12 +16,11 @@ import { PropType } from '../types';
16
16
  import './styles/cdpCondition.less';
17
17
  import _ from 'lodash';
18
18
  import { dateOperate, numberOperate, stringOperate } from '../../attrConditions/utils/operates';
19
- import { DatePicker, Input, Tooltip } from 'antd';
19
+ import { DatePicker, Input } from 'antd';
20
20
  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';
25
24
  var classPrefix = 'biz-user-condition-cdp';
26
25
  var CdpConditionItem = function CdpConditionItem(props) {
27
26
  var _useContext = useContext(BizUserConditionContext),
@@ -264,12 +263,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
264
263
  keyField: "metaDatasetId",
265
264
  value: dataset,
266
265
  onChange: onTableChange
267
- }), /*#__PURE__*/React.createElement(Tooltip, {
268
- title: "\u9009\u62E9\u660E\u7EC6\u6570\u636E\uFF0C\u589E\u52A0\u5E2E\u52A9\u5F15\u5BFC\u5165\u53E3"
269
- }, /*#__PURE__*/React.createElement(IconFont, {
270
- type: "bangzhu",
271
- className: "".concat(classPrefix, "-select-tips")
272
- })), dataset ? /*#__PURE__*/React.createElement("div", {
266
+ }), dataset ? /*#__PURE__*/React.createElement("div", {
273
267
  className: "".concat(classPrefix, "-item")
274
268
  }, /*#__PURE__*/React.createElement(BizSelect, {
275
269
  className: "".concat(classPrefix, "-select-field"),
@@ -16,12 +16,11 @@ import { PropType } from '../types';
16
16
  import './styles/cdpCshCondition.less';
17
17
  import _ from 'lodash';
18
18
  import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2 } from '../../attrConditions/utils/operates';
19
- import { DatePicker, Input, Tooltip } from 'antd';
19
+ import { DatePicker, Input } from 'antd';
20
20
  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';
25
24
  var classPrefix = 'biz-user-condition-cdp-csh';
26
25
  var CdpConditionItem = function CdpConditionItem(props) {
27
26
  var _useContext = useContext(BizUserConditionContext),
@@ -408,12 +407,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
408
407
  keyField: "metaDatasetId",
409
408
  value: subDataset,
410
409
  onChange: onSubTableChange
411
- }), /*#__PURE__*/React.createElement(Tooltip, {
412
- title: "\u9009\u62E9\u660E\u7EC6\u6570\u636E\uFF0C\u589E\u52A0\u5E2E\u52A9\u5F15\u5BFC\u5165\u53E3"
413
- }, /*#__PURE__*/React.createElement(IconFont, {
414
- type: "bangzhu",
415
- className: "".concat(classPrefix, "-select-tips")
416
- })), /*#__PURE__*/React.createElement("div", {
410
+ }), /*#__PURE__*/React.createElement("div", {
417
411
  className: "".concat(classPrefix, "-item")
418
412
  }, /*#__PURE__*/React.createElement(BizSelect, {
419
413
  className: "".concat(classPrefix, "-select-field"),
@@ -470,12 +464,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
470
464
  keyField: "metaDatasetId",
471
465
  value: dataset,
472
466
  onChange: onTableChange
473
- }), /*#__PURE__*/React.createElement(Tooltip, {
474
- title: "\u9009\u62E9\u660E\u7EC6\u6570\u636E\uFF0C\u589E\u52A0\u5E2E\u52A9\u5F15\u5BFC\u5165\u53E3"
475
- }, /*#__PURE__*/React.createElement(IconFont, {
476
- type: "bangzhu",
477
- className: "".concat(classPrefix, "-select-tips")
478
- })), dataset ? /*#__PURE__*/React.createElement("div", {
467
+ }), dataset ? /*#__PURE__*/React.createElement("div", {
479
468
  className: "".concat(classPrefix, "-item")
480
469
  }, /*#__PURE__*/React.createElement(BizSelect, {
481
470
  className: "".concat(classPrefix, "-select-field"),
@@ -21,12 +21,6 @@
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
- }
30
24
  &-select-field {
31
25
  width: 129px;
32
26
  }
@@ -27,12 +27,6 @@
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
- }
36
30
  &-select-field {
37
31
  width: 129px;
38
32
  }
@@ -32,7 +32,6 @@ var GroupItem = function GroupItem(_ref) {
32
32
  }, item.name);
33
33
  };
34
34
  var Overlay = function Overlay(_ref2) {
35
- var _basicConfig$publicCo, _basicConfig$publicCo2, _basicConfig$publicCo3, _basicConfig$publicCo4;
36
35
  var onClose = _ref2.onClose,
37
36
  onClickCreate = _ref2.onClickCreate;
38
37
  var _useState = useState('userGroup'),
@@ -46,8 +45,7 @@ var Overlay = function Overlay(_ref2) {
46
45
  var _useContext = useContext(BizGlobalDataContext),
47
46
  userGroupList = _useContext.userGroupList,
48
47
  showUserGroupModal = _useContext.showUserGroupModal,
49
- setUserGroupList = _useContext.setUserGroupList,
50
- basicConfig = _useContext.basicConfig;
48
+ setUserGroupList = _useContext.setUserGroupList;
51
49
  var _useState5 = useState(),
52
50
  _useState6 = _slicedToArray(_useState5, 2),
53
51
  currentGroup = _useState6[0],
@@ -98,10 +96,10 @@ var Overlay = function Overlay(_ref2) {
98
96
  className: "".concat(classPrefix, "-typelist")
99
97
  }, [{
100
98
  type: 'userGroup',
101
- label: (basicConfig === null || basicConfig === void 0 ? void 0 : (_basicConfig$publicCo = basicConfig.publicConfig) === null || _basicConfig$publicCo === void 0 ? void 0 : (_basicConfig$publicCo2 = _basicConfig$publicCo.subject) === null || _basicConfig$publicCo2 === void 0 ? void 0 : _basicConfig$publicCo2.isOpen) === 1 ? '主体分群' : '用户分群'
99
+ label: '用户分群'
102
100
  }, {
103
101
  type: 'tag',
104
- label: (basicConfig === null || basicConfig === void 0 ? void 0 : (_basicConfig$publicCo3 = basicConfig.publicConfig) === null || _basicConfig$publicCo3 === void 0 ? void 0 : (_basicConfig$publicCo4 = _basicConfig$publicCo3.subject) === null || _basicConfig$publicCo4 === void 0 ? void 0 : _basicConfig$publicCo4.isOpen) === 1 ? '主体标签' : '用户标签'
102
+ label: '用户标签'
105
103
  }].map(function (item) {
106
104
  return /*#__PURE__*/React.createElement("div", {
107
105
  key: item.type,
@@ -125,13 +123,13 @@ var Overlay = function Overlay(_ref2) {
125
123
  }, /*#__PURE__*/React.createElement(Search, {
126
124
  show: true,
127
125
  onChange: onSearch,
128
- placeholder: "\u641C\u7D22\u5206\u7FA4\u540D\u79F0"
126
+ placeholder: "\u641C\u7D22\u7528\u6237\u7FA4\u540D\u79F0"
129
127
  }), /*#__PURE__*/React.createElement("a", {
130
128
  className: "".concat(classPrefix, "-add"),
131
129
  onClick: onClickAdd
132
130
  }, /*#__PURE__*/React.createElement(IconFont, {
133
131
  type: "zengjia"
134
- }), "\u65B0\u5EFA\u5206\u7FA4")), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
132
+ }), "\u65B0\u5EFA\u7528\u6237\u7FA4")), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
135
133
  data: showList || [],
136
134
  itemHeight: 32,
137
135
  itemKey: "id",
@@ -77,7 +77,7 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
77
77
  placeholder: placeholder
78
78
  });
79
79
  })], /*#__PURE__*/React.createElement(Tooltip, {
80
- title: "\u6DFB\u52A0\u5206\u7FA4\u505A\u5BF9\u6BD4"
80
+ title: "\u6DFB\u52A0\u7528\u6237\u7FA4\u505A\u5BF9\u6BD4"
81
81
  }, /*#__PURE__*/React.createElement(IconFont, {
82
82
  type: "tianjia",
83
83
  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.48-plat.9",
3
+ "version": "1.2.50-alpha.0",
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": "d7546cd6a2c26fa5a8b29f6b803bcb76f8757d8a",
58
+ "gitHead": "5195d9785e2f396799ee6a84eec84ff09f013ea2",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const _default: () => React.JSX.Element;
3
- export default _default;
@@ -1,16 +0,0 @@
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
- });
@@ -1,14 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import './styles/index.less';
3
- export interface platItemProp {
4
- key: number;
5
- value: string;
6
- icon?: ReactNode;
7
- }
8
- declare const BizPlatformSelector: React.FC<{
9
- onChange: (val: {
10
- key: number;
11
- value: string;
12
- }) => void;
13
- }>;
14
- export default BizPlatformSelector;
@@ -1,65 +0,0 @@
1
- import React from 'react';
2
- import { IconFont, BizSelect } from '@zgfe/business-lib';
3
- import './styles/index.less';
4
- var BizPlatformSelector = function BizPlatformSelector(props) {
5
- var classPrefix = 'biz-platform-selector';
6
- var platformOption = [{
7
- key: -1,
8
- value: '全部平台'
9
- }, {
10
- key: 1,
11
- value: 'Android',
12
- icon: /*#__PURE__*/React.createElement(IconFont, {
13
- type: "android1",
14
- size: 16
15
- })
16
- }, {
17
- key: 2,
18
- value: 'IOS',
19
- icon: /*#__PURE__*/React.createElement(IconFont, {
20
- type: "ios1",
21
- size: 16
22
- })
23
- }, {
24
- key: 3,
25
- value: 'JS',
26
- icon: /*#__PURE__*/React.createElement(IconFont, {
27
- type: "a-js2",
28
- size: 16
29
- })
30
- }, {
31
- key: 4,
32
- value: '微信小程序',
33
- icon: /*#__PURE__*/React.createElement(IconFont, {
34
- type: "weixinxiaochengxu",
35
- size: 16
36
- })
37
- }, {
38
- key: 5,
39
- value: '服务端',
40
- icon: /*#__PURE__*/React.createElement(IconFont, {
41
- type: "fuwuqi",
42
- size: 16
43
- })
44
- }, {
45
- key: 0,
46
- value: '其他'
47
- }];
48
- return /*#__PURE__*/React.createElement("div", {
49
- className: classPrefix
50
- }, /*#__PURE__*/React.createElement(BizSelect, {
51
- className: "".concat(classPrefix, "-select"),
52
- options: platformOption,
53
- overlayWidth: 134,
54
- keyField: "key",
55
- labelField: "value",
56
- defaultValue: {
57
- value: '全部平台',
58
- key: -1
59
- },
60
- onChange: function onChange(val) {
61
- props.onChange(val);
62
- }
63
- }));
64
- };
65
- export default BizPlatformSelector;
@@ -1,9 +0,0 @@
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
- }
9
- }