bkui-vue 2.0.1-beta.22 → 2.0.1-beta.24
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 +63 -63
- package/dist/index.esm.js +14221 -14252
- package/dist/index.umd.js +63 -63
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +262 -1
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.variable.css +262 -1
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.variable.css +395 -4
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +262 -1
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +397 -6
- package/lib/button/button.css +273 -143
- package/lib/button/button.variable.css +262 -1
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +396 -5
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.variable.css +415 -24
- package/lib/checkbox/checkbox.css +139 -9
- package/lib/checkbox/checkbox.variable.css +262 -1
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +262 -1
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +262 -1
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +262 -1
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.variable.css +262 -1
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +262 -1
- package/lib/container/container.css +130 -0
- package/lib/container/container.variable.css +392 -1
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.variable.css +400 -9
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.variable.css +262 -1
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.variable.css +262 -1
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
- package/lib/form/form.css +130 -0
- package/lib/form/form.variable.css +262 -1
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.variable.css +262 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +392 -1
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.variable.css +262 -1
- package/lib/input/input.css +202 -72
- package/lib/input/input.variable.css +464 -73
- package/lib/link/link.css +146 -16
- package/lib/link/link.variable.css +262 -1
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.variable.css +408 -17
- package/lib/menu/menu.css +148 -18
- package/lib/menu/menu.variable.css +410 -19
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +262 -1
- package/lib/message/message.css +151 -21
- package/lib/message/message.variable.css +262 -1
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.variable.css +396 -5
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.variable.css +262 -1
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +262 -1
- package/lib/pagination/pagination.css +131 -1
- package/lib/pagination/pagination.variable.css +262 -1
- package/lib/pop-confirm/pop-confirm.css +130 -0
- package/lib/pop-confirm/pop-confirm.variable.css +262 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.variable.css +262 -1
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +262 -1
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.variable.css +396 -5
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.variable.css +262 -1
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +262 -1
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.variable.css +262 -1
- package/lib/scrollbar/index.js +38 -12
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/scrollbar/scrollbar.css +130 -0
- package/lib/scrollbar/scrollbar.variable.css +262 -1
- package/lib/search-select/search-select.css +163 -33
- package/lib/search-select/search-select.variable.css +425 -34
- package/lib/select/index.js +31 -27
- package/lib/select/select.css +172 -43
- package/lib/select/select.less +3 -4
- package/lib/select/select.variable.css +434 -44
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +72 -1
- package/lib/sideslider/sideslider.css +131 -1
- package/lib/sideslider/sideslider.variable.css +262 -1
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +262 -1
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +262 -1
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +262 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +262 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +262 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +262 -1
- package/lib/styles/themes/themes.css +130 -0
- package/lib/styles/themes/themes.less +299 -129
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +262 -1
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.variable.css +409 -18
- package/lib/tab/tab.css +147 -17
- package/lib/tab/tab.variable.css +262 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -44
- package/lib/table/const.d.ts +12 -0
- package/lib/table/events.d.ts +2 -98
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +54 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +15 -0
- package/lib/table/hooks/use-layout.d.ts +22 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +23 -0
- package/lib/table/hooks/use-rows.d.ts +25 -0
- package/lib/table/hooks/use-settings.d.ts +24 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +49 -561
- package/lib/table/index.js +3410 -3554
- package/lib/table/plugins/head-filter.css +130 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.variable.css +262 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +262 -1
- package/lib/table/plugins/settings.css +131 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +263 -1
- package/lib/table/props.d.ts +31 -12
- package/lib/table/table.css +361 -243
- package/lib/table/table.d.ts +27 -181
- package/lib/table/table.less +69 -91
- package/lib/table/table.variable.css +623 -244
- package/lib/table/utils.d.ts +26 -3
- package/lib/table-column/index.d.ts +9 -132
- package/lib/table-column/index.js +17314 -25
- package/lib/tag/tag.css +135 -5
- package/lib/tag/tag.variable.css +262 -1
- package/lib/tag-input/tag-input.css +148 -18
- package/lib/tag-input/tag-input.variable.css +262 -1
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +262 -1
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +262 -1
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +262 -1
- package/lib/tree/index.js +10 -0
- package/lib/tree/tree.css +139 -9
- package/lib/tree/tree.variable.css +401 -10
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.variable.css +419 -28
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.css +130 -0
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/lib/virtual-render/virtual-render.variable.css +392 -1
- package/package.json +1 -1
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -155
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
package/lib/select/index.js
CHANGED
@@ -507,7 +507,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
507
507
|
;// CONCATENATED MODULE: external "../icon"
|
508
508
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
509
509
|
var icon_y = x => () => x
|
510
|
-
const icon_namespaceObject = icon_x({ ["
|
510
|
+
const icon_namespaceObject = icon_x({ ["AngleDown"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDown, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["TextAll"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll });
|
511
511
|
;// CONCATENATED MODULE: external "lodash/isEqual"
|
512
512
|
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
513
513
|
var isEqual_y = x => () => x
|
@@ -3405,7 +3405,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3405
3405
|
render: function render() {
|
3406
3406
|
var _this = this;
|
3407
3407
|
var selectClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('select')), true), 'popover-show', this.isPopoverShow), 'is-disabled', this.isDisabled), 'is-focus', this.isFocus), 'is-filterable', this.filterable), this.size, true), this.behavior, true));
|
3408
|
+
// 右侧ICON
|
3408
3409
|
var suffixIcon = function suffixIcon() {
|
3410
|
+
var _this$$slots, _this$$slots2, _this$$slots2$suffix;
|
3409
3411
|
if (_this.loading) {
|
3410
3412
|
return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3411
3413
|
"class": "spinner",
|
@@ -3421,12 +3423,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3421
3423
|
"onClick": _this.handleClear
|
3422
3424
|
}, null);
|
3423
3425
|
}
|
3424
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
3425
|
-
"class": "angle-
|
3426
|
+
return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.suffix ? (0,external_vue_namespaceObject.createVNode)("span", {
|
3427
|
+
"class": "angle-down"
|
3428
|
+
}, [(_this$$slots2 = _this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$suffix = _this$$slots2.suffix) === null || _this$$slots2$suffix === void 0 ? void 0 : _this$$slots2$suffix.call(_this$$slots2)]) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleDown, {
|
3429
|
+
"class": "angle-down"
|
3426
3430
|
}, null);
|
3427
3431
|
};
|
3428
3432
|
var renderPrefix = function renderPrefix() {
|
3429
|
-
var _this$$
|
3433
|
+
var _this$$slots3;
|
3430
3434
|
if (_this.prefix) {
|
3431
3435
|
return function () {
|
3432
3436
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -3434,9 +3438,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3434
3438
|
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
|
3435
3439
|
};
|
3436
3440
|
}
|
3437
|
-
return (_this$$
|
3438
|
-
var _this$$
|
3439
|
-
return (_this$$
|
3441
|
+
return (_this$$slots3 = _this.$slots) !== null && _this$$slots3 !== void 0 && _this$$slots3.prefix ? function () {
|
3442
|
+
var _this$$slots4, _this$$slots4$prefix;
|
3443
|
+
return (_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 || (_this$$slots4$prefix = _this$$slots4.prefix) === null || _this$$slots4$prefix === void 0 ? void 0 : _this$$slots4$prefix.call(_this$$slots4);
|
3440
3444
|
} : undefined;
|
3441
3445
|
};
|
3442
3446
|
// 全选
|
@@ -3467,9 +3471,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3467
3471
|
};
|
3468
3472
|
// 默认trigger输入框渲染
|
3469
3473
|
var renderTriggerInput = function renderTriggerInput() {
|
3470
|
-
var _this$$
|
3474
|
+
var _this$$slots7;
|
3471
3475
|
if (_this.multipleMode === 'tag') {
|
3472
|
-
var _this$$
|
3476
|
+
var _this$$slots5;
|
3473
3477
|
return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
|
3474
3478
|
"ref": "selectTagInputRef",
|
3475
3479
|
"modelValue": _this.customOptionName,
|
@@ -3487,9 +3491,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3487
3491
|
"onRemove": _this.handleDeleteTag
|
3488
3492
|
}, {
|
3489
3493
|
prefix: renderPrefix(),
|
3490
|
-
"default": ((_this$$
|
3491
|
-
var _this$$
|
3492
|
-
return (_this$$
|
3494
|
+
"default": ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.tag) && function () {
|
3495
|
+
var _this$$slots6;
|
3496
|
+
return (_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 ? void 0 : _this$$slots6.tag({
|
3493
3497
|
selected: _this.selected
|
3494
3498
|
});
|
3495
3499
|
},
|
@@ -3514,10 +3518,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3514
3518
|
"onInput": _this.handleInputChange
|
3515
3519
|
}, _this.prefix ? {
|
3516
3520
|
prefix: _this.prefix
|
3517
|
-
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$
|
3521
|
+
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.prefix) === 'function' ? {
|
3518
3522
|
prefix: function prefix() {
|
3519
|
-
var _this$$
|
3520
|
-
return (_this$$
|
3523
|
+
var _this$$slots8, _this$$slots8$prefix;
|
3524
|
+
return (_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 || (_this$$slots8$prefix = _this$$slots8.prefix) === null || _this$$slots8$prefix === void 0 ? void 0 : _this$$slots8$prefix.call(_this$$slots8);
|
3521
3525
|
}
|
3522
3526
|
} : null), {}, {
|
3523
3527
|
suffix: function suffix() {
|
@@ -3527,7 +3531,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3527
3531
|
};
|
3528
3532
|
// 渲染trigger
|
3529
3533
|
var renderSelectTrigger = function renderSelectTrigger() {
|
3530
|
-
var _this$$
|
3534
|
+
var _this$$slots9, _this$$slots9$trigger;
|
3531
3535
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3532
3536
|
"ref": "triggerRef",
|
3533
3537
|
"style": {
|
@@ -3537,7 +3541,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3537
3541
|
"onClick": _this.handleTogglePopover,
|
3538
3542
|
"onMouseenter": _this.setHover,
|
3539
3543
|
"onMouseleave": _this.cancelHover
|
3540
|
-
}, [((_this$$
|
3544
|
+
}, [((_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 || (_this$$slots9$trigger = _this$$slots9.trigger) === null || _this$$slots9$trigger === void 0 ? void 0 : _this$$slots9$trigger.call(_this$$slots9, {
|
3541
3545
|
selected: _this.selected
|
3542
3546
|
})) || renderTriggerInput()]);
|
3543
3547
|
};
|
@@ -3550,9 +3554,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3550
3554
|
"preloadItemCount": _this.preloadItemCount
|
3551
3555
|
}, {
|
3552
3556
|
"default": function _default(_ref3) {
|
3553
|
-
var _this$$
|
3557
|
+
var _this$$slots10, _this$$slots11;
|
3554
3558
|
var data = _ref3.data;
|
3555
|
-
var optionRender = ((_this$$
|
3559
|
+
var optionRender = ((_this$$slots10 = _this.$slots) === null || _this$$slots10 === void 0 ? void 0 : _this$$slots10.optionRender) || ((_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 ? void 0 : _this$$slots11.virtualScrollRender);
|
3556
3560
|
return data.map(function (item) {
|
3557
3561
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3558
3562
|
"id": item[_this.idKey],
|
@@ -3568,15 +3572,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3568
3572
|
});
|
3569
3573
|
}
|
3570
3574
|
}) : _this.filterList.map(function (item) {
|
3571
|
-
var _this$$
|
3575
|
+
var _this$$slots12;
|
3572
3576
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3573
3577
|
"id": item[_this.idKey],
|
3574
3578
|
"key": item[_this.idKey],
|
3575
3579
|
"name": item[_this.displayKey]
|
3576
|
-
}, (_this$$
|
3580
|
+
}, (_this$$slots12 = _this.$slots) !== null && _this$$slots12 !== void 0 && _this$$slots12.optionRender ? {
|
3577
3581
|
"default": function _default() {
|
3578
|
-
var _this$$
|
3579
|
-
return (_this$$
|
3582
|
+
var _this$$slots13, _this$$slots13$option;
|
3583
|
+
return (_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 || (_this$$slots13$option = _this$$slots13.optionRender) === null || _this$$slots13$option === void 0 ? void 0 : _this$$slots13$option.call(_this$$slots13, {
|
3580
3584
|
item: item
|
3581
3585
|
});
|
3582
3586
|
}
|
@@ -3585,7 +3589,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3585
3589
|
};
|
3586
3590
|
// 渲染内容
|
3587
3591
|
var renderSelectContent = function renderSelectContent() {
|
3588
|
-
var _this$$
|
3592
|
+
var _this$$slots14, _this$$slots14$defaul, _this$$slots15, _this$$slots16;
|
3589
3593
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3590
3594
|
"ref": "contentRef",
|
3591
3595
|
"class": _this.resolveClassName('select-content-wrapper')
|
@@ -3621,7 +3625,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3621
3625
|
"onScroll": _this.handleScroll
|
3622
3626
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
3623
3627
|
"class": _this.resolveClassName('select-options')
|
3624
|
-
}, [renderSelectAll(), renderList(), (_this$$
|
3628
|
+
}, [renderSelectAll(), renderList(), (_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 || (_this$$slots14$defaul = _this$$slots14["default"]) === null || _this$$slots14$defaul === void 0 ? void 0 : _this$$slots14$defaul.call(_this$$slots14), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
|
3625
3629
|
"class": _this.resolveClassName('select-options-loading')
|
3626
3630
|
}, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3627
3631
|
"class": "spinner mr5",
|
@@ -3629,9 +3633,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3629
3633
|
"mode": "spin",
|
3630
3634
|
"size": "mini",
|
3631
3635
|
"theme": "primary"
|
3632
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$
|
3636
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
3633
3637
|
"class": _this.resolveClassName('select-extension')
|
3634
|
-
}, [(_this$$
|
3638
|
+
}, [(_this$$slots16 = _this.$slots) === null || _this$$slots16 === void 0 ? void 0 : _this$$slots16.extension()])])]);
|
3635
3639
|
};
|
3636
3640
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3637
3641
|
"class": selectClass
|
package/lib/select/select.css
CHANGED
@@ -1,3 +1,133 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
4
|
+
--primary-color: #3a84ff;
|
5
|
+
--success-color: #2dcb56;
|
6
|
+
--warning-color: #ff9c01;
|
7
|
+
--danger-color: #ea3636;
|
8
|
+
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
10
|
+
--light-gray: #c4c6cc;
|
11
|
+
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
13
|
+
--disable-color: #dcdee5;
|
14
|
+
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
16
|
+
--font-size-base: 12px;
|
17
|
+
--font-size-medium: 14px;
|
18
|
+
--font-size-large: 16px;
|
19
|
+
--line-height-base: 16px;
|
20
|
+
--line-height-medium: 16px;
|
21
|
+
--line-height-large: 18px;
|
22
|
+
--component-size-small: 26px;
|
23
|
+
--component-size-base: 32px;
|
24
|
+
--component-size-large: 40px;
|
25
|
+
--component-size-small-padding: 0 12px;
|
26
|
+
--component-size-base-padding: 0 14px;
|
27
|
+
--component-size-large-padding: 0 16px;
|
28
|
+
--border-width-base: 1px;
|
29
|
+
--border-style-base: solid;
|
30
|
+
--border-radius-base: 2px;
|
31
|
+
--border-style-color: var(--light-gray);
|
32
|
+
--input-disabled-bg: #fafbfd;
|
33
|
+
--input-disabled-border: var(--disable-color);
|
34
|
+
--input-height-base: var(--component-size-base);
|
35
|
+
--input-color: var(--default-color);
|
36
|
+
--input-bg: white;
|
37
|
+
--input-border-color: var(--light-gray);
|
38
|
+
--input-broder-radius: 3px;
|
39
|
+
--input-shadow-color: #a3c5fd;
|
40
|
+
--input-horizontal-padding: 8px;
|
41
|
+
--input-block-color: #f5f7fa;
|
42
|
+
--input-block-hover-color: #eaebf0;
|
43
|
+
--input-icon-size: var(--font-size-medium);
|
44
|
+
--input-maxlength-color: #979ba5;
|
45
|
+
--button-primary-hover-color: #5594fa;
|
46
|
+
--button-danger-hover-color: #ff5656;
|
47
|
+
--button-success-hover-color: #45e35f;
|
48
|
+
--button-warning-hover-color: #ffb848;
|
49
|
+
--button-default-hover-border-color: #979ba5;
|
50
|
+
--button-primary-active-color: #2c77f4;
|
51
|
+
--button-danger-active-color: #db2626;
|
52
|
+
--button-success-active-color: #1ab943;
|
53
|
+
--button-warning-active-color: #eb9000;
|
54
|
+
--button-selected-bg-color: #e1ecff;
|
55
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
56
|
+
--radio-font-color: #63656e;
|
57
|
+
--radio-active-color: #3a84ff;
|
58
|
+
--radio-hover-border-color: #979ba5;
|
59
|
+
--radio-disabled-border: #dcdee5;
|
60
|
+
--radio-disabled-font-color: #c4c6cc;
|
61
|
+
--radio-disabled-checked-bg: #a3c5fd;
|
62
|
+
--radio-button-checked-bg: #e1ecff;
|
63
|
+
--radio-button-disabled-checked-bg: #fafbfd;
|
64
|
+
--checkbox-disabled-checked-bg: #a3c5fd;
|
65
|
+
--fixed-navbar-background: #fff;
|
66
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
67
|
+
--switch-default-color: #fff;
|
68
|
+
--switch-grey-color: #c4c6cc;
|
69
|
+
--breadcrumb-black-color: #979ba5;
|
70
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
71
|
+
--breadcrumb-fn-main-color: #63656e;
|
72
|
+
--link-default-hover-color: #979ba5;
|
73
|
+
--link-primary-hover-color: #699df4;
|
74
|
+
--link-success-hover-color: #45e35f;
|
75
|
+
--link-warning-hover-color: #ffb848;
|
76
|
+
--link-danger-hover-color: #ff5656;
|
77
|
+
--link-default-disabled-color: #dcdee5;
|
78
|
+
--link-primary-disabled-color: #a3c5fd;
|
79
|
+
--link-success-disabled-color: #94f5a4;
|
80
|
+
--link-warning-disabled-color: #ffd695;
|
81
|
+
--link-danger-disabled-color: #fd9c9c;
|
82
|
+
--message-color: var(--default-color);
|
83
|
+
--message-primary-bg-color: #f0f8ff;
|
84
|
+
--message-primary-border-color: #e1ecff;
|
85
|
+
--message-primary-shadow-color: #e1e8f4;
|
86
|
+
--message-warning-bg-color: #fff4e2;
|
87
|
+
--message-warning-border-color: #ffe8c3;
|
88
|
+
--message-warning-shadow-color: #ede6db;
|
89
|
+
--message-success-bg-color: #f2fff4;
|
90
|
+
--message-success-border-color: #dcffe2;
|
91
|
+
--message-success-shadow-color: #cef0d7;
|
92
|
+
--message-danger-bg-color: #ffeded;
|
93
|
+
--message-danger-border-color: #ffdddd;
|
94
|
+
--message-danger-shadow-color: #f6dada;
|
95
|
+
--slider-default-bg: #dcdee5;
|
96
|
+
--slider-disable-bar-bg: #979ba5;
|
97
|
+
--menu-bg-color: #182132;
|
98
|
+
--submenu-bg-color: #151d2c;
|
99
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
100
|
+
--menu-color: #96a2b9;
|
101
|
+
--menu-group-color: var(--default-color);
|
102
|
+
--menu-width: 260px;
|
103
|
+
--menu-collapse-width: 60px;
|
104
|
+
--menu-active-color: white;
|
105
|
+
--nav-header-bg-color: #182132;
|
106
|
+
--nav-bg-color: #182132;
|
107
|
+
--date-picker-disabled-bg: #fafbfd;
|
108
|
+
--date-picker-dropdown-mb: 4px;
|
109
|
+
--date-picker-dropdown-bg: #fff;
|
110
|
+
--table-bg-color: var(--white-color);
|
111
|
+
--table-border-color: #dcdee5;
|
112
|
+
--table-strip-color: #fafbfd;
|
113
|
+
--table-head-bg-color: #fafbfd;
|
114
|
+
--table-head-font-color: #313238;
|
115
|
+
--table-body-font-color: #63656e;
|
116
|
+
--table-row-hover-bg-color: #f5f7fa;
|
117
|
+
--table-row-active-bg-color: #f0f1f5;
|
118
|
+
--cascader-panel-border-color: #dcdee5;
|
119
|
+
--cascader-panel-hover: #f5f7fa;
|
120
|
+
--cascader-panel-active: #e1ecff;
|
121
|
+
--cascader-panel-disabled-bg: #fff;
|
122
|
+
--search-select-focus-border-color: var(--primary-color);
|
123
|
+
--search-select-focus-color: #3c96ff;
|
124
|
+
--search-select-font-color: var(--default-color);
|
125
|
+
--search-select-placeholder-color: var(--light-gray);
|
126
|
+
--search-select-message-color: var(--danger-color);
|
127
|
+
--search-select-menu-border-color: var(--disable-color);
|
128
|
+
--select-active-color: #e1ecff;
|
129
|
+
--select-hover-color: #f5f7fa;
|
130
|
+
}
|
1
131
|
@keyframes loading-scale-animate {
|
2
132
|
0% {
|
3
133
|
transform: scale(1);
|
@@ -35,40 +165,40 @@
|
|
35
165
|
font-size: 14px;
|
36
166
|
}
|
37
167
|
.bk-select.is-focus:not(.is-disabled).normal .bk-select-trigger .bk-select-tag {
|
38
|
-
border-color:
|
168
|
+
border-color: var(--primary-color);
|
39
169
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
40
170
|
}
|
41
171
|
.bk-select.is-focus:not(.is-disabled).simplicity .bk-select-trigger .bk-select-tag {
|
42
|
-
border-bottom-color:
|
172
|
+
border-bottom-color: var(--primary-color);
|
43
173
|
}
|
44
174
|
.bk-select.is-focus .bk-input {
|
45
|
-
border-color:
|
175
|
+
border-color: var(--primary-color);
|
46
176
|
outline: 0;
|
47
|
-
box-shadow: 0px 0px 3px 0px
|
177
|
+
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
48
178
|
}
|
49
179
|
.bk-select.is-focus .bk-input.is-simplicity {
|
50
180
|
border-color: transparent;
|
51
|
-
border-bottom-color:
|
181
|
+
border-bottom-color: var(--primary-color);
|
52
182
|
box-shadow: none;
|
53
183
|
}
|
54
184
|
.bk-select.is-focus .bk-input.is-simplicity .bk-input--text {
|
55
|
-
background-color:
|
185
|
+
background-color: var(--input-block-color);
|
56
186
|
}
|
57
|
-
.bk-select.popover-show .bk-select-trigger .angle-
|
58
|
-
transform: rotate(
|
187
|
+
.bk-select.popover-show .bk-select-trigger .angle-down {
|
188
|
+
transform: rotate(180deg);
|
59
189
|
}
|
60
190
|
.bk-select.is-disabled .bk-input--text {
|
61
191
|
cursor: not-allowed;
|
62
192
|
background-color: #fafbfd;
|
63
193
|
}
|
64
194
|
.bk-select .bk-input.is-focused {
|
65
|
-
border-color:
|
195
|
+
border-color: var(--primary-color);
|
66
196
|
outline: 0;
|
67
|
-
box-shadow: 0 0 3px 0
|
197
|
+
box-shadow: 0 0 3px 0 var(--input-shadow-color);
|
68
198
|
}
|
69
199
|
.bk-select .bk-input.is-focused.is-simplicity {
|
70
200
|
border-color: transparent;
|
71
|
-
border-bottom-color:
|
201
|
+
border-bottom-color: var(--primary-color);
|
72
202
|
box-shadow: none;
|
73
203
|
}
|
74
204
|
.bk-select .bk-input--text {
|
@@ -77,7 +207,7 @@
|
|
77
207
|
white-space: nowrap;
|
78
208
|
padding-right: 24px;
|
79
209
|
cursor: pointer;
|
80
|
-
background-color: white;
|
210
|
+
background-color: var(--white-color);
|
81
211
|
}
|
82
212
|
.bk-select .bk-select-trigger {
|
83
213
|
position: relative;
|
@@ -90,12 +220,12 @@
|
|
90
220
|
height: 32px;
|
91
221
|
padding: 0 28px 0 10px;
|
92
222
|
line-height: normal;
|
93
|
-
color:
|
223
|
+
color: var(--default-color);
|
94
224
|
text-align: left;
|
95
225
|
vertical-align: middle;
|
96
226
|
cursor: pointer;
|
97
|
-
background-color: white;
|
98
|
-
border: 1px solid
|
227
|
+
background-color: var(--white-color);
|
228
|
+
border: 1px solid var(--light-gray);
|
99
229
|
border-radius: 2px;
|
100
230
|
outline: none;
|
101
231
|
box-sizing: border-box;
|
@@ -109,17 +239,17 @@
|
|
109
239
|
align-items: center;
|
110
240
|
}
|
111
241
|
.bk-select .bk-select-trigger .bk-select-tag::placeholder {
|
112
|
-
color:
|
242
|
+
color: var(--light-gray);
|
113
243
|
}
|
114
244
|
.bk-select .bk-select-trigger .bk-select-tag.is-simplicity {
|
115
245
|
background-color: transparent;
|
116
246
|
border-color: transparent;
|
117
|
-
border-bottom-color:
|
247
|
+
border-bottom-color: var(--input-border-color);
|
118
248
|
}
|
119
249
|
.bk-select .bk-select-trigger .bk-select-tag.is-simplicity:hover {
|
120
|
-
background-color:
|
250
|
+
background-color: var(--input-block-color);
|
121
251
|
border-color: transparent;
|
122
|
-
border-bottom-color:
|
252
|
+
border-bottom-color: var(--light-gray);
|
123
253
|
box-shadow: none;
|
124
254
|
}
|
125
255
|
.bk-select .bk-select-trigger .bk-select-tag.has-prefix {
|
@@ -171,12 +301,12 @@
|
|
171
301
|
height: 32px;
|
172
302
|
padding: 0 28px 0 10px;
|
173
303
|
line-height: normal;
|
174
|
-
color:
|
304
|
+
color: var(--default-color);
|
175
305
|
text-align: left;
|
176
306
|
vertical-align: middle;
|
177
307
|
cursor: pointer;
|
178
|
-
background-color: white;
|
179
|
-
border: 1px solid
|
308
|
+
background-color: var(--white-color);
|
309
|
+
border: 1px solid var(--light-gray);
|
180
310
|
border-radius: 2px;
|
181
311
|
outline: none;
|
182
312
|
box-sizing: border-box;
|
@@ -194,15 +324,14 @@
|
|
194
324
|
flex-grow: 1;
|
195
325
|
}
|
196
326
|
.bk-select .bk-select-trigger .bk-select-tag-input::placeholder {
|
197
|
-
color:
|
327
|
+
color: var(--light-gray);
|
198
328
|
}
|
199
329
|
.bk-select .bk-select-trigger .bk-select-tag .bk-tag {
|
200
330
|
max-width: 190px;
|
201
331
|
padding: 0 4px;
|
202
332
|
}
|
203
|
-
.bk-select .bk-select-trigger .angle-
|
333
|
+
.bk-select .bk-select-trigger .angle-down {
|
204
334
|
right: 4px;
|
205
|
-
transform: rotate(180deg);
|
206
335
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
207
336
|
display: flex;
|
208
337
|
width: 20px;
|
@@ -250,13 +379,13 @@
|
|
250
379
|
padding: 0 10px;
|
251
380
|
margin-right: 10px;
|
252
381
|
color: #63656e;
|
253
|
-
background-color:
|
382
|
+
background-color: var(--select-hover-color);
|
254
383
|
border-right: 1px solid #c4c6cc;
|
255
384
|
align-items: center;
|
256
385
|
}
|
257
386
|
.bk-popover.bk-pop2-content.bk-select-popover {
|
258
387
|
padding: 0;
|
259
|
-
border: 1px solid
|
388
|
+
border: 1px solid var(--disable-color);
|
260
389
|
border-radius: 2px;
|
261
390
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
|
262
391
|
}
|
@@ -306,7 +435,7 @@
|
|
306
435
|
}
|
307
436
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-all {
|
308
437
|
padding: 4px 0;
|
309
|
-
border-bottom: 1px solid
|
438
|
+
border-bottom: 1px solid var(--border-color);
|
310
439
|
}
|
311
440
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-all .wrapper {
|
312
441
|
display: flex;
|
@@ -314,14 +443,14 @@
|
|
314
443
|
height: 32px;
|
315
444
|
padding: 0 12px;
|
316
445
|
cursor: pointer;
|
317
|
-
color:
|
446
|
+
color: var(--default-color);
|
318
447
|
}
|
319
448
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-all .wrapper:hover {
|
320
|
-
background-color:
|
449
|
+
background-color: var(--select-hover-color);
|
321
450
|
}
|
322
451
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-all .wrapper.active {
|
323
|
-
background-color:
|
324
|
-
color:
|
452
|
+
background-color: var(--select-active-color);
|
453
|
+
color: var(--primary-color);
|
325
454
|
}
|
326
455
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-all .wrapper .select-all-icon {
|
327
456
|
margin-right: 4px;
|
@@ -360,14 +489,14 @@
|
|
360
489
|
}
|
361
490
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option-item .is-keyword {
|
362
491
|
display: inline-flex;
|
363
|
-
color:
|
492
|
+
color: var(--primary-color);
|
364
493
|
}
|
365
494
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-hover {
|
366
|
-
background-color:
|
495
|
+
background-color: var(--select-hover-color);
|
367
496
|
}
|
368
497
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option:hover {
|
369
498
|
color: #63656e;
|
370
|
-
background-color:
|
499
|
+
background-color: var(--select-hover-color);
|
371
500
|
}
|
372
501
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-selected:not(.is-checkbox) {
|
373
502
|
color: #3a84ff;
|
@@ -385,10 +514,10 @@
|
|
385
514
|
background-color: #fff;
|
386
515
|
}
|
387
516
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-multiple.is-hover {
|
388
|
-
background-color:
|
517
|
+
background-color: var(--select-hover-color);
|
389
518
|
}
|
390
519
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-multiple:hover {
|
391
|
-
background-color:
|
520
|
+
background-color: var(--select-hover-color);
|
392
521
|
}
|
393
522
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-options-loading {
|
394
523
|
display: flex;
|
@@ -439,24 +568,24 @@
|
|
439
568
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper {
|
440
569
|
display: flex;
|
441
570
|
margin: 4px 8px 0 8px;
|
442
|
-
border-bottom: 1px solid
|
571
|
+
border-bottom: 1px solid var(--input-block-hover-color);
|
443
572
|
align-items: center;
|
444
573
|
}
|
445
574
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .icon-search {
|
446
575
|
margin-left: 2px;
|
447
|
-
color:
|
576
|
+
color: var(--gray-color);
|
448
577
|
}
|
449
578
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input {
|
450
579
|
width: 100%;
|
451
580
|
height: 32px;
|
452
581
|
padding: 0 28px 0 10px;
|
453
582
|
line-height: normal;
|
454
|
-
color:
|
583
|
+
color: var(--default-color);
|
455
584
|
text-align: left;
|
456
585
|
vertical-align: middle;
|
457
586
|
cursor: pointer;
|
458
|
-
background-color: white;
|
459
|
-
border: 1px solid
|
587
|
+
background-color: var(--white-color);
|
588
|
+
border: 1px solid var(--light-gray);
|
460
589
|
border-radius: 2px;
|
461
590
|
outline: none;
|
462
591
|
box-sizing: border-box;
|
@@ -470,5 +599,5 @@
|
|
470
599
|
border: none;
|
471
600
|
}
|
472
601
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input::placeholder {
|
473
|
-
color:
|
602
|
+
color: var(--light-gray);
|
474
603
|
}
|
package/lib/select/select.less
CHANGED
@@ -127,8 +127,8 @@
|
|
127
127
|
}
|
128
128
|
|
129
129
|
&.popover-show {
|
130
|
-
.@{bk-prefix}-select-trigger .angle-
|
131
|
-
transform: rotate(
|
130
|
+
.@{bk-prefix}-select-trigger .angle-down {
|
131
|
+
transform: rotate(180deg);
|
132
132
|
}
|
133
133
|
}
|
134
134
|
|
@@ -257,9 +257,8 @@
|
|
257
257
|
}
|
258
258
|
}
|
259
259
|
|
260
|
-
.angle-
|
260
|
+
.angle-down {
|
261
261
|
right: 4px;
|
262
|
-
transform: rotate(180deg);
|
263
262
|
transition: transform .3s cubic-bezier(.4, 0, .2, 1);
|
264
263
|
.select-icon();
|
265
264
|
.fix-icon();
|