@zgfe/business-lib 1.2.51-ljy.9 → 1.2.51-plat.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/es/assets/iconfont/demo_index.html +3 -187
- package/es/assets/iconfont/iconfont.css +3 -35
- package/es/assets/iconfont/iconfont.js +7 -7
- package/es/assets/iconfont/iconfont.json +0 -56
- 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/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/{datePickerOld → platformSelector}/demo/index.d.ts +0 -1
- package/es/platformSelector/demo/index.js +16 -0
- package/es/platformSelector/index.d.ts +16 -0
- package/es/{datePickerOld/demo → platformSelector}/index.js +37 -35
- package/es/platformSelector/styles/index.less +9 -0
- package/es/platformSelector/types.d.ts +6 -0
- package/es/platformSelector/types.js +1 -0
- package/es/platformSelector/util.d.ts +2 -0
- package/es/platformSelector/util.js +44 -0
- package/es/table/font_2545884_ievcoe4sky/demo.css +539 -0
- package/es/table/font_2545884_ievcoe4sky/demo_index.html +4857 -0
- package/es/table/font_2545884_ievcoe4sky/iconfont.css +827 -0
- package/es/table/font_2545884_ievcoe4sky/iconfont.js +43 -0
- package/es/table/font_2545884_ievcoe4sky/iconfont.json +1430 -0
- package/es/table/font_2545884_ievcoe4sky/iconfont.ttf +0 -0
- package/es/table/font_2545884_ievcoe4sky/iconfont.woff +0 -0
- package/es/table/font_2545884_ievcoe4sky/iconfont.woff2 +0 -0
- package/es/userCondition/conditions/cdpCondition.js +8 -2
- package/es/userCondition/conditions/cdpCshCondition.js +14 -3
- package/es/userCondition/conditions/styles/cdpCondition.less +6 -0
- package/es/userCondition/conditions/styles/cdpCshCondition.less +6 -0
- package/es/userGroup/overlay.js +6 -5
- package/es/userGroupHeader/index.js +1 -1
- package/package.json +3 -3
- package/es/datePickerOld/context.d.ts +0 -15
- package/es/datePickerOld/context.js +0 -3
- package/es/datePickerOld/datePicker.d.ts +0 -7
- package/es/datePickerOld/datePicker.js +0 -149
- package/es/datePickerOld/demo/customType.d.ts +0 -4
- package/es/datePickerOld/demo/customType.js +0 -44
- package/es/datePickerOld/demo/day.d.ts +0 -4
- package/es/datePickerOld/demo/day.js +0 -48
- package/es/datePickerOld/index.d.ts +0 -6
- package/es/datePickerOld/index.js +0 -246
- package/es/datePickerOld/popoverContent.d.ts +0 -14
- package/es/datePickerOld/popoverContent.js +0 -56
- package/es/datePickerOld/shortcut.d.ts +0 -7
- package/es/datePickerOld/shortcut.js +0 -101
- package/es/datePickerOld/styles/index.less +0 -165
- package/es/datePickerOld/types.d.ts +0 -39
- package/es/datePickerOld/types.js +0 -12
- package/es/datePickerOld/utils.d.ts +0 -9
- package/es/datePickerOld/utils.js +0 -129
|
@@ -5,62 +5,6 @@
|
|
|
5
5
|
"css_prefix_text": "",
|
|
6
6
|
"description": "诸葛业务平台",
|
|
7
7
|
"glyphs": [
|
|
8
|
-
{
|
|
9
|
-
"icon_id": "41262540",
|
|
10
|
-
"name": "时间",
|
|
11
|
-
"font_class": "shijian",
|
|
12
|
-
"unicode": "e7cd",
|
|
13
|
-
"unicode_decimal": 59341
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"icon_id": "41262538",
|
|
17
|
-
"name": "日历",
|
|
18
|
-
"font_class": "rili",
|
|
19
|
-
"unicode": "e7ce",
|
|
20
|
-
"unicode_decimal": 59342
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"icon_id": "41262539",
|
|
24
|
-
"name": "日历-2",
|
|
25
|
-
"font_class": "rili-2",
|
|
26
|
-
"unicode": "e7cc",
|
|
27
|
-
"unicode_decimal": 59340
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"icon_id": "41214661",
|
|
31
|
-
"name": "鸿蒙",
|
|
32
|
-
"font_class": "hongmeng",
|
|
33
|
-
"unicode": "e64a",
|
|
34
|
-
"unicode_decimal": 58954
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"icon_id": "41211242",
|
|
38
|
-
"name": "其他",
|
|
39
|
-
"font_class": "qita",
|
|
40
|
-
"unicode": "e649",
|
|
41
|
-
"unicode_decimal": 58953
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"icon_id": "41170258",
|
|
45
|
-
"name": "结束",
|
|
46
|
-
"font_class": "jieshu",
|
|
47
|
-
"unicode": "e7cb",
|
|
48
|
-
"unicode_decimal": 59339
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"icon_id": "41168988",
|
|
52
|
-
"name": "消息通知",
|
|
53
|
-
"font_class": "xiaoxitongzhi",
|
|
54
|
-
"unicode": "e7ca",
|
|
55
|
-
"unicode_decimal": 59338
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"icon_id": "41169079",
|
|
59
|
-
"name": "审批",
|
|
60
|
-
"font_class": "shenpi",
|
|
61
|
-
"unicode": "e7c9",
|
|
62
|
-
"unicode_decimal": 59337
|
|
63
|
-
},
|
|
64
8
|
{
|
|
65
9
|
"icon_id": "41153342",
|
|
66
10
|
"name": "上传图片",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/es/index.d.ts
CHANGED
|
@@ -46,9 +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
|
-
|
|
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, BizDatePickerOld, };
|
|
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, };
|
|
52
52
|
export type { UserGroupTypes } from './userGroup/types';
|
|
53
53
|
export type { BizProductConditionT } from './productCondition/types';
|
|
54
54
|
export type { BizSelectTypes } from './select/types';
|
package/es/index.js
CHANGED
|
@@ -45,6 +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
|
-
|
|
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, BizDatePickerOld };
|
|
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,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;
|
|
@@ -4,39 +4,41 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
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
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
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import '
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
end: '2024-08-05',
|
|
15
|
-
relative: [4, 1],
|
|
16
|
-
unit: 'week'
|
|
17
|
-
}),
|
|
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(0),
|
|
18
14
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
return /*#__PURE__*/React.createElement("div",
|
|
31
|
-
|
|
32
|
-
}, /*#__PURE__*/React.createElement(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
defaultValue:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
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
|
+
console.log('selectValue', selectValue);
|
|
23
|
+
setCurrentValue((selectValue === null || selectValue === void 0 ? void 0 : selectValue.value) || '全部平台');
|
|
24
|
+
}
|
|
25
|
+
}, [props.value]);
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: classPrefix
|
|
28
|
+
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
29
|
+
className: "".concat(classPrefix, "-select"),
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}];
|