@blueking/bk-user-selector 0.0.1-beta.1
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 +1 -0
- package/package.json +71 -0
- package/typings/index.vue.d.ts +22 -0
- package/typings/single.vue.d.ts +12 -0
- package/typings/utils/index.d.ts +59 -0
- package/typings/utils/jsonp.d.ts +4 -0
- package/typings/utils/lang.d.ts +3 -0
- package/typings/utils/service.d.ts +36 -0
- package/typings/vue2.d.ts +2 -0
- package/typings/vue3.d.ts +3 -0
- package/vue2/config.json +1 -0
- package/vue2/index.es.min.js +40385 -0
- package/vue2/index.iife.min.js +49864 -0
- package/vue2/index.umd.min.js +40407 -0
- package/vue2/vue2.css +3168 -0
- package/vue3/config.json +1 -0
- package/vue3/index.es.min.js +7433 -0
- package/vue3/index.iife.min.js +40366 -0
- package/vue3/index.umd.min.js +7438 -0
- package/vue3/vue3.css +219 -0
package/vue3/vue3.css
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
|
|
2
|
+
.user-selector[data-v-f60d399f] {
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
.form-item[data-v-f60d399f] {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
margin-bottom: 15px;
|
|
9
|
+
}
|
|
10
|
+
.form-label[data-v-f60d399f] {
|
|
11
|
+
width: 80px;
|
|
12
|
+
text-align: right;
|
|
13
|
+
padding-right: 10px;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
color: #63656e;
|
|
16
|
+
}
|
|
17
|
+
.form-required[data-v-f60d399f] {
|
|
18
|
+
color: #ea3636;
|
|
19
|
+
margin-right: 4px;
|
|
20
|
+
}
|
|
21
|
+
.form-content[data-v-f60d399f] {
|
|
22
|
+
flex: 1;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
.tag-input-container[data-v-f60d399f] {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
border: 1px solid #dcdee5;
|
|
29
|
+
border-radius: 2px;
|
|
30
|
+
min-height: 32px;
|
|
31
|
+
align-items: center;
|
|
32
|
+
padding: 2px 8px;
|
|
33
|
+
gap: 4px;
|
|
34
|
+
}
|
|
35
|
+
.tag-inline-container[data-v-f60d399f] {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-wrap: nowrap;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 4px;
|
|
40
|
+
flex-grow: 1;
|
|
41
|
+
min-height: 24px;
|
|
42
|
+
}
|
|
43
|
+
.is-focused[data-v-f60d399f] {
|
|
44
|
+
border-color: #3a84ff;
|
|
45
|
+
}
|
|
46
|
+
.tag-group[data-v-f60d399f] {
|
|
47
|
+
display: contents;
|
|
48
|
+
/* 让draggable的内容直接成为父容器的子元素 */
|
|
49
|
+
}
|
|
50
|
+
.tag-item[data-v-f60d399f] {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
height: 24px;
|
|
53
|
+
line-height: 24px;
|
|
54
|
+
margin: 0;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
.tag-content[data-v-f60d399f] {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
height: 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 输入框样式 */
|
|
66
|
+
.tag-input[data-v-f60d399f] {
|
|
67
|
+
flex-grow: 0;
|
|
68
|
+
width: 10px;
|
|
69
|
+
min-width: 10px;
|
|
70
|
+
max-width: 100%;
|
|
71
|
+
border: none;
|
|
72
|
+
outline: none;
|
|
73
|
+
height: 32px;
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
padding: 0 8px;
|
|
76
|
+
background: transparent;
|
|
77
|
+
cursor: text;
|
|
78
|
+
transition: width 0.1s ease-in-out;
|
|
79
|
+
}
|
|
80
|
+
.tag-input[data-v-f60d399f]::placeholder {
|
|
81
|
+
color: #c4c6cc;
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
}
|
|
84
|
+
.full-width[data-v-f60d399f] {
|
|
85
|
+
flex-grow: 1;
|
|
86
|
+
padding: 0 8px;
|
|
87
|
+
/* 添加统一的内边距 */
|
|
88
|
+
}
|
|
89
|
+
.popover-content[data-v-f60d399f] {
|
|
90
|
+
min-height: 80px;
|
|
91
|
+
max-height: 250px;
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
background-color: #fff;
|
|
94
|
+
}
|
|
95
|
+
.user-option[data-v-f60d399f] {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
padding: 8px 12px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
}
|
|
101
|
+
.user-option[data-v-f60d399f]:hover {
|
|
102
|
+
background-color: #f5f7fa;
|
|
103
|
+
}
|
|
104
|
+
.user-avatar[data-v-f60d399f] {
|
|
105
|
+
width: 24px;
|
|
106
|
+
height: 24px;
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
margin-right: 8px;
|
|
109
|
+
}
|
|
110
|
+
.user-avatar-text[data-v-f60d399f] {
|
|
111
|
+
width: 24px;
|
|
112
|
+
height: 24px;
|
|
113
|
+
line-height: 24px;
|
|
114
|
+
text-align: center;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
background-color: #3a84ff;
|
|
117
|
+
color: white;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
margin-right: 8px;
|
|
120
|
+
}
|
|
121
|
+
.user-name[data-v-f60d399f] {
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* 拖拽相关样式 */
|
|
126
|
+
.draggable[data-v-f60d399f] {
|
|
127
|
+
cursor: move;
|
|
128
|
+
padding-left: 4px;
|
|
129
|
+
}
|
|
130
|
+
.ghost-tag[data-v-f60d399f] {
|
|
131
|
+
opacity: 0.5;
|
|
132
|
+
background: #c8ebfb;
|
|
133
|
+
}
|
|
134
|
+
.chosen-tag[data-v-f60d399f] {
|
|
135
|
+
box-shadow: 0 0 2px 2px #3a84ff;
|
|
136
|
+
}
|
|
137
|
+
.drag-tag[data-v-f60d399f] {
|
|
138
|
+
opacity: 0.8;
|
|
139
|
+
}
|
|
140
|
+
.drag-handle[data-v-f60d399f] {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
margin-right: 4px;
|
|
144
|
+
opacity: 0.6;
|
|
145
|
+
cursor: move;
|
|
146
|
+
}
|
|
147
|
+
.drag-handle svg[data-v-f60d399f] {
|
|
148
|
+
fill: currentColor;
|
|
149
|
+
}
|
|
150
|
+
.tag-wrapper[data-v-f60d399f] {
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
padding: 0;
|
|
154
|
+
height: 24px;
|
|
155
|
+
}
|
|
156
|
+
.inline-input[data-v-f60d399f] {
|
|
157
|
+
margin-left: 4px;
|
|
158
|
+
min-width: 10px;
|
|
159
|
+
padding: 0 2px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* 测量元素样式 */
|
|
163
|
+
.measure-text[data-v-f60d399f] {
|
|
164
|
+
position: absolute;
|
|
165
|
+
visibility: hidden;
|
|
166
|
+
height: 0;
|
|
167
|
+
white-space: pre;
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
font-family: inherit;
|
|
170
|
+
padding: 0 2px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* 单选模式样式 */
|
|
174
|
+
.is-single[data-v-f60d399f] {
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
.single-select[data-v-f60d399f] {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
justify-content: space-between;
|
|
181
|
+
width: 100%;
|
|
182
|
+
height: 100%;
|
|
183
|
+
}
|
|
184
|
+
.single-value[data-v-f60d399f] {
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
padding: 0 8px;
|
|
188
|
+
margin-right: 4px;
|
|
189
|
+
height: 24px;
|
|
190
|
+
}
|
|
191
|
+
.single-input[data-v-f60d399f] {
|
|
192
|
+
flex: 1;
|
|
193
|
+
width: auto;
|
|
194
|
+
}
|
|
195
|
+
.placeholder[data-v-f60d399f] {
|
|
196
|
+
color: #c4c6cc;
|
|
197
|
+
}
|
|
198
|
+
.dropdown-arrow[data-v-f60d399f] {
|
|
199
|
+
margin-left: 8px;
|
|
200
|
+
font-size: 10px;
|
|
201
|
+
color: #979ba5;
|
|
202
|
+
}
|
|
203
|
+
.clear-icon[data-v-f60d399f] {
|
|
204
|
+
margin-left: 8px;
|
|
205
|
+
font-size: 14px;
|
|
206
|
+
color: #979ba5;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
}
|
|
209
|
+
.clear-icon[data-v-f60d399f]:hover {
|
|
210
|
+
color: #63656e;
|
|
211
|
+
}
|
|
212
|
+
.no-data[data-v-f60d399f] {
|
|
213
|
+
padding: 8px 12px;
|
|
214
|
+
font-size: 12px;
|
|
215
|
+
text-align: center;
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
justify-content: center;
|
|
219
|
+
}
|