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/menu/index.d.ts
CHANGED
@@ -2,121 +2,7 @@ import Group from './menu-group';
|
|
2
2
|
import Item from './menu-item';
|
3
3
|
import Submenu from './submenu';
|
4
4
|
declare const BkMenu: {
|
5
|
-
new (...args: any[]): {
|
6
|
-
$: import("vue").ComponentInternalInstance;
|
7
|
-
$data: {};
|
8
|
-
$props: {
|
9
|
-
mode?: "vertical";
|
10
|
-
collapse?: boolean;
|
11
|
-
uniqueOpen?: boolean;
|
12
|
-
class?: unknown;
|
13
|
-
style?: unknown;
|
14
|
-
onClick?: (...args: any[]) => any;
|
15
|
-
ref?: import("vue").VNodeRef;
|
16
|
-
key?: string | number | symbol;
|
17
|
-
ref_for?: boolean;
|
18
|
-
ref_key?: string;
|
19
|
-
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
20
|
-
[key: string]: any;
|
21
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
22
|
-
[key: string]: any;
|
23
|
-
}>) => void)[];
|
24
|
-
onVnodeMounted?: ((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
|
-
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
30
|
-
[key: string]: any;
|
31
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
32
|
-
[key: string]: any;
|
33
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
-
[key: string]: any;
|
35
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
36
|
-
[key: string]: any;
|
37
|
-
}>) => void)[];
|
38
|
-
onVnodeUpdated?: ((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) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
-
[key: string]: any;
|
44
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
45
|
-
[key: string]: any;
|
46
|
-
}>) => void)[];
|
47
|
-
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
48
|
-
[key: string]: any;
|
49
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
50
|
-
[key: string]: any;
|
51
|
-
}>) => void)[];
|
52
|
-
onVnodeUnmounted?: ((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
|
-
"onUpdate:activeKey"?: (...args: any[]) => any;
|
58
|
-
"onUpdate:openKeys"?: (...args: any[]) => any;
|
59
|
-
onOpenChange?: (...args: any[]) => any;
|
60
|
-
readonly activeKey?: string;
|
61
|
-
readonly openedKeys?: string[];
|
62
|
-
};
|
63
|
-
$attrs: {
|
64
|
-
[x: string]: unknown;
|
65
|
-
};
|
66
|
-
$refs: {
|
67
|
-
[x: string]: unknown;
|
68
|
-
};
|
69
|
-
$slots: Readonly<{
|
70
|
-
[name: string]: import("vue").Slot<any>;
|
71
|
-
}>;
|
72
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
73
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
74
|
-
$emit: (event: "click" | "update:activeKey" | "update:openKeys" | "openChange", ...args: any[]) => void;
|
75
|
-
$el: any;
|
76
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
77
|
-
activeKey: StringConstructor;
|
78
|
-
collapse: BooleanConstructor;
|
79
|
-
openedKeys: {
|
80
|
-
type: import("vue").PropType<string[]>;
|
81
|
-
};
|
82
|
-
mode: {
|
83
|
-
type: import("vue").PropType<"vertical">;
|
84
|
-
default: string;
|
85
|
-
};
|
86
|
-
uniqueOpen: {
|
87
|
-
type: BooleanConstructor;
|
88
|
-
default: boolean;
|
89
|
-
};
|
90
|
-
}>> & {
|
91
|
-
onClick?: (...args: any[]) => any;
|
92
|
-
"onUpdate:activeKey"?: (...args: any[]) => any;
|
93
|
-
"onUpdate:openKeys"?: (...args: any[]) => any;
|
94
|
-
onOpenChange?: (...args: any[]) => any;
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:activeKey" | "update:openKeys" | "openChange")[], string, {
|
96
|
-
mode: "vertical";
|
97
|
-
collapse: boolean;
|
98
|
-
uniqueOpen: boolean;
|
99
|
-
}, {}, string, {}> & {
|
100
|
-
beforeCreate?: (() => void) | (() => void)[];
|
101
|
-
created?: (() => void) | (() => void)[];
|
102
|
-
beforeMount?: (() => void) | (() => void)[];
|
103
|
-
mounted?: (() => void) | (() => void)[];
|
104
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
105
|
-
updated?: (() => void) | (() => void)[];
|
106
|
-
activated?: (() => void) | (() => void)[];
|
107
|
-
deactivated?: (() => void) | (() => void)[];
|
108
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
109
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
110
|
-
destroyed?: (() => void) | (() => void)[];
|
111
|
-
unmounted?: (() => void) | (() => void)[];
|
112
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
113
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
114
|
-
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)[];
|
115
|
-
};
|
116
|
-
$forceUpdate: () => void;
|
117
|
-
$nextTick: typeof import("vue").nextTick;
|
118
|
-
$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;
|
119
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
120
6
|
activeKey: StringConstructor;
|
121
7
|
collapse: BooleanConstructor;
|
122
8
|
openedKeys: {
|
@@ -135,7 +21,60 @@ declare const BkMenu: {
|
|
135
21
|
"onUpdate:activeKey"?: (...args: any[]) => any;
|
136
22
|
"onUpdate:openKeys"?: (...args: any[]) => any;
|
137
23
|
onOpenChange?: (...args: any[]) => any;
|
138
|
-
}
|
24
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:activeKey" | "update:openKeys" | "openChange")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
activeKey: StringConstructor;
|
26
|
+
collapse: BooleanConstructor;
|
27
|
+
openedKeys: {
|
28
|
+
type: import("vue").PropType<string[]>;
|
29
|
+
};
|
30
|
+
mode: {
|
31
|
+
type: import("vue").PropType<"vertical">;
|
32
|
+
default: string;
|
33
|
+
};
|
34
|
+
uniqueOpen: {
|
35
|
+
type: BooleanConstructor;
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
}>> & {
|
39
|
+
onClick?: (...args: any[]) => any;
|
40
|
+
"onUpdate:activeKey"?: (...args: any[]) => any;
|
41
|
+
"onUpdate:openKeys"?: (...args: any[]) => any;
|
42
|
+
onOpenChange?: (...args: any[]) => any;
|
43
|
+
}, {
|
44
|
+
mode: "vertical";
|
45
|
+
collapse: boolean;
|
46
|
+
uniqueOpen: boolean;
|
47
|
+
}, true, {}, {}, {
|
48
|
+
P: {};
|
49
|
+
B: {};
|
50
|
+
D: {};
|
51
|
+
C: {};
|
52
|
+
M: {};
|
53
|
+
Defaults: {};
|
54
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
55
|
+
activeKey: StringConstructor;
|
56
|
+
collapse: BooleanConstructor;
|
57
|
+
openedKeys: {
|
58
|
+
type: import("vue").PropType<string[]>;
|
59
|
+
};
|
60
|
+
mode: {
|
61
|
+
type: import("vue").PropType<"vertical">;
|
62
|
+
default: string;
|
63
|
+
};
|
64
|
+
uniqueOpen: {
|
65
|
+
type: BooleanConstructor;
|
66
|
+
default: boolean;
|
67
|
+
};
|
68
|
+
}>> & {
|
69
|
+
onClick?: (...args: any[]) => any;
|
70
|
+
"onUpdate:activeKey"?: (...args: any[]) => any;
|
71
|
+
"onUpdate:openKeys"?: (...args: any[]) => any;
|
72
|
+
onOpenChange?: (...args: any[]) => any;
|
73
|
+
}, () => JSX.Element, {}, {}, {}, {
|
74
|
+
mode: "vertical";
|
75
|
+
collapse: boolean;
|
76
|
+
uniqueOpen: boolean;
|
77
|
+
}>;
|
139
78
|
__isFragment?: never;
|
140
79
|
__isTeleport?: never;
|
141
80
|
__isSuspense?: never;
|
package/lib/menu/index.js
CHANGED
@@ -37,43 +37,45 @@ __webpack_require__.d(__webpack_exports__, {
|
|
37
37
|
"default": () => (/* binding */ src)
|
38
38
|
});
|
39
39
|
|
40
|
-
;//
|
41
|
-
var x = y => {
|
42
|
-
var
|
43
|
-
|
44
|
-
|
45
|
-
|
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({ ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
|
46
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
47
|
+
function _typeof(o) {
|
46
48
|
"@babel/helpers - typeof";
|
47
49
|
|
48
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
49
|
-
return typeof
|
50
|
-
} : function (
|
51
|
-
return
|
52
|
-
}, _typeof(
|
50
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
51
|
+
return typeof o;
|
52
|
+
} : function (o) {
|
53
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
54
|
+
}, _typeof(o);
|
53
55
|
}
|
54
|
-
;//
|
55
|
-
|
56
|
-
function
|
57
|
-
if (
|
58
|
-
var
|
59
|
-
if (
|
60
|
-
var
|
61
|
-
if (
|
56
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
57
|
+
|
58
|
+
function toPrimitive(t, r) {
|
59
|
+
if ("object" != _typeof(t) || !t) return t;
|
60
|
+
var e = t[Symbol.toPrimitive];
|
61
|
+
if (void 0 !== e) {
|
62
|
+
var i = e.call(t, r || "default");
|
63
|
+
if ("object" != _typeof(i)) return i;
|
62
64
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
63
65
|
}
|
64
|
-
return (
|
66
|
+
return ("string" === r ? String : Number)(t);
|
65
67
|
}
|
66
|
-
;//
|
68
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
67
69
|
|
68
70
|
|
69
|
-
function
|
70
|
-
var
|
71
|
-
return _typeof(
|
71
|
+
function toPropertyKey(t) {
|
72
|
+
var i = toPrimitive(t, "string");
|
73
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
72
74
|
}
|
73
|
-
;//
|
75
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
74
76
|
|
75
77
|
function _defineProperty(obj, key, value) {
|
76
|
-
key =
|
78
|
+
key = toPropertyKey(key);
|
77
79
|
if (key in obj) {
|
78
80
|
Object.defineProperty(obj, key, {
|
79
81
|
value: value,
|
@@ -86,22 +88,22 @@ function _defineProperty(obj, key, value) {
|
|
86
88
|
}
|
87
89
|
return obj;
|
88
90
|
}
|
89
|
-
;//
|
91
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
90
92
|
function _arrayLikeToArray(arr, len) {
|
91
93
|
if (len == null || len > arr.length) len = arr.length;
|
92
94
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
93
95
|
return arr2;
|
94
96
|
}
|
95
|
-
;//
|
97
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
96
98
|
|
97
99
|
function _arrayWithoutHoles(arr) {
|
98
100
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
99
101
|
}
|
100
|
-
;//
|
102
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
101
103
|
function _iterableToArray(iter) {
|
102
104
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
103
105
|
}
|
104
|
-
;//
|
106
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
105
107
|
|
106
108
|
function _unsupportedIterableToArray(o, minLen) {
|
107
109
|
if (!o) return;
|
@@ -111,11 +113,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
111
113
|
if (n === "Map" || n === "Set") return Array.from(o);
|
112
114
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
113
115
|
}
|
114
|
-
;//
|
116
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
115
117
|
function _nonIterableSpread() {
|
116
118
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
117
119
|
}
|
118
|
-
;//
|
120
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
119
121
|
|
120
122
|
|
121
123
|
|
@@ -123,15 +125,19 @@ function _nonIterableSpread() {
|
|
123
125
|
function _toConsumableArray(arr) {
|
124
126
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
125
127
|
}
|
126
|
-
;//
|
127
|
-
var external_vue_x = y => {
|
128
|
-
var
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
128
|
+
;// external "vue"
|
129
|
+
var external_vue_x = (y) => {
|
130
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
131
|
+
}
|
132
|
+
var external_vue_y = (x) => (() => (x))
|
133
|
+
const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Transition), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["getCurrentInstance"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance), ["inject"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.inject), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["provide"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.provide), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["watchEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watchEffect), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
134
|
+
;// external "../config-provider"
|
135
|
+
var config_provider_x = (y) => {
|
136
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
137
|
+
}
|
138
|
+
var config_provider_y = (x) => (() => (x))
|
139
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
140
|
+
;// ../../packages/menu/src/utils.ts
|
135
141
|
|
136
142
|
/*
|
137
143
|
* Tencent is pleased to support the open source community by making
|
@@ -279,7 +285,7 @@ var collapseMotion = function collapseMotion() {
|
|
279
285
|
}
|
280
286
|
};
|
281
287
|
};
|
282
|
-
;//
|
288
|
+
;// ../../packages/menu/src/menu.tsx
|
283
289
|
|
284
290
|
|
285
291
|
|
@@ -412,14 +418,14 @@ var menuProps = {
|
|
412
418
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
413
419
|
resolveClassName = _usePrefix.resolveClassName;
|
414
420
|
return function () {
|
415
|
-
var
|
421
|
+
var _slots$default;
|
416
422
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
417
|
-
"class": (
|
423
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('menu')), true), 'is-collapse', collapse.value)
|
418
424
|
}, [(_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
|
419
425
|
};
|
420
426
|
}
|
421
427
|
}));
|
422
|
-
;//
|
428
|
+
;// ../../packages/menu/src/menu-group.tsx
|
423
429
|
|
424
430
|
/*
|
425
431
|
* Tencent is pleased to support the open source community by making
|
@@ -448,7 +454,8 @@ var menuProps = {
|
|
448
454
|
*/
|
449
455
|
|
450
456
|
|
451
|
-
|
457
|
+
|
458
|
+
/* harmony default export */ const menu_group = ((0,external_vue_namespaceObject.defineComponent)({
|
452
459
|
name: 'MenuGroup',
|
453
460
|
props: {
|
454
461
|
name: {
|
@@ -466,7 +473,7 @@ var menuProps = {
|
|
466
473
|
collapse = _useMenuInject.collapse;
|
467
474
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
468
475
|
resolveClassName = _usePrefix.resolveClassName;
|
469
|
-
var displayTitle = computed(function () {
|
476
|
+
var displayTitle = (0,external_vue_namespaceObject.computed)(function () {
|
470
477
|
if (collapse.value) {
|
471
478
|
// 收起
|
472
479
|
return props.foldName !== undefined ? props.foldName : props.name;
|
@@ -485,7 +492,7 @@ var menuProps = {
|
|
485
492
|
};
|
486
493
|
}
|
487
494
|
}));
|
488
|
-
;//
|
495
|
+
;// ../../packages/menu/src/menu-item.tsx
|
489
496
|
|
490
497
|
|
491
498
|
/*
|
@@ -567,9 +574,9 @@ var menuProps = {
|
|
567
574
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
568
575
|
resolveClassName = _usePrefix.resolveClassName;
|
569
576
|
return function () {
|
570
|
-
var
|
577
|
+
var _slots$icon, _slots$default;
|
571
578
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
572
|
-
"class": (
|
579
|
+
"class": _defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('menu-item')), true), 'is-active', isActive.value), 'is-disabled', props.disabled),
|
573
580
|
"onClick": handleClick
|
574
581
|
}, [needIcon.value && (0,external_vue_namespaceObject.createVNode)("span", {
|
575
582
|
"class": "item-icon"
|
@@ -581,11 +588,13 @@ var menuProps = {
|
|
581
588
|
};
|
582
589
|
}
|
583
590
|
}));
|
584
|
-
;//
|
585
|
-
var _x = y => {
|
586
|
-
var
|
587
|
-
|
588
|
-
|
591
|
+
;// external "../icon/"
|
592
|
+
var _x = (y) => {
|
593
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
594
|
+
}
|
595
|
+
var _y = (x) => (() => (x))
|
596
|
+
const _namespaceObject = _x({ ["AngleDown"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleDown), ["TreeApplicationShape"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.TreeApplicationShape) });
|
597
|
+
;// ../../packages/menu/src/submenu.tsx
|
589
598
|
|
590
599
|
|
591
600
|
/*
|
@@ -669,9 +678,9 @@ var subMenuProps = {
|
|
669
678
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
670
679
|
resolveClassName = _usePrefix.resolveClassName;
|
671
680
|
return function () {
|
672
|
-
var
|
681
|
+
var _slots$icon, _slots$title, _slots$default;
|
673
682
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
674
|
-
"class": (
|
683
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('menu-submenu')), true), 'is-opened', isShow.value)
|
675
684
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
676
685
|
"class": {
|
677
686
|
'submenu-header': true,
|
@@ -699,7 +708,7 @@ var subMenuProps = {
|
|
699
708
|
};
|
700
709
|
}
|
701
710
|
}));
|
702
|
-
;//
|
711
|
+
;// ../../packages/menu/src/index.ts
|
703
712
|
/*
|
704
713
|
* Tencent is pleased to support the open source community by making
|
705
714
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|