@zgfe/business-lib 1.1.72-alpha.7 → 1.1.72-alpha.9

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 (75) hide show
  1. package/README.md +12 -12
  2. package/config.js +41 -41
  3. package/es/addToPanel/styles/addPanel.less +25 -25
  4. package/es/addToPanel/styles/index.less +16 -16
  5. package/es/addToPanel/styles/style.less +66 -66
  6. package/es/addToScene/styles/index.less +30 -30
  7. package/es/assets/colorIcon/demo.css +539 -539
  8. package/es/assets/colorIcon/demo_index.html +741 -741
  9. package/es/assets/colorIcon/iconfont.css +112 -112
  10. package/es/assets/colorIcon/iconfont.json +177 -177
  11. package/es/assets/colorIcon/iconfont.svg +67 -67
  12. package/es/assets/iconfont/demo.css +539 -539
  13. package/es/assets/iconfont/demo_index.html +2718 -2718
  14. package/es/assets/iconfont/iconfont.css +455 -455
  15. package/es/assets/iconfont/iconfont.json +779 -779
  16. package/es/assets/styles/chunks.less +165 -165
  17. package/es/assets/styles/inner.less +3 -3
  18. package/es/assets/styles/resetAntd.less +542 -542
  19. package/es/assets/styles/variable.less +17 -17
  20. package/es/attrCondition/styles/index.less +73 -73
  21. package/es/attrConditions/styles/group.less +49 -49
  22. package/es/attrConditions/styles/index.less +123 -123
  23. package/es/attributeSelector/styles/index.less +131 -131
  24. package/es/chart/styles/index.less +55 -55
  25. package/es/chart/util/data/china.js +17 -17
  26. package/es/cycleTime/index.js +1 -1
  27. package/es/cycleTime/styles/index.less +24 -24
  28. package/es/cycleTime/styles/month.less +84 -84
  29. package/es/datePicker/styles/index.less +53 -53
  30. package/es/demoWrapper/index.less +3 -3
  31. package/es/dialog/styles/index.less +19 -19
  32. package/es/dnd/demo/styles/index.less +34 -34
  33. package/es/dnd/styles/index.less +19 -19
  34. package/es/eventSelector/styles/index.less +103 -103
  35. package/es/icon/demo/list.less +32 -32
  36. package/es/layout/analysisLayout/demo/index.less +12 -12
  37. package/es/layout/analysisLayout/index.less +118 -118
  38. package/es/layout/columnLayout/index.less +50 -50
  39. package/es/layout/detail/index.less +27 -27
  40. package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
  41. package/es/layout/optionTitle/components/title/index.less +42 -42
  42. package/es/layout/optionTitle/demo/index.less +12 -12
  43. package/es/layout/optionTitle/styles/index.less +33 -33
  44. package/es/layout/optionTitle/styles/layout.less +43 -43
  45. package/es/layout/optionTitle/styles/search.less +27 -27
  46. package/es/loginForm/index.less +7 -7
  47. package/es/quickDatePicker/styles/index.less +138 -138
  48. package/es/select/styles/handle.less +147 -147
  49. package/es/select/styles/index.less +129 -129
  50. package/es/socket/demo/index.less +27 -27
  51. package/es/table/styles/index.less +5 -5
  52. package/es/targetConditionGroup/demo/styles/index.less +29 -29
  53. package/es/targetConditionGroup/styles/index.less +28 -28
  54. package/es/targetSelector/styles/index.less +95 -95
  55. package/es/userCondition/conditions/styles/cdpCondition.less +31 -31
  56. package/es/userCondition/conditions/styles/cdpCshCondition.less +41 -41
  57. package/es/userCondition/conditions/styles/eventCondition.less +51 -51
  58. package/es/userCondition/conditions/styles/periodCondition.less +26 -26
  59. package/es/userCondition/conditions/styles/propCondition.less +43 -43
  60. package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
  61. package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
  62. package/es/userCondition/conditions/styles/textDesc.less +17 -17
  63. package/es/userCondition/styles/conditionTypeList.less +30 -30
  64. package/es/userCondition/styles/conditionWrap.less +18 -18
  65. package/es/userCondition/styles/index.less +33 -33
  66. package/es/userCondition/styles/orConditions.less +34 -34
  67. package/es/userCondition/styles/relationLabel.less +19 -19
  68. package/es/userGroup/styles/index.less +19 -19
  69. package/es/userTagsSelector/components/search/index.less +6 -6
  70. package/es/userTagsSelector/components/tagList/index.less +13 -13
  71. package/es/userTagsSelector/groups/styles/option.less +55 -55
  72. package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
  73. package/es/userTagsSelector/styles/cascaderOverlay.less +32 -32
  74. package/es/userTagsSelector/styles/index.less +10 -10
  75. package/package.json +2 -2
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- ## 规范
2
-
3
- ### 样式命名规范
4
-
5
- biz-组件名或缩写-具体样式比如 layout 组件的左侧栏命名: biz-layout-left
6
-
7
- ## 注意事项
8
-
9
- ### 样式命名
10
-
11
- 1. 命名上注意语义化,尽量减少语义不明的命名,比如 left、main、center 之类的
12
- 2. className 的命名,统一采用 class-name,不要用驼峰命名
1
+ ## 规范
2
+
3
+ ### 样式命名规范
4
+
5
+ biz-组件名或缩写-具体样式比如 layout 组件的左侧栏命名: biz-layout-left
6
+
7
+ ## 注意事项
8
+
9
+ ### 样式命名
10
+
11
+ 1. 命名上注意语义化,尽量减少语义不明的命名,比如 left、main、center 之类的
12
+ 2. className 的命名,统一采用 class-name,不要用驼峰命名
package/config.js CHANGED
@@ -1,41 +1,41 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
-
4
- /**
5
- * 对关键配置信息进行本地化存储,避免多人项目配置代码冲突
6
- * @param defaultConfig
7
- * @returns
8
- */
9
- function getConfig(defaultConfig, basePath) {
10
- const configPath = path.resolve(basePath, '.config.json');
11
- let resConfig = defaultConfig;
12
- try {
13
- if (fs.existsSync(configPath)) {
14
- const config = fs.readFileSync(configPath, 'utf-8');
15
- if (!config || config === '{}') {
16
- throw new Error('配置文件为空');
17
- }
18
- const configObj = JSON.parse(config);
19
- // 如果读取的配置文件,数据结构与默认配置不一致,则更新配置文件,更新规则:以默认配置为准,保留用户自定义配置
20
- const isSame = Object.keys(defaultConfig).every((key) => {
21
- return configObj.hasOwnProperty(key);
22
- });
23
- if (!isSame) {
24
- resConfig = Object.assign({}, defaultConfig, configObj);
25
- throw new Error('配置文件数据结构不一致');
26
- }
27
- resConfig = configObj;
28
- } else {
29
- throw new Error('配置文件不存在');
30
- }
31
- } catch (e) {
32
- console.log(e.message);
33
- fs.writeFileSync(configPath, JSON.stringify(resConfig, null, 2));
34
- }
35
- console.log('配置详情', resConfig);
36
- return resConfig;
37
- }
38
-
39
- module.exports = {
40
- getConfig,
41
- };
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ /**
5
+ * 对关键配置信息进行本地化存储,避免多人项目配置代码冲突
6
+ * @param defaultConfig
7
+ * @returns
8
+ */
9
+ function getConfig(defaultConfig, basePath) {
10
+ const configPath = path.resolve(basePath, '.config.json');
11
+ let resConfig = defaultConfig;
12
+ try {
13
+ if (fs.existsSync(configPath)) {
14
+ const config = fs.readFileSync(configPath, 'utf-8');
15
+ if (!config || config === '{}') {
16
+ throw new Error('配置文件为空');
17
+ }
18
+ const configObj = JSON.parse(config);
19
+ // 如果读取的配置文件,数据结构与默认配置不一致,则更新配置文件,更新规则:以默认配置为准,保留用户自定义配置
20
+ const isSame = Object.keys(defaultConfig).every((key) => {
21
+ return configObj.hasOwnProperty(key);
22
+ });
23
+ if (!isSame) {
24
+ resConfig = Object.assign({}, defaultConfig, configObj);
25
+ throw new Error('配置文件数据结构不一致');
26
+ }
27
+ resConfig = configObj;
28
+ } else {
29
+ throw new Error('配置文件不存在');
30
+ }
31
+ } catch (e) {
32
+ console.log(e.message);
33
+ fs.writeFileSync(configPath, JSON.stringify(resConfig, null, 2));
34
+ }
35
+ console.log('配置详情', resConfig);
36
+ return resConfig;
37
+ }
38
+
39
+ module.exports = {
40
+ getConfig,
41
+ };
@@ -1,25 +1,25 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-addpanel {
4
- &-input-row {
5
- display: flex;
6
- align-items: center;
7
- }
8
-
9
- &-switch {
10
- margin-left: 8px;
11
- cursor: pointer;
12
-
13
- &:hover {
14
- color: @primary-color;
15
- }
16
- }
17
-
18
- &-icon-add {
19
- cursor: pointer;
20
- }
21
-
22
- &-radio {
23
- margin-top: 12px;
24
- }
25
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-addpanel {
4
+ &-input-row {
5
+ display: flex;
6
+ align-items: center;
7
+ }
8
+
9
+ &-switch {
10
+ margin-left: 8px;
11
+ cursor: pointer;
12
+
13
+ &:hover {
14
+ color: @primary-color;
15
+ }
16
+ }
17
+
18
+ &-icon-add {
19
+ cursor: pointer;
20
+ }
21
+
22
+ &-radio {
23
+ margin-top: 12px;
24
+ }
25
+ }
@@ -1,16 +1,16 @@
1
- @import '../../assets/styles/inner.less';
2
- .biz-addtopanel {
3
- &-btn-add.ant-btn-ghost {
4
- .__text-btn();
5
- }
6
- &-show {
7
- transform: translateY(6px);
8
- }
9
- .ant-modal-body {
10
- max-height: 400px;
11
- max-height: 400px !important;
12
- padding-top: @padding-xs !important;
13
- padding-bottom: 0 !important;
14
- overflow: auto !important;
15
- }
16
- }
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-addtopanel {
3
+ &-btn-add.ant-btn-ghost {
4
+ .__text-btn();
5
+ }
6
+ &-show {
7
+ transform: translateY(6px);
8
+ }
9
+ .ant-modal-body {
10
+ max-height: 400px;
11
+ max-height: 400px !important;
12
+ padding-top: @padding-xs !important;
13
+ padding-bottom: 0 !important;
14
+ overflow: auto !important;
15
+ }
16
+ }
@@ -1,66 +1,66 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-style {
4
- display: flex;
5
- color: @text-color-secondary;
6
-
7
- &-item {
8
- display: flex;
9
- align-items: center;
10
- height: @height-base;
11
- padding: 0 @padding-sm;
12
- background: #fff;
13
- border: 1px solid @border-color-base;
14
- cursor: pointer;
15
-
16
- &:not(:last-child) {
17
- border-right-color: transparent;
18
- }
19
-
20
- &:first-child {
21
- border-radius: @border-radius-small 0px 0px @border-radius-small;
22
- }
23
-
24
- &:last-child {
25
- border-radius: 0px @border-radius-small @border-radius-small 0px;
26
- }
27
-
28
- &.disabled {
29
- color: @disabled-color;
30
- background: @background-color-base;
31
- cursor: not-allowed;
32
- }
33
-
34
- &:not(.disabled):hover {
35
- .__default-hover();
36
- border-color: @border-color-base;
37
- }
38
-
39
- &:not(.disabled).active {
40
- .__default-hover();
41
- }
42
- }
43
-
44
- &-item.one {
45
- &:last-child {
46
- border-radius: @border-radius-small;
47
- }
48
- }
49
-
50
- &-icon {
51
- margin-right: 7px;
52
- font-size: 18px;
53
- }
54
-
55
- &-radio-icon {
56
- font-size: 18px;
57
- }
58
-
59
- &-drop {
60
- .__select-panel();
61
- }
62
- }
63
-
64
- .ant-radio-wrapper {
65
- margin-right: 0;
66
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-style {
4
+ display: flex;
5
+ color: @text-color-secondary;
6
+
7
+ &-item {
8
+ display: flex;
9
+ align-items: center;
10
+ height: @height-base;
11
+ padding: 0 @padding-sm;
12
+ background: #fff;
13
+ border: 1px solid @border-color-base;
14
+ cursor: pointer;
15
+
16
+ &:not(:last-child) {
17
+ border-right-color: transparent;
18
+ }
19
+
20
+ &:first-child {
21
+ border-radius: @border-radius-small 0px 0px @border-radius-small;
22
+ }
23
+
24
+ &:last-child {
25
+ border-radius: 0px @border-radius-small @border-radius-small 0px;
26
+ }
27
+
28
+ &.disabled {
29
+ color: @disabled-color;
30
+ background: @background-color-base;
31
+ cursor: not-allowed;
32
+ }
33
+
34
+ &:not(.disabled):hover {
35
+ .__default-hover();
36
+ border-color: @border-color-base;
37
+ }
38
+
39
+ &:not(.disabled).active {
40
+ .__default-hover();
41
+ }
42
+ }
43
+
44
+ &-item.one {
45
+ &:last-child {
46
+ border-radius: @border-radius-small;
47
+ }
48
+ }
49
+
50
+ &-icon {
51
+ margin-right: 7px;
52
+ font-size: 18px;
53
+ }
54
+
55
+ &-radio-icon {
56
+ font-size: 18px;
57
+ }
58
+
59
+ &-drop {
60
+ .__select-panel();
61
+ }
62
+ }
63
+
64
+ .ant-radio-wrapper {
65
+ margin-right: 0;
66
+ }
@@ -1,30 +1,30 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-addtoscene {
4
- &-btn-add.ant-btn-ghost {
5
- .__text-btn();
6
- }
7
-
8
- &-addgroup {
9
- display: flex;
10
- flex-direction: row;
11
- align-items: center;
12
-
13
- .ant-input {
14
- flex: 1;
15
- }
16
-
17
- .btn-back {
18
- flex: none;
19
- border: none;
20
- box-shadow: none;
21
- }
22
- }
23
- .ant-modal-body {
24
- max-height: 400px;
25
- max-height: 400px !important;
26
- padding-top: @padding-xs !important;
27
- padding-bottom: 0 !important;
28
- overflow: auto !important;
29
- }
30
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-addtoscene {
4
+ &-btn-add.ant-btn-ghost {
5
+ .__text-btn();
6
+ }
7
+
8
+ &-addgroup {
9
+ display: flex;
10
+ flex-direction: row;
11
+ align-items: center;
12
+
13
+ .ant-input {
14
+ flex: 1;
15
+ }
16
+
17
+ .btn-back {
18
+ flex: none;
19
+ border: none;
20
+ box-shadow: none;
21
+ }
22
+ }
23
+ .ant-modal-body {
24
+ max-height: 400px;
25
+ max-height: 400px !important;
26
+ padding-top: @padding-xs !important;
27
+ padding-bottom: 0 !important;
28
+ overflow: auto !important;
29
+ }
30
+ }