bkui-vue 0.0.1-beta.340 → 0.0.1-beta.342
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 +58 -58
- package/dist/index.esm.js +309 -139
- package/dist/index.umd.js +56 -56
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +4 -4
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +4 -4
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.d.ts +29 -30
- package/lib/button/index.d.ts +45 -48
- package/lib/button/index.js +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +4 -4
- package/lib/checkbox/checkbox.d.ts +8 -8
- package/lib/checkbox/index.d.ts +14 -14
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +27 -7
- package/lib/collapse/collapse-panel.d.ts +2 -7
- package/lib/collapse/index.d.ts +2 -7
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +2 -43
- package/lib/color-picker/color-picker.d.ts +7 -7
- package/lib/color-picker/index.d.ts +12 -12
- package/lib/color-picker/index.js +1 -1
- package/lib/date-picker/date-picker.d.ts +7 -7
- package/lib/date-picker/index.d.ts +18 -18
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +7 -7
- package/lib/date-picker/panel/time.d.ts +8 -8
- package/lib/date-picker/props.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +7 -7
- package/lib/dialog/dialog.d.ts +25 -45
- package/lib/dialog/index.d.ts +56 -100
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +10 -18
- package/lib/divider/divider.d.ts +15 -15
- package/lib/divider/index.d.ts +34 -34
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown.d.ts +17 -17
- package/lib/dropdown/index.d.ts +24 -24
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.d.ts +10 -10
- package/lib/exception/index.d.ts +22 -22
- package/lib/exception/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/{original .d.ts → original.d.ts} +0 -0
- package/lib/icon/original.js +1 -0
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image.d.ts +5 -5
- package/lib/image/index.d.ts +11 -11
- package/lib/image/index.js +1 -1
- package/lib/image/props.d.ts +2 -2
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.d.ts +16 -16
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +10 -10
- package/lib/link/index.d.ts +15 -15
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +6 -6
- package/lib/loading/index.d.ts +38 -22
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +27 -15
- package/lib/message/index.js +1 -1
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +24 -76
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +9 -29
- package/lib/modal/props.mixin.d.ts +5 -12
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/pagination/index.d.ts +8 -8
- package/lib/pagination/pagination.d.ts +4 -4
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/index.d.ts +78 -50
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +35 -23
- package/lib/popover/props.d.ts +12 -10
- package/lib/popover/use-floating.d.ts +4 -1
- package/lib/progress/index.d.ts +15 -15
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/radio-button.d.ts +3 -3
- package/lib/rate/index.d.ts +4 -4
- package/lib/rate/rate.d.ts +2 -2
- package/lib/resize-layout/index.d.ts +15 -15
- package/lib/resize-layout/resize-layout.d.ts +6 -6
- package/lib/select/index.d.ts +103 -91
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +38 -34
- package/lib/select/selectTagInput.d.ts +5 -5
- package/lib/shared/index.js +1 -1
- package/lib/shared/pop-manager.d.ts +9 -1
- package/lib/shared/vue-types.d.ts +89 -7
- package/lib/sideslider/index.d.ts +20 -64
- package/lib/sideslider/sideslider.d.ts +9 -29
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider-button.d.ts +2 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +49 -49
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.d.ts +31 -31
- package/lib/switcher/index.d.ts +9 -20
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +4 -9
- package/lib/tab/index.d.ts +39 -44
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +12 -13
- package/lib/tab/tab-nav.d.ts +11 -11
- package/lib/tab/tab-panel.d.ts +2 -7
- package/lib/tab/tab.d.ts +16 -16
- package/lib/table/components/table-column.d.ts +22 -27
- package/lib/table/index.d.ts +160 -94
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +42 -18
- package/lib/table/table.d.ts +50 -15
- package/lib/table/use-common.d.ts +6 -6
- package/lib/table-column/index.d.ts +49 -60
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +22 -22
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +10 -10
- package/lib/tag-input/index.d.ts +80 -73
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.css +1 -5
- package/lib/tag-input/tag-input.d.ts +37 -32
- package/lib/tag-input/tag-input.less +3 -6
- package/lib/tag-input/tag-input.variable.css +1 -5
- package/lib/tag-input/tag-props.d.ts +16 -12
- package/lib/time-picker/index.d.ts +18 -18
- package/lib/tree/constant.d.ts +6 -1
- package/lib/tree/index.js +1 -1
- package/lib/tree/use-empty.d.ts +1 -1
- package/package.json +1 -1
- package/lib/dropdown/const.d.ts +0 -4
- package/lib/icon/original .js +0 -1
package/lib/affix/affix.d.ts
CHANGED
package/lib/affix/index.d.ts
CHANGED
@@ -3,8 +3,8 @@ declare const BkAffix: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
-
zIndex: number;
|
7
6
|
target: string;
|
7
|
+
zIndex: number;
|
8
8
|
offsetTop: number;
|
9
9
|
offsetBottom: number;
|
10
10
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
@@ -28,7 +28,7 @@ declare const BkAffix: {
|
|
28
28
|
};
|
29
29
|
}>> & {
|
30
30
|
onChange?: (...args: any[]) => any;
|
31
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
31
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "target" | "zIndex" | "offsetTop" | "offsetBottom">;
|
32
32
|
$attrs: {
|
33
33
|
[x: string]: unknown;
|
34
34
|
};
|
@@ -64,8 +64,8 @@ declare const BkAffix: {
|
|
64
64
|
}>> & {
|
65
65
|
onChange?: (...args: any[]) => any;
|
66
66
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {
|
67
|
-
zIndex: number;
|
68
67
|
target: string;
|
68
|
+
zIndex: number;
|
69
69
|
offsetTop: number;
|
70
70
|
offsetBottom: number;
|
71
71
|
}> & {
|
@@ -135,8 +135,8 @@ declare const BkAffix: {
|
|
135
135
|
}>> & {
|
136
136
|
onChange?: (...args: any[]) => any;
|
137
137
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {
|
138
|
-
zIndex: number;
|
139
138
|
target: string;
|
139
|
+
zIndex: number;
|
140
140
|
offsetTop: number;
|
141
141
|
offsetBottom: number;
|
142
142
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
package/lib/alert/alert.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
theme: import("vue-types").VueTypeDef<
|
3
|
-
default:
|
2
|
+
theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
|
3
|
+
default: "success" | "info" | "warning" | "danger";
|
4
4
|
};
|
5
5
|
size: import("vue-types").VueTypeValidableDef<string> & {
|
6
6
|
default: string;
|
@@ -27,8 +27,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
27
27
|
};
|
28
28
|
handleClose: () => void;
|
29
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
|
-
theme: import("vue-types").VueTypeDef<
|
31
|
-
default:
|
30
|
+
theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
|
31
|
+
default: "success" | "info" | "warning" | "danger";
|
32
32
|
};
|
33
33
|
size: import("vue-types").VueTypeValidableDef<string> & {
|
34
34
|
default: string;
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
53
53
|
onClose?: (...args: any[]) => any;
|
54
54
|
}, {
|
55
55
|
title: string;
|
56
|
-
theme:
|
56
|
+
theme: "success" | "info" | "warning" | "danger";
|
57
57
|
size: string;
|
58
58
|
closable: boolean;
|
59
59
|
closeText: string;
|
package/lib/alert/index.d.ts
CHANGED
@@ -4,14 +4,14 @@ declare const BkAlert: {
|
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
6
|
title: string;
|
7
|
-
theme:
|
7
|
+
theme: "success" | "info" | "warning" | "danger";
|
8
8
|
size: string;
|
9
9
|
closable: boolean;
|
10
10
|
closeText: string;
|
11
11
|
showIcon: boolean;
|
12
12
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
13
|
-
theme: import("vue-types").VueTypeDef<
|
14
|
-
default:
|
13
|
+
theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
|
14
|
+
default: "success" | "info" | "warning" | "danger";
|
15
15
|
};
|
16
16
|
size: import("vue-types").VueTypeValidableDef<string> & {
|
17
17
|
default: string;
|
@@ -49,8 +49,8 @@ declare const BkAlert: {
|
|
49
49
|
$emit: (event: "close", ...args: any[]) => void;
|
50
50
|
$el: any;
|
51
51
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
52
|
-
theme: import("vue-types").VueTypeDef<
|
53
|
-
default:
|
52
|
+
theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
|
53
|
+
default: "success" | "info" | "warning" | "danger";
|
54
54
|
};
|
55
55
|
size: import("vue-types").VueTypeValidableDef<string> & {
|
56
56
|
default: string;
|
@@ -80,7 +80,7 @@ declare const BkAlert: {
|
|
80
80
|
handleClose: () => void;
|
81
81
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], string, {
|
82
82
|
title: string;
|
83
|
-
theme:
|
83
|
+
theme: "success" | "info" | "warning" | "danger";
|
84
84
|
size: string;
|
85
85
|
closable: boolean;
|
86
86
|
closeText: string;
|
@@ -106,8 +106,8 @@ declare const BkAlert: {
|
|
106
106
|
$nextTick: typeof import("vue").nextTick;
|
107
107
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
108
108
|
} & Readonly<import("vue").ExtractPropTypes<{
|
109
|
-
theme: import("vue-types").VueTypeDef<
|
110
|
-
default:
|
109
|
+
theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
|
110
|
+
default: "success" | "info" | "warning" | "danger";
|
111
111
|
};
|
112
112
|
size: import("vue-types").VueTypeValidableDef<string> & {
|
113
113
|
default: string;
|
@@ -140,8 +140,8 @@ declare const BkAlert: {
|
|
140
140
|
__isTeleport?: never;
|
141
141
|
__isSuspense?: never;
|
142
142
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
143
|
-
theme: import("vue-types").VueTypeDef<
|
144
|
-
default:
|
143
|
+
theme: import("vue-types").VueTypeDef<"success" | "info" | "warning" | "danger"> & {
|
144
|
+
default: "success" | "info" | "warning" | "danger";
|
145
145
|
};
|
146
146
|
size: import("vue-types").VueTypeValidableDef<string> & {
|
147
147
|
default: string;
|
@@ -171,7 +171,7 @@ declare const BkAlert: {
|
|
171
171
|
handleClose: () => void;
|
172
172
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", {
|
173
173
|
title: string;
|
174
|
-
theme:
|
174
|
+
theme: "success" | "info" | "warning" | "danger";
|
175
175
|
size: string;
|
176
176
|
closable: boolean;
|
177
177
|
closeText: string;
|
package/lib/alert/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={6870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},s={};function
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={6870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return r[e](o,o.exports,l),o.exports}l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{l.r(i),l.d(i,{default:()=>s});var e=l(4212),t=l(748),o=l(6870);const r=(0,t.defineComponent)({name:"Alert",props:{theme:(0,e.TagThemeType)().def(e.TagThemeEnum.INFO),size:e.PropTypes.string,title:e.PropTypes.string,closable:e.PropTypes.bool.def(!1),closeText:e.PropTypes.string,showIcon:e.PropTypes.bool.def(!0)},emits:["close"],setup:function(e,o){var r=(0,t.reactive)({visible:!0});return{state:r,handleClose:function(){r.visible=!1,o.emit("close")}}},render:function(){var r,s;if(!this.state.visible)return null;var l,i,n=Boolean(this.closeText),a=(0,e.classes)({"bk-alert-close":!0,"close-text":n,"bk-alert-close-icon":!n}),c=(0,e.classes)((l={"bk-alert":!0},!0,(i="bk-alert-".concat(this.theme))in l?Object.defineProperty(l,i,{value:true,enumerable:!0,configurable:!0,writable:!0}):l[i]=true,l));return(0,t.createVNode)("div",{class:c},[(0,t.createVNode)("div",{class:"bk-alert-wraper"},[this.showIcon&&(0,t.createVNode)(o.InfoLine,{class:"bk-alert-icon-info"},null),(0,t.createVNode)("div",{class:"bk-alert-content"},[(0,t.createVNode)("div",{class:"bk-alert-title"},[this.$slots.title?this.$slots.title():this.title]),(0,t.createVNode)("div",{class:"bk-alert-description"},[null===(s=(r=this.$slots).default)||void 0===s?void 0:s.call(r)])]),this.closable&&(0,t.createVNode)("span",{class:a,onClick:this.handleClose},[this.closeText?this.closeText:(0,t.createVNode)(o.CloseLine,null,null)])])])}}),s=(0,e.withInstall)(r)})(),i})()));
|
@@ -3,8 +3,8 @@ declare const BkAnimateNumber: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
-
value: number;
|
7
6
|
digits: number;
|
7
|
+
value: number;
|
8
8
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
9
9
|
value: import("vue-types").VueTypeValidableDef<number> & {
|
10
10
|
default: number;
|
@@ -16,7 +16,7 @@ declare const BkAnimateNumber: {
|
|
16
16
|
} & {
|
17
17
|
default: number;
|
18
18
|
};
|
19
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
19
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "digits" | "value">;
|
20
20
|
$attrs: {
|
21
21
|
[x: string]: unknown;
|
22
22
|
};
|
@@ -42,8 +42,8 @@ declare const BkAnimateNumber: {
|
|
42
42
|
default: number;
|
43
43
|
};
|
44
44
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
45
|
-
value: number;
|
46
45
|
digits: number;
|
46
|
+
value: number;
|
47
47
|
}> & {
|
48
48
|
beforeCreate?: (() => void) | (() => void)[];
|
49
49
|
created?: (() => void) | (() => void)[];
|
@@ -91,7 +91,7 @@ declare const BkAnimateNumber: {
|
|
91
91
|
default: number;
|
92
92
|
};
|
93
93
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
94
|
-
value: number;
|
95
94
|
digits: number;
|
95
|
+
value: number;
|
96
96
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
97
97
|
export default BkAnimateNumber;
|
package/lib/backtop/backtop.d.ts
CHANGED
package/lib/backtop/index.d.ts
CHANGED
@@ -5,8 +5,8 @@ declare const BkBacktop: {
|
|
5
5
|
$props: Partial<{
|
6
6
|
bottom: number;
|
7
7
|
right: number;
|
8
|
-
extCls: string;
|
9
8
|
target: string;
|
9
|
+
extCls: string;
|
10
10
|
visibilityHeight: number;
|
11
11
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
12
12
|
visibilityHeight: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -34,7 +34,7 @@ declare const BkBacktop: {
|
|
34
34
|
} & {
|
35
35
|
default: string;
|
36
36
|
};
|
37
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bottom" | "right" | "
|
37
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bottom" | "right" | "target" | "extCls" | "visibilityHeight">;
|
38
38
|
$attrs: {
|
39
39
|
[x: string]: unknown;
|
40
40
|
};
|
@@ -77,8 +77,8 @@ declare const BkBacktop: {
|
|
77
77
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
78
78
|
bottom: number;
|
79
79
|
right: number;
|
80
|
-
extCls: string;
|
81
80
|
target: string;
|
81
|
+
extCls: string;
|
82
82
|
visibilityHeight: number;
|
83
83
|
}> & {
|
84
84
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -159,8 +159,8 @@ declare const BkBacktop: {
|
|
159
159
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
160
160
|
bottom: number;
|
161
161
|
right: number;
|
162
|
-
extCls: string;
|
163
162
|
target: string;
|
163
|
+
extCls: string;
|
164
164
|
visibilityHeight: number;
|
165
165
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
166
166
|
export default BkBacktop;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
size: import("vue-types").VueTypeDef<
|
2
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
3
3
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
4
|
-
size: import("vue-types").VueTypeDef<
|
4
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
5
5
|
}>>, {}>;
|
6
6
|
export default _default;
|
package/lib/button/button.d.ts
CHANGED
@@ -26,14 +26,11 @@
|
|
26
26
|
import { ExtractPropTypes, PropType } from 'vue';
|
27
27
|
declare type IButtonNativeType = PropType<'button' | 'submit' | 'reset'>;
|
28
28
|
declare const buttonProps: {
|
29
|
-
theme: import("vue-types").VueTypeDef<
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
default:
|
34
|
-
};
|
35
|
-
size: import("vue-types").VueTypeDef<string> & {
|
36
|
-
default: string;
|
29
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
30
|
+
hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
31
|
+
size: {
|
32
|
+
type: PropType<"" | "small" | "large">;
|
33
|
+
default: "";
|
37
34
|
};
|
38
35
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
39
36
|
default: string;
|
@@ -50,7 +47,10 @@ declare const buttonProps: {
|
|
50
47
|
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
51
48
|
default: boolean;
|
52
49
|
};
|
53
|
-
loadingMode:
|
50
|
+
loadingMode: {
|
51
|
+
type: PropType<"default" | "spin">;
|
52
|
+
default: string;
|
53
|
+
};
|
54
54
|
outline: import("vue-types").VueTypeValidableDef<boolean> & {
|
55
55
|
default: boolean;
|
56
56
|
};
|
@@ -67,14 +67,11 @@ declare const buttonProps: {
|
|
67
67
|
};
|
68
68
|
export declare type ButtonPropTypes = ExtractPropTypes<typeof buttonProps>;
|
69
69
|
declare const _default: import("vue").DefineComponent<{
|
70
|
-
theme: import("vue-types").VueTypeDef<
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
default:
|
75
|
-
};
|
76
|
-
size: import("vue-types").VueTypeDef<string> & {
|
77
|
-
default: string;
|
70
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
71
|
+
hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
72
|
+
size: {
|
73
|
+
type: PropType<"" | "small" | "large">;
|
74
|
+
default: "";
|
78
75
|
};
|
79
76
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
80
77
|
default: string;
|
@@ -91,7 +88,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
88
|
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
92
89
|
default: boolean;
|
93
90
|
};
|
94
|
-
loadingMode:
|
91
|
+
loadingMode: {
|
92
|
+
type: PropType<"default" | "spin">;
|
93
|
+
default: string;
|
94
|
+
};
|
95
95
|
outline: import("vue-types").VueTypeValidableDef<boolean> & {
|
96
96
|
default: boolean;
|
97
97
|
};
|
@@ -106,14 +106,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
106
|
default: string;
|
107
107
|
};
|
108
108
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], "click" | "mouseover", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
109
|
-
theme: import("vue-types").VueTypeDef<
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
default:
|
114
|
-
};
|
115
|
-
size: import("vue-types").VueTypeDef<string> & {
|
116
|
-
default: string;
|
109
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
110
|
+
hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
111
|
+
size: {
|
112
|
+
type: PropType<"" | "small" | "large">;
|
113
|
+
default: "";
|
117
114
|
};
|
118
115
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
119
116
|
default: string;
|
@@ -130,7 +127,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
130
127
|
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
131
128
|
default: boolean;
|
132
129
|
};
|
133
|
-
loadingMode:
|
130
|
+
loadingMode: {
|
131
|
+
type: PropType<"default" | "spin">;
|
132
|
+
default: string;
|
133
|
+
};
|
134
134
|
outline: import("vue-types").VueTypeValidableDef<boolean> & {
|
135
135
|
default: boolean;
|
136
136
|
};
|
@@ -150,14 +150,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
150
150
|
}, {
|
151
151
|
title: string;
|
152
152
|
text: boolean;
|
153
|
-
theme: string;
|
154
153
|
disabled: boolean;
|
155
|
-
size:
|
154
|
+
size: "" | "small" | "large";
|
156
155
|
icon: string;
|
157
156
|
outline: boolean;
|
158
157
|
loading: boolean;
|
159
|
-
hoverTheme: string;
|
160
158
|
iconRight: string;
|
159
|
+
loadingMode: "default" | "spin";
|
161
160
|
selected: boolean;
|
162
161
|
nativeType: "button" | "reset" | "submit";
|
163
162
|
}>;
|
package/lib/button/index.d.ts
CHANGED
@@ -6,25 +6,21 @@ declare const BkButton: {
|
|
6
6
|
$props: Partial<{
|
7
7
|
title: string;
|
8
8
|
text: boolean;
|
9
|
-
theme: string;
|
10
9
|
disabled: boolean;
|
11
|
-
size:
|
10
|
+
size: "" | "small" | "large";
|
12
11
|
icon: string;
|
13
12
|
outline: boolean;
|
14
13
|
loading: boolean;
|
15
|
-
hoverTheme: string;
|
16
14
|
iconRight: string;
|
15
|
+
loadingMode: "default" | "spin";
|
17
16
|
selected: boolean;
|
18
17
|
nativeType: "button" | "reset" | "submit";
|
19
18
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
20
|
-
theme: import("vue-types").VueTypeDef<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
default:
|
25
|
-
};
|
26
|
-
size: import("vue-types").VueTypeDef<string> & {
|
27
|
-
default: string;
|
19
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
20
|
+
hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
21
|
+
size: {
|
22
|
+
type: import("vue").PropType<"" | "small" | "large">;
|
23
|
+
default: "";
|
28
24
|
};
|
29
25
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
30
26
|
default: string;
|
@@ -41,7 +37,10 @@ declare const BkButton: {
|
|
41
37
|
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
38
|
default: boolean;
|
43
39
|
};
|
44
|
-
loadingMode:
|
40
|
+
loadingMode: {
|
41
|
+
type: import("vue").PropType<"default" | "spin">;
|
42
|
+
default: string;
|
43
|
+
};
|
45
44
|
outline: import("vue-types").VueTypeValidableDef<boolean> & {
|
46
45
|
default: boolean;
|
47
46
|
};
|
@@ -58,7 +57,7 @@ declare const BkButton: {
|
|
58
57
|
}>> & {
|
59
58
|
onClick?: (...args: any[]) => any;
|
60
59
|
onMouseover?: (...args: any[]) => any;
|
61
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "
|
60
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "text" | "disabled" | "size" | "icon" | "outline" | "loading" | "iconRight" | "loadingMode" | "selected" | "nativeType">;
|
62
61
|
$attrs: {
|
63
62
|
[x: string]: unknown;
|
64
63
|
};
|
@@ -73,14 +72,11 @@ declare const BkButton: {
|
|
73
72
|
$emit: (event: "click" | "mouseover", ...args: any[]) => void;
|
74
73
|
$el: any;
|
75
74
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
76
|
-
theme: import("vue-types").VueTypeDef<
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
default:
|
81
|
-
};
|
82
|
-
size: import("vue-types").VueTypeDef<string> & {
|
83
|
-
default: string;
|
75
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
76
|
+
hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
77
|
+
size: {
|
78
|
+
type: import("vue").PropType<"" | "small" | "large">;
|
79
|
+
default: "";
|
84
80
|
};
|
85
81
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
86
82
|
default: string;
|
@@ -97,7 +93,10 @@ declare const BkButton: {
|
|
97
93
|
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
94
|
default: boolean;
|
99
95
|
};
|
100
|
-
loadingMode:
|
96
|
+
loadingMode: {
|
97
|
+
type: import("vue").PropType<"default" | "spin">;
|
98
|
+
default: string;
|
99
|
+
};
|
101
100
|
outline: import("vue-types").VueTypeValidableDef<boolean> & {
|
102
101
|
default: boolean;
|
103
102
|
};
|
@@ -117,14 +116,13 @@ declare const BkButton: {
|
|
117
116
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], string, {
|
118
117
|
title: string;
|
119
118
|
text: boolean;
|
120
|
-
theme: string;
|
121
119
|
disabled: boolean;
|
122
|
-
size:
|
120
|
+
size: "" | "small" | "large";
|
123
121
|
icon: string;
|
124
122
|
outline: boolean;
|
125
123
|
loading: boolean;
|
126
|
-
hoverTheme: string;
|
127
124
|
iconRight: string;
|
125
|
+
loadingMode: "default" | "spin";
|
128
126
|
selected: boolean;
|
129
127
|
nativeType: "button" | "reset" | "submit";
|
130
128
|
}> & {
|
@@ -148,14 +146,11 @@ declare const BkButton: {
|
|
148
146
|
$nextTick: typeof import("vue").nextTick;
|
149
147
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
150
148
|
} & Readonly<import("vue").ExtractPropTypes<{
|
151
|
-
theme: import("vue-types").VueTypeDef<
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
default:
|
156
|
-
};
|
157
|
-
size: import("vue-types").VueTypeDef<string> & {
|
158
|
-
default: string;
|
149
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
150
|
+
hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
151
|
+
size: {
|
152
|
+
type: import("vue").PropType<"" | "small" | "large">;
|
153
|
+
default: "";
|
159
154
|
};
|
160
155
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
161
156
|
default: string;
|
@@ -172,7 +167,10 @@ declare const BkButton: {
|
|
172
167
|
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
173
168
|
default: boolean;
|
174
169
|
};
|
175
|
-
loadingMode:
|
170
|
+
loadingMode: {
|
171
|
+
type: import("vue").PropType<"default" | "spin">;
|
172
|
+
default: string;
|
173
|
+
};
|
176
174
|
outline: import("vue-types").VueTypeValidableDef<boolean> & {
|
177
175
|
default: boolean;
|
178
176
|
};
|
@@ -194,14 +192,11 @@ declare const BkButton: {
|
|
194
192
|
__isTeleport?: never;
|
195
193
|
__isSuspense?: never;
|
196
194
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
197
|
-
theme: import("vue-types").VueTypeDef<
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
default:
|
202
|
-
};
|
203
|
-
size: import("vue-types").VueTypeDef<string> & {
|
204
|
-
default: string;
|
195
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
196
|
+
hoverTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
197
|
+
size: {
|
198
|
+
type: import("vue").PropType<"" | "small" | "large">;
|
199
|
+
default: "";
|
205
200
|
};
|
206
201
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
207
202
|
default: string;
|
@@ -218,7 +213,10 @@ declare const BkButton: {
|
|
218
213
|
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
219
214
|
default: boolean;
|
220
215
|
};
|
221
|
-
loadingMode:
|
216
|
+
loadingMode: {
|
217
|
+
type: import("vue").PropType<"default" | "spin">;
|
218
|
+
default: string;
|
219
|
+
};
|
222
220
|
outline: import("vue-types").VueTypeValidableDef<boolean> & {
|
223
221
|
default: boolean;
|
224
222
|
};
|
@@ -238,21 +236,20 @@ declare const BkButton: {
|
|
238
236
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], "click" | "mouseover", {
|
239
237
|
title: string;
|
240
238
|
text: boolean;
|
241
|
-
theme: string;
|
242
239
|
disabled: boolean;
|
243
|
-
size:
|
240
|
+
size: "" | "small" | "large";
|
244
241
|
icon: string;
|
245
242
|
outline: boolean;
|
246
243
|
loading: boolean;
|
247
|
-
hoverTheme: string;
|
248
244
|
iconRight: string;
|
245
|
+
loadingMode: "default" | "spin";
|
249
246
|
selected: boolean;
|
250
247
|
nativeType: "button" | "reset" | "submit";
|
251
248
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
252
249
|
ButtonGroup: import("vue").DefineComponent<{
|
253
|
-
size: import("vue-types").VueTypeDef<
|
250
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
254
251
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
255
|
-
size: import("vue-types").VueTypeDef<
|
252
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
256
253
|
}>>, {}>;
|
257
254
|
}>;
|
258
255
|
export default BkButton;
|
package/lib/button/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../loading"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../loading"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../loading")):t(e["../shared"],e.vue,e["../loading"]);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o)=>(()=>{"use strict";var n={4870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{BkButton:()=>c,BkButtonGroup:()=>d,default:()=>p});var e=i(4212);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var o=i(748),n=i(4870),r=i.n(n),l=["","small","large"],u={theme:e.PropTypes.theme(),hoverTheme:e.PropTypes.theme(),size:{type:String,default:l[0]},title:e.PropTypes.string,icon:e.PropTypes.string,iconRight:e.PropTypes.string,disabled:e.PropTypes.bool,loading:e.PropTypes.bool,loadingMode:{type:String,default:"default"},outline:e.PropTypes.bool,text:e.PropTypes.bool,selected:e.PropTypes.bool,nativeType:{type:String,default:"button"}};const s=(0,o.defineComponent)({name:"Button",props:u,emits:["click","mouseover"],setup:function(i,a){var u,s=a.slots,d=a.emit,c=(0,o.ref)(!1),p=null!==(u=s.default)&&void 0!==u&&u,v="bk-button",f=(0,o.computed)((function(){return i.text&&!i.hoverTheme})),m=(0,o.computed)((function(){var o,n=i.hoverTheme?"".concat(v,"-hover-").concat(i.hoverTheme):"",r=i.theme?"".concat(v,"-").concat(i.theme):"",a=i.hoverTheme?"":r;return(0,e.classes)((t(o={"is-disabled":i.disabled,"is-outline":i.outline,"is-text":f.value,"is-loading":i.loading,"is-selected":i.selected},"".concat(v,"-").concat(i.size),i.size&&l.includes(i.size)),t(o,"no-slot",!p),o),"".concat(a," ").concat(v," ").concat(n))})),b=(0,o.computed)((function(){return i.text||i.outline||i.hoverTheme?c.value&&!i.text?"white":i.text&&i.disabled?"":i.hoverTheme||i.theme:["","default"].includes(i.theme)?"":"white"})),g=(0,o.computed)((function(){return f.value||i.size===n.BkLoadingSize.Small?n.BkLoadingSize.Mini:n.BkLoadingSize.Small})),h=function(e){i.loading||d("click",e)},y=function(e){c.value=!0,d("mouseover",e)},T=function(){c.value=!1};return function(){var e;return(0,o.createVNode)("button",{title:i.title,disabled:i.disabled,class:m.value,type:i.nativeType,onClick:h,onMouseover:y,onMouseleave:T},[i.loading&&(0,o.createVNode)(r(),(0,o.mergeProps)({loading:!0,class:"".concat(v,"-loading"),mode:i.loadingMode,size:g.value},b.value?{theme:b.value}:{}),null),s.default&&(0,o.createVNode)("span",{class:"".concat(v,"-text")},[null===(e=s.default)||void 0===e?void 0:e.call(s)])])}}}),d=(0,o.defineComponent)({name:"ButtonGroup",props:{size:e.PropTypes.size()},setup:function(n,r){var i=(0,o.computed)((function(){return(0,e.classes)(t({},"bk-button-group-".concat(n.size),!!n.size),"bk-button-group")}));return function(){var e,t;return(0,o.createVNode)("div",{class:i.value},[null===(t=(e=r.slots).default)||void 0===t?void 0:t.call(e)])}}});var c=(0,e.withInstallProps)(s,{ButtonGroup:d});const p=c})(),a})()));
|
@@ -280,9 +280,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
280
280
|
onClear?: (...args: any[]) => any;
|
281
281
|
onToggle?: (...args: any[]) => any;
|
282
282
|
}, {
|
283
|
+
trigger: string;
|
283
284
|
extCls: string;
|
284
285
|
disabled: boolean;
|
285
|
-
trigger: string;
|
286
286
|
placeholder: string;
|
287
287
|
list: unknown[];
|
288
288
|
separator: string;
|