bkui-vue 0.0.1-beta.193 → 0.0.1-beta.195
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/dist/index.cjs.js +25 -25
- package/dist/index.esm.js +61 -72
- package/dist/index.umd.js +24 -24
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/popover/index.d.ts +26 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +11 -0
- package/lib/popover/props.d.ts +5 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +376 -24
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.css +23 -23
- package/lib/tag-input/tag-input.d.ts +178 -8
- package/lib/tag-input/tag-input.less +101 -101
- package/lib/tag-input/tag-input.variable.css +23 -23
- package/lib/tag-input/tag-props.d.ts +79 -0
- package/lib/upload/index.js +1 -1
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +1 -1
- package/lib/styles/mixins/animate.css +0 -21
@@ -119,133 +119,133 @@
|
|
119
119
|
}
|
120
120
|
}
|
121
121
|
}
|
122
|
-
|
123
|
-
.bk-popover-content {
|
124
|
-
padding: 0;
|
125
|
-
}
|
126
122
|
}
|
127
123
|
|
128
|
-
.bk-
|
129
|
-
|
130
|
-
|
131
|
-
.
|
132
|
-
|
133
|
-
padding: 0;
|
134
|
-
padding: 6px 0;
|
135
|
-
margin: 0;
|
136
|
-
overflow-y: auto;
|
137
|
-
list-style: none;
|
138
|
-
background-color: @white-color;
|
139
|
-
border: 1px solid #dcdee5;
|
140
|
-
border-radius: 2px;
|
124
|
+
.bk-tag-input-popover-content {
|
125
|
+
padding: 0;
|
126
|
+
|
127
|
+
.bk-selector-list {
|
128
|
+
min-width: 150px;
|
141
129
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
130
|
+
.outside-ul {
|
131
|
+
max-height: 160px;
|
132
|
+
padding: 0;
|
133
|
+
padding: 6px 0;
|
134
|
+
margin: 0;
|
135
|
+
overflow-y: auto;
|
136
|
+
list-style: none;
|
137
|
+
background-color: @white-color;
|
138
|
+
border: 1px solid #dcdee5;
|
139
|
+
border-radius: 2px;
|
140
|
+
|
141
|
+
&::-webkit-scrollbar {
|
142
|
+
width: 6px;
|
143
|
+
height: 6px;
|
144
|
+
}
|
146
145
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
146
|
+
&::-webkit-scrollbar-thumb {
|
147
|
+
min-height: 24px;
|
148
|
+
background-color: #dcdee5;
|
149
|
+
border-radius: 3px;
|
150
|
+
}
|
151
151
|
}
|
152
|
-
}
|
153
152
|
|
154
|
-
|
155
|
-
|
153
|
+
.bk-selector-group-item {
|
154
|
+
list-style: none;
|
156
155
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
156
|
+
.group-name {
|
157
|
+
padding-left: 11px;
|
158
|
+
font-size: 12px;
|
159
|
+
line-height: 32px;
|
160
|
+
color: #979ba5;
|
161
|
+
}
|
162
162
|
}
|
163
|
-
}
|
164
163
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
164
|
+
.bk-selector-group-list-item {
|
165
|
+
padding: 0;
|
166
|
+
margin: 0;
|
167
|
+
list-style: none;
|
168
|
+
}
|
170
169
|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
170
|
+
.bk-selector-list-item {
|
171
|
+
position: relative;
|
172
|
+
width: 100%;
|
173
|
+
cursor: pointer;
|
174
|
+
background-color: @white-color;
|
175
|
+
border-right: @light-gray;
|
176
|
+
border-left: @light-gray;
|
178
177
|
|
179
|
-
|
180
|
-
|
181
|
-
|
178
|
+
&:first-child {
|
179
|
+
border-top: @light-gray;
|
180
|
+
}
|
182
181
|
|
183
|
-
|
184
|
-
|
185
|
-
|
182
|
+
&:last-child {
|
183
|
+
border-bottom: @light-gray;
|
184
|
+
}
|
186
185
|
|
187
|
-
|
188
|
-
|
186
|
+
&.bk-selector-selected {
|
187
|
+
background-color: #f4f6fa;
|
189
188
|
|
190
|
-
|
191
|
-
|
189
|
+
.selected-icon {
|
190
|
+
display: inline-block;
|
191
|
+
}
|
192
192
|
}
|
193
|
-
}
|
194
193
|
|
195
|
-
|
196
|
-
|
197
|
-
|
194
|
+
&.bk-selector-actived {
|
195
|
+
background-color: #f4f6fa;
|
196
|
+
}
|
198
197
|
|
199
|
-
|
200
|
-
|
201
|
-
|
198
|
+
&:hover {
|
199
|
+
background-color: #eaf3ff;
|
200
|
+
}
|
202
201
|
|
203
|
-
|
204
|
-
|
205
|
-
|
202
|
+
&.disabled {
|
203
|
+
cursor: not-allowed;
|
204
|
+
background: @white-color;
|
206
205
|
|
207
|
-
|
208
|
-
|
206
|
+
.text {
|
207
|
+
color: @light-gray;
|
208
|
+
}
|
209
209
|
}
|
210
|
-
}
|
211
210
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
211
|
+
&.loading {
|
212
|
+
padding: 5px 0 3px;
|
213
|
+
text-align: center;
|
214
|
+
}
|
216
215
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
216
|
+
.loading {
|
217
|
+
position: relative;
|
218
|
+
width: 100%;
|
219
|
+
height: 40px;
|
220
|
+
font-size: 14px;
|
221
|
+
cursor: default;
|
222
|
+
}
|
224
223
|
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
224
|
+
.text {
|
225
|
+
padding: 0 10px;
|
226
|
+
overflow: hidden;
|
227
|
+
font-size: 12px;
|
228
|
+
line-height: 32px;
|
229
|
+
color: @default-color;
|
230
|
+
text-overflow: ellipsis;
|
231
|
+
white-space: nowrap;
|
232
|
+
}
|
234
233
|
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
234
|
+
.bk-selector-tools {
|
235
|
+
position: absolute;
|
236
|
+
top: 10px;
|
237
|
+
right: 0;
|
238
|
+
display: none;
|
239
|
+
font-size: 12px;
|
241
240
|
|
242
|
-
|
243
|
-
|
241
|
+
.bk-selector-list-icon {
|
242
|
+
margin-right: 14px;
|
243
|
+
}
|
244
244
|
}
|
245
|
-
}
|
246
245
|
|
247
|
-
|
248
|
-
|
246
|
+
.highlight-text {
|
247
|
+
color: @primary-color;
|
248
|
+
}
|
249
249
|
}
|
250
250
|
}
|
251
|
-
}
|
251
|
+
}
|
@@ -214,13 +214,13 @@
|
|
214
214
|
.bk-tag-input .bk-tag-input-trigger .clear-icon:hover {
|
215
215
|
color: var(--gray-color);
|
216
216
|
}
|
217
|
-
.bk-tag-input
|
217
|
+
.bk-tag-input-popover-content {
|
218
218
|
padding: 0;
|
219
219
|
}
|
220
|
-
.bk-selector-list {
|
220
|
+
.bk-tag-input-popover-content .bk-selector-list {
|
221
221
|
min-width: 150px;
|
222
222
|
}
|
223
|
-
.bk-selector-list .outside-ul {
|
223
|
+
.bk-tag-input-popover-content .bk-selector-list .outside-ul {
|
224
224
|
max-height: 160px;
|
225
225
|
padding: 0;
|
226
226
|
padding: 6px 0;
|
@@ -231,30 +231,30 @@
|
|
231
231
|
border: 1px solid #dcdee5;
|
232
232
|
border-radius: 2px;
|
233
233
|
}
|
234
|
-
.bk-selector-list .outside-ul::-webkit-scrollbar {
|
234
|
+
.bk-tag-input-popover-content .bk-selector-list .outside-ul::-webkit-scrollbar {
|
235
235
|
width: 6px;
|
236
236
|
height: 6px;
|
237
237
|
}
|
238
|
-
.bk-selector-list .outside-ul::-webkit-scrollbar-thumb {
|
238
|
+
.bk-tag-input-popover-content .bk-selector-list .outside-ul::-webkit-scrollbar-thumb {
|
239
239
|
min-height: 24px;
|
240
240
|
background-color: #dcdee5;
|
241
241
|
border-radius: 3px;
|
242
242
|
}
|
243
|
-
.bk-selector-list .bk-selector-group-item {
|
243
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-group-item {
|
244
244
|
list-style: none;
|
245
245
|
}
|
246
|
-
.bk-selector-list .bk-selector-group-item .group-name {
|
246
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-group-item .group-name {
|
247
247
|
padding-left: 11px;
|
248
248
|
font-size: 12px;
|
249
249
|
line-height: 32px;
|
250
250
|
color: #979ba5;
|
251
251
|
}
|
252
|
-
.bk-selector-list .bk-selector-group-list-item {
|
252
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-group-list-item {
|
253
253
|
padding: 0;
|
254
254
|
margin: 0;
|
255
255
|
list-style: none;
|
256
256
|
}
|
257
|
-
.bk-selector-list .bk-selector-list-item {
|
257
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item {
|
258
258
|
position: relative;
|
259
259
|
width: 100%;
|
260
260
|
cursor: pointer;
|
@@ -262,43 +262,43 @@
|
|
262
262
|
border-right: var(--light-gray);
|
263
263
|
border-left: var(--light-gray);
|
264
264
|
}
|
265
|
-
.bk-selector-list .bk-selector-list-item:first-child {
|
265
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item:first-child {
|
266
266
|
border-top: var(--light-gray);
|
267
267
|
}
|
268
|
-
.bk-selector-list .bk-selector-list-item:last-child {
|
268
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item:last-child {
|
269
269
|
border-bottom: var(--light-gray);
|
270
270
|
}
|
271
|
-
.bk-selector-list .bk-selector-list-item.bk-selector-selected {
|
271
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item.bk-selector-selected {
|
272
272
|
background-color: #f4f6fa;
|
273
273
|
}
|
274
|
-
.bk-selector-list .bk-selector-list-item.bk-selector-selected .selected-icon {
|
274
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item.bk-selector-selected .selected-icon {
|
275
275
|
display: inline-block;
|
276
276
|
}
|
277
|
-
.bk-selector-list .bk-selector-list-item.bk-selector-actived {
|
277
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item.bk-selector-actived {
|
278
278
|
background-color: #f4f6fa;
|
279
279
|
}
|
280
|
-
.bk-selector-list .bk-selector-list-item:hover {
|
280
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item:hover {
|
281
281
|
background-color: #eaf3ff;
|
282
282
|
}
|
283
|
-
.bk-selector-list .bk-selector-list-item.disabled {
|
283
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item.disabled {
|
284
284
|
cursor: not-allowed;
|
285
285
|
background: var(--white-color);
|
286
286
|
}
|
287
|
-
.bk-selector-list .bk-selector-list-item.disabled .text {
|
287
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item.disabled .text {
|
288
288
|
color: var(--light-gray);
|
289
289
|
}
|
290
|
-
.bk-selector-list .bk-selector-list-item.loading {
|
290
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item.loading {
|
291
291
|
padding: 5px 0 3px;
|
292
292
|
text-align: center;
|
293
293
|
}
|
294
|
-
.bk-selector-list .bk-selector-list-item .loading {
|
294
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item .loading {
|
295
295
|
position: relative;
|
296
296
|
width: 100%;
|
297
297
|
height: 40px;
|
298
298
|
font-size: 14px;
|
299
299
|
cursor: default;
|
300
300
|
}
|
301
|
-
.bk-selector-list .bk-selector-list-item .text {
|
301
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item .text {
|
302
302
|
padding: 0 10px;
|
303
303
|
overflow: hidden;
|
304
304
|
font-size: 12px;
|
@@ -307,16 +307,16 @@
|
|
307
307
|
text-overflow: ellipsis;
|
308
308
|
white-space: nowrap;
|
309
309
|
}
|
310
|
-
.bk-selector-list .bk-selector-list-item .bk-selector-tools {
|
310
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item .bk-selector-tools {
|
311
311
|
position: absolute;
|
312
312
|
top: 10px;
|
313
313
|
right: 0;
|
314
314
|
display: none;
|
315
315
|
font-size: 12px;
|
316
316
|
}
|
317
|
-
.bk-selector-list .bk-selector-list-item .bk-selector-tools .bk-selector-list-icon {
|
317
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item .bk-selector-tools .bk-selector-list-icon {
|
318
318
|
margin-right: 14px;
|
319
319
|
}
|
320
|
-
.bk-selector-list .bk-selector-list-item .highlight-text {
|
320
|
+
.bk-tag-input-popover-content .bk-selector-list .bk-selector-list-item .highlight-text {
|
321
321
|
color: var(--primary-color);
|
322
322
|
}
|
@@ -130,6 +130,85 @@ declare const tagProps: () => {
|
|
130
130
|
type: BooleanConstructor;
|
131
131
|
default: boolean;
|
132
132
|
};
|
133
|
+
popoverProps: PropType<Readonly<ExtractPropTypes<{
|
134
|
+
onAfterHidden: FunctionConstructor;
|
135
|
+
onAfterShow: FunctionConstructor;
|
136
|
+
contentCls: import("vue-types").VueTypeValidableDef<string> & {
|
137
|
+
default: string;
|
138
|
+
} & {
|
139
|
+
default: string;
|
140
|
+
};
|
141
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
142
|
+
default: boolean;
|
143
|
+
} & {
|
144
|
+
default: boolean;
|
145
|
+
};
|
146
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
147
|
+
default: boolean;
|
148
|
+
} & {
|
149
|
+
default: boolean;
|
150
|
+
};
|
151
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
152
|
+
default: boolean;
|
153
|
+
} & {
|
154
|
+
default: boolean;
|
155
|
+
};
|
156
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
157
|
+
default: string | number;
|
158
|
+
};
|
159
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
160
|
+
default: string | number;
|
161
|
+
};
|
162
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
163
|
+
default: string | number;
|
164
|
+
};
|
165
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
166
|
+
default: string;
|
167
|
+
} & {
|
168
|
+
default: string;
|
169
|
+
};
|
170
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
171
|
+
default: string;
|
172
|
+
};
|
173
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
174
|
+
default: string;
|
175
|
+
} & {
|
176
|
+
default: string;
|
177
|
+
};
|
178
|
+
handleFirstUpdate: {
|
179
|
+
type: PropType<import("@bkui-vue/shared").OnFirstUpdateFnType>;
|
180
|
+
default: () => void;
|
181
|
+
};
|
182
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
183
|
+
default: string;
|
184
|
+
} & {
|
185
|
+
default: string;
|
186
|
+
};
|
187
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
188
|
+
default: boolean;
|
189
|
+
} & {
|
190
|
+
default: boolean;
|
191
|
+
};
|
192
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
193
|
+
default: () => unknown[];
|
194
|
+
} & {
|
195
|
+
default: () => unknown[];
|
196
|
+
};
|
197
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
198
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
199
|
+
default: boolean;
|
200
|
+
} & {
|
201
|
+
default: boolean;
|
202
|
+
};
|
203
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
204
|
+
default: number;
|
205
|
+
} & {
|
206
|
+
default: number;
|
207
|
+
};
|
208
|
+
stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
|
209
|
+
default: string | (() => string[]);
|
210
|
+
};
|
211
|
+
}>>>;
|
133
212
|
};
|
134
213
|
export default tagProps;
|
135
214
|
export declare type TagProps = Partial<ExtractPropTypes<ReturnType<typeof tagProps>>>;
|