@zgfe/business-lib 1.2.71-hxd.17 → 1.2.71-hxd.20
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/addToScene/index.js +7 -2
- package/es/select/styles/index.less +130 -129
- package/package.json +2 -2
package/es/addToScene/index.js
CHANGED
|
@@ -14,7 +14,6 @@ import BizGlobalDataContext from '../context';
|
|
|
14
14
|
import Apis from '../constants/apis';
|
|
15
15
|
import request from '../utils/ajax';
|
|
16
16
|
import IconFont from '../icon/iconFont';
|
|
17
|
-
import { eventApi } from '../utils';
|
|
18
17
|
export var classPrefix = 'biz-addtoscene';
|
|
19
18
|
var BizAddToScene = function BizAddToScene(props) {
|
|
20
19
|
var params = props.params;
|
|
@@ -85,7 +84,13 @@ var BizAddToScene = function BizAddToScene(props) {
|
|
|
85
84
|
});
|
|
86
85
|
}
|
|
87
86
|
function queryGroups() {
|
|
88
|
-
|
|
87
|
+
request(Apis.querySceneGroup, {
|
|
88
|
+
method: 'post',
|
|
89
|
+
data: {
|
|
90
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
91
|
+
platform: 0
|
|
92
|
+
}
|
|
93
|
+
}).then(function (res) {
|
|
89
94
|
if (!res) {
|
|
90
95
|
notification.error({
|
|
91
96
|
message: '获取常用场景分类列表失败'
|
|
@@ -1,129 +1,130 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.biz-select {
|
|
4
|
-
&-handle {
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-overlay {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
overflow-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.biz-select {
|
|
4
|
+
&-handle {
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-overlay {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
max-height: 240px;
|
|
12
|
+
overflow-y: auto .__select-panel();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-list-panel {
|
|
16
|
+
flex: 1;
|
|
17
|
+
max-height: 400px;
|
|
18
|
+
overflow-x: hidden;
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-search {
|
|
23
|
+
flex: none;
|
|
24
|
+
margin-bottom: @margin-xs;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-nodata {
|
|
28
|
+
.__select-nodata();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-group {
|
|
32
|
+
position: relative;
|
|
33
|
+
height: 32px;
|
|
34
|
+
padding: 0 @padding-sm;
|
|
35
|
+
color: @text-color-secondary;
|
|
36
|
+
line-height: 32px;
|
|
37
|
+
|
|
38
|
+
&::before {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 9px;
|
|
41
|
+
left: 5px;
|
|
42
|
+
width: 3px;
|
|
43
|
+
height: 14px;
|
|
44
|
+
background-color: @primary-color;
|
|
45
|
+
border-radius: 10px;
|
|
46
|
+
content: '';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
& > span {
|
|
50
|
+
position: relative;
|
|
51
|
+
padding-right: @padding-xss;
|
|
52
|
+
background: #fff;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-split {
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 18px;
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: 0;
|
|
61
|
+
border-bottom: 1px solid @border-color-base;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-option {
|
|
65
|
+
display: flex;
|
|
66
|
+
.__select-option();
|
|
67
|
+
|
|
68
|
+
&.biz-select-option-multiple {
|
|
69
|
+
&:hover:not(.disabled) {
|
|
70
|
+
color: @primary-color;
|
|
71
|
+
background-color: @primary-color-hover;
|
|
72
|
+
.biz-select-checkbox {
|
|
73
|
+
color: @primary-color;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.active:not(.disabled) {
|
|
78
|
+
color: @primary-color;
|
|
79
|
+
background: #fff;
|
|
80
|
+
.biz-select-checkbox {
|
|
81
|
+
color: @primary-color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:not(.active, :hover, .disabled) .biz-select-highlight {
|
|
87
|
+
color: @primary-color;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-label {
|
|
91
|
+
flex: 1;
|
|
92
|
+
.__default-overflow();
|
|
93
|
+
}
|
|
94
|
+
&-all {
|
|
95
|
+
position: relative;
|
|
96
|
+
.ant-checkbox-wrapper {
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
.ant-checkbox-inner {
|
|
100
|
+
width: 14px;
|
|
101
|
+
height: 14px;
|
|
102
|
+
&::after {
|
|
103
|
+
top: 45%;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&-checkbox {
|
|
110
|
+
margin-right: 8px;
|
|
111
|
+
color: @border-color-base;
|
|
112
|
+
&-indeterminate {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 12px;
|
|
115
|
+
left: 15px;
|
|
116
|
+
width: 8px;
|
|
117
|
+
height: 8px;
|
|
118
|
+
background-color: @primary-color;
|
|
119
|
+
border-radius: 1px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&-option-icon {
|
|
124
|
+
margin-right: @margin-xs;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&-notfound {
|
|
128
|
+
padding: @padding-xs;
|
|
129
|
+
}
|
|
130
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.71-hxd.
|
|
3
|
+
"version": "1.2.71-hxd.20",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^16.12.0 || ^17.0.0",
|
|
56
56
|
"yorkie": "^2.0.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "6992141134a84155fe50d40f11a26ac909bfe66b",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|