@zgfe/business-lib 1.2.51-ht.1 → 1.2.51-plat.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 (41) hide show
  1. package/es/assets/colorIcon/demo_index.html +4 -717
  2. package/es/assets/colorIcon/iconfont.css +4 -128
  3. package/es/assets/colorIcon/iconfont.js +16 -16
  4. package/es/assets/colorIcon/iconfont.json +0 -217
  5. package/es/assets/colorIcon/iconfont.svg +0 -62
  6. package/es/assets/colorIcon/iconfont.ttf +0 -0
  7. package/es/assets/colorIcon/iconfont.woff +0 -0
  8. package/es/assets/colorIcon/iconfont.woff2 +0 -0
  9. package/es/assets/iconfont/demo_index.html +3 -72
  10. package/es/assets/iconfont/iconfont.css +3 -15
  11. package/es/assets/iconfont/iconfont.js +1 -1
  12. package/es/assets/iconfont/iconfont.json +0 -21
  13. package/es/assets/iconfont/iconfont.ttf +0 -0
  14. package/es/assets/iconfont/iconfont.woff +0 -0
  15. package/es/assets/iconfont/iconfont.woff2 +0 -0
  16. package/es/index.d.ts +2 -1
  17. package/es/index.js +2 -1
  18. package/es/platformSelector/demo/index.d.ts +3 -0
  19. package/es/platformSelector/demo/index.js +16 -0
  20. package/es/platformSelector/index.d.ts +19 -0
  21. package/es/platformSelector/index.js +39 -0
  22. package/es/platformSelector/styles/index.less +9 -0
  23. package/es/platformSelector/types.d.ts +6 -0
  24. package/es/platformSelector/types.js +1 -0
  25. package/es/platformSelector/util.d.ts +2 -0
  26. package/es/platformSelector/util.js +44 -0
  27. package/es/table/font_2545884_ievcoe4sky/demo.css +539 -0
  28. package/es/table/font_2545884_ievcoe4sky/demo_index.html +4857 -0
  29. package/es/table/font_2545884_ievcoe4sky/iconfont.css +827 -0
  30. package/es/table/font_2545884_ievcoe4sky/iconfont.js +43 -0
  31. package/es/table/font_2545884_ievcoe4sky/iconfont.json +1430 -0
  32. package/es/table/font_2545884_ievcoe4sky/iconfont.ttf +0 -0
  33. package/es/table/font_2545884_ievcoe4sky/iconfont.woff +0 -0
  34. package/es/table/font_2545884_ievcoe4sky/iconfont.woff2 +0 -0
  35. package/es/userCondition/conditions/cdpCondition.js +8 -2
  36. package/es/userCondition/conditions/cdpCshCondition.js +14 -3
  37. package/es/userCondition/conditions/styles/cdpCondition.less +6 -0
  38. package/es/userCondition/conditions/styles/cdpCshCondition.less +6 -0
  39. package/es/userGroup/overlay.js +6 -5
  40. package/es/userGroupHeader/index.js +1 -1
  41. package/package.json +2 -2
@@ -5,27 +5,6 @@
5
5
  "css_prefix_text": "",
6
6
  "description": "诸葛业务平台",
7
7
  "glyphs": [
8
- {
9
- "icon_id": "41170258",
10
- "name": "结束",
11
- "font_class": "jieshu",
12
- "unicode": "e7cb",
13
- "unicode_decimal": 59339
14
- },
15
- {
16
- "icon_id": "41168988",
17
- "name": "消息通知",
18
- "font_class": "xiaoxitongzhi",
19
- "unicode": "e7ca",
20
- "unicode_decimal": 59338
21
- },
22
- {
23
- "icon_id": "41169079",
24
- "name": "审批",
25
- "font_class": "shenpi",
26
- "unicode": "e7c9",
27
- "unicode_decimal": 59337
28
- },
29
8
  {
30
9
  "icon_id": "41153342",
31
10
  "name": "上传图片",
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,19 @@
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?: {
14
+ key: number;
15
+ value: string;
16
+ };
17
+ valueOption?: platItemProp[];
18
+ }>;
19
+ export default BizPlatformSelector;
@@ -0,0 +1,39 @@
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
+ console.log('props-value', props.value);
19
+ setCurrentValue(props.value);
20
+ }, [props.value]);
21
+ return /*#__PURE__*/React.createElement("div", {
22
+ className: classPrefix
23
+ }, /*#__PURE__*/React.createElement(BizSelect, {
24
+ className: "".concat(classPrefix, "-select"),
25
+ options: props.valueOption && props.valueOption.length ? props.valueOption : platformOption,
26
+ overlayWidth: 134,
27
+ keyField: "key",
28
+ labelField: "value",
29
+ value: currentValue,
30
+ defaultValue: props.defaultValue ? props.defaultValue : {
31
+ value: '全部平台',
32
+ key: 0
33
+ },
34
+ onChange: function onChange(val) {
35
+ props.onChange(val);
36
+ }
37
+ }));
38
+ };
39
+ export default BizPlatformSelector;
@@ -0,0 +1,9 @@
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
+ }
@@ -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
+ }];