bkui-vue 0.0.1-beta.464 → 0.0.1-beta.466
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 +63 -67
- package/dist/index.esm.js +15211 -14541
- package/dist/index.umd.js +65 -69
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +58 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +60 -40
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +3 -3
- package/lib/animate-number/index.d.ts +60 -27
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/index.d.ts +61 -43
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +63 -60
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/index.d.ts +61 -39
- package/lib/button/button-group.d.ts +4 -4
- package/lib/button/button.d.ts +3 -3
- package/lib/button/index.d.ts +74 -68
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +63 -64
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/index.d.ts +81 -146
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/checkbox/checkbox-group.d.ts +2 -2
- package/lib/checkbox/checkbox.d.ts +10 -10
- package/lib/checkbox/index.d.ts +76 -64
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.d.ts +6 -6
- package/lib/code-diff/index.d.ts +30 -43
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +1 -1
- package/lib/collapse/collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +68 -74
- package/lib/collapse-transition/collapse-transition.d.ts +2 -2
- package/lib/color-picker/color-picker.d.ts +2 -2
- package/lib/color-picker/components/color-input.d.ts +2 -2
- package/lib/color-picker/components/hue-slider.d.ts +2 -2
- package/lib/color-picker/components/input-container.d.ts +2 -2
- package/lib/color-picker/components/recommend-colors.d.ts +2 -2
- package/lib/color-picker/components/saturation-panel.d.ts +2 -2
- package/lib/color-picker/index.d.ts +63 -62
- package/lib/color-picker/index.js +1 -1
- package/lib/config-provider/config-provider.d.ts +3 -3
- package/lib/config-provider/index.d.ts +175 -138
- package/lib/container/col.d.ts +2 -2
- package/lib/container/container.d.ts +2 -2
- package/lib/container/index.d.ts +29 -48
- package/lib/container/row.d.ts +2 -2
- package/lib/date-picker/base/confirm.d.ts +5 -5
- package/lib/date-picker/base/date-table.d.ts +3 -3
- package/lib/date-picker/base/month-table.d.ts +4 -4
- package/lib/date-picker/base/picker-dropdown.d.ts +4 -4
- package/lib/date-picker/base/time-spinner.d.ts +2 -2
- package/lib/date-picker/base/year-table.d.ts +4 -4
- package/lib/date-picker/date-picker.d.ts +37 -28
- package/lib/date-picker/index.d.ts +162 -209
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -10
- package/lib/date-picker/panel/date-range.d.ts +18 -15
- package/lib/date-picker/panel/date.d.ts +12 -12
- package/lib/date-picker/panel/time-range.d.ts +8 -2
- package/lib/date-picker/panel/time.d.ts +5 -2
- package/lib/date-picker/props.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +11 -2
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +90 -163
- package/lib/dialog/index.js +2 -1
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- package/lib/directives/index.js +1 -1
- package/lib/divider/divider.d.ts +2 -2
- package/lib/divider/index.d.ts +61 -37
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +66 -54
- package/lib/exception/exception.d.ts +2 -2
- package/lib/exception/index.d.ts +60 -29
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +2 -2
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +58 -34
- package/lib/form/compose-form-item.d.ts +2 -2
- package/lib/form/form-item.d.ts +3 -3
- package/lib/form/form.d.ts +3 -3
- package/lib/form/index.d.ts +62 -40
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.d.ts +2 -2
- package/lib/image/image.d.ts +1 -1
- package/lib/image/index.d.ts +63 -57
- package/lib/info-box/index.d.ts +1 -1
- package/lib/info-box/index.js +2 -1
- package/lib/info-box/index.js.LICENSE.txt +1 -0
- package/lib/input/index.d.ts +82 -119
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +6 -6
- package/lib/link/index.d.ts +59 -40
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/directive.d.ts +2 -2
- package/lib/loading/index.d.ts +67 -71
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +3 -3
- package/lib/locale/lang/en.d.ts +1 -1
- package/lib/menu/index.d.ts +69 -32
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +2 -2
- package/lib/menu/menu-item.d.ts +5 -1
- package/lib/menu/menu.d.ts +1 -1
- package/lib/menu/submenu.d.ts +5 -1
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +84 -123
- package/lib/modal/modal.d.ts +3 -3
- package/lib/navigation/index.d.ts +84 -65
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +6 -3
- package/lib/navigation/navigation.d.ts +10 -3
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +2 -2
- package/lib/overflow-title/index.d.ts +62 -37
- package/lib/overflow-title/props.d.ts +2 -2
- package/lib/pagination/index.d.ts +75 -94
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.d.ts +6 -6
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +66 -63
- package/lib/pop-confirm/pop-confirm.d.ts +2 -2
- package/lib/popover/arrow.d.ts +1 -1
- package/lib/popover/content.d.ts +2 -2
- package/lib/popover/index.d.ts +93 -164
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/popover/reference.d.ts +1 -1
- package/lib/popover/root.d.ts +13 -2
- package/lib/popover/use-floating.d.ts +3 -3
- package/lib/popover2/index.d.ts +55 -10
- package/lib/popover2/popover.d.ts +1 -1
- package/lib/process/index.d.ts +60 -46
- package/lib/process/index.js +2 -1
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/progress/index.d.ts +76 -103
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.d.ts +6 -6
- package/lib/radio/index.d.ts +63 -41
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +5 -5
- package/lib/radio/radio-group.d.ts +2 -2
- package/lib/radio/radio.d.ts +2 -2
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +61 -34
- package/lib/rate/rate.d.ts +3 -3
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +65 -66
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/search-select/index.d.ts +70 -69
- package/lib/search-select/index.js +2 -1
- package/lib/search-select/index.js.LICENSE.txt +1 -0
- package/lib/search-select/input.d.ts +1 -1
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.d.ts +2 -2
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/search-select/utils.d.ts +4 -4
- package/lib/select/index.d.ts +308 -512
- package/lib/select/index.js +2 -1
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/option.d.ts +2 -2
- package/lib/select/optionGroup.d.ts +2 -2
- package/lib/select/select.d.ts +76 -66
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/select/type.d.ts +3 -3
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +2 -2
- package/lib/shared/popover.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +7 -7
- package/lib/sideslider/index.d.ts +84 -125
- package/lib/sideslider/index.js +2 -1
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/sideslider/sideslider.d.ts +3 -3
- package/lib/slider/index.d.ts +73 -103
- package/lib/slider/index.js +2 -1
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +68 -62
- package/lib/steps/index.js +2 -1
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/steps/steps.d.ts +5 -5
- package/lib/swiper/index.d.ts +60 -44
- package/lib/swiper/swiper.d.ts +1 -1
- package/lib/switcher/index.d.ts +72 -77
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +3 -3
- package/lib/tab/index.d.ts +81 -99
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +1 -1
- package/lib/tab/tab-nav.d.ts +2 -2
- package/lib/tab/tab-panel.d.ts +2 -2
- package/lib/tab/tab.d.ts +3 -3
- package/lib/table/components/table-cell.d.ts +2 -2
- package/lib/table/components/table-column.d.ts +18 -12
- package/lib/table/components/table-row.d.ts +1 -1
- package/lib/table/index.d.ts +213 -302
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/col-group.d.ts +2 -2
- package/lib/table/plugins/head-filter.d.ts +1 -1
- package/lib/table/plugins/head-sort.d.ts +1 -1
- package/lib/table/plugins/settings.d.ts +1 -1
- package/lib/table/plugins/use-active-columns.d.ts +3 -3
- package/lib/table/plugins/use-fixed-column.d.ts +3 -3
- package/lib/table/props.d.ts +19 -19
- package/lib/table/table.css +3 -0
- package/lib/table/table.d.ts +6 -6
- package/lib/table/table.less +4 -0
- package/lib/table/table.variable.css +3 -0
- package/lib/table/use-column.d.ts +4 -4
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table-column/index.d.ts +113 -106
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +68 -50
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +5 -1
- package/lib/tag-input/index.d.ts +105 -317
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +2 -2
- package/lib/tag-input/tag-input.d.ts +7 -7
- package/lib/tag-input/tag-input.less +11 -11
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/index.d.ts +116 -187
- package/lib/timeline/index.d.ts +57 -28
- package/lib/timeline/timeline.d.ts +2 -2
- package/lib/transfer/index.d.ts +67 -82
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +84 -146
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +4 -4
- package/lib/tree/tree.d.ts +3 -3
- package/lib/upload/index.d.ts +93 -150
- package/lib/upload/index.js +2 -1
- package/lib/upload/index.js.LICENSE.txt +1 -0
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +4 -4
- package/lib/upload/upload.type.d.ts +12 -12
- package/lib/upload/use-file-handler.d.ts +1 -24
- package/lib/virtual-render/index.d.ts +64 -160
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -1
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/package.json +38 -37
package/lib/loading/index.d.ts
CHANGED
@@ -3,67 +3,63 @@ declare const BkLoading: {
|
|
3
3
|
new (...args: any[]): {
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
5
5
|
$data: {};
|
6
|
-
$props:
|
7
|
-
title
|
8
|
-
zIndex
|
9
|
-
mode
|
10
|
-
color
|
11
|
-
size
|
12
|
-
inline
|
13
|
-
opacity
|
14
|
-
loading
|
15
|
-
isDirective
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
};
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
};
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
49
|
-
|
50
|
-
};
|
51
|
-
|
52
|
-
|
53
|
-
}
|
54
|
-
|
55
|
-
};
|
56
|
-
|
57
|
-
|
58
|
-
}
|
59
|
-
|
60
|
-
};
|
61
|
-
|
62
|
-
|
63
|
-
} & {
|
64
|
-
default: boolean;
|
65
|
-
};
|
66
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "zIndex" | "mode" | "color" | "size" | "inline" | "opacity" | "loading" | "isDirective">;
|
6
|
+
$props: {
|
7
|
+
title?: string;
|
8
|
+
zIndex?: number;
|
9
|
+
mode?: "default" | "spin";
|
10
|
+
color?: string;
|
11
|
+
size?: "" | "small" | "large" | "mini";
|
12
|
+
inline?: boolean;
|
13
|
+
opacity?: number;
|
14
|
+
loading?: boolean;
|
15
|
+
isDirective?: boolean;
|
16
|
+
class?: unknown;
|
17
|
+
style?: unknown;
|
18
|
+
readonly theme?: "success" | "warning" | "danger" | "primary" | "white";
|
19
|
+
key?: string | number | symbol;
|
20
|
+
ref?: import("vue").VNodeRef;
|
21
|
+
ref_for?: boolean;
|
22
|
+
ref_key?: string;
|
23
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
24
|
+
[key: string]: any;
|
25
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
26
|
+
[key: string]: any;
|
27
|
+
}>) => void)[];
|
28
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
29
|
+
[key: string]: any;
|
30
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
31
|
+
[key: string]: any;
|
32
|
+
}>) => void)[];
|
33
|
+
onVnodeBeforeUpdate?: ((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) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
38
|
+
[key: string]: any;
|
39
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
40
|
+
[key: string]: any;
|
41
|
+
}>) => void)[];
|
42
|
+
onVnodeUpdated?: ((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) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
47
|
+
[key: string]: any;
|
48
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
49
|
+
[key: string]: any;
|
50
|
+
}>) => void)[];
|
51
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
52
|
+
[key: string]: any;
|
53
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
+
[key: string]: any;
|
55
|
+
}>) => void)[];
|
56
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
57
|
+
[key: string]: any;
|
58
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
59
|
+
[key: string]: any;
|
60
|
+
}>) => void)[];
|
61
|
+
readonly indicator?: Function;
|
62
|
+
};
|
67
63
|
$attrs: {
|
68
64
|
[x: string]: unknown;
|
69
65
|
};
|
@@ -71,10 +67,10 @@ declare const BkLoading: {
|
|
71
67
|
[x: string]: unknown;
|
72
68
|
};
|
73
69
|
$slots: Readonly<{
|
74
|
-
[name: string]: import("vue").Slot
|
70
|
+
[name: string]: import("vue").Slot<any>;
|
75
71
|
}>;
|
76
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
77
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
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, {}>, {}, {}>;
|
78
74
|
$emit: (event: string, ...args: any[]) => void;
|
79
75
|
$el: any;
|
80
76
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
@@ -127,7 +123,7 @@ declare const BkLoading: {
|
|
127
123
|
} & {
|
128
124
|
default: boolean;
|
129
125
|
};
|
130
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
126
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
131
127
|
title: string;
|
132
128
|
zIndex: number;
|
133
129
|
mode: "default" | "spin";
|
@@ -137,7 +133,7 @@ declare const BkLoading: {
|
|
137
133
|
opacity: number;
|
138
134
|
loading: boolean;
|
139
135
|
isDirective: boolean;
|
140
|
-
}> & {
|
136
|
+
}, {}, string, {}> & {
|
141
137
|
beforeCreate?: (() => void) | (() => void)[];
|
142
138
|
created?: (() => void) | (() => void)[];
|
143
139
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -152,11 +148,11 @@ declare const BkLoading: {
|
|
152
148
|
unmounted?: (() => void) | (() => void)[];
|
153
149
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
154
150
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
155
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
151
|
+
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)[];
|
156
152
|
};
|
157
153
|
$forceUpdate: () => void;
|
158
154
|
$nextTick: typeof import("vue").nextTick;
|
159
|
-
$watch
|
155
|
+
$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;
|
160
156
|
} & Readonly<import("vue").ExtractPropTypes<{
|
161
157
|
indicator: {
|
162
158
|
type: FunctionConstructor;
|
@@ -207,7 +203,7 @@ declare const BkLoading: {
|
|
207
203
|
} & {
|
208
204
|
default: boolean;
|
209
205
|
};
|
210
|
-
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} &
|
206
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
211
207
|
__isFragment?: never;
|
212
208
|
__isTeleport?: never;
|
213
209
|
__isSuspense?: never;
|
@@ -261,7 +257,7 @@ declare const BkLoading: {
|
|
261
257
|
} & {
|
262
258
|
default: boolean;
|
263
259
|
};
|
264
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
260
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
265
261
|
title: string;
|
266
262
|
zIndex: number;
|
267
263
|
mode: "default" | "spin";
|
@@ -271,7 +267,7 @@ declare const BkLoading: {
|
|
271
267
|
opacity: number;
|
272
268
|
loading: boolean;
|
273
269
|
isDirective: boolean;
|
274
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
270
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
|
275
271
|
setDefaultIndicator: typeof setDefaultIndicator;
|
276
272
|
BkLoadingMode: typeof BkLoadingMode;
|
277
273
|
BkLoadingSize: typeof BkLoadingSize;
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{i.r(r),i.d(r,{BkLoading:()=>f,BkLoadingMode:()=>e,BkLoadingSize:()=>o,default:()=>m,setDefaultIndicator:()=>d});var e,o,t,n=i(4212),l=i(748);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e,o,t){return(o=function(e){var o=function(e,o){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function d(e){t="function"==typeof e?e:function(){return(0,l.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(e||(e={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(o||(o={}));var c={indicator:{type:Function},loading:n.PropTypes.bool.def(!0),inline:n.PropTypes.bool.def(!0),theme:{type:String},title:n.PropTypes.string.def(""),size:{type:String,default:o.Normal},mode:{type:String,default:"default"},opacity:n.PropTypes.number.def(.9),color:n.PropTypes.string.def("white"),zIndex:n.PropTypes.number.def(1),isDirective:n.PropTypes.bool.def(!1)};const s=(0,l.defineComponent)({name:"Loading",props:c,setup:function(o,i){var r=(0,l.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,l.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),a=(0,l.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,l.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),d=(0,l.computed)((function(){return{zIndex:o.zIndex}})),c=(0,l.computed)((function(){return Object.assign({opacity:o.opacity,backgroundColor:o.color},d.value)})),s=(0,l.computed)((function(){return(0,n.classes)({"bk-loading-wrapper":o.loading,"bk-nested-loading":!!i.slots.default,"bk-directive-loading":o.isDirective})})),p=(0,l.computed)((function(){var e;return(0,n.classes)((u(e={},"bk-loading-size-".concat(o.size),!!o.size),u(e,"bk-loading-".concat(o.theme),!!o.theme),e),"bk-loading-indicator")})),v=(0,l.computed)((function(){return!!o.title})),f=(0,l.computed)((function(){var n=o.mode===e.Spin;return"function"==typeof o.indicator?(0,l.createVNode)(o.indicator,null,null):"function"==typeof t?(0,l.createVNode)(t,null,null):n?a:r}));return function(){var e,t;return(0,l.createVNode)("div",{class:s.value},[null===(t=(e=i.slots).default)||void 0===t?void 0:t.call(e),o.loading&&[(i.slots.default||o.isDirective)&&(0,l.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,l.createVNode)("div",{class:p.value,style:d.value},[f.value,v.value&&(0,l.createVNode)("div",{class:"bk-loading-title"},[o.title])])]])}}});var p=Symbol("vBkLoading"),v={mounted:function(e,o){o.value&&function(e,o){var t,n,i,r,a,u=function(e){var t,n;return null!==(n=null===(t=o.value)||void 0===t?void 0:t[e])&&void 0!==n?n:void 0},d=(0,l.reactive)({indicator:u("indicator"),loading:null!==(t=u("loading"))&&void 0!==t&&t,inline:null!==(n=u("inline"))&&void 0!==n&&n,theme:u("theme"),title:null!==(i=u("title"))&&void 0!==i?i:"",size:null!==(r=u("size"))&&void 0!==r?r:"",mode:u("mode"),opacity:u("opacity"),color:null!==(a=u("color"))&&void 0!==a?a:"white",zIndex:u("zIndex"),isDirective:!0}),c=document.createElement("div");Object.assign(c.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});var v=(0,l.createApp)({render:function(){return(0,l.h)(s,d)}});e[p]={options:d,instance:v,vm:v.mount(c)},e.appendChild(c)}(e,o)},updated:function(e,o){var t,n,i,r,l,a=e[p],u=o.value;r=u,l=a.options,Object.keys(r).forEach((function(e){r[e]!==l[e]&&(l[e]=r[e])})),(null===(i=null===(n=null===(t=null==a?void 0:a.vm)||void 0===t?void 0:t.$el)||void 0===n?void 0:n.parentNode)||void 0===i?void 0:i.style)&&(a.vm.$el.parentNode.style.display=u.loading?"":"none")},unmounted:function(e){var o,t,n,i=e[p];null==e||e.removeChild(null===(t=null===(o=null==i?void 0:i.vm)||void 0===o?void 0:o.$el)||void 0===t?void 0:t.parentNode),null===(n=null==i?void 0:i.instance)||void 0===n||n.unmount(),e[p]=null}},f=(0,n.withInstallProps)(s,{setDefaultIndicator:d,BkLoadingMode:e,BkLoadingSize:o},!0,{name:"loading",directive:v});const m=f})(),r})()));
|
package/lib/loading/loading.d.ts
CHANGED
@@ -61,7 +61,7 @@ export declare const loadingTypes: {
|
|
61
61
|
default: boolean;
|
62
62
|
};
|
63
63
|
};
|
64
|
-
export
|
64
|
+
export type LoadingTypes = ExtractPropTypes<typeof loadingTypes>;
|
65
65
|
declare const _default: import("vue").DefineComponent<{
|
66
66
|
indicator: {
|
67
67
|
type: FunctionConstructor;
|
@@ -112,7 +112,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
112
112
|
} & {
|
113
113
|
default: boolean;
|
114
114
|
};
|
115
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
115
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
116
116
|
indicator: {
|
117
117
|
type: FunctionConstructor;
|
118
118
|
};
|
@@ -172,5 +172,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
172
172
|
opacity: number;
|
173
173
|
loading: boolean;
|
174
174
|
isDirective: boolean;
|
175
|
-
}>;
|
175
|
+
}, {}>;
|
176
176
|
export default _default;
|
package/lib/locale/lang/en.d.ts
CHANGED
package/lib/menu/index.d.ts
CHANGED
@@ -5,30 +5,61 @@ declare const BkMenu: {
|
|
5
5
|
new (...args: any[]): {
|
6
6
|
$: import("vue").ComponentInternalInstance;
|
7
7
|
$data: {};
|
8
|
-
$props:
|
9
|
-
mode
|
10
|
-
collapse
|
11
|
-
uniqueOpen
|
12
|
-
|
13
|
-
|
14
|
-
collapse: BooleanConstructor;
|
15
|
-
openedKeys: {
|
16
|
-
type: import("vue").PropType<string[]>;
|
17
|
-
};
|
18
|
-
mode: {
|
19
|
-
type: import("vue").PropType<"vertical">;
|
20
|
-
default: string;
|
21
|
-
};
|
22
|
-
uniqueOpen: {
|
23
|
-
type: BooleanConstructor;
|
24
|
-
default: boolean;
|
25
|
-
};
|
26
|
-
}>> & {
|
8
|
+
$props: {
|
9
|
+
mode?: "vertical";
|
10
|
+
collapse?: boolean;
|
11
|
+
uniqueOpen?: boolean;
|
12
|
+
class?: unknown;
|
13
|
+
style?: unknown;
|
27
14
|
onClick?: (...args: any[]) => any;
|
15
|
+
key?: string | number | symbol;
|
16
|
+
ref?: import("vue").VNodeRef;
|
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)[];
|
28
57
|
"onUpdate:activeKey"?: (...args: any[]) => any;
|
29
58
|
"onUpdate:openKeys"?: (...args: any[]) => any;
|
30
59
|
onOpenChange?: (...args: any[]) => any;
|
31
|
-
|
60
|
+
readonly activeKey?: string;
|
61
|
+
readonly openedKeys?: string[];
|
62
|
+
};
|
32
63
|
$attrs: {
|
33
64
|
[x: string]: unknown;
|
34
65
|
};
|
@@ -36,10 +67,10 @@ declare const BkMenu: {
|
|
36
67
|
[x: string]: unknown;
|
37
68
|
};
|
38
69
|
$slots: Readonly<{
|
39
|
-
[name: string]: import("vue").Slot
|
70
|
+
[name: string]: import("vue").Slot<any>;
|
40
71
|
}>;
|
41
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
42
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
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, {}>, {}, {}>;
|
43
74
|
$emit: (event: "click" | "update:activeKey" | "update:openKeys" | "openChange", ...args: any[]) => void;
|
44
75
|
$el: any;
|
45
76
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
@@ -65,7 +96,7 @@ declare const BkMenu: {
|
|
65
96
|
mode: "vertical";
|
66
97
|
collapse: boolean;
|
67
98
|
uniqueOpen: boolean;
|
68
|
-
}> & {
|
99
|
+
}, {}, string, {}> & {
|
69
100
|
beforeCreate?: (() => void) | (() => void)[];
|
70
101
|
created?: (() => void) | (() => void)[];
|
71
102
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -80,11 +111,11 @@ declare const BkMenu: {
|
|
80
111
|
unmounted?: (() => void) | (() => void)[];
|
81
112
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
82
113
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
83
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
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)[];
|
84
115
|
};
|
85
116
|
$forceUpdate: () => void;
|
86
117
|
$nextTick: typeof import("vue").nextTick;
|
87
|
-
$watch
|
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;
|
88
119
|
} & Readonly<import("vue").ExtractPropTypes<{
|
89
120
|
activeKey: StringConstructor;
|
90
121
|
collapse: BooleanConstructor;
|
@@ -104,7 +135,7 @@ declare const BkMenu: {
|
|
104
135
|
"onUpdate:activeKey"?: (...args: any[]) => any;
|
105
136
|
"onUpdate:openKeys"?: (...args: any[]) => any;
|
106
137
|
onOpenChange?: (...args: any[]) => any;
|
107
|
-
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} &
|
138
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
108
139
|
__isFragment?: never;
|
109
140
|
__isTeleport?: never;
|
110
141
|
__isSuspense?: never;
|
@@ -131,7 +162,7 @@ declare const BkMenu: {
|
|
131
162
|
mode: "vertical";
|
132
163
|
collapse: boolean;
|
133
164
|
uniqueOpen: boolean;
|
134
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
165
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
|
135
166
|
Item: import("vue").DefineComponent<{
|
136
167
|
needIcon: {
|
137
168
|
type: BooleanConstructor;
|
@@ -146,7 +177,10 @@ declare const BkMenu: {
|
|
146
177
|
onClick?: (...args: any[]) => any;
|
147
178
|
}, {
|
148
179
|
needIcon: boolean;
|
149
|
-
}
|
180
|
+
}, import("vue").SlotsType<{
|
181
|
+
default?: () => HTMLElement;
|
182
|
+
icon?: () => HTMLElement;
|
183
|
+
}>>;
|
150
184
|
Submenu: import("vue").DefineComponent<{
|
151
185
|
title: {
|
152
186
|
type: StringConstructor;
|
@@ -161,20 +195,23 @@ declare const BkMenu: {
|
|
161
195
|
onCollapse?: (...args: any[]) => any;
|
162
196
|
}, {
|
163
197
|
title: string;
|
164
|
-
}
|
198
|
+
}, import("vue").SlotsType<{
|
199
|
+
default?: () => HTMLElement;
|
200
|
+
icon?: () => HTMLElement;
|
201
|
+
}>>;
|
165
202
|
Group: import("vue").DefineComponent<{
|
166
203
|
name: {
|
167
204
|
type: StringConstructor;
|
168
205
|
default: string;
|
169
206
|
};
|
170
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
207
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
171
208
|
name: {
|
172
209
|
type: StringConstructor;
|
173
210
|
default: string;
|
174
211
|
};
|
175
212
|
}>>, {
|
176
213
|
name: string;
|
177
|
-
}>;
|
214
|
+
}, {}>;
|
178
215
|
}>;
|
179
216
|
export default BkMenu;
|
180
217
|
export { BkMenu, Item as BkMenuItem, Submenu as BkSubmenu, Group as BkMenuGroup, };
|
package/lib/menu/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/")):t(e["../shared"],e.vue,e["../icon/"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{"use strict";var o={7685:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{BkMenu:()=>x,BkMenuGroup:()=>
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/")):t(e["../shared"],e.vue,e["../icon/"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{"use strict";var o={7685:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{a.r(l),a.d(l,{BkMenu:()=>x,BkMenuGroup:()=>m,BkMenuItem:()=>g,BkSubmenu:()=>S,default:()=>w});var e=a(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function o(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r=a(748),i=Symbol("MENU_PROVIDER_KEY"),u=Symbol("MENU_PROVIDER_KEY_PATH"),c=function(){return(0,r.inject)(i)},s=function(){var e,t=(0,r.getCurrentInstance)(),n=t.parent?t.parent.provides:null===(e=t.vnode.appContext)||void 0===e?void 0:e.provides;return n&&u in n?(0,r.inject)(u):{parentInfo:void 0,parentKeys:(0,r.ref)([])}},v=function(e){return(e||"").split(" ").filter((function(e){return!!e.trim()}))};function d(e,t){if(e&&t){var n=v(t),r=e.getAttribute("class")||"";if(e.classList){var a;(a=e.classList).remove.apply(a,o(n))}else{n.forEach((function(e){r=r.replace(" ".concat(e," ")," ")}));var l=v(r).join(" ");e.setAttribute("class",l)}}}function p(e,t){if(e){var n,r=e.getAttribute("class")||"",a=v(r),l=(t||"").split(" ").filter((function(e){return!a.includes(e)&&!!e.trim()}));e.classList?(n=e.classList).add.apply(n,o(l)):(r+=" ".concat(l.join(" ")),e.setAttribute("class",r))}}var f={activeKey:String,collapse:Boolean,openedKeys:{type:Array},mode:{type:String,default:"vertical"},uniqueOpen:{type:Boolean,default:!0}};const y=(0,r.defineComponent)({name:"Menu",props:f,emits:["update:activeKey","update:openKeys","click","openChange"],setup:function(e,n){var a,l=n.slots,u=n.emit,c=n.expose,s=(0,r.ref)(""),v=(0,r.ref)([]),d=(0,r.ref)({}),p=(0,r.computed)((function(){return e.mode})),f=(0,r.ref)(e.collapse),y=(0,r.ref)([]);return(0,r.watchEffect)((function(){void 0!==e.activeKey&&(s.value=e.activeKey)})),(0,r.watch)((function(){return e.collapse}),(function(){f.value=e.collapse;var t=o(y.value),n=o(v.value);v.value=f.value?[]:t,y.value=f.value?n:[]}),{immediate:!0}),(0,r.watch)((function(){return e.openedKeys}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.value;v.value=e}),{immediate:!0}),a={activeKey:s,menuStore:d,registerMenuInfo:function(e,n){d.value=Object.assign(Object.assign({},d.value),function(e,n,o){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,"string");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}({},e,n))},unregisterMenuInfo:function(e){delete d.value[e],d.value=Object.assign({},d.value)},mode:p.value,openedKeys:v,collapse:f,handleOpenChange:function(t,n){n?e.uniqueOpen?v.value=[t]:v.value.push(t):v.value=v.value.filter((function(e){return e!==t})),u("openChange",n,d.value[t]),u("update:openKeys",o(v.value))},handleActiveChange:function(e){s.value=e,u("click",d.value[e]),u("update:activeKey",e,d.value[e])}},(0,r.provide)(i,a),c({activeKey:s,openedKeys:v,menuStore:d}),function(){var e;return(0,r.createVNode)("div",{class:{"bk-menu":!0,"is-collapse":f.value}},[null===(e=l.default)||void 0===e?void 0:e.call(l)])}}}),m=(0,r.defineComponent)({name:"MenuGroup",props:{name:{type:String,default:""}},setup:function(e,t){var n=t.slots;return function(){var t;return(0,r.createVNode)("div",{class:"bk-menu-group"},[(0,r.createVNode)("div",{class:"group-name"},[e.name]),(0,r.createVNode)("ul",{class:"group-wrap"},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),g=(0,r.defineComponent)({name:"MenuItem",props:{needIcon:{type:Boolean,default:!0}},emits:["click"],slots:Object,setup:function(e,t){var n,o,a=t.slots,l=t.emit,i=c(),u=i.registerMenuInfo,v=i.unregisterMenuInfo,d=i.activeKey,p=i.handleActiveChange,f=(0,r.getCurrentInstance)(),y=s().parentInfo,m=(null===(o=null===(n=f.vnode.key)||void 0===n?void 0:n.toString)||void 0===o?void 0:o.call(n))||String(f.uid),g=(0,r.computed)((function(){return d.value===m})),h=(0,r.computed)((function(){return e.needIcon}));u(m,{key:m,parentKey:null==y?void 0:y.key});var b=function(e){p(m),l("click",e)};return(0,r.onBeforeUnmount)((function(){return v(m)})),function(){var e,t;return(0,r.createVNode)("li",{class:{"bk-menu-item":!0,"is-active":g.value},onClick:b},[h.value&&(0,r.createVNode)("span",{class:"item-icon"},[(null===(e=null==a?void 0:a.icon)||void 0===e?void 0:e.call(a))||(0,r.createVNode)("i",{class:"default-icon"},null)]),(0,r.createVNode)("span",{class:"item-content"},[null===(t=a.default)||void 0===t?void 0:t.call(a)])])}}});var h=a(7685),b={title:{type:String,default:"title"}};const S=(0,r.defineComponent)({name:"Submenu",props:b,emits:["collapse"],slots:Object,setup:function(e,t){var n,a,l=t.slots,i=t.emit,v=c(),f=v.registerMenuInfo,y=v.unregisterMenuInfo,m=v.openedKeys,g=v.handleOpenChange,b=v.collapse,S=v.activeKey,x=v.menuStore,w=s().parentInfo,I=(0,r.getCurrentInstance)(),K=(null===(a=null===(n=I.vnode.key)||void 0===n?void 0:n.toString)||void 0===a?void 0:a.call(n))||String(I.uid),j=(0,r.ref)({css:!0,onBeforeEnter:function(e){p(e,"collapse-transition"),e.dataset||(e.dataset={}),e.style.height="0px",e.style.maxHeight="0px"},onEnter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px")):(e.style.height="0px",e.style.maxHeight="0px"),e.style.overflow="hidden"},onAfterEnter:function(e){e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,d(e,"collapse-transition")},onBeforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldOverflow=e.style.overflow,e.style.height="".concat(e.scrollHeight,"px"),e.style.maxHeight="".concat(e.scrollHeight,"px"),e.style.overflow="hidden"},onLeave:function(e){0!==e.scrollHeight&&(p(e,"collapse-transition"),e.style.transitionProperty="height",e.style.height="0px",e.style.maxHeight="0px")},onAfterLeave:function(e){d(e,"collapse-transition"),e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow}}),O=(0,r.computed)((function(){return m.value.includes(K)})),k=(0,r.computed)((function(){var e,t,n=null===(t=null===(e=x.value)||void 0===e?void 0:e[S.value])||void 0===t?void 0:t.parentKey;return b.value&&n===K&&O}));!function(e){var t=s(),n=t.parentKeys,a=t.parentInfo,l=(0,r.computed)((function(){return[].concat(o(n.value),[e])}));(0,r.provide)(u,{parentInfo:{key:e,parentKey:null==a?void 0:a.key},parentKeys:l})}(K),f(K,{key:K,parentKey:null==w?void 0:w.key}),(0,r.onBeforeUnmount)((function(){return y(K)}));var A=function(){g(K,!O.value),i("collapse",!O.value,I)};return function(){var t,n;return(0,r.createVNode)("li",{class:{"bk-menu-submenu":!0,"is-opened":O.value}},[(0,r.createVNode)("div",{class:{"submenu-header":!0,"is-collapse":k.value},onClick:A},[(0,r.createVNode)("span",{class:"submenu-header-icon"},[(null===(t=l.icon)||void 0===t?void 0:t.call(l))||(0,r.createVNode)(h.TreeApplicationShape,{class:"menu-icon"},null)]),(0,r.createVNode)("span",{class:"submenu-header-content"},[e.title]),(0,r.createVNode)(h.AngleDown,{class:{"submenu-header-collapse":!0,"is-collapse":m.value.includes(K)}},null)]),(0,r.createVNode)(r.Transition,j.value,{default:function(){return[(0,r.withDirectives)((0,r.createVNode)("ul",{class:"submenu-list"},[null===(n=l.default)||void 0===n?void 0:n.call(l)]),[[r.vShow,O.value]])]}})])}}});var x=(0,e.withInstallProps)(y,{Item:g,Submenu:S,Group:m});const w=x})(),l})()));
|
package/lib/menu/menu-group.d.ts
CHANGED
@@ -3,12 +3,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
type: StringConstructor;
|
4
4
|
default: string;
|
5
5
|
};
|
6
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
6
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
7
7
|
name: {
|
8
8
|
type: StringConstructor;
|
9
9
|
default: string;
|
10
10
|
};
|
11
11
|
}>>, {
|
12
12
|
name: string;
|
13
|
-
}>;
|
13
|
+
}, {}>;
|
14
14
|
export default _default;
|
package/lib/menu/menu-item.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SlotsType } from 'vue';
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
2
3
|
needIcon: {
|
3
4
|
type: BooleanConstructor;
|
@@ -12,5 +13,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
13
|
onClick?: (...args: any[]) => any;
|
13
14
|
}, {
|
14
15
|
needIcon: boolean;
|
15
|
-
}
|
16
|
+
}, SlotsType<{
|
17
|
+
default?: () => HTMLElement;
|
18
|
+
icon?: () => HTMLElement;
|
19
|
+
}>>;
|
16
20
|
export default _default;
|
package/lib/menu/menu.d.ts
CHANGED
package/lib/menu/submenu.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SlotsType } from 'vue';
|
1
2
|
export declare const subMenuProps: {
|
2
3
|
title: {
|
3
4
|
type: StringConstructor;
|
@@ -18,5 +19,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
18
19
|
onCollapse?: (...args: any[]) => any;
|
19
20
|
}, {
|
20
21
|
title: string;
|
21
|
-
}
|
22
|
+
}, SlotsType<{
|
23
|
+
default?: () => HTMLElement;
|
24
|
+
icon?: () => HTMLElement;
|
25
|
+
}>>;
|
22
26
|
export default _default;
|
package/lib/menu/utils.d.ts
CHANGED