bkui-vue 0.0.1-beta.420 → 0.0.1-beta.422
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 +33 -33
- package/dist/index.esm.js +3105 -3023
- package/dist/index.umd.js +32 -32
- 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/backtop/backtop.d.ts +2 -2
- package/lib/backtop/index.d.ts +7 -7
- package/lib/button/button.d.ts +1 -1
- package/lib/button/index.d.ts +7 -7
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/index.d.ts +7 -7
- package/lib/collapse/collapse-panel.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/container/col.d.ts +1 -1
- package/lib/container/index.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +7 -7
- package/lib/date-picker/index.d.ts +20 -20
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +6 -6
- package/lib/date-picker/panel/time.d.ts +7 -7
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +7 -7
- package/lib/dialog/dialog.d.ts +19 -19
- package/lib/dialog/index.d.ts +44 -44
- package/lib/dialog/props.d.ts +6 -6
- package/lib/divider/divider.d.ts +6 -6
- package/lib/divider/index.d.ts +15 -15
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +10 -10
- package/lib/dropdown/index.d.ts +23 -23
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/icon/index.d.ts +79 -79
- package/lib/image/image.d.ts +5 -5
- package/lib/image/index.d.ts +11 -11
- package/lib/image/props.d.ts +2 -2
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +4 -1
- package/lib/input/input.d.ts +1 -1
- package/lib/input/input.less +4 -2
- package/lib/input/input.variable.css +4 -1
- package/lib/link/index.d.ts +15 -15
- package/lib/link/link.d.ts +6 -6
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +24 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +8 -1
- package/lib/loading/loading.d.ts +16 -0
- package/lib/loading/loading.less +7 -1
- package/lib/loading/loading.variable.css +8 -1
- package/lib/message/messageConstructor.d.ts +2 -2
- package/lib/modal/index.d.ts +23 -23
- package/lib/modal/modal.d.ts +8 -8
- package/lib/modal/props.mixin.d.ts +2 -2
- package/lib/navigation/index.d.ts +3 -3
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/pop-confirm/index.d.ts +50 -18
- package/lib/pop-confirm/index.js +1 -1
- package/lib/pop-confirm/pop-confirm.d.ts +23 -7
- package/lib/pop-confirm/props.d.ts +12 -4
- package/lib/popover/index.d.ts +47 -47
- package/lib/popover/popover.d.ts +18 -18
- package/lib/popover/props.d.ts +4 -4
- package/lib/progress/index.d.ts +6 -6
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/radio.css +1 -1
- package/lib/radio/radio.less +1 -1
- package/lib/radio/radio.variable.css +1 -1
- package/lib/resize-layout/index.d.ts +12 -12
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/select/index.d.ts +480 -61
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +238 -26
- package/lib/shared/index.d.ts +14 -11
- package/lib/shared/index.js +1 -1
- package/lib/shared/vue-types.d.ts +8 -8
- package/lib/sideslider/index.d.ts +21 -21
- package/lib/sideslider/sideslider.d.ts +8 -8
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +7 -7
- package/lib/steps/steps.d.ts +2 -2
- package/lib/tab/index.d.ts +13 -13
- package/lib/tab/props.d.ts +6 -6
- package/lib/tab/tab-nav.d.ts +5 -5
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/tab/tab.d.ts +6 -6
- package/lib/table/components/table-column.d.ts +10 -10
- package/lib/table/index.d.ts +42 -42
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-sort.css +1 -0
- package/lib/table/plugins/head-sort.less +1 -0
- package/lib/table/plugins/head-sort.variable.css +1 -0
- package/lib/table/props.d.ts +6 -6
- package/lib/table/render.d.ts +1 -1
- package/lib/table/table.css +7 -0
- package/lib/table/table.d.ts +6 -6
- package/lib/table/table.less +4 -0
- package/lib/table/table.variable.css +7 -0
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table-column/index.d.ts +27 -27
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/index.d.ts +30 -30
- package/lib/tag-input/tag-input.d.ts +14 -14
- package/lib/tag-input/tag-props.d.ts +6 -6
- package/lib/time-picker/index.d.ts +20 -20
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/tree.d.ts +1 -1
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +4 -4
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
@@ -196,6 +196,7 @@
|
|
196
196
|
display: inline-flex;
|
197
197
|
width: 100%;
|
198
198
|
min-height: 70px;
|
199
|
+
overflow: hidden;
|
199
200
|
font-size: 12px;
|
200
201
|
line-height: 20px;
|
201
202
|
color: #63656e;
|
@@ -237,13 +238,14 @@
|
|
237
238
|
}
|
238
239
|
.bk-textarea > textarea {
|
239
240
|
width: 100%;
|
240
|
-
flex: 1;
|
241
241
|
padding: 5px 10px;
|
242
242
|
line-height: 1.5;
|
243
243
|
text-align: left;
|
244
244
|
border: 0;
|
245
|
+
border-radius: 2px;
|
245
246
|
outline: none;
|
246
247
|
resize: none;
|
248
|
+
flex: 1;
|
247
249
|
}
|
248
250
|
.bk-textarea--max-length {
|
249
251
|
padding-right: 10px;
|
@@ -408,6 +410,7 @@
|
|
408
410
|
background-color: white;
|
409
411
|
background-image: none;
|
410
412
|
border: none;
|
413
|
+
border-radius: 2px;
|
411
414
|
outline: none;
|
412
415
|
box-sizing: border-box;
|
413
416
|
transition: all 0.3s;
|
package/lib/link/index.d.ts
CHANGED
@@ -3,14 +3,14 @@ declare const BkLink: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
-
target: string;
|
7
6
|
disabled: boolean;
|
8
|
-
theme: "
|
7
|
+
theme: "default" | "success" | "warning" | "danger" | "primary";
|
8
|
+
target: string;
|
9
9
|
underline: boolean;
|
10
10
|
href: string;
|
11
11
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
12
|
-
theme: import("vue-types").VueTypeDef<"
|
13
|
-
default: "
|
12
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "warning" | "danger" | "primary"> & {
|
13
|
+
default: "default" | "success" | "warning" | "danger" | "primary";
|
14
14
|
};
|
15
15
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
16
16
|
default: string;
|
@@ -34,7 +34,7 @@ declare const BkLink: {
|
|
34
34
|
};
|
35
35
|
}>> & {
|
36
36
|
onClick?: (...args: any[]) => any;
|
37
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
37
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "target" | "underline" | "href">;
|
38
38
|
$attrs: {
|
39
39
|
[x: string]: unknown;
|
40
40
|
};
|
@@ -49,8 +49,8 @@ declare const BkLink: {
|
|
49
49
|
$emit: (event: "click", ...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<"default" | "success" | "warning" | "danger" | "primary"> & {
|
53
|
+
default: "default" | "success" | "warning" | "danger" | "primary";
|
54
54
|
};
|
55
55
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
56
56
|
default: string;
|
@@ -77,9 +77,9 @@ declare const BkLink: {
|
|
77
77
|
}, {
|
78
78
|
handleClick: (event: Event) => boolean;
|
79
79
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], string, {
|
80
|
-
target: string;
|
81
80
|
disabled: boolean;
|
82
|
-
theme: "
|
81
|
+
theme: "default" | "success" | "warning" | "danger" | "primary";
|
82
|
+
target: string;
|
83
83
|
underline: boolean;
|
84
84
|
href: string;
|
85
85
|
}> & {
|
@@ -103,8 +103,8 @@ declare const BkLink: {
|
|
103
103
|
$nextTick: typeof import("vue").nextTick;
|
104
104
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
105
105
|
} & Readonly<import("vue").ExtractPropTypes<{
|
106
|
-
theme: import("vue-types").VueTypeDef<"
|
107
|
-
default: "
|
106
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "warning" | "danger" | "primary"> & {
|
107
|
+
default: "default" | "success" | "warning" | "danger" | "primary";
|
108
108
|
};
|
109
109
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
110
110
|
default: string;
|
@@ -135,8 +135,8 @@ declare const BkLink: {
|
|
135
135
|
__isTeleport?: never;
|
136
136
|
__isSuspense?: never;
|
137
137
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
138
|
-
theme: import("vue-types").VueTypeDef<"
|
139
|
-
default: "
|
138
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "warning" | "danger" | "primary"> & {
|
139
|
+
default: "default" | "success" | "warning" | "danger" | "primary";
|
140
140
|
};
|
141
141
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
142
142
|
default: string;
|
@@ -163,9 +163,9 @@ declare const BkLink: {
|
|
163
163
|
}, {
|
164
164
|
handleClick: (event: Event) => boolean;
|
165
165
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", {
|
166
|
-
target: string;
|
167
166
|
disabled: boolean;
|
168
|
-
theme: "
|
167
|
+
theme: "default" | "success" | "warning" | "danger" | "primary";
|
168
|
+
target: string;
|
169
169
|
underline: boolean;
|
170
170
|
href: string;
|
171
171
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
package/lib/link/link.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<"default" | "success" | "warning" | "danger" | "primary"> & {
|
3
|
+
default: "default" | "success" | "warning" | "danger" | "primary";
|
4
4
|
};
|
5
5
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
6
6
|
default: string;
|
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
}, {
|
26
26
|
handleClick: (event: Event) => boolean;
|
27
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
-
theme: import("vue-types").VueTypeDef<"
|
29
|
-
default: "
|
28
|
+
theme: import("vue-types").VueTypeDef<"default" | "success" | "warning" | "danger" | "primary"> & {
|
29
|
+
default: "default" | "success" | "warning" | "danger" | "primary";
|
30
30
|
};
|
31
31
|
href: import("vue-types").VueTypeValidableDef<string> & {
|
32
32
|
default: string;
|
@@ -51,9 +51,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
51
|
}>> & {
|
52
52
|
onClick?: (...args: any[]) => any;
|
53
53
|
}, {
|
54
|
-
target: string;
|
55
54
|
disabled: boolean;
|
56
|
-
theme: "
|
55
|
+
theme: "default" | "success" | "warning" | "danger" | "primary";
|
56
|
+
target: string;
|
57
57
|
underline: boolean;
|
58
58
|
href: string;
|
59
59
|
}>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { App, ComponentPublicInstance, Directive, UnwrapRef } from 'vue';
|
2
|
+
import type { LoadingTypes } from './loading';
|
3
|
+
declare const INSTANCE_KEY: unique symbol;
|
4
|
+
export declare type LoadingBinding = UnwrapRef<LoadingTypes>;
|
5
|
+
export interface BkLoading extends HTMLElement {
|
6
|
+
[INSTANCE_KEY]?: {
|
7
|
+
instance: App<Element>;
|
8
|
+
options: LoadingTypes;
|
9
|
+
vm: ComponentPublicInstance;
|
10
|
+
};
|
11
|
+
}
|
12
|
+
export declare type LoadingDirective = Directive<BkLoading, LoadingBinding>;
|
13
|
+
export declare const vBkloading: LoadingDirective;
|
14
|
+
export {};
|
package/lib/loading/index.d.ts
CHANGED
@@ -12,6 +12,7 @@ declare const BkLoading: {
|
|
12
12
|
inline: boolean;
|
13
13
|
opacity: number;
|
14
14
|
loading: boolean;
|
15
|
+
isDirective: boolean;
|
15
16
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
16
17
|
indicator: {
|
17
18
|
type: FunctionConstructor;
|
@@ -57,7 +58,12 @@ declare const BkLoading: {
|
|
57
58
|
} & {
|
58
59
|
default: number;
|
59
60
|
};
|
60
|
-
|
61
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
62
|
+
default: boolean;
|
63
|
+
} & {
|
64
|
+
default: boolean;
|
65
|
+
};
|
66
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "zIndex" | "mode" | "color" | "size" | "inline" | "opacity" | "loading" | "isDirective">;
|
61
67
|
$attrs: {
|
62
68
|
[x: string]: unknown;
|
63
69
|
};
|
@@ -116,6 +122,11 @@ declare const BkLoading: {
|
|
116
122
|
} & {
|
117
123
|
default: number;
|
118
124
|
};
|
125
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
126
|
+
default: boolean;
|
127
|
+
} & {
|
128
|
+
default: boolean;
|
129
|
+
};
|
119
130
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
120
131
|
title: string;
|
121
132
|
zIndex: number;
|
@@ -125,6 +136,7 @@ declare const BkLoading: {
|
|
125
136
|
inline: boolean;
|
126
137
|
opacity: number;
|
127
138
|
loading: boolean;
|
139
|
+
isDirective: boolean;
|
128
140
|
}> & {
|
129
141
|
beforeCreate?: (() => void) | (() => void)[];
|
130
142
|
created?: (() => void) | (() => void)[];
|
@@ -190,6 +202,11 @@ declare const BkLoading: {
|
|
190
202
|
} & {
|
191
203
|
default: number;
|
192
204
|
};
|
205
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
206
|
+
default: boolean;
|
207
|
+
} & {
|
208
|
+
default: boolean;
|
209
|
+
};
|
193
210
|
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
194
211
|
__isFragment?: never;
|
195
212
|
__isTeleport?: never;
|
@@ -239,6 +256,11 @@ declare const BkLoading: {
|
|
239
256
|
} & {
|
240
257
|
default: number;
|
241
258
|
};
|
259
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
260
|
+
default: boolean;
|
261
|
+
} & {
|
262
|
+
default: boolean;
|
263
|
+
};
|
242
264
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
243
265
|
title: string;
|
244
266
|
zIndex: number;
|
@@ -248,6 +270,7 @@ declare const BkLoading: {
|
|
248
270
|
inline: boolean;
|
249
271
|
opacity: number;
|
250
272
|
loading: boolean;
|
273
|
+
isDirective: boolean;
|
251
274
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
252
275
|
setDefaultIndicator: typeof setDefaultIndicator;
|
253
276
|
BkLoadingMode: typeof BkLoadingMode;
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.r(r),i.d(r,{BkLoading:()=>v,BkLoadingMode:()=>e,BkLoadingSize:()=>o,default:()=>f,setDefaultIndicator:()=>d});var e,o,t,n=i(4212),l=i(748);function a(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function d(e){t="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(e||(e={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(o||(o={}));var u={indicator:{type:Function},loading:n.PropTypes.bool.def(!0),inline:n.PropTypes.bool.def(!0),theme:{type:String},title:n.PropTypes.string.def(""),size:{type:String,default:o.Normal},mode:{type:String,default:"default"},opacity:n.PropTypes.number.def(.9),color:n.PropTypes.string.def("white"),zIndex:n.PropTypes.number.def(1),isDirective:n.PropTypes.bool.def(!1)};const c=(0,l.defineComponent)({name:"Loading",props:u,setup:function(o,i){var r=(0,l.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),d=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,l.computed)((function(){return{zIndex:o.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:o.opacity,backgroundColor:o.color},u.value)})),s=(0,l.computed)((function(){return(0,n.classes)({"bk-loading-wrapper":o.loading,"bk-nested-loading":!!i.slots.default,"bk-directive-loading":o.isDirective})})),p=(0,l.computed)((function(){var e;return(0,n.classes)((a(e={},"bk-loading-size-".concat(o.size),!!o.size),a(e,"bk-loading-".concat(o.theme),!!o.theme),e),"bk-loading-indicator")})),v=(0,l.computed)((function(){return!!o.title})),f=(0,l.computed)((function(){var n=o.mode===e.Spin;return"function"==typeof o.indicator?(0,l.createVNode)(o.indicator,null,null):"function"==typeof t?(0,l.createVNode)(t,null,null):n?d:r}));return function(){var e,t;return(0,l.createVNode)("div",{class:s.value},[null===(t=(e=i.slots).default)||void 0===t?void 0:t.call(e),o.loading&&[(i.slots.default||o.isDirective)&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:u.value},[f.value,v.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[o.title])])]])}}});var s=Symbol("vBkLoading"),p={mounted:function(e,o){o.value&&function(e,o){var t,n,i,r,a,d=function(e){var t,n;return null!==(n=null===(t=o.value)||void 0===t?void 0:t[e])&&void 0!==n?n:void 0},u=(0,l.reactive)({indicator:d("indicator"),loading:null!==(t=d("loading"))&&void 0!==t&&t,inline:null!==(n=d("inline"))&&void 0!==n&&n,theme:d("theme"),title:null!==(i=d("title"))&&void 0!==i?i:"",size:null!==(r=d("size"))&&void 0!==r?r:"",mode:d("mode"),opacity:d("opacity"),color:null!==(a=d("color"))&&void 0!==a?a:"white",zIndex:d("zIndex"),isDirective:!0}),p=document.createElement("div");Object.assign(p.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});var v=(0,l.createApp)({render:function(){return(0,l.h)(c,u)}});e[s]={options:u,instance:v,vm:v.mount(p)},e.appendChild(p)}(e,o)},updated:function(e,o){var t,n,i=e[s],r=o.value;t=r,n=i.options,Object.keys(t).forEach((function(e){t[e]!==n[e]&&(n[e]=t[e])}))},unmounted:function(e){var o,t,n,i=e[s];null==e||e.removeChild(null===(t=null===(o=null==i?void 0:i.vm)||void 0===o?void 0:o.$el)||void 0===t?void 0:t.parentNode),null===(n=null==i?void 0:i.instance)||void 0===n||n.unmount(),e[s]=null}},v=(0,n.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:e,BkLoadingSize:o},!0,{name:"loading",directive:p});const f=v})(),r})()));
|
package/lib/loading/loading.css
CHANGED
@@ -74,15 +74,22 @@
|
|
74
74
|
position: static;
|
75
75
|
vertical-align: middle;
|
76
76
|
}
|
77
|
-
.bk-loading-wrapper:not(.bk-nested-loading) {
|
77
|
+
.bk-loading-wrapper:not(.bk-nested-loading):not(.bk-directive-loading) {
|
78
78
|
display: inline-flex;
|
79
79
|
}
|
80
|
+
.bk-loading-wrapper.bk-directive-loading {
|
81
|
+
width: 100%;
|
82
|
+
height: 100%;
|
83
|
+
}
|
84
|
+
.bk-loading-wrapper.bk-directive-loading,
|
80
85
|
.bk-loading-wrapper.bk-nested-loading {
|
81
86
|
position: relative;
|
82
87
|
}
|
88
|
+
.bk-loading-wrapper.bk-directive-loading.is-block,
|
83
89
|
.bk-loading-wrapper.bk-nested-loading.is-block {
|
84
90
|
display: block;
|
85
91
|
}
|
92
|
+
.bk-loading-wrapper.bk-directive-loading .bk-loading-indicator,
|
86
93
|
.bk-loading-wrapper.bk-nested-loading .bk-loading-indicator {
|
87
94
|
position: absolute;
|
88
95
|
top: 50%;
|
package/lib/loading/loading.d.ts
CHANGED
@@ -55,6 +55,11 @@ export declare const loadingTypes: {
|
|
55
55
|
} & {
|
56
56
|
default: number;
|
57
57
|
};
|
58
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
59
|
+
default: boolean;
|
60
|
+
} & {
|
61
|
+
default: boolean;
|
62
|
+
};
|
58
63
|
};
|
59
64
|
export declare type LoadingTypes = ExtractPropTypes<typeof loadingTypes>;
|
60
65
|
declare const _default: import("vue").DefineComponent<{
|
@@ -102,6 +107,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
102
107
|
} & {
|
103
108
|
default: number;
|
104
109
|
};
|
110
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
111
|
+
default: boolean;
|
112
|
+
} & {
|
113
|
+
default: boolean;
|
114
|
+
};
|
105
115
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
106
116
|
indicator: {
|
107
117
|
type: FunctionConstructor;
|
@@ -147,6 +157,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
147
157
|
} & {
|
148
158
|
default: number;
|
149
159
|
};
|
160
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
161
|
+
default: boolean;
|
162
|
+
} & {
|
163
|
+
default: boolean;
|
164
|
+
};
|
150
165
|
}>>, {
|
151
166
|
title: string;
|
152
167
|
zIndex: number;
|
@@ -156,5 +171,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
156
171
|
inline: boolean;
|
157
172
|
opacity: number;
|
158
173
|
loading: boolean;
|
174
|
+
isDirective: boolean;
|
159
175
|
}>;
|
160
176
|
export default _default;
|
package/lib/loading/loading.less
CHANGED
@@ -56,10 +56,16 @@
|
|
56
56
|
.@{bk-prefix}-loading-wrapper {
|
57
57
|
position: static;
|
58
58
|
vertical-align: middle;
|
59
|
-
&:not(.@{bk-prefix}-nested-loading) {
|
59
|
+
&:not(.@{bk-prefix}-nested-loading):not(.@{bk-prefix}-directive-loading) {
|
60
60
|
display: inline-flex;
|
61
61
|
}
|
62
62
|
|
63
|
+
&.@{bk-prefix}-directive-loading {
|
64
|
+
width: 100%;
|
65
|
+
height: 100%;
|
66
|
+
}
|
67
|
+
|
68
|
+
&.@{bk-prefix}-directive-loading,
|
63
69
|
&.@{bk-prefix}-nested-loading {
|
64
70
|
position: relative;
|
65
71
|
// width: 100%;
|
@@ -196,15 +196,22 @@
|
|
196
196
|
position: static;
|
197
197
|
vertical-align: middle;
|
198
198
|
}
|
199
|
-
.bk-loading-wrapper:not(.bk-nested-loading) {
|
199
|
+
.bk-loading-wrapper:not(.bk-nested-loading):not(.bk-directive-loading) {
|
200
200
|
display: inline-flex;
|
201
201
|
}
|
202
|
+
.bk-loading-wrapper.bk-directive-loading {
|
203
|
+
width: 100%;
|
204
|
+
height: 100%;
|
205
|
+
}
|
206
|
+
.bk-loading-wrapper.bk-directive-loading,
|
202
207
|
.bk-loading-wrapper.bk-nested-loading {
|
203
208
|
position: relative;
|
204
209
|
}
|
210
|
+
.bk-loading-wrapper.bk-directive-loading.is-block,
|
205
211
|
.bk-loading-wrapper.bk-nested-loading.is-block {
|
206
212
|
display: block;
|
207
213
|
}
|
214
|
+
.bk-loading-wrapper.bk-directive-loading .bk-loading-indicator,
|
208
215
|
.bk-loading-wrapper.bk-nested-loading .bk-loading-indicator {
|
209
216
|
position: absolute;
|
210
217
|
top: 50%;
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
styles: import("vue").ComputedRef<{
|
47
47
|
top: string;
|
48
48
|
zIndex: number;
|
49
|
-
position: "
|
49
|
+
position: "fixed" | "absolute";
|
50
50
|
}>;
|
51
51
|
visible: import("vue").Ref<boolean>;
|
52
52
|
close: (e: Event) => void;
|
@@ -96,9 +96,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
96
96
|
}>> & {
|
97
97
|
onDestroy?: (...args: any[]) => any;
|
98
98
|
}, {
|
99
|
-
id: string;
|
100
99
|
extCls: string;
|
101
100
|
theme: "error" | "success" | "warning" | "primary";
|
101
|
+
id: string;
|
102
102
|
onClose: (...args: any[]) => any;
|
103
103
|
delay: number;
|
104
104
|
message: string;
|
package/lib/modal/index.d.ts
CHANGED
@@ -8,17 +8,17 @@ declare const BkModal: {
|
|
8
8
|
};
|
9
9
|
$props: Partial<{
|
10
10
|
title: string;
|
11
|
-
multiInstance: boolean;
|
12
|
-
zIndex: string | number;
|
13
|
-
showMask: boolean;
|
14
|
-
direction: string;
|
15
11
|
transfer: boolean;
|
16
12
|
width: string | number;
|
17
13
|
height: string | number;
|
18
14
|
maxHeight: string;
|
19
15
|
extCls: string | unknown[];
|
16
|
+
direction: string;
|
20
17
|
isShow: boolean;
|
18
|
+
zIndex: string | number;
|
21
19
|
draggable: boolean;
|
20
|
+
multiInstance: boolean;
|
21
|
+
showMask: boolean;
|
22
22
|
renderDirective: "if" | "show";
|
23
23
|
quickClose: boolean;
|
24
24
|
scrollable: boolean;
|
@@ -68,7 +68,7 @@ declare const BkModal: {
|
|
68
68
|
} & {
|
69
69
|
default: boolean;
|
70
70
|
};
|
71
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
71
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
72
72
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
73
73
|
default: boolean;
|
74
74
|
} & {
|
@@ -107,7 +107,7 @@ declare const BkModal: {
|
|
107
107
|
default: "if" | "show";
|
108
108
|
};
|
109
109
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
110
|
-
dialogType: import("vue-types").VueTypeDef<"
|
110
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
111
111
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
112
112
|
default: boolean;
|
113
113
|
} & {
|
@@ -120,7 +120,7 @@ declare const BkModal: {
|
|
120
120
|
"onQuick-close"?: (...args: any[]) => any;
|
121
121
|
onQuickClose?: (...args: any[]) => any;
|
122
122
|
onShown?: (...args: any[]) => any;
|
123
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "
|
123
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "transfer" | "width" | "height" | "maxHeight" | "extCls" | "direction" | "isShow" | "zIndex" | "draggable" | "multiInstance" | "showMask" | "renderDirective" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType">;
|
124
124
|
$attrs: {
|
125
125
|
[x: string]: unknown;
|
126
126
|
};
|
@@ -176,7 +176,7 @@ declare const BkModal: {
|
|
176
176
|
} & {
|
177
177
|
default: boolean;
|
178
178
|
};
|
179
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
179
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
180
180
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
181
181
|
default: boolean;
|
182
182
|
} & {
|
@@ -215,7 +215,7 @@ declare const BkModal: {
|
|
215
215
|
default: "if" | "show";
|
216
216
|
};
|
217
217
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
218
|
-
dialogType: import("vue-types").VueTypeDef<"
|
218
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
219
219
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
220
220
|
default: boolean;
|
221
221
|
} & {
|
@@ -240,17 +240,17 @@ declare const BkModal: {
|
|
240
240
|
handleClickOutSide(): void;
|
241
241
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "quick-close" | "quickClose" | "shown")[], string, {
|
242
242
|
title: string;
|
243
|
-
multiInstance: boolean;
|
244
|
-
zIndex: string | number;
|
245
|
-
showMask: boolean;
|
246
|
-
direction: string;
|
247
243
|
transfer: boolean;
|
248
244
|
width: string | number;
|
249
245
|
height: string | number;
|
250
246
|
maxHeight: string;
|
251
247
|
extCls: string | unknown[];
|
248
|
+
direction: string;
|
252
249
|
isShow: boolean;
|
250
|
+
zIndex: string | number;
|
253
251
|
draggable: boolean;
|
252
|
+
multiInstance: boolean;
|
253
|
+
showMask: boolean;
|
254
254
|
renderDirective: "if" | "show";
|
255
255
|
quickClose: boolean;
|
256
256
|
scrollable: boolean;
|
@@ -320,7 +320,7 @@ declare const BkModal: {
|
|
320
320
|
} & {
|
321
321
|
default: boolean;
|
322
322
|
};
|
323
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
323
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
324
324
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
325
325
|
default: boolean;
|
326
326
|
} & {
|
@@ -359,7 +359,7 @@ declare const BkModal: {
|
|
359
359
|
default: "if" | "show";
|
360
360
|
};
|
361
361
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
362
|
-
dialogType: import("vue-types").VueTypeDef<"
|
362
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
363
363
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
364
364
|
default: boolean;
|
365
365
|
} & {
|
@@ -428,7 +428,7 @@ declare const BkModal: {
|
|
428
428
|
} & {
|
429
429
|
default: boolean;
|
430
430
|
};
|
431
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
431
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
432
432
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
433
433
|
default: boolean;
|
434
434
|
} & {
|
@@ -467,7 +467,7 @@ declare const BkModal: {
|
|
467
467
|
default: "if" | "show";
|
468
468
|
};
|
469
469
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
470
|
-
dialogType: import("vue-types").VueTypeDef<"
|
470
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
471
471
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
472
472
|
default: boolean;
|
473
473
|
} & {
|
@@ -492,17 +492,17 @@ declare const BkModal: {
|
|
492
492
|
handleClickOutSide(): void;
|
493
493
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "quick-close" | "quickClose" | "shown")[], "close" | "shown" | "hidden" | "quick-close" | "quickClose", {
|
494
494
|
title: string;
|
495
|
-
multiInstance: boolean;
|
496
|
-
zIndex: string | number;
|
497
|
-
showMask: boolean;
|
498
|
-
direction: string;
|
499
495
|
transfer: boolean;
|
500
496
|
width: string | number;
|
501
497
|
height: string | number;
|
502
498
|
maxHeight: string;
|
503
499
|
extCls: string | unknown[];
|
500
|
+
direction: string;
|
504
501
|
isShow: boolean;
|
502
|
+
zIndex: string | number;
|
505
503
|
draggable: boolean;
|
504
|
+
multiInstance: boolean;
|
505
|
+
showMask: boolean;
|
506
506
|
renderDirective: "if" | "show";
|
507
507
|
quickClose: boolean;
|
508
508
|
scrollable: boolean;
|
@@ -553,7 +553,7 @@ declare const BkModal: {
|
|
553
553
|
} & {
|
554
554
|
default: boolean;
|
555
555
|
};
|
556
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
556
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
557
557
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
558
558
|
default: boolean;
|
559
559
|
} & {
|
@@ -592,7 +592,7 @@ declare const BkModal: {
|
|
592
592
|
default: "if" | "show";
|
593
593
|
};
|
594
594
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
595
|
-
dialogType: import("vue-types").VueTypeDef<"
|
595
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
596
596
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
597
597
|
default: boolean;
|
598
598
|
} & {
|
package/lib/modal/modal.d.ts
CHANGED
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
} & {
|
41
41
|
default: boolean;
|
42
42
|
};
|
43
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
43
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
44
44
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
45
|
default: boolean;
|
46
46
|
} & {
|
@@ -79,7 +79,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
79
|
default: "if" | "show";
|
80
80
|
};
|
81
81
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
82
|
-
dialogType: import("vue-types").VueTypeDef<"
|
82
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
83
83
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
84
84
|
default: boolean;
|
85
85
|
} & {
|
@@ -138,7 +138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
138
138
|
} & {
|
139
139
|
default: boolean;
|
140
140
|
};
|
141
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
141
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
142
142
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
143
143
|
default: boolean;
|
144
144
|
} & {
|
@@ -177,7 +177,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
177
177
|
default: "if" | "show";
|
178
178
|
};
|
179
179
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
180
|
-
dialogType: import("vue-types").VueTypeDef<"
|
180
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
181
181
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
182
182
|
default: boolean;
|
183
183
|
} & {
|
@@ -192,17 +192,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
192
192
|
onShown?: (...args: any[]) => any;
|
193
193
|
}, {
|
194
194
|
title: string;
|
195
|
-
multiInstance: boolean;
|
196
|
-
zIndex: string | number;
|
197
|
-
showMask: boolean;
|
198
|
-
direction: string;
|
199
195
|
transfer: boolean;
|
200
196
|
width: string | number;
|
201
197
|
height: string | number;
|
202
198
|
maxHeight: string;
|
203
199
|
extCls: string | unknown[];
|
200
|
+
direction: string;
|
204
201
|
isShow: boolean;
|
202
|
+
zIndex: string | number;
|
205
203
|
draggable: boolean;
|
204
|
+
multiInstance: boolean;
|
205
|
+
showMask: boolean;
|
206
206
|
renderDirective: "if" | "show";
|
207
207
|
quickClose: boolean;
|
208
208
|
scrollable: boolean;
|
@@ -40,7 +40,7 @@ export declare const propsMixin: {
|
|
40
40
|
} & {
|
41
41
|
default: boolean;
|
42
42
|
};
|
43
|
-
size: import("vue-types").VueTypeDef<"small" | "
|
43
|
+
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
44
44
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
45
|
default: boolean;
|
46
46
|
} & {
|
@@ -79,7 +79,7 @@ export declare const propsMixin: {
|
|
79
79
|
default: "if" | "show";
|
80
80
|
};
|
81
81
|
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
82
|
-
dialogType: import("vue-types").VueTypeDef<"
|
82
|
+
dialogType: import("vue-types").VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
83
83
|
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
84
84
|
default: boolean;
|
85
85
|
} & {
|