@zgfe/business-lib 1.2.70-hxd.5 → 1.2.70-hxd.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.
- package/README.md +12 -12
- package/config.js +41 -41
- package/es/AUMFormulaTarget/components/formula/index.less +86 -86
- package/es/AUMFormulaTarget/components/panel/index.less +269 -269
- package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
- package/es/AUMFormulaTarget/styles/index.less +74 -74
- package/es/addToPanel/styles/addPanel.less +25 -25
- package/es/addToPanel/styles/index.less +17 -17
- package/es/addToPanel/styles/style.less +66 -66
- package/es/addToScene/styles/index.less +30 -30
- package/es/assets/colorIcon/demo.css +539 -539
- package/es/assets/colorIcon/demo_index.html +1454 -1454
- package/es/assets/colorIcon/iconfont.css +236 -236
- package/es/assets/colorIcon/iconfont.json +394 -394
- package/es/assets/colorIcon/iconfont.svg +129 -129
- package/es/assets/styles/chunks.less +183 -183
- package/es/assets/styles/inner.less +3 -3
- package/es/assets/styles/resetAntd.less +564 -564
- package/es/assets/styles/variable.less +21 -21
- package/es/attrCondition/styles/index.less +101 -101
- package/es/attrConditions/styles/group.less +49 -49
- package/es/attrConditions/styles/index.less +151 -151
- package/es/attributeSelector/listPanel.js +1 -1
- package/es/attributeSelector/styles/index.less +141 -141
- package/es/chart/styles/index.less +113 -113
- package/es/chart/util/data/china.js +17 -17
- package/es/cycleTime/styles/index.less +24 -24
- package/es/cycleTime/styles/month.less +95 -95
- package/es/dataSetGroup/styles/index.less +146 -146
- package/es/datePicker/styles/index.less +53 -53
- package/es/datePickerV2/styles/index.less +194 -194
- package/es/demoWrapper/index.less +3 -3
- package/es/dialog/styles/index.less +22 -22
- package/es/dnd/styles/index.less +19 -19
- package/es/eventSelector/listPanel.js +1 -1
- package/es/eventSelector/styles/index.less +123 -123
- package/es/formulaTarget/components/formula/index.less +76 -76
- package/es/formulaTarget/components/panel/index.less +139 -139
- package/es/formulaTarget/components/symbol/index.less +49 -49
- package/es/formulaTarget/styles/index.less +74 -74
- package/es/hooks/types/subject.d.ts +14 -14
- package/es/icon/demo/list.less +32 -32
- package/es/layout/analysisLayout/demo/index.less +12 -12
- package/es/layout/analysisLayout/index.less +118 -118
- package/es/layout/columnLayout/demo/index.less +15 -15
- package/es/layout/columnLayout/index.less +81 -81
- package/es/layout/detail/index.less +27 -27
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
- package/es/layout/optionTitle/demo/index.less +12 -12
- package/es/loading/styles/index.less +20 -20
- package/es/loginForm/index.less +7 -7
- package/es/platformSelector/styles/index.less +26 -26
- package/es/productCondition/conditions/styles/cdpCondition.less +31 -31
- package/es/productCondition/conditions/styles/cdpCshCondition.less +41 -41
- package/es/productCondition/conditions/styles/eventCondition.less +51 -51
- package/es/productCondition/conditions/styles/periodCondition.less +26 -26
- package/es/productCondition/conditions/styles/propCondition.less +43 -43
- package/es/productCondition/conditions/styles/runTimesCondition.less +19 -19
- package/es/productCondition/conditions/styles/tagsCondition.less +20 -20
- package/es/productCondition/conditions/styles/textDesc.less +17 -17
- package/es/productCondition/styles/conditionTypeList.less +30 -30
- package/es/productCondition/styles/conditionWrap.less +18 -18
- package/es/productCondition/styles/index.less +33 -33
- package/es/productCondition/styles/orConditions.less +34 -34
- package/es/productCondition/styles/relationLabel.less +19 -19
- package/es/quickDatePicker/styles/index.less +138 -138
- package/es/select/styles/handle.less +193 -193
- package/es/select/styles/index.less +129 -129
- package/es/socket/demo/index.less +27 -27
- package/es/subjectWrapper/index.less +12 -12
- package/es/table/styles/index.less +5 -5
- package/es/targetConditionGroup/demo/styles/index.less +29 -29
- package/es/targetConditionGroup/styles/index.less +53 -53
- package/es/targetSelector/styles/index.less +110 -110
- package/es/userCondition/conditions/styles/cdpCondition.less +37 -37
- package/es/userCondition/conditions/styles/cdpCshCondition.less +47 -47
- package/es/userCondition/conditions/styles/eventCondition.less +57 -57
- package/es/userCondition/conditions/styles/periodCondition.less +26 -26
- package/es/userCondition/conditions/styles/propCondition.less +43 -43
- package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
- package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
- package/es/userCondition/conditions/styles/textDesc.less +17 -17
- package/es/userCondition/styles/conditionTypeList.less +30 -30
- package/es/userCondition/styles/conditionWrap.less +18 -18
- package/es/userCondition/styles/index.less +33 -33
- package/es/userCondition/styles/orConditions.less +34 -34
- package/es/userCondition/styles/relationLabel.less +19 -19
- package/es/userGroup/styles/index.less +145 -145
- package/es/userGroupHeader/styles/index.less +31 -31
- package/es/userTagsSelector/components/search/index.less +6 -6
- package/es/userTagsSelector/components/tagList/index.less +13 -13
- package/es/userTagsSelector/groups/styles/option.less +55 -55
- package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
- package/es/userTagsSelector/styles/cascaderOverlay.less +34 -34
- package/es/userTagsSelector/styles/index.less +10 -10
- 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,86 +1,86 @@
|
|
|
1
|
-
@import '../../../assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.aum-formula-container {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
// align-items: center;
|
|
7
|
-
line-height: 48px;
|
|
8
|
-
.formula-symbol {
|
|
9
|
-
margin-top: 16px;
|
|
10
|
-
}
|
|
11
|
-
&-target {
|
|
12
|
-
display: flex;
|
|
13
|
-
&:hover {
|
|
14
|
-
.formula-container-option:not(.active) {
|
|
15
|
-
display: flex;
|
|
16
|
-
color: #b9ceff;
|
|
17
|
-
&.disabled {
|
|
18
|
-
color: #ccd0d4;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
&-handle {
|
|
23
|
-
min-width: 88px;
|
|
24
|
-
// min-width: 184px;
|
|
25
|
-
&.focus {
|
|
26
|
-
.biz-select-handle-input {
|
|
27
|
-
border-color: @primary-color;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
&-icon {
|
|
31
|
-
margin-left: 4px;
|
|
32
|
-
color: @text-color-middle;
|
|
33
|
-
}
|
|
34
|
-
&-name {
|
|
35
|
-
margin-left: 4px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-format {
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
height: 48px;
|
|
44
|
-
margin-left: 16px;
|
|
45
|
-
& > span {
|
|
46
|
-
margin-right: 12px;
|
|
47
|
-
}
|
|
48
|
-
& > span:hover {
|
|
49
|
-
color: @error-color;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.biz-select-handle {
|
|
53
|
-
min-width: 136px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
&-add {
|
|
57
|
-
margin-left: 16px;
|
|
58
|
-
color: @primary-color;
|
|
59
|
-
font-size: 18px !important;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
}
|
|
62
|
-
&-option {
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
color: transparent;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
&.active {
|
|
68
|
-
display: flex;
|
|
69
|
-
color: #354354;
|
|
70
|
-
}
|
|
71
|
-
&.disabled {
|
|
72
|
-
cursor: not-allowed;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&:first-child {
|
|
76
|
-
margin-right: 4px;
|
|
77
|
-
}
|
|
78
|
-
&:last-child {
|
|
79
|
-
margin-left: 4px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&-symbol {
|
|
84
|
-
margin: 0 12px;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
@import '../../../assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.aum-formula-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
// align-items: center;
|
|
7
|
+
line-height: 48px;
|
|
8
|
+
.formula-symbol {
|
|
9
|
+
margin-top: 16px;
|
|
10
|
+
}
|
|
11
|
+
&-target {
|
|
12
|
+
display: flex;
|
|
13
|
+
&:hover {
|
|
14
|
+
.formula-container-option:not(.active) {
|
|
15
|
+
display: flex;
|
|
16
|
+
color: #b9ceff;
|
|
17
|
+
&.disabled {
|
|
18
|
+
color: #ccd0d4;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-handle {
|
|
23
|
+
min-width: 88px;
|
|
24
|
+
// min-width: 184px;
|
|
25
|
+
&.focus {
|
|
26
|
+
.biz-select-handle-input {
|
|
27
|
+
border-color: @primary-color;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&-icon {
|
|
31
|
+
margin-left: 4px;
|
|
32
|
+
color: @text-color-middle;
|
|
33
|
+
}
|
|
34
|
+
&-name {
|
|
35
|
+
margin-left: 4px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-format {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
height: 48px;
|
|
44
|
+
margin-left: 16px;
|
|
45
|
+
& > span {
|
|
46
|
+
margin-right: 12px;
|
|
47
|
+
}
|
|
48
|
+
& > span:hover {
|
|
49
|
+
color: @error-color;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.biz-select-handle {
|
|
53
|
+
min-width: 136px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&-add {
|
|
57
|
+
margin-left: 16px;
|
|
58
|
+
color: @primary-color;
|
|
59
|
+
font-size: 18px !important;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
&-option {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
color: transparent;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
&.active {
|
|
68
|
+
display: flex;
|
|
69
|
+
color: #354354;
|
|
70
|
+
}
|
|
71
|
+
&.disabled {
|
|
72
|
+
cursor: not-allowed;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:first-child {
|
|
76
|
+
margin-right: 4px;
|
|
77
|
+
}
|
|
78
|
+
&:last-child {
|
|
79
|
+
margin-left: 4px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-symbol {
|
|
84
|
+
margin: 0 12px;
|
|
85
|
+
}
|
|
86
|
+
}
|