bkui-vue 1.0.3-beta.7 → 1.0.3-beta.70
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 +148 -150
- package/dist/index.esm.js +17965 -16537
- package/dist/index.umd.js +148 -150
- 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/checkbox/index.js +4 -4
- 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.d.ts +1 -0
- package/lib/components.js +2 -5
- 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/base/month-table.d.ts +2 -2
- 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 +70 -32
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +4 -0
- package/lib/dialog/dialog.css +93 -122
- package/lib/dialog/dialog.d.ts +39 -14
- package/lib/dialog/dialog.less +92 -98
- package/lib/dialog/dialog.variable.css +96 -122
- package/lib/dialog/index.d.ts +81 -30
- package/lib/dialog/index.js +146 -124
- package/lib/dialog/props.d.ts +18 -6
- package/lib/directives/index.js +0 -1
- 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.variable.css +3 -0
- package/lib/form/index.js +3 -1
- package/lib/hooks.js +1 -8
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- 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 +41 -455
- package/lib/info-box/info-box.css +6 -32
- package/lib/info-box/info-box.d.ts +1 -1
- package/lib/info-box/info-box.less +16 -47
- package/lib/info-box/info-box.variable.css +9 -32
- 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/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +100 -52
- package/lib/modal/index.js +173 -74
- package/lib/modal/modal.css +41 -65
- package/lib/modal/modal.d.ts +40 -17
- package/lib/modal/modal.less +50 -57
- package/lib/modal/modal.variable.css +44 -65
- package/lib/modal/props.mixin.d.ts +12 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +45 -26
- package/lib/pop-confirm/index.js +8 -5
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +45 -26
- 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/index.js +5 -5
- 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/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +701 -366
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +116 -6
- package/lib/search-select/utils.d.ts +19 -6
- package/lib/select/index.d.ts +143 -6
- package/lib/select/index.js +1355 -78
- 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 +55 -12
- package/lib/select/select.d.ts +59 -2
- package/lib/select/select.less +69 -19
- package/lib/select/select.variable.css +58 -12
- package/lib/select/selectTagInput.d.ts +7 -0
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.js +67 -3
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +5 -0
- package/lib/sideslider/index.d.ts +55 -9
- package/lib/sideslider/index.js +26 -25
- package/lib/sideslider/sideslider.css +51 -46
- package/lib/sideslider/sideslider.d.ts +25 -3
- package/lib/sideslider/sideslider.less +108 -104
- package/lib/sideslider/sideslider.variable.css +54 -46
- 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 +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- 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 +111 -5
- package/lib/table/index.d.ts +51 -5
- package/lib/table/index.js +504 -261
- package/lib/table/plugins/head-filter.variable.css +3 -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 +6 -4
- package/lib/table/table.css +6 -12
- package/lib/table/table.less +12 -9
- package/lib/table/table.variable.css +9 -12
- package/lib/table/use-attributes.d.ts +4 -42
- package/lib/table/utils.d.ts +2 -2
- package/lib/table-column/index.d.ts +235 -119
- package/lib/table-column/index.js +217 -30
- 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/index.d.ts +80 -44
- package/lib/timeline/index.js +54 -65
- package/lib/timeline/timeline.d.ts +46 -29
- 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/index.d.ts +12 -0
- package/lib/upload/index.js +21 -30
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -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
|
}
|
@@ -3631,7 +3633,7 @@ function _isSlot(s) {
|
|
3631
3633
|
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
3632
3634
|
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
3633
3635
|
var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
|
3634
|
-
return !props.disableTeleport;
|
3636
|
+
return localIsShow.value && !props.disableTeleport;
|
3635
3637
|
});
|
3636
3638
|
var show = function show() {
|
3637
3639
|
showFn();
|
@@ -3770,9 +3772,11 @@ function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
3770
3772
|
|
3771
3773
|
|
3772
3774
|
function createPopoverComponent(options) {
|
3775
|
+
var _options$immediate;
|
3773
3776
|
var $PopoverInstance = null;
|
3774
3777
|
var $PopoverInstanceVm = null;
|
3775
3778
|
var $PopoverInstanceEl = null;
|
3779
|
+
var immediate = (_options$immediate = options.immediate) !== null && _options$immediate !== void 0 ? _options$immediate : true;
|
3776
3780
|
var resolvedOptions = plugin_popover_objectSpread(plugin_popover_objectSpread({
|
3777
3781
|
boundary: 'body',
|
3778
3782
|
placement: 'top',
|
@@ -3865,37 +3869,52 @@ function createPopoverComponent(options) {
|
|
3865
3869
|
}
|
3866
3870
|
return document.body;
|
3867
3871
|
}
|
3868
|
-
|
3869
|
-
$
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
function close() {
|
3875
|
-
if ($PopoverInstance) {
|
3876
|
-
$PopoverInstance.unmount();
|
3877
|
-
$PopoverInstanceVm = null;
|
3878
|
-
$PopoverInstance = null;
|
3879
|
-
$PopoverInstanceEl.remove();
|
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);
|
3880
3878
|
}
|
3879
|
+
};
|
3880
|
+
var uninstall = function uninstall() {
|
3881
|
+
var _$PopoverInstanceEl;
|
3882
|
+
if (utils_isElement(options.content)) {
|
3883
|
+
options.content.remove();
|
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;
|
3881
3892
|
}
|
3882
|
-
function show() {
|
3883
|
-
var _$
|
3884
|
-
(
|
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();
|
3885
3901
|
}
|
3886
3902
|
function update(e) {
|
3887
|
-
var _$
|
3888
|
-
(_$
|
3903
|
+
var _$PopoverInstanceVm3;
|
3904
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.updateTarget(e);
|
3889
3905
|
}
|
3890
3906
|
function hide() {
|
3891
|
-
var _$
|
3892
|
-
(_$
|
3907
|
+
var _$PopoverInstanceVm4;
|
3908
|
+
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 || _$PopoverInstanceVm4.hide();
|
3893
3909
|
}
|
3910
|
+
immediate && install();
|
3894
3911
|
return {
|
3912
|
+
install: install,
|
3895
3913
|
close: close,
|
3896
3914
|
show: show,
|
3897
3915
|
hide: hide,
|
3898
3916
|
update: update,
|
3917
|
+
uninstall: uninstall,
|
3899
3918
|
get vm() {
|
3900
3919
|
return $PopoverInstanceVm;
|
3901
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% {
|
package/lib/radio/index.js
CHANGED
@@ -309,8 +309,8 @@ var useRadio = function useRadio() {
|
|
309
309
|
|
310
310
|
var radioProps = {
|
311
311
|
name: shared_namespaceObject.PropTypes.string.def(''),
|
312
|
-
label: shared_namespaceObject.PropTypes.oneOfType([
|
313
|
-
modelValue: shared_namespaceObject.PropTypes.oneOfType([
|
312
|
+
label: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).isRequired,
|
313
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def(''),
|
314
314
|
checked: shared_namespaceObject.PropTypes.bool.def(false),
|
315
315
|
disabled: shared_namespaceObject.PropTypes.bool.def(false)
|
316
316
|
};
|
@@ -414,8 +414,8 @@ var radioProps = {
|
|
414
414
|
|
415
415
|
var radioButtonProps = {
|
416
416
|
name: shared_namespaceObject.PropTypes.string.def(''),
|
417
|
-
label: shared_namespaceObject.PropTypes.oneOfType([
|
418
|
-
modelValue: shared_namespaceObject.PropTypes.oneOfType([
|
417
|
+
label: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).isRequired,
|
418
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def(''),
|
419
419
|
checked: shared_namespaceObject.PropTypes.bool.def(false),
|
420
420
|
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
421
421
|
size: shared_namespaceObject.PropTypes.size()
|
@@ -518,7 +518,7 @@ var radioButtonProps = {
|
|
518
518
|
|
519
519
|
var radioGroupProps = {
|
520
520
|
name: shared_namespaceObject.PropTypes.string.def(''),
|
521
|
-
modelValue: shared_namespaceObject.PropTypes.oneOfType([
|
521
|
+
modelValue: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]),
|
522
522
|
disabled: shared_namespaceObject.PropTypes.bool,
|
523
523
|
withValidate: shared_namespaceObject.PropTypes.bool.def(true),
|
524
524
|
type: shared_namespaceObject.PropTypes.oneOf(['tab', 'capsule', 'card']).def('tab'),
|
@@ -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;
|
@@ -171,7 +171,7 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
171
171
|
var asideStyle = (0,external_vue_namespaceObject.computed)(function () {
|
172
172
|
var divide = initialDivide.value;
|
173
173
|
if (typeof divide === 'number') {
|
174
|
-
divide = "".concat(divide, "px");
|
174
|
+
divide = divide <= min.value ? "".concat(min.value, "px") : "".concat(divide, "px");
|
175
175
|
}
|
176
176
|
return _defineProperty({}, cssPropKey.value, divide);
|
177
177
|
});
|
@@ -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;
|