@cgboiler/biz-mobile 1.18.20 → 1.18.22

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 (55) hide show
  1. package/es/index.d.ts +2 -4
  2. package/es/index.js +2 -6
  3. package/es/md-preview/index.less +107 -107
  4. package/es/org-picker/OrgPicker.js +19 -11
  5. package/es/org-picker/_atomic.css +0 -21
  6. package/es/org-picker/index.less +230 -230
  7. package/es/org-picker/useApi.d.ts +6 -1
  8. package/es/org-picker/useApi.js +256 -68
  9. package/es/org-picker/useSearch.js +37 -16
  10. package/es/project-select/index.less +45 -45
  11. package/es/vue-sfc-shim.d.ts +8 -8
  12. package/es/vue-tsx-shim.d.ts +29 -29
  13. package/lib/index.d.ts +2 -4
  14. package/lib/index.js +2 -6
  15. package/lib/md-preview/index.less +107 -107
  16. package/lib/org-picker/OrgPicker.js +20 -12
  17. package/lib/org-picker/_atomic.css +0 -21
  18. package/lib/org-picker/index.less +230 -230
  19. package/lib/org-picker/useApi.d.ts +6 -1
  20. package/lib/org-picker/useApi.js +254 -68
  21. package/lib/org-picker/useSearch.js +36 -15
  22. package/lib/project-select/index.less +45 -45
  23. package/lib/vue-sfc-shim.d.ts +8 -8
  24. package/lib/vue-tsx-shim.d.ts +29 -29
  25. package/package.json +2 -3
  26. package/es/rich-text-editor/RichTextEditor.d.ts +0 -26
  27. package/es/rich-text-editor/RichTextEditor.js +0 -23
  28. package/es/rich-text-editor/_atomic.css +0 -32
  29. package/es/rich-text-editor/index.css +0 -0
  30. package/es/rich-text-editor/index.d.ts +0 -3
  31. package/es/rich-text-editor/index.js +0 -5
  32. package/es/rich-text-editor/index.less +0 -0
  33. package/es/rich-text-editor/style/index.d.ts +0 -1
  34. package/es/rich-text-editor/style/index.js +0 -1
  35. package/es/rich-text-editor/style/less.d.ts +0 -1
  36. package/es/rich-text-editor/style/less.js +0 -1
  37. package/es/rich-text-editor/types.d.ts +0 -12
  38. package/es/rich-text-editor/types.js +0 -13
  39. package/lib/rich-text-editor/RichTextEditor.d.ts +0 -26
  40. package/lib/rich-text-editor/RichTextEditor.js +0 -42
  41. package/lib/rich-text-editor/_atomic.css +0 -32
  42. package/lib/rich-text-editor/index.css +0 -0
  43. package/lib/rich-text-editor/index.d.ts +0 -3
  44. package/lib/rich-text-editor/index.js +0 -34
  45. package/lib/rich-text-editor/index.less +0 -0
  46. package/lib/rich-text-editor/style/index.d.ts +0 -1
  47. package/lib/rich-text-editor/style/index.js +0 -1
  48. package/lib/rich-text-editor/style/less.d.ts +0 -1
  49. package/lib/rich-text-editor/style/less.js +0 -1
  50. package/lib/rich-text-editor/types.d.ts +0 -12
  51. package/lib/rich-text-editor/types.js +0 -32
  52. /package/es/org-picker/components/{DeptImg.d.ts → deptImg.d.ts} +0 -0
  53. /package/es/org-picker/components/{DeptImg.js → deptImg.js} +0 -0
  54. /package/lib/org-picker/components/{DeptImg.d.ts → deptImg.d.ts} +0 -0
  55. /package/lib/org-picker/components/{DeptImg.js → deptImg.js} +0 -0
@@ -1,230 +1,230 @@
1
- :root:root {
2
- --van-action-sheet-max-height: 100%;
3
- }
4
- .org-list {
5
- height: 85vh;
6
- display: flex;
7
- flex-direction: column;
8
-
9
- .highlight {
10
- color: var(--van-primary-color);
11
- font-weight: bold;
12
- }
13
-
14
- .breadcrumb-nav {
15
- margin-bottom: 4px;
16
- padding: 2px 16px;
17
- border-radius: 4px;
18
- font-size: 12px;
19
-
20
- .dept-name {
21
- &.current-dept {
22
- color: #969799; /* 提示文字颜色 */
23
- }
24
- }
25
-
26
- .separator {
27
- color: #969799;
28
- margin: 0 4px;
29
- }
30
- }
31
-
32
- .search-bar {
33
- position: sticky;
34
- top: 0;
35
- z-index: 1;
36
- }
37
-
38
- .org-selected-items {
39
- display: flex;
40
- flex-wrap: nowrap;
41
- padding: 12px 16px;
42
- gap: 12px;
43
- background-color: #fff;
44
- overflow-x: auto;
45
- height: 68px;
46
- border-bottom: 1px solid #eee;
47
-
48
- .selected-tag {
49
- flex-shrink: 0;
50
- background: none;
51
- border: none;
52
- padding: 0;
53
- margin: 0;
54
- position: relative;
55
- .close-icon {
56
- position: absolute;
57
- top: 0;
58
- right: 0;
59
- z-index: 1;
60
- background-color: #fff;
61
- border-radius: 50%;
62
- border: 1px solid #eee;
63
- width: 10px;
64
- height: 10px;
65
- display: flex;
66
- align-items: center;
67
- justify-content: center;
68
- font-size: 6px;
69
- color: #969799;
70
- }
71
-
72
- .tag-avatar {
73
- width: 40px;
74
- height: 40px;
75
- img {
76
- border-radius: 4px;
77
- border: 1px solid #eee;
78
- object-fit: contain;
79
- }
80
- }
81
- }
82
- }
83
-
84
- .bottom-section {
85
- border-top: 1px solid #eee;
86
- background-color: #fff;
87
- }
88
-
89
- .van-list {
90
- flex: 1;
91
- overflow-y: auto;
92
- padding: 0 16px;
93
- }
94
-
95
- .org-content-wrap {
96
- flex: 1;
97
- display: flex;
98
- flex-direction: column;
99
- overflow: hidden;
100
- position: relative;
101
- padding-top: 4px;
102
- }
103
-
104
- .feed-list-wrap {
105
- flex: 1;
106
- display: flex;
107
- overflow: hidden;
108
- position: relative;
109
- justify-content: center;
110
- }
111
- .search-result-list {
112
- position: absolute;
113
- top: 0; /* Adjust based on search bar and breadcrumb height */
114
- left: 0;
115
- right: 0;
116
- bottom: 0; /* Adjust based on bottom section height if multiple is true */
117
- z-index: 1;
118
- background-color: #fff; /* Ensure background is white */
119
- overflow-y: auto;
120
- padding: 0 16px;
121
- }
122
-
123
- .org-item {
124
- padding: 12px 0;
125
- border-bottom: 1px solid #eee;
126
- cursor: pointer;
127
- display: flex;
128
- align-items: center;
129
- gap: 12px;
130
-
131
- .org-item-select-icon {
132
- display: none;
133
- padding-left: 4px;
134
- }
135
- &.selected {
136
- color: var(--van-primary-color);
137
- .org-item-select-icon {
138
- display: inline;
139
- }
140
- }
141
-
142
- // 部门选择器样式
143
- .dept-selector {
144
- width: 20px;
145
- height: 20px;
146
- border: 2px solid #ddd;
147
- border-radius: 4px;
148
- display: flex;
149
- align-items: center;
150
- justify-content: center;
151
- flex-shrink: 0;
152
-
153
- .dept-check-icon {
154
- font-size: 12px;
155
- color: var(--van-primary-color);
156
- font-weight: bold;
157
- }
158
- }
159
-
160
- // 部门完全选中状态
161
- &.dept-fully-selected {
162
- .dept-selector {
163
- background-color: var(--van-primary-color);
164
- border-color: var(--van-primary-color);
165
-
166
- .dept-check-icon {
167
- color: white;
168
- }
169
- }
170
- }
171
-
172
- // 部门部分选中状态
173
- &.dept-partially-selected {
174
- .dept-selector {
175
- border-color: var(--van-primary-color);
176
-
177
- .dept-check-icon {
178
- color: var(--van-primary-color);
179
- }
180
- }
181
- }
182
-
183
- .org-avatar {
184
- flex-shrink: 0;
185
- width: 40px;
186
- height: 40px;
187
- display: flex;
188
- align-items: center;
189
- justify-content: center;
190
- img {
191
- border-radius: 4px;
192
- border: 1px solid #eee;
193
- object-fit: contain;
194
- }
195
- }
196
-
197
- .dept-content {
198
- display: flex;
199
- align-items: center;
200
- flex: 1;
201
- cursor: pointer;
202
- gap: 12px;
203
- }
204
-
205
- .org-name {
206
- font-size: 14px;
207
- flex: 1;
208
- }
209
-
210
- &:last-child {
211
- border-bottom: none;
212
- }
213
- }
214
-
215
- .action-buttons {
216
- padding: 16px;
217
- display: flex;
218
- justify-content: center;
219
-
220
- .confirm-button {
221
- background-color: var(--van-primary-color);
222
- color: white;
223
- padding: 10px 0;
224
- border-radius: 4px;
225
- text-align: center;
226
- width: 100%;
227
- font-size: 14px;
228
- }
229
- }
230
- }
1
+ :root:root {
2
+ --van-action-sheet-max-height: 100%;
3
+ }
4
+ .org-list {
5
+ height: 85vh;
6
+ display: flex;
7
+ flex-direction: column;
8
+
9
+ .highlight {
10
+ color: var(--van-primary-color);
11
+ font-weight: bold;
12
+ }
13
+
14
+ .breadcrumb-nav {
15
+ margin-bottom: 4px;
16
+ padding: 2px 16px;
17
+ border-radius: 4px;
18
+ font-size: 12px;
19
+
20
+ .dept-name {
21
+ &.current-dept {
22
+ color: #969799; /* 提示文字颜色 */
23
+ }
24
+ }
25
+
26
+ .separator {
27
+ color: #969799;
28
+ margin: 0 4px;
29
+ }
30
+ }
31
+
32
+ .search-bar {
33
+ position: sticky;
34
+ top: 0;
35
+ z-index: 1;
36
+ }
37
+
38
+ .org-selected-items {
39
+ display: flex;
40
+ flex-wrap: nowrap;
41
+ padding: 12px 16px;
42
+ gap: 12px;
43
+ background-color: #fff;
44
+ overflow-x: auto;
45
+ height: 68px;
46
+ border-bottom: 1px solid #eee;
47
+
48
+ .selected-tag {
49
+ flex-shrink: 0;
50
+ background: none;
51
+ border: none;
52
+ padding: 0;
53
+ margin: 0;
54
+ position: relative;
55
+ .close-icon {
56
+ position: absolute;
57
+ top: 0;
58
+ right: 0;
59
+ z-index: 1;
60
+ background-color: #fff;
61
+ border-radius: 50%;
62
+ border: 1px solid #eee;
63
+ width: 10px;
64
+ height: 10px;
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ font-size: 6px;
69
+ color: #969799;
70
+ }
71
+
72
+ .tag-avatar {
73
+ width: 40px;
74
+ height: 40px;
75
+ img {
76
+ border-radius: 4px;
77
+ border: 1px solid #eee;
78
+ object-fit: contain;
79
+ }
80
+ }
81
+ }
82
+ }
83
+
84
+ .bottom-section {
85
+ border-top: 1px solid #eee;
86
+ background-color: #fff;
87
+ }
88
+
89
+ .van-list {
90
+ flex: 1;
91
+ overflow-y: auto;
92
+ padding: 0 16px;
93
+ }
94
+
95
+ .org-content-wrap {
96
+ flex: 1;
97
+ display: flex;
98
+ flex-direction: column;
99
+ overflow: hidden;
100
+ position: relative;
101
+ padding-top: 4px;
102
+ }
103
+
104
+ .feed-list-wrap {
105
+ flex: 1;
106
+ display: flex;
107
+ overflow: hidden;
108
+ position: relative;
109
+ justify-content: center;
110
+ }
111
+ .search-result-list {
112
+ position: absolute;
113
+ top: 0; /* Adjust based on search bar and breadcrumb height */
114
+ left: 0;
115
+ right: 0;
116
+ bottom: 0; /* Adjust based on bottom section height if multiple is true */
117
+ z-index: 1;
118
+ background-color: #fff; /* Ensure background is white */
119
+ overflow-y: auto;
120
+ padding: 0 16px;
121
+ }
122
+
123
+ .org-item {
124
+ padding: 12px 0;
125
+ border-bottom: 1px solid #eee;
126
+ cursor: pointer;
127
+ display: flex;
128
+ align-items: center;
129
+ gap: 12px;
130
+
131
+ .org-item-select-icon {
132
+ display: none;
133
+ padding-left: 4px;
134
+ }
135
+ &.selected {
136
+ color: var(--van-primary-color);
137
+ .org-item-select-icon {
138
+ display: inline;
139
+ }
140
+ }
141
+
142
+ // 部门选择器样式
143
+ .dept-selector {
144
+ width: 20px;
145
+ height: 20px;
146
+ border: 2px solid #ddd;
147
+ border-radius: 4px;
148
+ display: flex;
149
+ align-items: center;
150
+ justify-content: center;
151
+ flex-shrink: 0;
152
+
153
+ .dept-check-icon {
154
+ font-size: 12px;
155
+ color: var(--van-primary-color);
156
+ font-weight: bold;
157
+ }
158
+ }
159
+
160
+ // 部门完全选中状态
161
+ &.dept-fully-selected {
162
+ .dept-selector {
163
+ background-color: var(--van-primary-color);
164
+ border-color: var(--van-primary-color);
165
+
166
+ .dept-check-icon {
167
+ color: white;
168
+ }
169
+ }
170
+ }
171
+
172
+ // 部门部分选中状态
173
+ &.dept-partially-selected {
174
+ .dept-selector {
175
+ border-color: var(--van-primary-color);
176
+
177
+ .dept-check-icon {
178
+ color: var(--van-primary-color);
179
+ }
180
+ }
181
+ }
182
+
183
+ .org-avatar {
184
+ flex-shrink: 0;
185
+ width: 40px;
186
+ height: 40px;
187
+ display: flex;
188
+ align-items: center;
189
+ justify-content: center;
190
+ img {
191
+ border-radius: 4px;
192
+ border: 1px solid #eee;
193
+ object-fit: contain;
194
+ }
195
+ }
196
+
197
+ .dept-content {
198
+ display: flex;
199
+ align-items: center;
200
+ flex: 1;
201
+ cursor: pointer;
202
+ gap: 12px;
203
+ }
204
+
205
+ .org-name {
206
+ font-size: 14px;
207
+ flex: 1;
208
+ }
209
+
210
+ &:last-child {
211
+ border-bottom: none;
212
+ }
213
+ }
214
+
215
+ .action-buttons {
216
+ padding: 16px;
217
+ display: flex;
218
+ justify-content: center;
219
+
220
+ .confirm-button {
221
+ background-color: var(--van-primary-color);
222
+ color: white;
223
+ padding: 10px 0;
224
+ border-radius: 4px;
225
+ text-align: center;
226
+ width: 100%;
227
+ font-size: 14px;
228
+ }
229
+ }
230
+ }
@@ -42,6 +42,7 @@ export declare const useApi: () => {
42
42
  }[]>;
43
43
  getOrgList: (deptId?: string) => Promise<void>;
44
44
  currentDeptId: import("vue").Ref<string, string>;
45
+ browsedCompanyId: import("vue").Ref<string, string>;
45
46
  deptPath: import("vue").Ref<{
46
47
  id: string | number;
47
48
  name: string;
@@ -58,6 +59,10 @@ export declare const useApi: () => {
58
59
  setRecentSelectedUsers: (users: OrgItem[]) => Promise<void>;
59
60
  getUserInfoById: (id: string | number) => OrgItem | undefined;
60
61
  deptList: import("vue").Ref<any[], any[]>;
61
- getUsersByDeptId: (deptId: string) => OrgItem[];
62
+ getUsersByDeptId: (deptId: string, cid?: string, visited?: Set<string>) => OrgItem[];
62
63
  getDeptById: (deptId: string) => any;
64
+ getCompanies: () => {
65
+ id: string;
66
+ name: string;
67
+ }[];
63
68
  };