@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.
@@ -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
- eventApi.fetchAllEvents(currentApp === null || currentApp === void 0 ? void 0 : currentApp.id, 0, false).then(function (res) {
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
- .__select-panel();
12
- }
13
-
14
- &-list-panel {
15
- flex: 1;
16
- max-height: 400px;
17
- overflow-x: hidden;
18
- overflow-y: auto;
19
- }
20
-
21
- &-search {
22
- flex: none;
23
- margin-bottom: @margin-xs;
24
- }
25
-
26
- &-nodata {
27
- .__select-nodata();
28
- }
29
-
30
- &-group {
31
- position: relative;
32
- height: 32px;
33
- padding: 0 @padding-sm;
34
- color: @text-color-secondary;
35
- line-height: 32px;
36
-
37
- &::before {
38
- position: absolute;
39
- top: 9px;
40
- left: 5px;
41
- width: 3px;
42
- height: 14px;
43
- background-color: @primary-color;
44
- border-radius: 10px;
45
- content: '';
46
- }
47
-
48
- & > span {
49
- position: relative;
50
- padding-right: @padding-xss;
51
- background: #fff;
52
- }
53
- }
54
-
55
- &-split {
56
- position: absolute;
57
- top: 18px;
58
- width: 100%;
59
- height: 0;
60
- border-bottom: 1px solid @border-color-base;
61
- }
62
-
63
- &-option {
64
- display: flex;
65
- .__select-option();
66
-
67
- &.biz-select-option-multiple {
68
- &:hover:not(.disabled) {
69
- color: @primary-color;
70
- background-color: @primary-color-hover;
71
- .biz-select-checkbox {
72
- color: @primary-color;
73
- }
74
- }
75
-
76
- &.active:not(.disabled) {
77
- color: @primary-color;
78
- background: #fff;
79
- .biz-select-checkbox {
80
- color: @primary-color;
81
- }
82
- }
83
- }
84
-
85
- &:not(.active, :hover, .disabled) .biz-select-highlight {
86
- color: @primary-color;
87
- }
88
-
89
- &-label {
90
- flex: 1;
91
- .__default-overflow();
92
- }
93
- &-all {
94
- position: relative;
95
- .ant-checkbox-wrapper {
96
- width: 100%;
97
- }
98
- .ant-checkbox-inner {
99
- width: 14px;
100
- height: 14px;
101
- &::after {
102
- top: 45%;
103
- }
104
- }
105
- }
106
- }
107
-
108
- &-checkbox {
109
- margin-right: 8px;
110
- color: @border-color-base;
111
- &-indeterminate {
112
- position: absolute;
113
- top: 12px;
114
- left: 15px;
115
- width: 8px;
116
- height: 8px;
117
- background-color: @primary-color;
118
- border-radius: 1px;
119
- }
120
- }
121
-
122
- &-option-icon {
123
- margin-right: @margin-xs;
124
- }
125
-
126
- &-notfound {
127
- padding: @padding-xs;
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.17",
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": "c67a2ec655f6335b79f3c7e766c270b5035d2db1",
58
+ "gitHead": "6992141134a84155fe50d40f11a26ac909bfe66b",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }