bkui-vue 2.0.1-beta.106 → 2.0.1-beta.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +71 -71
- package/dist/index.esm.js +18609 -18772
- package/dist/index.umd.js +70 -70
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +268 -270
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +41 -43
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +22 -25
- package/lib/config-provider/use-global-config.d.ts +0 -1
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- 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 +351 -380
- package/lib/date-picker/index.js +79 -80
- 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 +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +33 -41
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/message/index.js +25 -24
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +21 -20
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/plugin-popover/index.js +135 -233
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +361 -423
- package/lib/popover/index.js +135 -233
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.d.ts +169 -132
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- 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 +362 -457
- package/lib/table/index.js +350 -338
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/table-column/index.js +19 -18
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +206 -191
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/affix/index.d.ts
CHANGED
@@ -1,59 +1,118 @@
|
|
1
1
|
declare const BkAffix: {
|
2
|
-
new (...args: any[]):
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: {
|
6
|
+
target?: string;
|
7
|
+
zIndex?: number;
|
8
|
+
offsetTop?: number;
|
9
|
+
offsetBottom?: number;
|
10
|
+
class?: unknown;
|
11
|
+
style?: unknown;
|
12
|
+
onChange?: (...args: any[]) => any;
|
13
|
+
ref?: import("vue").VNodeRef;
|
14
|
+
key?: string | number | symbol;
|
15
|
+
ref_for?: boolean;
|
16
|
+
ref_key?: string;
|
17
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
18
|
+
[key: string]: any;
|
19
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
20
|
+
[key: string]: any;
|
21
|
+
}>) => void)[];
|
22
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
23
|
+
[key: string]: any;
|
24
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
25
|
+
[key: string]: any;
|
26
|
+
}>) => void)[];
|
27
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
28
|
+
[key: string]: any;
|
29
|
+
}>, oldVNode: 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
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
+
[key: string]: any;
|
35
|
+
}>) => void)[];
|
36
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
37
|
+
[key: string]: any;
|
38
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
39
|
+
[key: string]: any;
|
40
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
41
|
+
[key: string]: any;
|
42
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
+
[key: string]: any;
|
44
|
+
}>) => void)[];
|
45
|
+
onVnodeBeforeUnmount?: ((vnode: 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
|
+
}>) => void)[];
|
50
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
51
|
+
[key: string]: any;
|
52
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
53
|
+
[key: string]: any;
|
54
|
+
}>) => void)[];
|
28
55
|
};
|
29
|
-
|
30
|
-
|
56
|
+
$attrs: {
|
57
|
+
[x: string]: unknown;
|
31
58
|
};
|
32
|
-
|
33
|
-
|
34
|
-
} & {
|
35
|
-
default: string;
|
59
|
+
$refs: {
|
60
|
+
[x: string]: unknown;
|
36
61
|
};
|
37
|
-
|
38
|
-
|
39
|
-
}
|
40
|
-
|
62
|
+
$slots: Readonly<{
|
63
|
+
[name: string]: import("vue").Slot<any>;
|
64
|
+
}>;
|
65
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
66
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
67
|
+
$emit: (event: "change", ...args: any[]) => void;
|
68
|
+
$el: any;
|
69
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
70
|
+
offsetTop: import("vue-types").VueTypeValidableDef<number> & {
|
71
|
+
default: number;
|
72
|
+
} & {
|
73
|
+
default: number;
|
74
|
+
};
|
75
|
+
offsetBottom: import("vue-types").VueTypeValidableDef<number> & {
|
76
|
+
default: number;
|
77
|
+
};
|
78
|
+
target: import("vue-types").VueTypeValidableDef<string> & {
|
79
|
+
default: string;
|
80
|
+
} & {
|
81
|
+
default: string;
|
82
|
+
};
|
83
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
84
|
+
default: number;
|
85
|
+
} & {
|
86
|
+
default: number;
|
87
|
+
};
|
88
|
+
}>> & {
|
89
|
+
onChange?: (...args: any[]) => any;
|
90
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {
|
91
|
+
target: string;
|
92
|
+
zIndex: number;
|
93
|
+
offsetTop: number;
|
94
|
+
offsetBottom: number;
|
95
|
+
}, {}, string, {}> & {
|
96
|
+
beforeCreate?: (() => void) | (() => void)[];
|
97
|
+
created?: (() => void) | (() => void)[];
|
98
|
+
beforeMount?: (() => void) | (() => void)[];
|
99
|
+
mounted?: (() => void) | (() => void)[];
|
100
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
101
|
+
updated?: (() => void) | (() => void)[];
|
102
|
+
activated?: (() => void) | (() => void)[];
|
103
|
+
deactivated?: (() => void) | (() => void)[];
|
104
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
105
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
106
|
+
destroyed?: (() => void) | (() => void)[];
|
107
|
+
unmounted?: (() => void) | (() => void)[];
|
108
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
109
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
110
|
+
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)[];
|
41
111
|
};
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
zIndex: number;
|
47
|
-
offsetTop: number;
|
48
|
-
offsetBottom: number;
|
49
|
-
}, true, {}, {}, {
|
50
|
-
P: {};
|
51
|
-
B: {};
|
52
|
-
D: {};
|
53
|
-
C: {};
|
54
|
-
M: {};
|
55
|
-
Defaults: {};
|
56
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
112
|
+
$forceUpdate: () => void;
|
113
|
+
$nextTick: typeof import("vue").nextTick;
|
114
|
+
$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;
|
115
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
57
116
|
offsetTop: import("vue-types").VueTypeValidableDef<number> & {
|
58
117
|
default: number;
|
59
118
|
} & {
|
@@ -74,12 +133,7 @@ declare const BkAffix: {
|
|
74
133
|
};
|
75
134
|
}>> & {
|
76
135
|
onChange?: (...args: any[]) => any;
|
77
|
-
}
|
78
|
-
target: string;
|
79
|
-
zIndex: number;
|
80
|
-
offsetTop: number;
|
81
|
-
offsetBottom: number;
|
82
|
-
}>;
|
136
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
83
137
|
__isFragment?: never;
|
84
138
|
__isTeleport?: never;
|
85
139
|
__isSuspense?: never;
|
package/lib/affix/index.js
CHANGED
@@ -38,38 +38,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
38
38
|
var y = x => () => x
|
39
39
|
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
40
40
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
41
|
-
function _typeof(
|
41
|
+
function _typeof(obj) {
|
42
42
|
"@babel/helpers - typeof";
|
43
43
|
|
44
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
45
|
-
return typeof
|
46
|
-
} : function (
|
47
|
-
return
|
48
|
-
}, _typeof(
|
44
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
45
|
+
return typeof obj;
|
46
|
+
} : function (obj) {
|
47
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
48
|
+
}, _typeof(obj);
|
49
49
|
}
|
50
50
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
51
51
|
|
52
|
-
function
|
53
|
-
if ("object"
|
54
|
-
var
|
55
|
-
if (
|
56
|
-
var
|
57
|
-
if ("object"
|
52
|
+
function _toPrimitive(input, hint) {
|
53
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
54
|
+
var prim = input[Symbol.toPrimitive];
|
55
|
+
if (prim !== undefined) {
|
56
|
+
var res = prim.call(input, hint || "default");
|
57
|
+
if (_typeof(res) !== "object") return res;
|
58
58
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
59
59
|
}
|
60
|
-
return ("string"
|
60
|
+
return (hint === "string" ? String : Number)(input);
|
61
61
|
}
|
62
62
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
63
63
|
|
64
64
|
|
65
|
-
function
|
66
|
-
var
|
67
|
-
return "symbol"
|
65
|
+
function _toPropertyKey(arg) {
|
66
|
+
var key = _toPrimitive(arg, "string");
|
67
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
68
68
|
}
|
69
69
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
70
70
|
|
71
71
|
function _defineProperty(obj, key, value) {
|
72
|
-
key =
|
72
|
+
key = _toPropertyKey(key);
|
73
73
|
if (key in obj) {
|
74
74
|
Object.defineProperty(obj, key, {
|
75
75
|
value: value,
|
package/lib/alert/index.d.ts
CHANGED
@@ -1,5 +1,128 @@
|
|
1
1
|
declare const BkAlert: {
|
2
|
-
new (...args: any[]):
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: {
|
6
|
+
title?: string;
|
7
|
+
theme?: "" | "danger" | "success" | "warning" | "info";
|
8
|
+
closable?: boolean;
|
9
|
+
closeText?: string;
|
10
|
+
showIcon?: boolean;
|
11
|
+
class?: unknown;
|
12
|
+
style?: unknown;
|
13
|
+
ref?: import("vue").VNodeRef;
|
14
|
+
key?: string | number | symbol;
|
15
|
+
ref_for?: boolean;
|
16
|
+
ref_key?: string;
|
17
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
18
|
+
[key: string]: any;
|
19
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
20
|
+
[key: string]: any;
|
21
|
+
}>) => void)[];
|
22
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
23
|
+
[key: string]: any;
|
24
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
25
|
+
[key: string]: any;
|
26
|
+
}>) => void)[];
|
27
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
28
|
+
[key: string]: any;
|
29
|
+
}>, oldVNode: 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
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
+
[key: string]: any;
|
35
|
+
}>) => void)[];
|
36
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
37
|
+
[key: string]: any;
|
38
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
39
|
+
[key: string]: any;
|
40
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
41
|
+
[key: string]: any;
|
42
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
+
[key: string]: any;
|
44
|
+
}>) => void)[];
|
45
|
+
onVnodeBeforeUnmount?: ((vnode: 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
|
+
}>) => void)[];
|
50
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
51
|
+
[key: string]: any;
|
52
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
53
|
+
[key: string]: any;
|
54
|
+
}>) => void)[];
|
55
|
+
onClose?: (event: Event) => any;
|
56
|
+
};
|
57
|
+
$attrs: {
|
58
|
+
[x: string]: unknown;
|
59
|
+
};
|
60
|
+
$refs: {
|
61
|
+
[x: string]: unknown;
|
62
|
+
};
|
63
|
+
$slots: Readonly<{
|
64
|
+
[name: string]: import("vue").Slot<any>;
|
65
|
+
}>;
|
66
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
67
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
68
|
+
$emit: (event: "close", event: Event) => void;
|
69
|
+
$el: any;
|
70
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
71
|
+
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
72
|
+
default: "" | "danger" | "success" | "warning" | "info";
|
73
|
+
};
|
74
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
75
|
+
default: string;
|
76
|
+
};
|
77
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
|
+
default: boolean;
|
79
|
+
} & {
|
80
|
+
default: boolean;
|
81
|
+
};
|
82
|
+
closeText: import("vue-types").VueTypeValidableDef<string> & {
|
83
|
+
default: string;
|
84
|
+
};
|
85
|
+
showIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
86
|
+
default: boolean;
|
87
|
+
} & {
|
88
|
+
default: boolean;
|
89
|
+
};
|
90
|
+
}>> & {
|
91
|
+
onClose?: (event: Event) => any;
|
92
|
+
}, {
|
93
|
+
state: {
|
94
|
+
visible: boolean;
|
95
|
+
};
|
96
|
+
handleClose: (event: Event) => void;
|
97
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
98
|
+
close: (event: Event) => Event;
|
99
|
+
}, string, {
|
100
|
+
title: string;
|
101
|
+
theme: "" | "danger" | "success" | "warning" | "info";
|
102
|
+
closable: boolean;
|
103
|
+
closeText: string;
|
104
|
+
showIcon: boolean;
|
105
|
+
}, {}, string, {}> & {
|
106
|
+
beforeCreate?: (() => void) | (() => void)[];
|
107
|
+
created?: (() => void) | (() => void)[];
|
108
|
+
beforeMount?: (() => void) | (() => void)[];
|
109
|
+
mounted?: (() => void) | (() => void)[];
|
110
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
111
|
+
updated?: (() => void) | (() => void)[];
|
112
|
+
activated?: (() => void) | (() => void)[];
|
113
|
+
deactivated?: (() => void) | (() => void)[];
|
114
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
115
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
116
|
+
destroyed?: (() => void) | (() => void)[];
|
117
|
+
unmounted?: (() => void) | (() => void)[];
|
118
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
119
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
120
|
+
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)[];
|
121
|
+
};
|
122
|
+
$forceUpdate: () => void;
|
123
|
+
$nextTick: typeof import("vue").nextTick;
|
124
|
+
$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;
|
125
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
3
126
|
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
4
127
|
default: "" | "danger" | "success" | "warning" | "info";
|
5
128
|
};
|
@@ -21,82 +144,12 @@ declare const BkAlert: {
|
|
21
144
|
};
|
22
145
|
}>> & {
|
23
146
|
onClose?: (event: Event) => any;
|
24
|
-
}
|
147
|
+
} & import("vue").ShallowUnwrapRef<{
|
25
148
|
state: {
|
26
149
|
visible: boolean;
|
27
150
|
};
|
28
151
|
handleClose: (event: Event) => void;
|
29
|
-
}
|
30
|
-
close: (event: Event) => Event;
|
31
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
32
|
-
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
33
|
-
default: "" | "danger" | "success" | "warning" | "info";
|
34
|
-
};
|
35
|
-
title: import("vue-types").VueTypeValidableDef<string> & {
|
36
|
-
default: string;
|
37
|
-
};
|
38
|
-
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
39
|
-
default: boolean;
|
40
|
-
} & {
|
41
|
-
default: boolean;
|
42
|
-
};
|
43
|
-
closeText: import("vue-types").VueTypeValidableDef<string> & {
|
44
|
-
default: string;
|
45
|
-
};
|
46
|
-
showIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
47
|
-
default: boolean;
|
48
|
-
} & {
|
49
|
-
default: boolean;
|
50
|
-
};
|
51
|
-
}>> & {
|
52
|
-
onClose?: (event: Event) => any;
|
53
|
-
}, {
|
54
|
-
title: string;
|
55
|
-
theme: "" | "danger" | "success" | "warning" | "info";
|
56
|
-
closable: boolean;
|
57
|
-
closeText: string;
|
58
|
-
showIcon: boolean;
|
59
|
-
}, true, {}, {}, {
|
60
|
-
P: {};
|
61
|
-
B: {};
|
62
|
-
D: {};
|
63
|
-
C: {};
|
64
|
-
M: {};
|
65
|
-
Defaults: {};
|
66
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
67
|
-
theme: import("vue-types").VueTypeDef<"" | "danger" | "success" | "warning" | "info"> & {
|
68
|
-
default: "" | "danger" | "success" | "warning" | "info";
|
69
|
-
};
|
70
|
-
title: import("vue-types").VueTypeValidableDef<string> & {
|
71
|
-
default: string;
|
72
|
-
};
|
73
|
-
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
74
|
-
default: boolean;
|
75
|
-
} & {
|
76
|
-
default: boolean;
|
77
|
-
};
|
78
|
-
closeText: import("vue-types").VueTypeValidableDef<string> & {
|
79
|
-
default: string;
|
80
|
-
};
|
81
|
-
showIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
82
|
-
default: boolean;
|
83
|
-
} & {
|
84
|
-
default: boolean;
|
85
|
-
};
|
86
|
-
}>> & {
|
87
|
-
onClose?: (event: Event) => any;
|
88
|
-
}, {
|
89
|
-
state: {
|
90
|
-
visible: boolean;
|
91
|
-
};
|
92
|
-
handleClose: (event: Event) => void;
|
93
|
-
}, {}, {}, {}, {
|
94
|
-
title: string;
|
95
|
-
theme: "" | "danger" | "success" | "warning" | "info";
|
96
|
-
closable: boolean;
|
97
|
-
closeText: string;
|
98
|
-
showIcon: boolean;
|
99
|
-
}>;
|
152
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
100
153
|
__isFragment?: never;
|
101
154
|
__isTeleport?: never;
|
102
155
|
__isSuspense?: never;
|
package/lib/alert/index.js
CHANGED
@@ -38,38 +38,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
38
38
|
var y = x => () => x
|
39
39
|
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["TagThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
40
40
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
41
|
-
function _typeof(
|
41
|
+
function _typeof(obj) {
|
42
42
|
"@babel/helpers - typeof";
|
43
43
|
|
44
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
45
|
-
return typeof
|
46
|
-
} : function (
|
47
|
-
return
|
48
|
-
}, _typeof(
|
44
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
45
|
+
return typeof obj;
|
46
|
+
} : function (obj) {
|
47
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
48
|
+
}, _typeof(obj);
|
49
49
|
}
|
50
50
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
51
51
|
|
52
|
-
function
|
53
|
-
if ("object"
|
54
|
-
var
|
55
|
-
if (
|
56
|
-
var
|
57
|
-
if ("object"
|
52
|
+
function _toPrimitive(input, hint) {
|
53
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
54
|
+
var prim = input[Symbol.toPrimitive];
|
55
|
+
if (prim !== undefined) {
|
56
|
+
var res = prim.call(input, hint || "default");
|
57
|
+
if (_typeof(res) !== "object") return res;
|
58
58
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
59
59
|
}
|
60
|
-
return ("string"
|
60
|
+
return (hint === "string" ? String : Number)(input);
|
61
61
|
}
|
62
62
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
63
63
|
|
64
64
|
|
65
|
-
function
|
66
|
-
var
|
67
|
-
return "symbol"
|
65
|
+
function _toPropertyKey(arg) {
|
66
|
+
var key = _toPrimitive(arg, "string");
|
67
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
68
68
|
}
|
69
69
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
70
70
|
|
71
71
|
function _defineProperty(obj, key, value) {
|
72
|
-
key =
|
72
|
+
key = _toPropertyKey(key);
|
73
73
|
if (key in obj) {
|
74
74
|
Object.defineProperty(obj, key, {
|
75
75
|
value: value,
|
@@ -154,15 +154,15 @@ const icon_namespaceObject = icon_x({ ["CloseLine"]: () => __WEBPACK_EXTERNAL_MO
|
|
154
154
|
};
|
155
155
|
},
|
156
156
|
render: function render() {
|
157
|
-
var _this$$slots$icon, _this$$slots$icon2, _this$$slots, _this$$slots$default, _this$$slots2;
|
157
|
+
var _classes, _classes2, _this$$slots$icon, _this$$slots$icon2, _this$$slots, _this$$slots$default, _this$$slots2;
|
158
158
|
if (!this.state.visible) {
|
159
159
|
return null;
|
160
160
|
}
|
161
161
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
162
162
|
resolveClassName = _usePrefix.resolveClassName;
|
163
163
|
var renderCloseText = Boolean(this.closeText);
|
164
|
-
var closeButtonClasses = (0,shared_namespaceObject.classes)(
|
165
|
-
var typeClass = (0,shared_namespaceObject.classes)(
|
164
|
+
var closeButtonClasses = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, resolveClassName('alert-close'), true), _defineProperty(_classes, 'close-text', renderCloseText), _defineProperty(_classes, resolveClassName('alert-close-icon'), !renderCloseText), _classes));
|
165
|
+
var typeClass = (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, resolveClassName('alert'), true), _defineProperty(_classes2, resolveClassName("alert-".concat(this.theme)), true), _classes2));
|
166
166
|
var defaultIcon = (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.InfoLine, {
|
167
167
|
"class": resolveClassName('alert-icon-info')
|
168
168
|
}, null);
|