bkui-vue 1.0.3-beta.2 → 1.0.3-beta.21
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 +72 -72
- package/dist/index.esm.js +15120 -13962
- package/dist/index.umd.js +71 -71
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.js +1 -0
- package/lib/animate-number/index.js +1 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.js +1 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/breadcrumb/index.js +1 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.js +1 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/card/index.js +1 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/cascader/index.js +1 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +1 -0
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.variable.css +3 -0
- package/lib/collapse/index.js +1 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/collapse-transition/index.js +1 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/components.js +0 -4
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +4 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.js +6 -2
- package/lib/dialog/dialog.variable.css +3 -0
- package/lib/dialog/index.js +1 -0
- package/lib/directives/index.js +1 -0
- package/lib/dist.index.js +0 -1
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +1 -0
- package/lib/form/form.css +1 -0
- package/lib/form/form.less +2 -0
- package/lib/form/form.variable.css +4 -0
- package/lib/form/index.js +1 -0
- package/lib/hooks.js +1 -8
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +35 -1
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +276 -0
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +1 -0
- package/lib/index.js +0 -1
- package/lib/info-box/index.js +41 -455
- package/lib/info-box/info-box.variable.css +3 -0
- package/lib/input/index.js +6 -0
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.js +1 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.js +1 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +5 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/index.d.ts +6 -6
- package/lib/modal/index.js +6 -5
- package/lib/modal/modal.d.ts +2 -2
- package/lib/modal/modal.variable.css +3 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +56 -31
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +56 -31
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover2/index.js +1 -0
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +14 -20
- package/lib/process/index.js +1 -0
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.js +1 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.js +1 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/index.js +1 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/search-select.variable.css +3 -0
- package/lib/select/index.d.ts +68 -6
- package/lib/select/index.js +1327 -68
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +36 -7
- package/lib/select/select.d.ts +28 -2
- package/lib/select/select.less +43 -13
- package/lib/select/select.variable.css +39 -7
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.js +45 -3
- package/lib/shared/utils.d.ts +12 -0
- package/lib/sideslider/index.d.ts +6 -6
- package/lib/sideslider/index.js +1 -0
- package/lib/sideslider/sideslider.d.ts +2 -2
- package/lib/sideslider/sideslider.variable.css +3 -0
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider.variable.css +3 -0
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +3 -1
- package/lib/styles/reset.less +3 -1
- package/lib/styles/reset.variable.css +6 -1
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +1 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/components/table-column.d.ts +2 -0
- package/lib/table/index.d.ts +17 -0
- package/lib/table/index.js +1323 -1100
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.d.ts +7 -0
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/props.d.ts +13 -2
- package/lib/table/table.css +17 -17
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +26 -14
- package/lib/table/table.variable.css +20 -17
- package/lib/table/use-attributes.d.ts +5 -43
- package/lib/table/use-common.d.ts +1 -0
- package/lib/table/utils.d.ts +5 -4
- package/lib/table-column/index.d.ts +112 -106
- package/lib/table-column/index.js +44 -4
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +35 -35
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/tree.variable.css +3 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.d.ts +9 -9
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/virtual-render.d.ts +3 -3
- package/lib/virtual-render/virtual-render.variable.css +3 -0
- package/package.json +3 -2
package/lib/popover/index.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import "../styles/reset.css";
|
1
2
|
import "./popover.less";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
@@ -382,10 +383,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
382
383
|
};
|
383
384
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
384
385
|
resolveClassName = _usePrefix.resolveClassName;
|
386
|
+
var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
|
387
|
+
return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
|
388
|
+
});
|
385
389
|
return {
|
386
390
|
style: style,
|
387
391
|
refContent: refContent,
|
388
|
-
|
392
|
+
contentClassName: contentClassName,
|
389
393
|
resetPointerEvent: resetPointerEvent,
|
390
394
|
setContentPointerEvent: setContentPointerEvent
|
391
395
|
};
|
@@ -400,7 +404,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
400
404
|
_this$$slots$default2,
|
401
405
|
_this$$slots$default3,
|
402
406
|
_this$$slots3;
|
403
|
-
var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
|
404
407
|
var resolveContentStyle = function resolveContentStyle(slot) {
|
405
408
|
var _slot$;
|
406
409
|
if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
@@ -413,7 +416,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
413
416
|
};
|
414
417
|
var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
|
415
418
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
416
|
-
"class":
|
419
|
+
"class": this.contentClassName,
|
417
420
|
"style": style,
|
418
421
|
"ref": "refContent"
|
419
422
|
}, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
|
@@ -3087,9 +3090,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3087
3090
|
var delay = resolvePopoverDelay()[0];
|
3088
3091
|
// 设置settimeout避免hidePopover导致显示问题
|
3089
3092
|
popShowTimerId = setTimeout(function () {
|
3090
|
-
if (popHideTimerId) {
|
3091
|
-
|
3092
|
-
}
|
3093
|
+
// if (popHideTimerId) {
|
3094
|
+
// clearTimeout(popHideTimerId);
|
3095
|
+
// }
|
3093
3096
|
if (!props.disabled) {
|
3094
3097
|
localIsShow.value = true;
|
3095
3098
|
}
|
@@ -3426,14 +3429,19 @@ var parentNodeReferId = null;
|
|
3426
3429
|
storeEvents = null;
|
3427
3430
|
}
|
3428
3431
|
};
|
3432
|
+
var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
|
3433
|
+
var _elment$closest;
|
3434
|
+
return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
|
3435
|
+
};
|
3429
3436
|
var updateBoundary = function updateBoundary() {
|
3430
3437
|
var _resolvePopElements3 = resolvePopElements(),
|
3431
3438
|
elReference = _resolvePopElements3.elReference,
|
3432
3439
|
root = _resolvePopElements3.root;
|
3433
3440
|
if (isFullscreen.value) {
|
3441
|
+
var _fullScreenTarget$val;
|
3434
3442
|
var _ref6 = elReference || root || {},
|
3435
3443
|
parentNode = _ref6.parentNode;
|
3436
|
-
boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value)
|
3444
|
+
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
3437
3445
|
return;
|
3438
3446
|
}
|
3439
3447
|
boundary.value = getPrefixId(root || elReference);
|
@@ -3441,13 +3449,13 @@ var parentNodeReferId = null;
|
|
3441
3449
|
var _usePopperId = use_popper_id(props, '#'),
|
3442
3450
|
getPrefixId = _usePopperId.getPrefixId;
|
3443
3451
|
var setFullscreenTag = function setFullscreenTag() {
|
3444
|
-
var _fullScreenTarget$
|
3445
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$
|
3452
|
+
var _fullScreenTarget$val2;
|
3453
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3446
3454
|
};
|
3447
3455
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3448
|
-
var _fullScreenTarget$
|
3456
|
+
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3449
3457
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3450
|
-
((_fullScreenTarget$
|
3458
|
+
((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
|
3451
3459
|
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3452
3460
|
});
|
3453
3461
|
};
|
@@ -3625,7 +3633,7 @@ function _isSlot(s) {
|
|
3625
3633
|
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
3626
3634
|
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
3627
3635
|
var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
|
3628
|
-
return !props.disableTeleport;
|
3636
|
+
return localIsShow.value && !props.disableTeleport;
|
3629
3637
|
});
|
3630
3638
|
var show = function show() {
|
3631
3639
|
showFn();
|
@@ -3764,9 +3772,11 @@ function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
3764
3772
|
|
3765
3773
|
|
3766
3774
|
function createPopoverComponent(options) {
|
3775
|
+
var _options$immediate;
|
3767
3776
|
var $PopoverInstance = null;
|
3768
3777
|
var $PopoverInstanceVm = null;
|
3769
3778
|
var $PopoverInstanceEl = null;
|
3779
|
+
var immediate = (_options$immediate = options.immediate) !== null && _options$immediate !== void 0 ? _options$immediate : true;
|
3770
3780
|
var resolvedOptions = plugin_popover_objectSpread(plugin_popover_objectSpread({
|
3771
3781
|
boundary: 'body',
|
3772
3782
|
placement: 'top',
|
@@ -3859,37 +3869,52 @@ function createPopoverComponent(options) {
|
|
3859
3869
|
}
|
3860
3870
|
return document.body;
|
3861
3871
|
}
|
3862
|
-
|
3863
|
-
$
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3872
|
+
var install = function install() {
|
3873
|
+
if ($PopoverInstance === null) {
|
3874
|
+
$PopoverInstanceEl = document.createElement('div');
|
3875
|
+
getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
|
3876
|
+
$PopoverInstance = (0,external_vue_namespaceObject.createApp)(popoverComponent);
|
3877
|
+
$PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
|
3878
|
+
}
|
3879
|
+
};
|
3880
|
+
var uninstall = function uninstall() {
|
3881
|
+
var _$PopoverInstanceEl;
|
3882
|
+
if (utils_isElement(options.content)) {
|
3883
|
+
options.content.remove();
|
3874
3884
|
}
|
3885
|
+
$PopoverInstance.unmount();
|
3886
|
+
$PopoverInstance = null;
|
3887
|
+
(_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 || _$PopoverInstanceEl.remove();
|
3888
|
+
};
|
3889
|
+
function close() {
|
3890
|
+
uninstall();
|
3891
|
+
$PopoverInstanceVm = null;
|
3875
3892
|
}
|
3876
|
-
function show() {
|
3877
|
-
var _$
|
3878
|
-
(
|
3893
|
+
function show(target) {
|
3894
|
+
var _$PopoverInstanceVm2;
|
3895
|
+
install();
|
3896
|
+
if (target) {
|
3897
|
+
var _$PopoverInstanceVm;
|
3898
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.updateTarget(target);
|
3899
|
+
}
|
3900
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.show();
|
3879
3901
|
}
|
3880
3902
|
function update(e) {
|
3881
|
-
var _$
|
3882
|
-
(_$
|
3903
|
+
var _$PopoverInstanceVm3;
|
3904
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
|
3883
3905
|
}
|
3884
3906
|
function hide() {
|
3885
|
-
var _$
|
3886
|
-
(_$
|
3907
|
+
var _$PopoverInstanceVm4;
|
3908
|
+
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
|
3887
3909
|
}
|
3910
|
+
immediate && install();
|
3888
3911
|
return {
|
3912
|
+
install: install,
|
3889
3913
|
close: close,
|
3890
3914
|
show: show,
|
3891
3915
|
hide: hide,
|
3892
3916
|
update: update,
|
3917
|
+
uninstall: uninstall,
|
3893
3918
|
get vm() {
|
3894
3919
|
return $PopoverInstanceVm;
|
3895
3920
|
},
|
@@ -1,12 +1,15 @@
|
|
1
1
|
import { PopoverPropTypes } from './props';
|
2
2
|
export type $Popover = PopoverPropTypes & {
|
3
3
|
target: HTMLElement | HTMLElement | MouseEvent;
|
4
|
+
immediate: boolean;
|
4
5
|
};
|
5
6
|
export default function createPopoverComponent(options: $Popover): {
|
7
|
+
install: () => void;
|
6
8
|
close: () => void;
|
7
|
-
show: () => void;
|
9
|
+
show: (target?: MouseEvent | HTMLElement) => void;
|
8
10
|
hide: () => void;
|
9
11
|
update: (e: MouseEvent) => void;
|
12
|
+
uninstall: () => void;
|
10
13
|
readonly vm: any;
|
11
14
|
readonly $el: HTMLElement;
|
12
15
|
};
|
package/lib/popover/popover.css
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
.bk-popover.bk-pop2-content {
|
2
2
|
position: absolute;
|
3
|
-
display: none;
|
4
3
|
padding: 12px;
|
5
4
|
font-size: 12px;
|
6
5
|
color: #fff;
|
@@ -8,6 +7,9 @@
|
|
8
7
|
border-radius: 4px;
|
9
8
|
box-sizing: border-box;
|
10
9
|
}
|
10
|
+
.bk-popover.bk-pop2-content.hidden {
|
11
|
+
display: none;
|
12
|
+
}
|
11
13
|
.bk-popover.bk-pop2-content .bk-pop2-arrow {
|
12
14
|
position: absolute;
|
13
15
|
z-index: -1;
|
package/lib/popover/popover.less
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,10 +124,11 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-popover.bk-pop2-content {
|
128
131
|
position: absolute;
|
129
|
-
display: none;
|
130
132
|
padding: 12px;
|
131
133
|
font-size: 12px;
|
132
134
|
color: #fff;
|
@@ -134,6 +136,9 @@
|
|
134
136
|
border-radius: 4px;
|
135
137
|
box-sizing: border-box;
|
136
138
|
}
|
139
|
+
.bk-popover.bk-pop2-content.hidden {
|
140
|
+
display: none;
|
141
|
+
}
|
137
142
|
.bk-popover.bk-pop2-content .bk-pop2-arrow {
|
138
143
|
position: absolute;
|
139
144
|
z-index: -1;
|
package/lib/popover2/index.js
CHANGED
package/lib/preset.d.ts
CHANGED
@@ -118,6 +118,7 @@ declare const _default: {
|
|
118
118
|
};
|
119
119
|
input: {
|
120
120
|
placeholder: string;
|
121
|
+
maxlengthLimitTips: string;
|
121
122
|
};
|
122
123
|
tagInput: {
|
123
124
|
placeholder: string;
|
@@ -261,6 +262,7 @@ declare const _default: {
|
|
261
262
|
};
|
262
263
|
input: {
|
263
264
|
placeholder: string;
|
265
|
+
maxlengthLimitTips: string;
|
264
266
|
};
|
265
267
|
tagInput: {
|
266
268
|
placeholder: string;
|
package/lib/preset.js
CHANGED
@@ -23,31 +23,25 @@
|
|
23
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
24
|
* IN THE SOFTWARE.
|
25
25
|
*/
|
26
|
-
|
27
|
-
import { App } from 'vue';
|
28
|
-
|
29
|
-
import { ConfigProviderProps, provideGlobalConfig } from './config-provider';
|
30
|
-
|
26
|
+
import { provideGlobalConfig } from './config-provider';
|
31
27
|
import * as components from './components';
|
32
|
-
|
33
|
-
const createInstall =
|
34
|
-
(prefix = 'Bk') =>
|
35
|
-
(app, options) => {
|
28
|
+
const createInstall = (prefix = 'Bk') => (app, options) => {
|
36
29
|
const pre = app.config.globalProperties.bkUIPrefix || prefix;
|
37
30
|
Object.keys(components).forEach(key => {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
31
|
+
const component = components[key];
|
32
|
+
if ('install' in component) {
|
33
|
+
app.use(component, { prefix: pre });
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
app.component(pre + key, components[key]);
|
37
|
+
}
|
44
38
|
});
|
45
39
|
if (options) {
|
46
|
-
|
40
|
+
provideGlobalConfig(options, app);
|
47
41
|
}
|
48
|
-
|
42
|
+
};
|
49
43
|
export default {
|
50
|
-
|
51
|
-
|
52
|
-
|
44
|
+
createInstall,
|
45
|
+
install: createInstall(),
|
46
|
+
version: '0.0.1',
|
53
47
|
};
|
package/lib/process/index.js
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
* {
|
128
131
|
box-sizing: border-box;
|
package/lib/progress/index.js
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
@keyframes loading-scale-animate {
|
128
131
|
0% {
|
package/lib/radio/index.js
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-radio-group {
|
128
131
|
display: inline-flex;
|
package/lib/rate/index.js
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-rate {
|
128
131
|
position: relative;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-rate-stars {
|
128
131
|
padding: 0;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-resize-layout {
|
128
131
|
display: flex;
|
@@ -13,6 +13,7 @@
|
|
13
13
|
--whitesmoke-color: #fafbfd;
|
14
14
|
--disable-color: #dcdee5;
|
15
15
|
--disable-bg-color: #f9fafd;
|
16
|
+
--border-color: #dcdee5;
|
16
17
|
--font-size-base: 12px;
|
17
18
|
--font-size-medium: 14px;
|
18
19
|
--font-size-large: 16px;
|
@@ -124,6 +125,8 @@
|
|
124
125
|
--search-select-placeholder-color: var(--light-gray);
|
125
126
|
--search-select-message-color: var(--danger-color);
|
126
127
|
--search-select-menu-border-color: var(--disable-color);
|
128
|
+
--select-active-color: #e1ecff;
|
129
|
+
--select-hover-color: #f5f7fa;
|
127
130
|
}
|
128
131
|
@keyframes loading-scale-animate {
|
129
132
|
0% {
|