@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.
Files changed (90) hide show
  1. package/es/analysisLayout/demo/index.js +1 -1
  2. package/es/analysisLayout/index.js +1 -4
  3. package/es/analysisLayout/index.less +2 -1
  4. package/es/assets/iconfont/iconfont.css +123 -0
  5. package/es/assets/iconfont/iconfont.js +46 -0
  6. package/es/assets/iconfont/iconfont.json +198 -0
  7. package/es/assets/iconfont/iconfont.ttf +0 -0
  8. package/es/assets/iconfont/iconfont.woff +0 -0
  9. package/es/assets/iconfont/iconfont.woff2 +0 -0
  10. package/es/attributeSelector/demo/multi.js +1 -1
  11. package/es/attributeSelector/demo/multiForm.js +1 -1
  12. package/es/attributeSelector/demo/single.js +1 -1
  13. package/es/attributeSelector/demo/singleForm.js +1 -1
  14. package/es/attributeSelector/group.js +1 -1
  15. package/es/attributeSelector/index.js +2 -1
  16. package/es/attributeSelector/index.less +2 -2
  17. package/es/chart/chartConfig.d.ts +20 -5
  18. package/es/chart/chartConfig.js +169 -117
  19. package/es/chart/demo/bar.js +8 -12
  20. package/es/chart/demo/data/data.d.ts +8 -0
  21. package/es/chart/demo/data/data.js +28 -0
  22. package/es/chart/demo/index.js +6 -5
  23. package/es/chart/demo/pie.js +5 -22
  24. package/es/chart/index.d.ts +28 -12
  25. package/es/chart/index.js +94 -17
  26. package/es/chart/util/format.d.ts +4 -0
  27. package/es/chart/util/format.js +61 -0
  28. package/es/commonStyle/icon.less +32 -5
  29. package/es/commonStyle/index.less +3 -171
  30. package/es/commonStyle/select.less +3 -12
  31. package/es/commonStyle/theme.less +80 -39
  32. package/es/commonStyle/variable.less +5 -2
  33. package/es/components/iconFont.d.ts +5 -0
  34. package/es/components/iconFont.js +30 -0
  35. package/es/datePicker/demo/form.js +1 -1
  36. package/es/datePicker/demo/index.js +1 -1
  37. package/es/datePicker/index.js +8 -15
  38. package/es/datePicker/index.less +4 -28
  39. package/es/dialog/components/list.js +1 -1
  40. package/es/dialog/components/selectToInput.js +12 -1
  41. package/es/dialog/components/style/list.less +1 -1
  42. package/es/dialog/components/style/tab.less +2 -2
  43. package/es/dialog/components/tab.js +1 -1
  44. package/es/dialog/demo/index.js +1 -1
  45. package/es/dialog/demo/index2.js +20 -2
  46. package/es/dialog/demo/index3.js +1 -1
  47. package/es/dialog/style/index.less +7 -1
  48. package/es/eventSelector/demo/form.js +1 -1
  49. package/es/eventSelector/demo/index.js +1 -1
  50. package/es/eventSelector/demo/nodata.js +1 -1
  51. package/es/eventSelector/index.d.ts +1 -1
  52. package/es/eventSelector/index.js +3 -13
  53. package/es/eventSelector/{cascade.less → index.less} +2 -1
  54. package/es/globalAttributes/demo/index.js +1 -1
  55. package/es/globalAttributes/index.js +2 -1
  56. package/es/index.d.ts +1 -1
  57. package/es/index.js +1 -4
  58. package/es/multipleSelector/demo/index.js +1 -1
  59. package/es/multipleSelector/index.js +2 -8
  60. package/es/multipleSelector/index.less +23 -25
  61. package/es/select/demo/index.js +32 -4
  62. package/es/select/index.d.ts +2 -1
  63. package/es/select/index.js +30 -8
  64. package/es/select/index.less +1 -0
  65. package/es/table/demo/index.js +1 -1
  66. package/es/table/demo/index2.js +1 -1
  67. package/es/table/index.js +1 -1
  68. package/es/table/index.less +78 -41
  69. package/es/targetConditionGroup/components/conditionItem.js +3 -3
  70. package/es/targetConditionGroup/components/style/group.less +1 -1
  71. package/es/targetConditionGroup/components/style/index.less +1 -1
  72. package/es/targetConditionGroup/demo/form.js +1 -1
  73. package/es/targetConditionGroup/demo/index.js +1 -1
  74. package/es/targetConditionGroup/index.js +2 -1
  75. package/es/targetConditionGroup/index.less +1 -2
  76. package/es/targetSelector/components/BizCascadeBox.d.ts +1 -1
  77. package/es/targetSelector/components/BizCascadeBox.js +1 -1
  78. package/es/targetSelector/demo/form.js +1 -1
  79. package/es/targetSelector/demo/index.js +1 -1
  80. package/es/targetSelector/demo/nodata.js +1 -1
  81. package/es/targetSelector/index.js +1 -2
  82. package/es/targetSelector/index.less +1 -26
  83. package/es/userGroup/demo/cluster.js +1 -1
  84. package/es/userGroup/demo/index.js +1 -1
  85. package/es/userGroup/index.js +1 -2
  86. package/es/userGroup/index.less +1 -1
  87. package/es/userGroup/userCluster.js +2 -1
  88. package/package.json +1 -1
  89. package/es/chart/demo/data.d.ts +0 -11
  90. 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 { IconFont } from '..';
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/index.less';
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 = [{
@@ -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 { IconFont } from '..';
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;
@@ -1,2 +1,2 @@
1
- @import '../commonStyle/select.less';
2
1
  @import '../commonStyle/icon.less';
2
+ @import '../commonStyle/select.less';
@@ -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, IconFont } from '..';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- xData: string[];
3
- seriesData: ({
4
- name: string;
5
- data: number[];
6
- } | {
7
- name: string[];
8
- data: number[];
9
- })[];
10
- };
11
- export default _default;
@@ -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
- };