@zgfe/business-lib 1.2.57 → 1.2.66-hxd.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/README.md +12 -12
- package/config.js +41 -41
- package/es/AUMFormulaTarget/components/formula/index.less +86 -82
- package/es/AUMFormulaTarget/components/formulaItem/index.js +52 -13
- package/es/AUMFormulaTarget/components/panel/index.less +269 -269
- package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- 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/iconfont/demo.css +539 -539
- package/es/assets/iconfont/demo_index.html +5363 -5363
- package/es/assets/iconfont/iconfont.css +915 -915
- package/es/assets/iconfont/iconfont.json +1584 -1584
- package/es/assets/images/attention.png +0 -0
- package/es/assets/styles/chunks.less +183 -183
- package/es/assets/styles/inner.less +3 -3
- package/es/assets/styles/resetAntd.less +551 -551
- package/es/assets/styles/variable.less +21 -21
- package/es/attrCondition/group.js +5 -2
- package/es/attrCondition/index.js +6 -2
- package/es/attrCondition/styles/index.less +101 -101
- package/es/attrConditions/components/stringList.d.ts +10 -0
- package/es/attrConditions/components/stringList.js +57 -27
- package/es/attrConditions/components/valuesList.d.ts +10 -0
- package/es/attrConditions/components/valuesList.js +6 -2
- package/es/attrConditions/styles/group.less +49 -49
- package/es/attrConditions/styles/index.less +151 -151
- package/es/attrConditions/types.d.ts +17 -0
- package/es/attributeSelector/index.js +6 -2
- package/es/attributeSelector/listPanel.js +6 -2
- package/es/attributeSelector/styles/index.less +141 -141
- package/es/attributeSelector/types.d.ts +2 -0
- package/es/chart/demo/index.js +2 -3
- package/es/chart/styles/index.less +113 -113
- package/es/chart/util/data/china.js +17 -17
- package/es/chart/util/formatOption.js +1 -1
- package/es/constants/apis.d.ts +3 -0
- package/es/constants/apis.js +4 -1
- 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/empty/demo/index.d.ts +4 -0
- package/es/empty/demo/index.js +16 -0
- package/es/empty/index.d.ts +4 -0
- package/es/empty/index.js +19 -0
- package/es/empty/types.d.ts +7 -0
- package/es/empty/types.js +1 -0
- 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/index.d.ts +3 -1
- package/es/index.js +3 -1
- 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/index.js +42 -9
- package/es/platformSelector/styles/index.less +26 -22
- package/es/platformSelector/util.d.ts +1 -1
- package/es/platformSelector/util.js +8 -1
- 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/table/styles/index.less +5 -5
- package/es/targetConditionGroup/demo/styles/index.less +29 -29
- package/es/targetConditionGroup/index.js +5 -4
- package/es/targetConditionGroup/styles/index.less +53 -53
- package/es/targetSelector/styles/index.less +110 -110
- package/es/userCondition/conditionTypeList.js +1 -10
- package/es/userCondition/conditions/businessCondition.js +3 -10
- package/es/userCondition/conditions/eventCondition.js +36 -4
- 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 -51
- 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/conditions/textDesc.js +1 -24
- package/es/userCondition/orConditions.js +0 -7
- 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/cascaderOverlay.js +13 -6
- package/es/userTagsSelector/components/search/index.less +6 -6
- package/es/userTagsSelector/components/tagList/index.less +13 -13
- package/es/userTagsSelector/demo/index.js +1 -0
- package/es/userTagsSelector/groups/styles/option.less +55 -55
- package/es/userTagsSelector/index.js +6 -3
- 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/es/userTagsSelector/types.d.ts +2 -0
- package/package.json +62 -62
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.biz-layout {
|
|
4
|
-
&-title {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 48px;
|
|
9
|
-
padding: 0 24px;
|
|
10
|
-
font-weight: 500;
|
|
11
|
-
font-size: 16px;
|
|
12
|
-
background: #fff;
|
|
13
|
-
border-bottom: 1px solid #f2f3f4;
|
|
14
|
-
& > span {
|
|
15
|
-
line-height: 24px;
|
|
16
|
-
}
|
|
17
|
-
&-back {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
margin-right: 10px;
|
|
21
|
-
color: @text-color-secondary;
|
|
22
|
-
font-size: 14px;
|
|
23
|
-
line-height: 24px;
|
|
24
|
-
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
.bsicon {
|
|
27
|
-
font-size: 16px !important;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-top {
|
|
33
|
-
padding: 16px 24px;
|
|
34
|
-
background: #fafafb;
|
|
35
|
-
transition: all 2s;
|
|
36
|
-
|
|
37
|
-
&-container {
|
|
38
|
-
padding-top: 24px;
|
|
39
|
-
background-color: #fff;
|
|
40
|
-
border: 1px solid #ecedf0;
|
|
41
|
-
border-radius: 8px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.hide {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&-collapse-container {
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: 24px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&-collapse-handle {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: flex-start;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
width: 200px;
|
|
61
|
-
height: 24px;
|
|
62
|
-
color: #9aa1a9;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
color: @primary-color;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.bsicon {
|
|
70
|
-
margin-right: 8px;
|
|
71
|
-
}
|
|
72
|
-
.transform180 {
|
|
73
|
-
transform: rotateX(180deg);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&-content {
|
|
78
|
-
padding: 24px;
|
|
79
|
-
background-color: #fff;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.biz-layout {
|
|
4
|
+
&-title {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 48px;
|
|
9
|
+
padding: 0 24px;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
background: #fff;
|
|
13
|
+
border-bottom: 1px solid #f2f3f4;
|
|
14
|
+
& > span {
|
|
15
|
+
line-height: 24px;
|
|
16
|
+
}
|
|
17
|
+
&-back {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
margin-right: 10px;
|
|
21
|
+
color: @text-color-secondary;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 24px;
|
|
24
|
+
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
.bsicon {
|
|
27
|
+
font-size: 16px !important;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-top {
|
|
33
|
+
padding: 16px 24px;
|
|
34
|
+
background: #fafafb;
|
|
35
|
+
transition: all 2s;
|
|
36
|
+
|
|
37
|
+
&-container {
|
|
38
|
+
padding-top: 24px;
|
|
39
|
+
background-color: #fff;
|
|
40
|
+
border: 1px solid #ecedf0;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.hide {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-collapse-container {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 24px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-collapse-handle {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: flex-start;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
width: 200px;
|
|
61
|
+
height: 24px;
|
|
62
|
+
color: #9aa1a9;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
color: @primary-color;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.bsicon {
|
|
70
|
+
margin-right: 8px;
|
|
71
|
+
}
|
|
72
|
+
.transform180 {
|
|
73
|
+
transform: rotateX(180deg);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-content {
|
|
78
|
+
padding: 24px;
|
|
79
|
+
background-color: #fff;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
.biz-detail {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
width: 1376px;
|
|
6
|
-
height: 100%;
|
|
7
|
-
margin: 0 auto;
|
|
8
|
-
&-menu {
|
|
9
|
-
flex: none;
|
|
10
|
-
padding: @padding-sm 0;
|
|
11
|
-
color: @text-color-secondary;
|
|
12
|
-
a {
|
|
13
|
-
margin-right: @margin-md;
|
|
14
|
-
color: @text-color-secondary;
|
|
15
|
-
&:hover {
|
|
16
|
-
color: @primary-color;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
&-content {
|
|
21
|
-
flex: 1;
|
|
22
|
-
padding: @padding-md @padding-lg @padding-lg @padding-lg;
|
|
23
|
-
overflow-y: auto;
|
|
24
|
-
background-color: @white;
|
|
25
|
-
border-radius: @border-radius-normal;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
.biz-detail {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 1376px;
|
|
6
|
+
height: 100%;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
&-menu {
|
|
9
|
+
flex: none;
|
|
10
|
+
padding: @padding-sm 0;
|
|
11
|
+
color: @text-color-secondary;
|
|
12
|
+
a {
|
|
13
|
+
margin-right: @margin-md;
|
|
14
|
+
color: @text-color-secondary;
|
|
15
|
+
&:hover {
|
|
16
|
+
color: @primary-color;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
&-content {
|
|
21
|
+
flex: 1;
|
|
22
|
+
padding: @padding-md @padding-lg @padding-lg @padding-lg;
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
background-color: @white;
|
|
25
|
+
border-radius: @border-radius-normal;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
// @import '../../../style/base.less';
|
|
2
|
-
|
|
3
|
-
.change-panel-modal {
|
|
4
|
-
&-add-panel {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
height: 32px;
|
|
8
|
-
color: #165dff;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
.tianjia1 {
|
|
11
|
-
margin-right: 8px;
|
|
12
|
-
font-weight: 800;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
&-empty-data {
|
|
17
|
-
text-align: center;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.modules-panel-item {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
height: 32px;
|
|
26
|
-
padding: 0px 8px;
|
|
27
|
-
color: #021429;
|
|
28
|
-
line-height: 32px;
|
|
29
|
-
background: #fff;
|
|
30
|
-
border-radius: 8px;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
&-popover {
|
|
33
|
-
.ant-popover-arrow {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
.ant-popover-content {
|
|
37
|
-
margin-top: -27px;
|
|
38
|
-
margin-left: 0;
|
|
39
|
-
}
|
|
40
|
-
.ant-popover-inner-content {
|
|
41
|
-
padding: 4px 0;
|
|
42
|
-
}
|
|
43
|
-
.text {
|
|
44
|
-
height: 32px;
|
|
45
|
-
margin: 0;
|
|
46
|
-
padding: 0 16px;
|
|
47
|
-
line-height: 32px;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
.delete {
|
|
51
|
-
// color: #fb5547;
|
|
52
|
-
}
|
|
53
|
-
.text:hover {
|
|
54
|
-
background: #e8efff;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
&-text {
|
|
58
|
-
width: 100%;
|
|
59
|
-
// .__text-cut-one();
|
|
60
|
-
}
|
|
61
|
-
.gengduocaozuo {
|
|
62
|
-
display: none;
|
|
63
|
-
margin-left: 8px;
|
|
64
|
-
font-size: 16px !important;
|
|
65
|
-
}
|
|
66
|
-
.ant-input {
|
|
67
|
-
box-shadow: none !important;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
.modules-panel-item:hover {
|
|
71
|
-
color: #165dff;
|
|
72
|
-
background: #e8efff;
|
|
73
|
-
.gengduocaozuo {
|
|
74
|
-
display: block;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.modules-panel-item.active {
|
|
78
|
-
padding: 0 8px;
|
|
79
|
-
color: #fff;
|
|
80
|
-
line-height: 40px;
|
|
81
|
-
background: #165dff;
|
|
82
|
-
.gengduocaozuo {
|
|
83
|
-
display: block;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.modules-panel-item.edit {
|
|
87
|
-
height: 40px;
|
|
88
|
-
padding: 0 8px;
|
|
89
|
-
color: rgba(103, 114, 127, 1);
|
|
90
|
-
line-height: 40px;
|
|
91
|
-
background: #e8efff;
|
|
92
|
-
}
|
|
1
|
+
// @import '../../../style/base.less';
|
|
2
|
+
|
|
3
|
+
.change-panel-modal {
|
|
4
|
+
&-add-panel {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
height: 32px;
|
|
8
|
+
color: #165dff;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
.tianjia1 {
|
|
11
|
+
margin-right: 8px;
|
|
12
|
+
font-weight: 800;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
&-empty-data {
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.modules-panel-item {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
height: 32px;
|
|
26
|
+
padding: 0px 8px;
|
|
27
|
+
color: #021429;
|
|
28
|
+
line-height: 32px;
|
|
29
|
+
background: #fff;
|
|
30
|
+
border-radius: 8px;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
&-popover {
|
|
33
|
+
.ant-popover-arrow {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
.ant-popover-content {
|
|
37
|
+
margin-top: -27px;
|
|
38
|
+
margin-left: 0;
|
|
39
|
+
}
|
|
40
|
+
.ant-popover-inner-content {
|
|
41
|
+
padding: 4px 0;
|
|
42
|
+
}
|
|
43
|
+
.text {
|
|
44
|
+
height: 32px;
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0 16px;
|
|
47
|
+
line-height: 32px;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
.delete {
|
|
51
|
+
// color: #fb5547;
|
|
52
|
+
}
|
|
53
|
+
.text:hover {
|
|
54
|
+
background: #e8efff;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&-text {
|
|
58
|
+
width: 100%;
|
|
59
|
+
// .__text-cut-one();
|
|
60
|
+
}
|
|
61
|
+
.gengduocaozuo {
|
|
62
|
+
display: none;
|
|
63
|
+
margin-left: 8px;
|
|
64
|
+
font-size: 16px !important;
|
|
65
|
+
}
|
|
66
|
+
.ant-input {
|
|
67
|
+
box-shadow: none !important;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.modules-panel-item:hover {
|
|
71
|
+
color: #165dff;
|
|
72
|
+
background: #e8efff;
|
|
73
|
+
.gengduocaozuo {
|
|
74
|
+
display: block;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.modules-panel-item.active {
|
|
78
|
+
padding: 0 8px;
|
|
79
|
+
color: #fff;
|
|
80
|
+
line-height: 40px;
|
|
81
|
+
background: #165dff;
|
|
82
|
+
.gengduocaozuo {
|
|
83
|
+
display: block;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.modules-panel-item.edit {
|
|
87
|
+
height: 40px;
|
|
88
|
+
padding: 0 8px;
|
|
89
|
+
color: rgba(103, 114, 127, 1);
|
|
90
|
+
line-height: 40px;
|
|
91
|
+
background: #e8efff;
|
|
92
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.ml-20 {
|
|
2
|
-
margin-left: 20px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.green {
|
|
6
|
-
background: #4ac288;
|
|
7
|
-
border-color: #4ac288;
|
|
8
|
-
&:hover {
|
|
9
|
-
background: #3ad48a;
|
|
10
|
-
border-color: #3ad48a;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
.ml-20 {
|
|
2
|
+
margin-left: 20px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.green {
|
|
6
|
+
background: #4ac288;
|
|
7
|
+
border-color: #4ac288;
|
|
8
|
+
&:hover {
|
|
9
|
+
background: #3ad48a;
|
|
10
|
+
border-color: #3ad48a;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.biz-loading {
|
|
4
|
-
&-container.loading {
|
|
5
|
-
display: flex !important;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 100%;
|
|
11
|
-
.ant-spin-text {
|
|
12
|
-
margin-top: 12px;
|
|
13
|
-
color: #67727f;
|
|
14
|
-
font-size: 14px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
&-wrapper.loading {
|
|
18
|
-
height: 100%;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.biz-loading {
|
|
4
|
+
&-container.loading {
|
|
5
|
+
display: flex !important;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
.ant-spin-text {
|
|
12
|
+
margin-top: 12px;
|
|
13
|
+
color: #67727f;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
&-wrapper.loading {
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
}
|
package/es/loginForm/index.less
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '../assets/styles/inner.less';
|
|
2
|
-
.biz-login {
|
|
3
|
-
width: 374px;
|
|
4
|
-
.btn-login {
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
@import '../assets/styles/inner.less';
|
|
2
|
+
.biz-login {
|
|
3
|
+
width: 374px;
|
|
4
|
+
.btn-login {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -4,24 +4,57 @@ 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 React, { useState, useEffect } from 'react';
|
|
7
|
+
import React, { useState, useEffect, useContext } from 'react';
|
|
8
8
|
import { BizSelect } from '@zgfe/business-lib';
|
|
9
|
-
import { platformOption } from './util';
|
|
10
9
|
import './styles/index.less';
|
|
10
|
+
import request from '../utils/ajax';
|
|
11
|
+
import Apis from '../constants/apis';
|
|
12
|
+
import BizGlobalDataContext from '../context';
|
|
13
|
+
import { platformOptionUtil } from './util';
|
|
11
14
|
var BizPlatformSelector = function BizPlatformSelector(props) {
|
|
12
15
|
var classPrefix = 'biz-platform-selector';
|
|
13
16
|
var _useState = useState(),
|
|
14
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15
18
|
currentValue = _useState2[0],
|
|
16
19
|
setCurrentValue = _useState2[1];
|
|
20
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
21
|
+
currentApp = _useContext.currentApp;
|
|
22
|
+
var _useState3 = useState([]),
|
|
23
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
24
|
+
platformOption = _useState4[0],
|
|
25
|
+
setPlatformOption = _useState4[1];
|
|
17
26
|
useEffect(function () {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
queryPlatformList();
|
|
28
|
+
}, []);
|
|
29
|
+
function queryPlatformList() {
|
|
30
|
+
request(Apis.queryPlatformList, {
|
|
31
|
+
method: 'get',
|
|
32
|
+
params: {
|
|
33
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
34
|
+
}
|
|
35
|
+
}).then(function (res) {
|
|
36
|
+
var _res$data;
|
|
37
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
38
|
+
var list = res.data.map(function (item) {
|
|
39
|
+
return item.sdkPlatform;
|
|
40
|
+
});
|
|
41
|
+
var options = platformOptionUtil.map(function (item) {
|
|
42
|
+
if (list.includes(item.key) || item.key === 0) {
|
|
43
|
+
return item;
|
|
44
|
+
}
|
|
45
|
+
}).filter(function (item) {
|
|
46
|
+
return item;
|
|
47
|
+
});
|
|
48
|
+
setPlatformOption(options || []);
|
|
49
|
+
if (props.value) {
|
|
50
|
+
var selectValue = options.find(function (item) {
|
|
51
|
+
return item.key === props.value;
|
|
52
|
+
});
|
|
53
|
+
setCurrentValue(selectValue || options[0]);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
25
58
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
59
|
className: classPrefix
|
|
27
60
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
.biz-platform-selector {
|
|
3
|
-
width: 134px;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.biz-select-handle-content .biz-select-handle-icon .bsicon {
|
|
9
|
-
color: #9aa1a9;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
.biz-platform-selector {
|
|
3
|
+
width: 134px;
|
|
4
|
+
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
|
|
5
|
+
.biz-platform-selector-select .biz-select-handle-input {
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
border: 1px solid #ecedf0;
|
|
8
|
+
.biz-select-handle-content .biz-select-handle-icon .bsicon {
|
|
9
|
+
color: #9aa1a9;
|
|
10
|
+
}
|
|
11
|
+
.biz-select-handle-content-label {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.biz-platform-selector-select-overlay .biz-select-list-panel .biz-select-option {
|
|
18
|
+
.biz-select-option-icon .bsicon {
|
|
19
|
+
color: #9aa1a9;
|
|
20
|
+
}
|
|
21
|
+
&:hover {
|
|
22
|
+
.biz-select-option-icon .bsicon {
|
|
23
|
+
color: #165dff;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { platItemProp } from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const platformOptionUtil: platItemProp[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconFont } from '@zgfe/business-lib';
|
|
3
|
-
export var
|
|
3
|
+
export var platformOptionUtil = [{
|
|
4
4
|
key: 0,
|
|
5
5
|
value: '全部平台'
|
|
6
6
|
}, {
|
|
@@ -38,6 +38,13 @@ export var platformOption = [{
|
|
|
38
38
|
type: "fuwuqi",
|
|
39
39
|
size: 16
|
|
40
40
|
})
|
|
41
|
+
}, {
|
|
42
|
+
key: 6,
|
|
43
|
+
value: '鸿蒙',
|
|
44
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
45
|
+
type: "hongmeng",
|
|
46
|
+
size: 16
|
|
47
|
+
})
|
|
41
48
|
}, {
|
|
42
49
|
key: -1,
|
|
43
50
|
value: '其他'
|