bkui-vue 0.0.1-beta.126 → 0.0.1-beta.129

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.
@@ -99,7 +99,7 @@
99
99
  &.is-focus.normal {
100
100
  .bk-select-trigger .bk-select-tag {
101
101
  border-color: @primary-color;
102
- box-shadow: 0px 0px 3px 0px #a3c5fd;
102
+ box-shadow: 0px 0px 3px 0px #a3c5fd;
103
103
  }
104
104
  }
105
105
 
@@ -131,7 +131,7 @@
131
131
 
132
132
  &.is-focused {
133
133
  .active();
134
-
134
+
135
135
  &.is-simplicity {
136
136
  border-color: transparent;
137
137
  border-bottom-color: @primary-color;
@@ -195,139 +195,149 @@
195
195
  }
196
196
  }
197
197
 
198
- .bk-popover2.bk-select-popover {
199
- padding: 0;
200
-
201
- .bk-select-content {
202
- .bk-select-empty {
203
- .flex-center();
204
- height: 56px;
205
- color: #63656e;
206
-
207
- .spinner {
208
- display: flex;
209
- width: 14px;
210
- height: 14px;
211
- margin-right: 4px;
212
- font-size: 14px;
213
- color: #c4c6cc;
214
- align-items: center;
215
- justify-content: center;
216
- }
198
+ .@{bk-prefix}-popover2 {
199
+ &.@{bk-prefix}-pop2-content {
200
+ &.bk-select-popover {
201
+ padding: 0;
202
+
203
+ .bk-select-content {
204
+ .bk-select-empty {
205
+ .flex-center();
206
+ height: 56px;
207
+ color: #63656e;
208
+
209
+ .spinner {
210
+ display: flex;
211
+ width: 14px;
212
+ height: 14px;
213
+ margin-right: 4px;
214
+ font-size: 14px;
215
+ color: #c4c6cc;
216
+ align-items: center;
217
+ justify-content: center;
218
+ }
217
219
 
218
- span {
219
- .icon-text()
220
- }
221
- }
220
+ span {
221
+ .icon-text()
222
+ }
223
+ }
222
224
 
223
- .bk-select-dropdown {
224
- overflow: auto;
225
- }
225
+ .bk-select-dropdown {
226
+ overflow: auto;
227
+ }
226
228
 
227
- .bk-select-extension {
228
- display: flex;
229
- height: 40px;
230
- background-color: #fafbfd;
231
- align-items: center;
232
- }
229
+ .bk-select-extension {
230
+ display: flex;
231
+ height: 40px;
232
+ background-color: #fafbfd;
233
+ align-items: center;
234
+ border-top: 1px solid #dcdee5;
235
+ border-radius: 0 0 2px 2px;
236
+ }
233
237
 
234
- .bk-select-options {
235
- padding: 8px 0;
236
- }
238
+ .bk-select-options {
239
+ padding: 8px 0;
240
+ }
237
241
 
238
- .bk-select-option {
239
- position: relative;
240
- height: 32px;
241
- padding: 0 12px;
242
- line-height: 32px;
243
- color: #63656e;
244
- text-align: left;
245
- cursor: pointer;
246
- user-select: none;
247
-
248
- .ellipsis();
249
-
250
- &-item {
251
- display: flex;
252
- align-items: center;
253
- justify-content: space-between;
254
- }
255
-
256
- &:hover,
257
- &.is-hover {
258
- color: #3a84ff;
259
- background-color: #f5f7fa;
260
- }
261
-
262
- &.is-selected {
263
- color: #3a84ff;
264
- }
265
-
266
- &.is-disabled {
267
- color: #c4c6cc;
268
- cursor: not-allowed;
269
- background-color: transparent;
270
- }
271
-
272
- }
242
+ .bk-select-option {
243
+ position: relative;
244
+ height: 32px;
245
+ padding: 0 12px;
246
+ line-height: 32px;
247
+ color: #63656e;
248
+ text-align: left;
249
+ cursor: pointer;
250
+ user-select: none;
273
251
 
274
- .bk-select-options-loading {
275
- .flex-center();
252
+ .ellipsis();
276
253
 
277
- span {
278
- .icon-text()
279
- }
280
- }
254
+ &-item {
255
+ display: flex;
256
+ align-items: center;
257
+ justify-content: space-between;
258
+ }
281
259
 
282
- .bk-option-group {
283
- &-label {
284
- height: 32px;
285
- padding: 0 8px;
286
- line-height: 32px;
287
- color: #979ba5;
288
- text-align: left;
289
-
290
- &.collapsible {
291
- cursor: pointer;
292
- }
293
- }
294
-
295
- &.collapsible {
296
- .bk-select-option {
297
- padding-left: 40px;
260
+ // &.is-hover {
261
+ // color: #3a84ff;
262
+ // background-color: #f5f7fa;
263
+ // }
264
+
265
+ &:hover {
266
+ color: #63656e;
267
+ background-color: #f5f7fa;
268
+ }
269
+
270
+ &.is-selected {
271
+ color: #3a84ff;
272
+ background-color: #e1ecff;
273
+ }
274
+
275
+ &.is-disabled {
276
+ color: #c4c6cc;
277
+ cursor: not-allowed;
278
+ background-color: transparent;
279
+ }
298
280
  }
299
- }
300
-
301
- &.disabled {
302
- .default-group-label {
303
- color: #c4c6cc;
304
- cursor: not-allowed;
281
+
282
+ .bk-select-options-loading {
283
+ .flex-center();
284
+
285
+ span {
286
+ .icon-text()
287
+ }
305
288
  }
306
- }
307
-
308
- .default-group-label {
309
- display: flex;
310
- user-select: none;
311
- align-items: center;
312
-
313
- &-icon {
314
- display: flex;
315
- width: 12px;
316
- height: 12px;
317
- margin-right: 8px;
318
- transition: all .1s;
319
- align-items: center;
320
- justify-content: center;
321
-
322
- &.collapse {
323
- transform: rotate(-90deg);
289
+
290
+ .bk-option-group {
291
+ &-label {
292
+ height: 32px;
293
+ padding: 0 8px;
294
+ line-height: 32px;
295
+ color: #979ba5;
296
+ text-align: left;
297
+
298
+ &.collapsible {
299
+ cursor: pointer;
300
+ }
301
+ }
302
+
303
+ &.collapsible {
304
+ .bk-select-option {
305
+ padding-left: 40px;
306
+ }
307
+ }
308
+
309
+ &.disabled {
310
+ .default-group-label {
311
+ color: #c4c6cc;
312
+ cursor: not-allowed;
313
+ }
314
+ }
315
+
316
+ .default-group-label {
317
+ display: flex;
318
+ user-select: none;
319
+ align-items: center;
320
+
321
+ &-icon {
322
+ display: flex;
323
+ width: 12px;
324
+ height: 12px;
325
+ margin-right: 8px;
326
+ transition: all .1s;
327
+ align-items: center;
328
+ justify-content: center;
329
+
330
+ &.collapse {
331
+ transform: rotate(-90deg);
332
+ }
333
+ }
334
+ }
335
+
336
+ .bk-select-option {
337
+ padding-left: 24px;
324
338
  }
325
339
  }
326
340
  }
327
-
328
- .bk-select-option {
329
- padding-left: 24px;
330
- }
331
341
  }
332
342
  }
333
343
  }
@@ -297,17 +297,17 @@
297
297
  align-items: center;
298
298
  justify-content: center;
299
299
  }
300
- .bk-popover2.bk-select-popover {
300
+ .bk-popover2.bk-pop2-content.bk-select-popover {
301
301
  padding: 0;
302
302
  }
303
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-empty {
303
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-empty {
304
304
  display: flex;
305
305
  align-items: center;
306
306
  justify-content: center;
307
307
  height: 56px;
308
308
  color: #63656e;
309
309
  }
310
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-empty .spinner {
310
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-empty .spinner {
311
311
  display: flex;
312
312
  width: 14px;
313
313
  height: 14px;
@@ -317,23 +317,25 @@
317
317
  align-items: center;
318
318
  justify-content: center;
319
319
  }
320
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-empty span {
320
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-empty span {
321
321
  margin-left: 4px;
322
322
  line-height: 18px;
323
323
  }
324
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-dropdown {
324
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-dropdown {
325
325
  overflow: auto;
326
326
  }
327
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-extension {
327
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-extension {
328
328
  display: flex;
329
329
  height: 40px;
330
330
  background-color: #fafbfd;
331
331
  align-items: center;
332
+ border-top: 1px solid #dcdee5;
333
+ border-radius: 0 0 2px 2px;
332
334
  }
333
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-options {
335
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-options {
334
336
  padding: 8px 0;
335
337
  }
336
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-option {
338
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option {
337
339
  position: relative;
338
340
  height: 32px;
339
341
  padding: 0 12px;
@@ -346,56 +348,56 @@
346
348
  text-overflow: ellipsis;
347
349
  white-space: nowrap;
348
350
  }
349
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-option-item {
351
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option-item {
350
352
  display: flex;
351
353
  align-items: center;
352
354
  justify-content: space-between;
353
355
  }
354
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-option:hover,
355
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-option.is-hover {
356
- color: #3a84ff;
356
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option:hover {
357
+ color: #63656e;
357
358
  background-color: #f5f7fa;
358
359
  }
359
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-option.is-selected {
360
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-selected {
360
361
  color: #3a84ff;
362
+ background-color: #e1ecff;
361
363
  }
362
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-option.is-disabled {
364
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-disabled {
363
365
  color: #c4c6cc;
364
366
  cursor: not-allowed;
365
367
  background-color: transparent;
366
368
  }
367
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-options-loading {
369
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-options-loading {
368
370
  display: flex;
369
371
  align-items: center;
370
372
  justify-content: center;
371
373
  }
372
- .bk-popover2.bk-select-popover .bk-select-content .bk-select-options-loading span {
374
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-options-loading span {
373
375
  margin-left: 4px;
374
376
  line-height: 18px;
375
377
  }
376
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group-label {
378
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group-label {
377
379
  height: 32px;
378
380
  padding: 0 8px;
379
381
  line-height: 32px;
380
382
  color: #979ba5;
381
383
  text-align: left;
382
384
  }
383
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group-label.collapsible {
385
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group-label.collapsible {
384
386
  cursor: pointer;
385
387
  }
386
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group.collapsible .bk-select-option {
388
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group.collapsible .bk-select-option {
387
389
  padding-left: 40px;
388
390
  }
389
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group.disabled .default-group-label {
391
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group.disabled .default-group-label {
390
392
  color: #c4c6cc;
391
393
  cursor: not-allowed;
392
394
  }
393
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group .default-group-label {
395
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .default-group-label {
394
396
  display: flex;
395
397
  user-select: none;
396
398
  align-items: center;
397
399
  }
398
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group .default-group-label-icon {
400
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .default-group-label-icon {
399
401
  display: flex;
400
402
  width: 12px;
401
403
  height: 12px;
@@ -404,9 +406,9 @@
404
406
  align-items: center;
405
407
  justify-content: center;
406
408
  }
407
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group .default-group-label-icon.collapse {
409
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .default-group-label-icon.collapse {
408
410
  transform: rotate(-90deg);
409
411
  }
410
- .bk-popover2.bk-select-popover .bk-select-content .bk-option-group .bk-select-option {
412
+ .bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .bk-select-option {
411
413
  padding-left: 24px;
412
414
  }
@@ -51,3 +51,8 @@ export declare const TABLE_ROW_ATTRIBUTE: {
51
51
  * Y 轴滚动条宽度
52
52
  */
53
53
  export declare const SCROLLY_WIDTH = 4;
54
+ export declare const SETTING_SIZE: {
55
+ large: number;
56
+ default: number;
57
+ small: number;
58
+ };
@@ -22,7 +22,7 @@ declare const BkTable: {
22
22
  virtualEnabled: boolean;
23
23
  remotePagination: boolean;
24
24
  emptyText: string;
25
- settings: any;
25
+ settings: boolean | import("./props").Settings;
26
26
  rowClass: any;
27
27
  rowStyle: any;
28
28
  cellStyle: any;
@@ -88,8 +88,8 @@ declare const BkTable: {
88
88
  } & {
89
89
  default: string;
90
90
  };
91
- settings: import("vue-types").VueTypeDef<any> & {
92
- default: any;
91
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
92
+ default: boolean | (() => import("./props").Settings);
93
93
  };
94
94
  rowClass: import("vue-types").VueTypeDef<any> & {
95
95
  default: any;
@@ -202,8 +202,8 @@ declare const BkTable: {
202
202
  } & {
203
203
  default: string;
204
204
  };
205
- settings: import("vue-types").VueTypeDef<any> & {
206
- default: any;
205
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
206
+ default: boolean | (() => import("./props").Settings);
207
207
  };
208
208
  rowClass: import("vue-types").VueTypeDef<any> & {
209
209
  default: any;
@@ -274,7 +274,7 @@ declare const BkTable: {
274
274
  virtualEnabled: boolean;
275
275
  remotePagination: boolean;
276
276
  emptyText: string;
277
- settings: any;
277
+ settings: boolean | import("./props").Settings;
278
278
  rowClass: any;
279
279
  rowStyle: any;
280
280
  cellStyle: any;
@@ -360,8 +360,8 @@ declare const BkTable: {
360
360
  } & {
361
361
  default: string;
362
362
  };
363
- settings: import("vue-types").VueTypeDef<any> & {
364
- default: any;
363
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
364
+ default: boolean | (() => import("./props").Settings);
365
365
  };
366
366
  rowClass: import("vue-types").VueTypeDef<any> & {
367
367
  default: any;
@@ -464,8 +464,8 @@ declare const BkTable: {
464
464
  } & {
465
465
  default: string;
466
466
  };
467
- settings: import("vue-types").VueTypeDef<any> & {
468
- default: any;
467
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
468
+ default: boolean | (() => import("./props").Settings);
469
469
  };
470
470
  rowClass: import("vue-types").VueTypeDef<any> & {
471
471
  default: any;
@@ -536,7 +536,7 @@ declare const BkTable: {
536
536
  virtualEnabled: boolean;
537
537
  remotePagination: boolean;
538
538
  emptyText: string;
539
- settings: any;
539
+ settings: boolean | import("./props").Settings;
540
540
  rowClass: any;
541
541
  rowStyle: any;
542
542
  cellStyle: any;