bkui-vue 1.0.3-beta.3 → 1.0.3-beta.31
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 +71 -71
- package/dist/index.esm.js +16194 -15009
- package/dist/index.umd.js +70 -70
- 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/alert/alert.variable.css +3 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/collapse/collapse.variable.css +3 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.variable.css +3 -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/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +9 -3
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +11 -0
- package/lib/dialog/dialog.variable.css +3 -0
- package/lib/dialog/index.d.ts +23 -0
- package/lib/dialog/index.js +3 -1
- package/lib/dialog/props.d.ts +5 -0
- package/lib/dist.index.js +0 -1
- package/lib/divider/divider.variable.css +3 -0
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/exception/exception.variable.css +3 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/form/form.css +1 -0
- package/lib/form/form.less +2 -1
- package/lib/form/form.variable.css +4 -0
- package/lib/hooks.js +1 -8
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +34 -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 +5 -2
- package/lib/index.js +0 -1
- package/lib/info-box/index.js +40 -455
- package/lib/info-box/info-box.variable.css +3 -0
- package/lib/input/index.js +5 -0
- package/lib/input/input.variable.css +3 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/index.d.ts +34 -6
- package/lib/modal/index.js +8 -6
- package/lib/modal/modal.d.ts +13 -2
- package/lib/modal/modal.variable.css +3 -0
- package/lib/modal/props.mixin.d.ts +5 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/pagination/index.js +2 -2
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +55 -31
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +55 -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/preset.d.ts +2 -0
- package/lib/preset.js +14 -20
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/search-select.variable.css +3 -0
- package/lib/select/index.d.ts +68 -6
- package/lib/select/index.js +1326 -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 +44 -3
- package/lib/shared/utils.d.ts +12 -0
- package/lib/sideslider/index.d.ts +29 -6
- package/lib/sideslider/index.js +5 -2
- package/lib/sideslider/sideslider.d.ts +13 -2
- package/lib/sideslider/sideslider.variable.css +3 -0
- package/lib/slider/slider.variable.css +3 -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/swiper.variable.css +3 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-column.d.ts +7 -4
- package/lib/table/index.d.ts +22 -4
- package/lib/table/index.js +1382 -1118
- 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 +15 -4
- package/lib/table/table.css +6 -12
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +12 -9
- package/lib/table/table.variable.css +9 -12
- package/lib/table/use-attributes.d.ts +5 -43
- package/lib/table/utils.d.ts +5 -4
- package/lib/table-column/index.d.ts +125 -116
- package/lib/table-column/index.js +97 -26
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.d.ts +4 -4
- 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 +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/tree.variable.css +3 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.d.ts +9 -9
- 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
@@ -383,10 +383,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
383
383
|
};
|
384
384
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
385
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
|
+
});
|
386
389
|
return {
|
387
390
|
style: style,
|
388
391
|
refContent: refContent,
|
389
|
-
|
392
|
+
contentClassName: contentClassName,
|
390
393
|
resetPointerEvent: resetPointerEvent,
|
391
394
|
setContentPointerEvent: setContentPointerEvent
|
392
395
|
};
|
@@ -401,7 +404,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
401
404
|
_this$$slots$default2,
|
402
405
|
_this$$slots$default3,
|
403
406
|
_this$$slots3;
|
404
|
-
var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
|
405
407
|
var resolveContentStyle = function resolveContentStyle(slot) {
|
406
408
|
var _slot$;
|
407
409
|
if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
@@ -414,7 +416,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
414
416
|
};
|
415
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));
|
416
418
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
417
|
-
"class":
|
419
|
+
"class": this.contentClassName,
|
418
420
|
"style": style,
|
419
421
|
"ref": "refContent"
|
420
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 : '']);
|
@@ -3088,9 +3090,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3088
3090
|
var delay = resolvePopoverDelay()[0];
|
3089
3091
|
// 设置settimeout避免hidePopover导致显示问题
|
3090
3092
|
popShowTimerId = setTimeout(function () {
|
3091
|
-
if (popHideTimerId) {
|
3092
|
-
|
3093
|
-
}
|
3093
|
+
// if (popHideTimerId) {
|
3094
|
+
// clearTimeout(popHideTimerId);
|
3095
|
+
// }
|
3094
3096
|
if (!props.disabled) {
|
3095
3097
|
localIsShow.value = true;
|
3096
3098
|
}
|
@@ -3427,14 +3429,19 @@ var parentNodeReferId = null;
|
|
3427
3429
|
storeEvents = null;
|
3428
3430
|
}
|
3429
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
|
+
};
|
3430
3436
|
var updateBoundary = function updateBoundary() {
|
3431
3437
|
var _resolvePopElements3 = resolvePopElements(),
|
3432
3438
|
elReference = _resolvePopElements3.elReference,
|
3433
3439
|
root = _resolvePopElements3.root;
|
3434
3440
|
if (isFullscreen.value) {
|
3441
|
+
var _fullScreenTarget$val;
|
3435
3442
|
var _ref6 = elReference || root || {},
|
3436
3443
|
parentNode = _ref6.parentNode;
|
3437
|
-
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);
|
3438
3445
|
return;
|
3439
3446
|
}
|
3440
3447
|
boundary.value = getPrefixId(root || elReference);
|
@@ -3442,13 +3449,13 @@ var parentNodeReferId = null;
|
|
3442
3449
|
var _usePopperId = use_popper_id(props, '#'),
|
3443
3450
|
getPrefixId = _usePopperId.getPrefixId;
|
3444
3451
|
var setFullscreenTag = function setFullscreenTag() {
|
3445
|
-
var _fullScreenTarget$
|
3446
|
-
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);
|
3447
3454
|
};
|
3448
3455
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3449
|
-
var _fullScreenTarget$
|
3456
|
+
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3450
3457
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3451
|
-
((_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) {
|
3452
3459
|
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3453
3460
|
});
|
3454
3461
|
};
|
@@ -3626,7 +3633,7 @@ function _isSlot(s) {
|
|
3626
3633
|
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
3627
3634
|
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
3628
3635
|
var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
|
3629
|
-
return !props.disableTeleport;
|
3636
|
+
return localIsShow.value && !props.disableTeleport;
|
3630
3637
|
});
|
3631
3638
|
var show = function show() {
|
3632
3639
|
showFn();
|
@@ -3765,9 +3772,11 @@ function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
3765
3772
|
|
3766
3773
|
|
3767
3774
|
function createPopoverComponent(options) {
|
3775
|
+
var _options$immediate;
|
3768
3776
|
var $PopoverInstance = null;
|
3769
3777
|
var $PopoverInstanceVm = null;
|
3770
3778
|
var $PopoverInstanceEl = null;
|
3779
|
+
var immediate = (_options$immediate = options.immediate) !== null && _options$immediate !== void 0 ? _options$immediate : true;
|
3771
3780
|
var resolvedOptions = plugin_popover_objectSpread(plugin_popover_objectSpread({
|
3772
3781
|
boundary: 'body',
|
3773
3782
|
placement: 'top',
|
@@ -3860,37 +3869,52 @@ function createPopoverComponent(options) {
|
|
3860
3869
|
}
|
3861
3870
|
return document.body;
|
3862
3871
|
}
|
3863
|
-
|
3864
|
-
$
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
|
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();
|
3875
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;
|
3876
3892
|
}
|
3877
|
-
function show() {
|
3878
|
-
var _$
|
3879
|
-
(
|
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();
|
3880
3901
|
}
|
3881
3902
|
function update(e) {
|
3882
|
-
var _$
|
3883
|
-
(_$
|
3903
|
+
var _$PopoverInstanceVm3;
|
3904
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
|
3884
3905
|
}
|
3885
3906
|
function hide() {
|
3886
|
-
var _$
|
3887
|
-
(_$
|
3907
|
+
var _$PopoverInstanceVm4;
|
3908
|
+
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
|
3888
3909
|
}
|
3910
|
+
immediate && install();
|
3889
3911
|
return {
|
3912
|
+
install: install,
|
3890
3913
|
close: close,
|
3891
3914
|
show: show,
|
3892
3915
|
hide: hide,
|
3893
3916
|
update: update,
|
3917
|
+
uninstall: uninstall,
|
3894
3918
|
get vm() {
|
3895
3919
|
return $PopoverInstanceVm;
|
3896
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/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
|
};
|
@@ -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;
|
@@ -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% {
|
@@ -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;
|
@@ -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% {
|