@zgfe/business-lib 1.0.0-beta.1 → 1.0.0-beta.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/analysisLayout/demo/index.js +1 -1
- package/es/analysisLayout/index.js +1 -4
- package/es/analysisLayout/index.less +2 -1
- package/es/assets/iconfont/iconfont.css +123 -0
- package/es/assets/iconfont/iconfont.js +46 -0
- package/es/assets/iconfont/iconfont.json +198 -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/attributeSelector/demo/multi.js +1 -1
- package/es/attributeSelector/demo/multiForm.js +1 -1
- package/es/attributeSelector/demo/single.js +1 -1
- package/es/attributeSelector/demo/singleForm.js +1 -1
- package/es/attributeSelector/group.js +1 -1
- package/es/attributeSelector/index.js +2 -1
- package/es/attributeSelector/index.less +2 -2
- package/es/chart/chartConfig.d.ts +20 -5
- package/es/chart/chartConfig.js +169 -117
- package/es/chart/demo/bar.js +8 -12
- package/es/chart/demo/data/data.d.ts +8 -0
- package/es/chart/demo/data/data.js +28 -0
- package/es/chart/demo/index.js +6 -5
- package/es/chart/demo/pie.js +5 -22
- package/es/chart/index.d.ts +28 -12
- package/es/chart/index.js +94 -17
- package/es/chart/util/format.d.ts +4 -0
- package/es/chart/util/format.js +61 -0
- package/es/commonStyle/icon.less +32 -5
- package/es/commonStyle/index.less +3 -171
- package/es/commonStyle/select.less +3 -12
- package/es/commonStyle/theme.less +80 -39
- package/es/commonStyle/variable.less +5 -2
- package/es/components/iconFont.d.ts +5 -0
- package/es/components/iconFont.js +30 -0
- package/es/datePicker/demo/form.js +1 -1
- package/es/datePicker/demo/index.js +1 -1
- package/es/datePicker/index.js +8 -15
- package/es/datePicker/index.less +4 -28
- package/es/dialog/components/list.js +1 -1
- package/es/dialog/components/selectToInput.js +12 -1
- package/es/dialog/components/style/list.less +1 -1
- package/es/dialog/components/style/tab.less +2 -2
- package/es/dialog/components/tab.js +1 -1
- package/es/dialog/demo/index.js +1 -1
- package/es/dialog/demo/index2.js +20 -2
- package/es/dialog/demo/index3.js +1 -1
- package/es/dialog/style/index.less +7 -1
- package/es/eventSelector/demo/form.js +1 -1
- package/es/eventSelector/demo/index.js +1 -1
- package/es/eventSelector/demo/nodata.js +1 -1
- package/es/eventSelector/index.d.ts +1 -1
- package/es/eventSelector/index.js +3 -13
- package/es/eventSelector/{cascade.less → index.less} +2 -1
- package/es/globalAttributes/demo/index.js +1 -1
- package/es/globalAttributes/index.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -4
- package/es/multipleSelector/demo/index.js +1 -1
- package/es/multipleSelector/index.js +2 -8
- package/es/multipleSelector/index.less +23 -25
- package/es/select/demo/index.js +32 -4
- package/es/select/index.d.ts +2 -1
- package/es/select/index.js +30 -8
- package/es/select/index.less +1 -0
- package/es/table/demo/index.js +1 -1
- package/es/table/demo/index2.js +1 -1
- package/es/table/index.js +1 -1
- package/es/table/index.less +78 -41
- package/es/targetConditionGroup/components/conditionItem.js +3 -3
- package/es/targetConditionGroup/components/style/group.less +1 -1
- package/es/targetConditionGroup/components/style/index.less +1 -1
- package/es/targetConditionGroup/demo/form.js +1 -1
- package/es/targetConditionGroup/demo/index.js +1 -1
- package/es/targetConditionGroup/index.js +2 -1
- package/es/targetConditionGroup/index.less +1 -2
- package/es/targetSelector/components/BizCascadeBox.d.ts +1 -1
- package/es/targetSelector/components/BizCascadeBox.js +1 -1
- package/es/targetSelector/demo/form.js +1 -1
- package/es/targetSelector/demo/index.js +1 -1
- package/es/targetSelector/demo/nodata.js +1 -1
- package/es/targetSelector/index.js +1 -2
- package/es/targetSelector/index.less +1 -26
- package/es/userGroup/demo/cluster.js +1 -1
- package/es/userGroup/demo/index.js +1 -1
- package/es/userGroup/index.js +1 -2
- package/es/userGroup/index.less +1 -1
- package/es/userGroup/userCluster.js +2 -1
- package/package.json +1 -1
- package/es/chart/demo/data.d.ts +0 -11
- package/es/chart/demo/data.js +0 -37
|
@@ -20,7 +20,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
20
20
|
|
|
21
21
|
import React, { useEffect, useRef, useState } from 'react';
|
|
22
22
|
import BizEventNameEditBox from './components/BizEventNameEditBox';
|
|
23
|
-
import
|
|
23
|
+
import IconFont from '../components/iconFont';
|
|
24
24
|
import { Dropdown, Menu, Tooltip } from 'antd';
|
|
25
25
|
import './index.less';
|
|
26
26
|
|
|
@@ -110,7 +110,6 @@ var BizTargetSelector = function BizTargetSelector(props) {
|
|
|
110
110
|
useEffect(function () {
|
|
111
111
|
var inValue = defaultValue.option || value.option;
|
|
112
112
|
var inAlias = defaultValue.aliasName || value.aliasName;
|
|
113
|
-
console.log('value>>>', inValue);
|
|
114
113
|
|
|
115
114
|
if (JSON.stringify(inValue) !== JSON.stringify(defaultData)) {
|
|
116
115
|
setDefaultData(function () {
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
@import '../commonStyle/icon.less';
|
|
2
|
-
@import '../commonStyle/
|
|
3
|
-
|
|
4
|
-
// .ant-dropdown-menu {
|
|
5
|
-
// width: 200px;
|
|
6
|
-
// padding: 8px;
|
|
7
|
-
// background: #ffffff;
|
|
8
|
-
// border-radius: 10px;
|
|
9
|
-
// box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
10
|
-
// }
|
|
11
|
-
|
|
12
|
-
// .ant-dropdown-menu-item {
|
|
13
|
-
// padding: 14px 8px;
|
|
14
|
-
// line-height: 20px;
|
|
15
|
-
// border-radius: 10px;
|
|
16
|
-
|
|
17
|
-
// &:not(.box-active):hover {
|
|
18
|
-
// .box-hover();
|
|
19
|
-
// }
|
|
20
|
-
// &.box-active:hover {
|
|
21
|
-
// .box-active();
|
|
22
|
-
// }
|
|
23
|
-
// .ant-dropdown-menu-item-icon {
|
|
24
|
-
// margin-right: 15px;
|
|
25
|
-
// font-size: @iconSize;
|
|
26
|
-
// }
|
|
27
|
-
// }
|
|
2
|
+
@import '../commonStyle/select.less';
|
|
28
3
|
|
|
29
4
|
.biz-placeholder {
|
|
30
5
|
color: #9797af;
|
|
@@ -11,7 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
|
-
import { BizUserCluster } from 'business-lib';
|
|
14
|
+
import { BizUserCluster } from '@zgfe/business-lib';
|
|
15
15
|
import './index.less';
|
|
16
16
|
import { Button, Form } from 'antd';
|
|
17
17
|
var groupOptions = [{
|
|
@@ -11,7 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
|
-
import { BizUserGroup } from 'business-lib';
|
|
14
|
+
import { BizUserGroup } from '@zgfe/business-lib';
|
|
15
15
|
import './index.less';
|
|
16
16
|
import { Button, Form } from 'antd';
|
|
17
17
|
var groupOptions = [{
|
package/es/userGroup/index.js
CHANGED
|
@@ -28,7 +28,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
28
28
|
|
|
29
29
|
import { Select, Tooltip } from 'antd';
|
|
30
30
|
import React, { useEffect, useState } from 'react';
|
|
31
|
-
import
|
|
31
|
+
import IconFont from '../components/iconFont';
|
|
32
32
|
import './index.less'; // 单个用户群
|
|
33
33
|
|
|
34
34
|
var BizUserGroup = function BizUserGroup(props) {
|
|
@@ -81,7 +81,6 @@ var BizUserGroup = function BizUserGroup(props) {
|
|
|
81
81
|
useEffect(function () {
|
|
82
82
|
if (!disabled || !disabled.length) return;
|
|
83
83
|
var selectOptions = options.map(function (item) {
|
|
84
|
-
// debugger
|
|
85
84
|
if (disabled.indexOf(item[fieldNames.value]) > -1) {
|
|
86
85
|
if (userId && item[fieldNames.value] == userId) {
|
|
87
86
|
delete item.disabled;
|
package/es/userGroup/index.less
CHANGED
|
@@ -34,7 +34,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
34
34
|
|
|
35
35
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
36
36
|
|
|
37
|
-
import { BizUserGroup
|
|
37
|
+
import { BizUserGroup } from '..';
|
|
38
|
+
import IconFont from '../components/iconFont';
|
|
38
39
|
import React, { useEffect, useState } from 'react';
|
|
39
40
|
|
|
40
41
|
var BizUserCluster = function BizUserCluster(props) {
|
package/package.json
CHANGED
package/es/chart/demo/data.d.ts
DELETED
package/es/chart/demo/data.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
xData: ['2022-03-31', '2022-04-01', '2022-04-02', '2022-04-03', '2022-04-04', '2022-04-05', '2022-04-06', '2022-04-07', '2022-04-08', '2022-04-09', '2022-04-10', '2022-04-11', '2022-04-12', '2022-04-13'],
|
|
3
|
-
seriesData: [{
|
|
4
|
-
name: '付款成功',
|
|
5
|
-
data: [26, 27, 43, 44, 40, 34, 33, 33, 34, 24, 30, 31, 31, 38]
|
|
6
|
-
}, {
|
|
7
|
-
name: '注册-发送手机验证码',
|
|
8
|
-
data: [11, 10, 7, 5, 13, 18, 14, 17, 11, 6, 10, 12, 15, 10]
|
|
9
|
-
}, {
|
|
10
|
-
name: '搜索商品',
|
|
11
|
-
data: [75, 68, 86, 80, 87, 71, 72, 81, 77, 74, 78, 76, 76, 79]
|
|
12
|
-
}, {
|
|
13
|
-
name: 'pv',
|
|
14
|
-
data: [104, 89, 109, 103, 112, 93, 87, 101, 101, 97, 102, 110, 106, 98]
|
|
15
|
-
}, {
|
|
16
|
-
name: '查看商品详情',
|
|
17
|
-
data: [122, 107, 132, 113, 133, 115, 106, 127, 132, 117, 119, 123, 119, 117]
|
|
18
|
-
}, {
|
|
19
|
-
name: 'scroll',
|
|
20
|
-
data: [98, 96, 106, 109, 113, 105, 91, 111, 99, 99, 104, 108, 116, 92]
|
|
21
|
-
}, {
|
|
22
|
-
name: ['click'],
|
|
23
|
-
data: [108, 102, 111, 90, 111, 105, 91, 129, 117, 101, 109, 109, 105, 96]
|
|
24
|
-
}, {
|
|
25
|
-
name: ['申请退货'],
|
|
26
|
-
data: [5, 11, 14, 9, 8, 14, 9, 10, 12, 12, 14, 16, 12, 10]
|
|
27
|
-
}, {
|
|
28
|
-
name: ['wxshare'],
|
|
29
|
-
data: [96, 89, 113, 100, 107, 109, 84, 106, 107, 100, 102, 106, 104, 90]
|
|
30
|
-
}, {
|
|
31
|
-
name: ['wxsopen'],
|
|
32
|
-
data: [92, 89, 118, 108, 128, 107, 103, 124, 107, 100, 115, 104, 99, 99]
|
|
33
|
-
}, {
|
|
34
|
-
name: ['进入购物车'],
|
|
35
|
-
data: [42, 44, 50, 47, 40, 49, 32, 50, 42, 40, 42, 39, 41, 32]
|
|
36
|
-
}]
|
|
37
|
-
};
|