bkui-vue 2.0.1-beta.113 → 2.0.1-beta.114
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 +54 -54
- package/dist/index.esm.js +13950 -13941
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +380 -351
- package/lib/date-picker/index.js +171 -150
- 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 +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +299 -269
- package/lib/dialog/index.js +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +311 -302
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/loading/index.d.ts
CHANGED
@@ -1,160 +1,7 @@
|
|
1
1
|
import { vBkloading } from './directive';
|
2
2
|
import { BkLoadingMode, BkLoadingSize, setDefaultIndicator } from './loading';
|
3
3
|
declare const BkLoading: {
|
4
|
-
new (...args: any[]): {
|
5
|
-
$: import("vue").ComponentInternalInstance;
|
6
|
-
$data: {};
|
7
|
-
$props: {
|
8
|
-
title?: string;
|
9
|
-
zIndex?: number;
|
10
|
-
mode?: "default" | "spin";
|
11
|
-
loading?: boolean;
|
12
|
-
inline?: boolean;
|
13
|
-
size?: "" | "small" | "large" | "mini";
|
14
|
-
opacity?: number;
|
15
|
-
color?: string;
|
16
|
-
isDirective?: boolean;
|
17
|
-
class?: unknown;
|
18
|
-
style?: unknown;
|
19
|
-
ref?: import("vue").VNodeRef;
|
20
|
-
readonly theme?: "default" | "danger" | "primary" | "success" | "warning" | "white";
|
21
|
-
key?: string | number | symbol;
|
22
|
-
ref_for?: boolean;
|
23
|
-
ref_key?: string;
|
24
|
-
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
25
|
-
[key: string]: any;
|
26
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
27
|
-
[key: string]: any;
|
28
|
-
}>) => void)[];
|
29
|
-
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
30
|
-
[key: string]: any;
|
31
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
32
|
-
[key: string]: any;
|
33
|
-
}>) => void)[];
|
34
|
-
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
35
|
-
[key: string]: any;
|
36
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
37
|
-
[key: string]: any;
|
38
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
39
|
-
[key: string]: any;
|
40
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
41
|
-
[key: string]: any;
|
42
|
-
}>) => void)[];
|
43
|
-
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
44
|
-
[key: string]: any;
|
45
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
46
|
-
[key: string]: any;
|
47
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
48
|
-
[key: string]: any;
|
49
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
50
|
-
[key: string]: any;
|
51
|
-
}>) => void)[];
|
52
|
-
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
53
|
-
[key: string]: any;
|
54
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
55
|
-
[key: string]: any;
|
56
|
-
}>) => void)[];
|
57
|
-
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
58
|
-
[key: string]: any;
|
59
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
60
|
-
[key: string]: any;
|
61
|
-
}>) => void)[];
|
62
|
-
readonly indicator?: Function;
|
63
|
-
};
|
64
|
-
$attrs: {
|
65
|
-
[x: string]: unknown;
|
66
|
-
};
|
67
|
-
$refs: {
|
68
|
-
[x: string]: unknown;
|
69
|
-
};
|
70
|
-
$slots: Readonly<{
|
71
|
-
[name: string]: import("vue").Slot<any>;
|
72
|
-
}>;
|
73
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
74
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
75
|
-
$emit: (event: string, ...args: any[]) => void;
|
76
|
-
$el: any;
|
77
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
78
|
-
indicator: {
|
79
|
-
type: FunctionConstructor;
|
80
|
-
};
|
81
|
-
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
82
|
-
default: boolean;
|
83
|
-
} & {
|
84
|
-
default: boolean;
|
85
|
-
};
|
86
|
-
inline: import("vue-types").VueTypeValidableDef<boolean> & {
|
87
|
-
default: boolean;
|
88
|
-
} & {
|
89
|
-
default: boolean;
|
90
|
-
};
|
91
|
-
theme: {
|
92
|
-
type: import("vue").PropType<"default" | "danger" | "primary" | "success" | "warning" | "white">;
|
93
|
-
};
|
94
|
-
title: import("vue-types").VueTypeValidableDef<string> & {
|
95
|
-
default: string;
|
96
|
-
} & {
|
97
|
-
default: string;
|
98
|
-
};
|
99
|
-
size: {
|
100
|
-
type: import("vue").PropType<"" | "small" | "large" | "mini">;
|
101
|
-
default: BkLoadingSize;
|
102
|
-
};
|
103
|
-
mode: {
|
104
|
-
type: import("vue").PropType<"default" | "spin">;
|
105
|
-
default: string;
|
106
|
-
};
|
107
|
-
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
108
|
-
default: number;
|
109
|
-
} & {
|
110
|
-
default: number;
|
111
|
-
};
|
112
|
-
color: import("vue-types").VueTypeValidableDef<string> & {
|
113
|
-
default: string;
|
114
|
-
} & {
|
115
|
-
default: string;
|
116
|
-
};
|
117
|
-
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
118
|
-
default: number;
|
119
|
-
} & {
|
120
|
-
default: number;
|
121
|
-
};
|
122
|
-
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
123
|
-
default: boolean;
|
124
|
-
} & {
|
125
|
-
default: boolean;
|
126
|
-
};
|
127
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
128
|
-
title: string;
|
129
|
-
zIndex: number;
|
130
|
-
mode: "default" | "spin";
|
131
|
-
loading: boolean;
|
132
|
-
inline: boolean;
|
133
|
-
size: "" | "small" | "large" | "mini";
|
134
|
-
opacity: number;
|
135
|
-
color: string;
|
136
|
-
isDirective: boolean;
|
137
|
-
}, {}, string, {}> & {
|
138
|
-
beforeCreate?: (() => void) | (() => void)[];
|
139
|
-
created?: (() => void) | (() => void)[];
|
140
|
-
beforeMount?: (() => void) | (() => void)[];
|
141
|
-
mounted?: (() => void) | (() => void)[];
|
142
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
143
|
-
updated?: (() => void) | (() => void)[];
|
144
|
-
activated?: (() => void) | (() => void)[];
|
145
|
-
deactivated?: (() => void) | (() => void)[];
|
146
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
147
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
148
|
-
destroyed?: (() => void) | (() => void)[];
|
149
|
-
unmounted?: (() => void) | (() => void)[];
|
150
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
151
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
152
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
153
|
-
};
|
154
|
-
$forceUpdate: () => void;
|
155
|
-
$nextTick: typeof import("vue").nextTick;
|
156
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
157
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
158
5
|
indicator: {
|
159
6
|
type: FunctionConstructor;
|
160
7
|
};
|
@@ -204,7 +51,134 @@ declare const BkLoading: {
|
|
204
51
|
} & {
|
205
52
|
default: boolean;
|
206
53
|
};
|
207
|
-
}
|
54
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
55
|
+
indicator: {
|
56
|
+
type: FunctionConstructor;
|
57
|
+
};
|
58
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
59
|
+
default: boolean;
|
60
|
+
} & {
|
61
|
+
default: boolean;
|
62
|
+
};
|
63
|
+
inline: import("vue-types").VueTypeValidableDef<boolean> & {
|
64
|
+
default: boolean;
|
65
|
+
} & {
|
66
|
+
default: boolean;
|
67
|
+
};
|
68
|
+
theme: {
|
69
|
+
type: import("vue").PropType<"default" | "danger" | "primary" | "success" | "warning" | "white">;
|
70
|
+
};
|
71
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
72
|
+
default: string;
|
73
|
+
} & {
|
74
|
+
default: string;
|
75
|
+
};
|
76
|
+
size: {
|
77
|
+
type: import("vue").PropType<"" | "small" | "large" | "mini">;
|
78
|
+
default: BkLoadingSize;
|
79
|
+
};
|
80
|
+
mode: {
|
81
|
+
type: import("vue").PropType<"default" | "spin">;
|
82
|
+
default: string;
|
83
|
+
};
|
84
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
85
|
+
default: number;
|
86
|
+
} & {
|
87
|
+
default: number;
|
88
|
+
};
|
89
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
90
|
+
default: string;
|
91
|
+
} & {
|
92
|
+
default: string;
|
93
|
+
};
|
94
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
95
|
+
default: number;
|
96
|
+
} & {
|
97
|
+
default: number;
|
98
|
+
};
|
99
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
100
|
+
default: boolean;
|
101
|
+
} & {
|
102
|
+
default: boolean;
|
103
|
+
};
|
104
|
+
}>>, {
|
105
|
+
title: string;
|
106
|
+
size: "" | "small" | "large" | "mini";
|
107
|
+
zIndex: number;
|
108
|
+
mode: "default" | "spin";
|
109
|
+
loading: boolean;
|
110
|
+
inline: boolean;
|
111
|
+
opacity: number;
|
112
|
+
color: string;
|
113
|
+
isDirective: boolean;
|
114
|
+
}, true, {}, {}, {
|
115
|
+
P: {};
|
116
|
+
B: {};
|
117
|
+
D: {};
|
118
|
+
C: {};
|
119
|
+
M: {};
|
120
|
+
Defaults: {};
|
121
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
122
|
+
indicator: {
|
123
|
+
type: FunctionConstructor;
|
124
|
+
};
|
125
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
126
|
+
default: boolean;
|
127
|
+
} & {
|
128
|
+
default: boolean;
|
129
|
+
};
|
130
|
+
inline: import("vue-types").VueTypeValidableDef<boolean> & {
|
131
|
+
default: boolean;
|
132
|
+
} & {
|
133
|
+
default: boolean;
|
134
|
+
};
|
135
|
+
theme: {
|
136
|
+
type: import("vue").PropType<"default" | "danger" | "primary" | "success" | "warning" | "white">;
|
137
|
+
};
|
138
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
139
|
+
default: string;
|
140
|
+
} & {
|
141
|
+
default: string;
|
142
|
+
};
|
143
|
+
size: {
|
144
|
+
type: import("vue").PropType<"" | "small" | "large" | "mini">;
|
145
|
+
default: BkLoadingSize;
|
146
|
+
};
|
147
|
+
mode: {
|
148
|
+
type: import("vue").PropType<"default" | "spin">;
|
149
|
+
default: string;
|
150
|
+
};
|
151
|
+
opacity: import("vue-types").VueTypeValidableDef<number> & {
|
152
|
+
default: number;
|
153
|
+
} & {
|
154
|
+
default: number;
|
155
|
+
};
|
156
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
157
|
+
default: string;
|
158
|
+
} & {
|
159
|
+
default: string;
|
160
|
+
};
|
161
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
162
|
+
default: number;
|
163
|
+
} & {
|
164
|
+
default: number;
|
165
|
+
};
|
166
|
+
isDirective: import("vue-types").VueTypeValidableDef<boolean> & {
|
167
|
+
default: boolean;
|
168
|
+
} & {
|
169
|
+
default: boolean;
|
170
|
+
};
|
171
|
+
}>>, () => JSX.Element, {}, {}, {}, {
|
172
|
+
title: string;
|
173
|
+
size: "" | "small" | "large" | "mini";
|
174
|
+
zIndex: number;
|
175
|
+
mode: "default" | "spin";
|
176
|
+
loading: boolean;
|
177
|
+
inline: boolean;
|
178
|
+
opacity: number;
|
179
|
+
color: string;
|
180
|
+
isDirective: boolean;
|
181
|
+
}>;
|
208
182
|
__isFragment?: never;
|
209
183
|
__isTeleport?: never;
|
210
184
|
__isSuspense?: never;
|
@@ -260,11 +234,11 @@ declare const BkLoading: {
|
|
260
234
|
};
|
261
235
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
262
236
|
title: string;
|
237
|
+
size: "" | "small" | "large" | "mini";
|
263
238
|
zIndex: number;
|
264
239
|
mode: "default" | "spin";
|
265
240
|
loading: boolean;
|
266
241
|
inline: boolean;
|
267
|
-
size: "" | "small" | "large" | "mini";
|
268
242
|
opacity: number;
|
269
243
|
color: string;
|
270
244
|
isDirective: boolean;
|
package/lib/loading/index.js
CHANGED
@@ -37,47 +37,51 @@ __webpack_require__.d(__webpack_exports__, {
|
|
37
37
|
vBkloading: () => (/* reexport */ vBkloading)
|
38
38
|
});
|
39
39
|
|
40
|
-
;//
|
41
|
-
var x = y => {
|
42
|
-
var
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
40
|
+
;// external "../shared"
|
41
|
+
var x = (y) => {
|
42
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
43
|
+
}
|
44
|
+
var y = (x) => (() => (x))
|
45
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["classes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
|
46
|
+
;// external "vue"
|
47
|
+
var external_vue_x = (y) => {
|
48
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
49
|
+
}
|
50
|
+
var external_vue_y = (x) => (() => (x))
|
51
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createApp"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createApp), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive) });
|
52
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
53
|
+
function _typeof(o) {
|
50
54
|
"@babel/helpers - typeof";
|
51
55
|
|
52
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
53
|
-
return typeof
|
54
|
-
} : function (
|
55
|
-
return
|
56
|
-
}, _typeof(
|
56
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
57
|
+
return typeof o;
|
58
|
+
} : function (o) {
|
59
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
60
|
+
}, _typeof(o);
|
57
61
|
}
|
58
|
-
;//
|
62
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
59
63
|
|
60
|
-
function
|
61
|
-
if (
|
62
|
-
var
|
63
|
-
if (
|
64
|
-
var
|
65
|
-
if (
|
64
|
+
function toPrimitive(t, r) {
|
65
|
+
if ("object" != _typeof(t) || !t) return t;
|
66
|
+
var e = t[Symbol.toPrimitive];
|
67
|
+
if (void 0 !== e) {
|
68
|
+
var i = e.call(t, r || "default");
|
69
|
+
if ("object" != _typeof(i)) return i;
|
66
70
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
67
71
|
}
|
68
|
-
return (
|
72
|
+
return ("string" === r ? String : Number)(t);
|
69
73
|
}
|
70
|
-
;//
|
74
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
71
75
|
|
72
76
|
|
73
|
-
function
|
74
|
-
var
|
75
|
-
return _typeof(
|
77
|
+
function toPropertyKey(t) {
|
78
|
+
var i = toPrimitive(t, "string");
|
79
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
76
80
|
}
|
77
|
-
;//
|
81
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
78
82
|
|
79
83
|
function _defineProperty(obj, key, value) {
|
80
|
-
key =
|
84
|
+
key = toPropertyKey(key);
|
81
85
|
if (key in obj) {
|
82
86
|
Object.defineProperty(obj, key, {
|
83
87
|
value: value,
|
@@ -90,12 +94,17 @@ function _defineProperty(obj, key, value) {
|
|
90
94
|
}
|
91
95
|
return obj;
|
92
96
|
}
|
93
|
-
;//
|
94
|
-
var config_provider_x = y => {
|
95
|
-
var
|
96
|
-
|
97
|
-
|
97
|
+
;// external "../config-provider"
|
98
|
+
var config_provider_x = (y) => {
|
99
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
100
|
+
}
|
101
|
+
var config_provider_y = (x) => (() => (x))
|
102
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
103
|
+
;// ../../packages/loading/src/loading.tsx
|
98
104
|
|
105
|
+
|
106
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
107
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
99
108
|
/*
|
100
109
|
* Tencent is pleased to support the open source community by making
|
101
110
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -122,8 +131,6 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
122
131
|
* IN THE SOFTWARE.
|
123
132
|
*/
|
124
133
|
|
125
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
126
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
127
134
|
|
128
135
|
|
129
136
|
var BkLoadingMode;
|
@@ -167,7 +174,7 @@ var loadingTypes = {
|
|
167
174
|
zIndex: shared_namespaceObject.PropTypes.number.def(1),
|
168
175
|
isDirective: shared_namespaceObject.PropTypes.bool.def(false)
|
169
176
|
};
|
170
|
-
/* harmony default export */ const loading = (defineComponent({
|
177
|
+
/* harmony default export */ const loading = ((0,external_vue_namespaceObject.defineComponent)({
|
171
178
|
name: 'Loading',
|
172
179
|
props: loadingTypes,
|
173
180
|
setup: function setup(props, ctx) {
|
@@ -187,29 +194,27 @@ var loadingTypes = {
|
|
187
194
|
"class": "oval oval-".concat(i)
|
188
195
|
}, null);
|
189
196
|
})]);
|
190
|
-
var zIndexStyle = computed(function () {
|
197
|
+
var zIndexStyle = (0,external_vue_namespaceObject.computed)(function () {
|
191
198
|
return {
|
192
199
|
zIndex: props.zIndex
|
193
200
|
};
|
194
201
|
});
|
195
|
-
var maskStyle = computed(function () {
|
202
|
+
var maskStyle = (0,external_vue_namespaceObject.computed)(function () {
|
196
203
|
return _objectSpread({
|
197
204
|
opacity: props.opacity,
|
198
205
|
backgroundColor: props.color
|
199
206
|
}, zIndexStyle.value);
|
200
207
|
});
|
201
|
-
var loadingWrapperCls = computed(function () {
|
202
|
-
|
203
|
-
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName('loading-wrapper')), props.loading), _defineProperty(_classes, "".concat(resolveClassName('nested-loading')), !!ctx.slots["default"]), _defineProperty(_classes, "".concat(resolveClassName('directive-loading')), props.isDirective), _classes));
|
208
|
+
var loadingWrapperCls = (0,external_vue_namespaceObject.computed)(function () {
|
209
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('loading-wrapper')), props.loading), "".concat(resolveClassName('nested-loading')), !!ctx.slots["default"]), "".concat(resolveClassName('directive-loading')), props.isDirective));
|
204
210
|
});
|
205
|
-
var containerCls = computed(function () {
|
206
|
-
|
207
|
-
return (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, "".concat(resolveClassName("loading-size-".concat(props.size))), !!props.size), _defineProperty(_classes2, "".concat(resolveClassName("loading-".concat(props.theme))), !!props.theme), _classes2), resolveClassName('loading-indicator'));
|
211
|
+
var containerCls = (0,external_vue_namespaceObject.computed)(function () {
|
212
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(resolveClassName("loading-size-".concat(props.size))), !!props.size), "".concat(resolveClassName("loading-".concat(props.theme))), !!props.theme), resolveClassName('loading-indicator'));
|
208
213
|
});
|
209
|
-
var hasTitle = computed(function () {
|
214
|
+
var hasTitle = (0,external_vue_namespaceObject.computed)(function () {
|
210
215
|
return !!props.title;
|
211
216
|
});
|
212
|
-
var indicator = computed(function () {
|
217
|
+
var indicator = (0,external_vue_namespaceObject.computed)(function () {
|
213
218
|
var isSpinMode = props.mode === BkLoadingMode.Spin;
|
214
219
|
if (typeof props.indicator === 'function') {
|
215
220
|
return (0,external_vue_namespaceObject.createVNode)(props.indicator, null, null);
|
@@ -235,7 +240,7 @@ var loadingTypes = {
|
|
235
240
|
};
|
236
241
|
}
|
237
242
|
}));
|
238
|
-
;//
|
243
|
+
;// ../../packages/loading/src/directive.ts
|
239
244
|
/*
|
240
245
|
* Tencent is pleased to support the open source community by making
|
241
246
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -331,12 +336,12 @@ var vBkloading = {
|
|
331
336
|
unmounted: function unmounted(el) {
|
332
337
|
var _instance$vm2, _instance$instance;
|
333
338
|
var instance = el[INSTANCE_KEY];
|
334
|
-
el === null || el === void 0
|
335
|
-
instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0
|
339
|
+
el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$vm2 = instance.vm) === null || _instance$vm2 === void 0 || (_instance$vm2 = _instance$vm2.$el) === null || _instance$vm2 === void 0 ? void 0 : _instance$vm2.parentNode);
|
340
|
+
instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0 || _instance$instance.unmount();
|
336
341
|
el[INSTANCE_KEY] = null;
|
337
342
|
}
|
338
343
|
};
|
339
|
-
;//
|
344
|
+
;// ../../packages/loading/src/index.ts
|
340
345
|
/*
|
341
346
|
* Tencent is pleased to support the open source community by making
|
342
347
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
package/lib/loading/loading.d.ts
CHANGED
@@ -164,11 +164,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
164
164
|
};
|
165
165
|
}>>, {
|
166
166
|
title: string;
|
167
|
+
size: "" | "small" | "large" | "mini";
|
167
168
|
zIndex: number;
|
168
169
|
mode: "default" | "spin";
|
169
170
|
loading: boolean;
|
170
171
|
inline: boolean;
|
171
|
-
size: "" | "small" | "large" | "mini";
|
172
172
|
opacity: number;
|
173
173
|
color: string;
|
174
174
|
isDirective: boolean;
|
package/lib/locale/index.js
CHANGED
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
29
29
|
zhCn: () => (/* reexport */ zh_cn)
|
30
30
|
});
|
31
31
|
|
32
|
-
;//
|
32
|
+
;// ../../packages/locale/src/lang/en.ts
|
33
33
|
/*
|
34
34
|
* Tencent is pleased to support the open source community by making
|
35
35
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -237,7 +237,7 @@ var en = {
|
|
237
237
|
}
|
238
238
|
};
|
239
239
|
/* harmony default export */ const lang_en = (en);
|
240
|
-
;//
|
240
|
+
;// ../../packages/locale/src/lang/zh-cn.ts
|
241
241
|
/*
|
242
242
|
* Tencent is pleased to support the open source community by making
|
243
243
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -445,7 +445,7 @@ var zhCn = {
|
|
445
445
|
}
|
446
446
|
};
|
447
447
|
/* harmony default export */ const zh_cn = (zhCn);
|
448
|
-
;//
|
448
|
+
;// ../../packages/locale/src/index.ts
|
449
449
|
/*
|
450
450
|
* Tencent is pleased to support the open source community by making
|
451
451
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|