@wapri/element-pro 3.0.0
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/LICENSE +21 -0
- package/dist/CheckCard/Group.vue.d.ts +54 -0
- package/dist/CheckCard/context.d.ts +12 -0
- package/dist/CheckCard/index.d.ts +443 -0
- package/dist/CheckCard/index.vue.d.ts +53 -0
- package/dist/CheckCard/selection.d.ts +4 -0
- package/dist/CheckCard/types.d.ts +29 -0
- package/dist/ConfigProvider/context.d.ts +11 -0
- package/dist/ConfigProvider/index.d.ts +50 -0
- package/dist/ConfigProvider/index.vue.d.ts +28 -0
- package/dist/CropperUpload/CropperDialog.vue.d.ts +23 -0
- package/dist/CropperUpload/index.d.ts +241 -0
- package/dist/CropperUpload/index.vue.d.ts +81 -0
- package/dist/CropperUpload/types.d.ts +137 -0
- package/dist/CropperUpload/utils.d.ts +42 -0
- package/dist/DateQuickSelect/index.d.ts +65 -0
- package/dist/DateQuickSelect/index.vue.d.ts +55 -0
- package/dist/DateQuickSelect/types.d.ts +19 -0
- package/dist/DateQuickSelect/utils.d.ts +9 -0
- package/dist/DrawerForm/index.d.ts +201 -0
- package/dist/DrawerForm/index.vue.d.ts +76 -0
- package/dist/Ellipsis/index.d.ts +35 -0
- package/dist/Ellipsis/types.d.ts +23 -0
- package/dist/Layout/components/SidebarTrigger.vue.d.ts +21 -0
- package/dist/Layout/index.d.ts +147 -0
- package/dist/Layout/index.vue.d.ts +65 -0
- package/dist/Layout/types.d.ts +24 -0
- package/dist/MainContent/index.d.ts +115 -0
- package/dist/MainContent/index.vue.d.ts +51 -0
- package/dist/MainContent/types.d.ts +17 -0
- package/dist/ModalForm/index.d.ts +201 -0
- package/dist/ModalForm/index.vue.d.ts +76 -0
- package/dist/ProTable/components/ProTablePagination.vue.d.ts +43 -0
- package/dist/ProTable/components/ProTableSearchForm.vue.d.ts +34 -0
- package/dist/ProTable/components/ProTableSelectedFilters.vue.d.ts +21 -0
- package/dist/ProTable/components/ProTableSelectionActions.vue.d.ts +36 -0
- package/dist/ProTable/components/ProTableToolbar.vue.d.ts +47 -0
- package/dist/ProTable/composables/useProTableData.d.ts +34 -0
- package/dist/ProTable/composables/useProTableSelection.d.ts +10 -0
- package/dist/ProTable/composables/useStickyTable.d.ts +18 -0
- package/dist/ProTable/index.d.ts +412 -0
- package/dist/ProTable/index.vue.d.ts +54 -0
- package/dist/ProTable/types.d.ts +265 -0
- package/dist/ProTable/utils.d.ts +25 -0
- package/dist/ShareButton/index.d.ts +157 -0
- package/dist/ShareButton/index.vue.d.ts +60 -0
- package/dist/ShareButton/steps.d.ts +13 -0
- package/dist/ShareButton/types.d.ts +34 -0
- package/dist/Sidebar/components/SidebarGroup.vue.d.ts +53 -0
- package/dist/Sidebar/components/SidebarIcon.vue.d.ts +23 -0
- package/dist/Sidebar/components/SidebarItem.vue.d.ts +33 -0
- package/dist/Sidebar/components/SidebarItemContent.vue.d.ts +27 -0
- package/dist/Sidebar/components/SidebarLink.vue.d.ts +54 -0
- package/dist/Sidebar/components/SidebarLogo.vue.d.ts +48 -0
- package/dist/Sidebar/composables/useActiveMenuScroll.d.ts +18 -0
- package/dist/Sidebar/context.d.ts +10 -0
- package/dist/Sidebar/index.d.ts +350 -0
- package/dist/Sidebar/index.vue.d.ts +72 -0
- package/dist/Sidebar/types.d.ts +154 -0
- package/dist/Sidebar/utils.d.ts +16 -0
- package/dist/SvgIcon/iconfont.d.ts +11 -0
- package/dist/SvgIcon/index.d.ts +35 -0
- package/dist/SvgIcon/index.vue.d.ts +38 -0
- package/dist/TagSelector/index.d.ts +51 -0
- package/dist/TagSelector/index.vue.d.ts +49 -0
- package/dist/TagSelector/types.d.ts +6 -0
- package/dist/VH100/index.d.ts +40 -0
- package/dist/VH100/index.vue.d.ts +26 -0
- package/dist/constant/index.d.ts +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.mjs +3985 -0
- package/dist/shared/overlayForm/types.d.ts +25 -0
- package/dist/shared/overlayForm/useOverlayForm.d.ts +18 -0
- package/dist/style.css +1 -0
- package/dist/utils/install.d.ts +10 -0
- package/package.json +39 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SidebarIconRender } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/** 图标名称 */
|
|
5
|
+
icon?: string;
|
|
6
|
+
/** 菜单标题 */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** 自定义图标渲染函数 */
|
|
9
|
+
renderIcon?: SidebarIconRender;
|
|
10
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
/** 图标名称 */
|
|
12
|
+
icon?: string;
|
|
13
|
+
/** 菜单标题 */
|
|
14
|
+
title?: string;
|
|
15
|
+
/** 自定义图标渲染函数 */
|
|
16
|
+
renderIcon?: SidebarIconRender;
|
|
17
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { SidebarLinkTarget } from '../types';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
/** 跳转目标 */
|
|
9
|
+
to: SidebarLinkTarget;
|
|
10
|
+
/** 是否渲染为外链,不传时按 `to` 自动判断 */
|
|
11
|
+
external?: boolean;
|
|
12
|
+
/** 内部链接使用的组件,默认 `router-link` */
|
|
13
|
+
linkComponent?: string | Component;
|
|
14
|
+
}>, {
|
|
15
|
+
external: undefined;
|
|
16
|
+
linkComponent: string;
|
|
17
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
/** 跳转目标 */
|
|
19
|
+
to: SidebarLinkTarget;
|
|
20
|
+
/** 是否渲染为外链,不传时按 `to` 自动判断 */
|
|
21
|
+
external?: boolean;
|
|
22
|
+
/** 内部链接使用的组件,默认 `router-link` */
|
|
23
|
+
linkComponent?: string | Component;
|
|
24
|
+
}>, {
|
|
25
|
+
external: undefined;
|
|
26
|
+
linkComponent: string;
|
|
27
|
+
}>>> & Readonly<{}>, {
|
|
28
|
+
external: boolean;
|
|
29
|
+
linkComponent: string | Component;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SidebarLogoProps } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SidebarLogoProps>, {
|
|
4
|
+
collapse: boolean;
|
|
5
|
+
grouped: boolean;
|
|
6
|
+
logo: string;
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle: string;
|
|
9
|
+
portal: string;
|
|
10
|
+
to: string;
|
|
11
|
+
linkComponent: string;
|
|
12
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SidebarLogoProps>, {
|
|
13
|
+
collapse: boolean;
|
|
14
|
+
grouped: boolean;
|
|
15
|
+
logo: string;
|
|
16
|
+
title: string;
|
|
17
|
+
subtitle: string;
|
|
18
|
+
portal: string;
|
|
19
|
+
to: string;
|
|
20
|
+
linkComponent: string;
|
|
21
|
+
}>>> & Readonly<{}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
grouped: boolean;
|
|
24
|
+
collapse: boolean;
|
|
25
|
+
to: import('../types').SidebarLinkTarget;
|
|
26
|
+
linkComponent: string | import('vue').Component;
|
|
27
|
+
logo: string;
|
|
28
|
+
subtitle: string;
|
|
29
|
+
portal: import('../types').SidebarPortal;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface UseActiveMenuScrollOptions {
|
|
4
|
+
/** el-scrollbar 组件实例,`wrapRef` 在运行时可能已被 proxyRefs 解包 */
|
|
5
|
+
scrollbarRef: Ref<{
|
|
6
|
+
wrapRef?: unknown;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
/** 当前激活菜单路径 */
|
|
9
|
+
activeMenu: Ref<string>;
|
|
10
|
+
/** 侧栏菜单数量,变化时重新对齐 */
|
|
11
|
+
menuCount: Ref<number>;
|
|
12
|
+
/** 侧栏是否折叠 */
|
|
13
|
+
collapse: Ref<boolean>;
|
|
14
|
+
}
|
|
15
|
+
/** 将激活菜单滚动到可视区域,并在切换菜单、折叠侧栏时保持对齐 */
|
|
16
|
+
export declare function useActiveMenuScroll(options: UseActiveMenuScrollOptions): {
|
|
17
|
+
alignActiveMenu: () => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComputedRef, CSSProperties, InjectionKey } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 侧栏主题变量的样式对象。
|
|
5
|
+
* 折叠态浮层(分组浮层、经典子菜单浮层)会被 teleport 到 body,脱离侧栏根节点,
|
|
6
|
+
* 需要把同一份 CSS 变量挂到浮层根节点上,浮层内的配色才能与侧栏保持一致。
|
|
7
|
+
*/
|
|
8
|
+
export declare const sidebarThemeStyleKey: InjectionKey<ComputedRef<CSSProperties>>;
|
|
9
|
+
/** 取侧栏主题变量样式对象,用于浮层根节点;不在 Sidebar 内使用时返回 undefined */
|
|
10
|
+
export declare function useSidebarThemeStyle(): ComputedRef<CSSProperties> | undefined;
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
export declare const Sidebar: import('../utils/install').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
title: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
mode: {
|
|
8
|
+
type: import('vue').PropType<import('./types').SidebarMode>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
collapse: {
|
|
12
|
+
type: import('vue').PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
renderIcon: {
|
|
16
|
+
type: import('vue').PropType<import('./types').SidebarIconRender>;
|
|
17
|
+
};
|
|
18
|
+
linkComponent: {
|
|
19
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
activeMenu: {
|
|
23
|
+
type: import('vue').PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
logo: {
|
|
27
|
+
type: import('vue').PropType<string>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
subtitle: {
|
|
31
|
+
type: import('vue').PropType<string>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
portal: {
|
|
35
|
+
type: import('vue').PropType<import('./types').SidebarPortal>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
menus: {
|
|
39
|
+
type: import('vue').PropType<import('./types').SidebarMenuItem[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
theme: {
|
|
43
|
+
type: import('vue').PropType<import('./types').SidebarTheme>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
variables: {
|
|
47
|
+
type: import('vue').PropType<import('./types').SidebarVariables>;
|
|
48
|
+
};
|
|
49
|
+
showLogo: {
|
|
50
|
+
type: import('vue').PropType<boolean>;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
logoTo: {
|
|
54
|
+
type: import('vue').PropType<import('./types').SidebarLinkTarget>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
58
|
+
title: string;
|
|
59
|
+
mode: import('./types').SidebarMode;
|
|
60
|
+
collapse: boolean;
|
|
61
|
+
linkComponent: string | import('vue').Component;
|
|
62
|
+
activeMenu: string;
|
|
63
|
+
logo: string;
|
|
64
|
+
subtitle: string;
|
|
65
|
+
portal: import('./types').SidebarPortal;
|
|
66
|
+
menus: import('./types').SidebarMenuItem[];
|
|
67
|
+
theme: import('./types').SidebarTheme;
|
|
68
|
+
showLogo: boolean;
|
|
69
|
+
logoTo: import('./types').SidebarLinkTarget;
|
|
70
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
71
|
+
P: {};
|
|
72
|
+
B: {};
|
|
73
|
+
D: {};
|
|
74
|
+
C: {};
|
|
75
|
+
M: {};
|
|
76
|
+
Defaults: {};
|
|
77
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
78
|
+
title: {
|
|
79
|
+
type: import('vue').PropType<string>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
mode: {
|
|
83
|
+
type: import('vue').PropType<import('./types').SidebarMode>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
collapse: {
|
|
87
|
+
type: import('vue').PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
renderIcon: {
|
|
91
|
+
type: import('vue').PropType<import('./types').SidebarIconRender>;
|
|
92
|
+
};
|
|
93
|
+
linkComponent: {
|
|
94
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
activeMenu: {
|
|
98
|
+
type: import('vue').PropType<string>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
logo: {
|
|
102
|
+
type: import('vue').PropType<string>;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
subtitle: {
|
|
106
|
+
type: import('vue').PropType<string>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
portal: {
|
|
110
|
+
type: import('vue').PropType<import('./types').SidebarPortal>;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
menus: {
|
|
114
|
+
type: import('vue').PropType<import('./types').SidebarMenuItem[]>;
|
|
115
|
+
default: () => never[];
|
|
116
|
+
};
|
|
117
|
+
theme: {
|
|
118
|
+
type: import('vue').PropType<import('./types').SidebarTheme>;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
variables: {
|
|
122
|
+
type: import('vue').PropType<import('./types').SidebarVariables>;
|
|
123
|
+
};
|
|
124
|
+
showLogo: {
|
|
125
|
+
type: import('vue').PropType<boolean>;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
logoTo: {
|
|
129
|
+
type: import('vue').PropType<import('./types').SidebarLinkTarget>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
133
|
+
title: string;
|
|
134
|
+
mode: import('./types').SidebarMode;
|
|
135
|
+
collapse: boolean;
|
|
136
|
+
linkComponent: string | import('vue').Component;
|
|
137
|
+
activeMenu: string;
|
|
138
|
+
logo: string;
|
|
139
|
+
subtitle: string;
|
|
140
|
+
portal: import('./types').SidebarPortal;
|
|
141
|
+
menus: import('./types').SidebarMenuItem[];
|
|
142
|
+
theme: import('./types').SidebarTheme;
|
|
143
|
+
showLogo: boolean;
|
|
144
|
+
logoTo: import('./types').SidebarLinkTarget;
|
|
145
|
+
}>;
|
|
146
|
+
__isFragment?: never;
|
|
147
|
+
__isTeleport?: never;
|
|
148
|
+
__isSuspense?: never;
|
|
149
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
150
|
+
title: {
|
|
151
|
+
type: import('vue').PropType<string>;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
154
|
+
mode: {
|
|
155
|
+
type: import('vue').PropType<import('./types').SidebarMode>;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
collapse: {
|
|
159
|
+
type: import('vue').PropType<boolean>;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
renderIcon: {
|
|
163
|
+
type: import('vue').PropType<import('./types').SidebarIconRender>;
|
|
164
|
+
};
|
|
165
|
+
linkComponent: {
|
|
166
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
activeMenu: {
|
|
170
|
+
type: import('vue').PropType<string>;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
logo: {
|
|
174
|
+
type: import('vue').PropType<string>;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
subtitle: {
|
|
178
|
+
type: import('vue').PropType<string>;
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
181
|
+
portal: {
|
|
182
|
+
type: import('vue').PropType<import('./types').SidebarPortal>;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
menus: {
|
|
186
|
+
type: import('vue').PropType<import('./types').SidebarMenuItem[]>;
|
|
187
|
+
default: () => never[];
|
|
188
|
+
};
|
|
189
|
+
theme: {
|
|
190
|
+
type: import('vue').PropType<import('./types').SidebarTheme>;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
variables: {
|
|
194
|
+
type: import('vue').PropType<import('./types').SidebarVariables>;
|
|
195
|
+
};
|
|
196
|
+
showLogo: {
|
|
197
|
+
type: import('vue').PropType<boolean>;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
logoTo: {
|
|
201
|
+
type: import('vue').PropType<import('./types').SidebarLinkTarget>;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
205
|
+
title: string;
|
|
206
|
+
mode: import('./types').SidebarMode;
|
|
207
|
+
collapse: boolean;
|
|
208
|
+
linkComponent: string | import('vue').Component;
|
|
209
|
+
activeMenu: string;
|
|
210
|
+
logo: string;
|
|
211
|
+
subtitle: string;
|
|
212
|
+
portal: import('./types').SidebarPortal;
|
|
213
|
+
menus: import('./types').SidebarMenuItem[];
|
|
214
|
+
theme: import('./types').SidebarTheme;
|
|
215
|
+
showLogo: boolean;
|
|
216
|
+
logoTo: import('./types').SidebarLinkTarget;
|
|
217
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
218
|
+
$slots: {
|
|
219
|
+
logo?(_: {
|
|
220
|
+
collapse: boolean;
|
|
221
|
+
grouped: boolean;
|
|
222
|
+
}): any;
|
|
223
|
+
};
|
|
224
|
+
})> & Record<string, unknown>;
|
|
225
|
+
/** 经典 el-menu 树形导航的递归菜单项,可在自定义 el-menu 布局中复用 */
|
|
226
|
+
export declare const SidebarItem: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
227
|
+
renderIcon: {
|
|
228
|
+
type: import('vue').PropType<import('./types').SidebarIconRender>;
|
|
229
|
+
};
|
|
230
|
+
linkComponent: {
|
|
231
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
232
|
+
default: string;
|
|
233
|
+
};
|
|
234
|
+
item: {
|
|
235
|
+
type: import('vue').PropType<import('./types').SidebarMenuItem>;
|
|
236
|
+
required: true;
|
|
237
|
+
};
|
|
238
|
+
isNest: {
|
|
239
|
+
type: import('vue').PropType<boolean>;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
basePath: {
|
|
243
|
+
type: import('vue').PropType<string>;
|
|
244
|
+
default: string;
|
|
245
|
+
};
|
|
246
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
247
|
+
renderIcon: {
|
|
248
|
+
type: import('vue').PropType<import('./types').SidebarIconRender>;
|
|
249
|
+
};
|
|
250
|
+
linkComponent: {
|
|
251
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
252
|
+
default: string;
|
|
253
|
+
};
|
|
254
|
+
item: {
|
|
255
|
+
type: import('vue').PropType<import('./types').SidebarMenuItem>;
|
|
256
|
+
required: true;
|
|
257
|
+
};
|
|
258
|
+
isNest: {
|
|
259
|
+
type: import('vue').PropType<boolean>;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
basePath: {
|
|
263
|
+
type: import('vue').PropType<string>;
|
|
264
|
+
default: string;
|
|
265
|
+
};
|
|
266
|
+
}>> & Readonly<{}>, {
|
|
267
|
+
linkComponent: string | import('vue').Component;
|
|
268
|
+
isNest: boolean;
|
|
269
|
+
basePath: string;
|
|
270
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, unknown>;
|
|
271
|
+
/** 侧栏品牌区,可在顶部导航等自定义布局中复用 */
|
|
272
|
+
export declare const SidebarLogo: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
273
|
+
title: {
|
|
274
|
+
type: import('vue').PropType<string>;
|
|
275
|
+
default: string;
|
|
276
|
+
};
|
|
277
|
+
grouped: {
|
|
278
|
+
type: import('vue').PropType<boolean>;
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
281
|
+
collapse: {
|
|
282
|
+
type: import('vue').PropType<boolean>;
|
|
283
|
+
default: boolean;
|
|
284
|
+
};
|
|
285
|
+
to: {
|
|
286
|
+
type: import('vue').PropType<import('./types').SidebarLinkTarget>;
|
|
287
|
+
default: string;
|
|
288
|
+
};
|
|
289
|
+
linkComponent: {
|
|
290
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
291
|
+
default: string;
|
|
292
|
+
};
|
|
293
|
+
logo: {
|
|
294
|
+
type: import('vue').PropType<string>;
|
|
295
|
+
default: string;
|
|
296
|
+
};
|
|
297
|
+
subtitle: {
|
|
298
|
+
type: import('vue').PropType<string>;
|
|
299
|
+
default: string;
|
|
300
|
+
};
|
|
301
|
+
portal: {
|
|
302
|
+
type: import('vue').PropType<import('./types').SidebarPortal>;
|
|
303
|
+
default: string;
|
|
304
|
+
};
|
|
305
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
306
|
+
title: {
|
|
307
|
+
type: import('vue').PropType<string>;
|
|
308
|
+
default: string;
|
|
309
|
+
};
|
|
310
|
+
grouped: {
|
|
311
|
+
type: import('vue').PropType<boolean>;
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
314
|
+
collapse: {
|
|
315
|
+
type: import('vue').PropType<boolean>;
|
|
316
|
+
default: boolean;
|
|
317
|
+
};
|
|
318
|
+
to: {
|
|
319
|
+
type: import('vue').PropType<import('./types').SidebarLinkTarget>;
|
|
320
|
+
default: string;
|
|
321
|
+
};
|
|
322
|
+
linkComponent: {
|
|
323
|
+
type: import('vue').PropType<string | import('vue').Component>;
|
|
324
|
+
default: string;
|
|
325
|
+
};
|
|
326
|
+
logo: {
|
|
327
|
+
type: import('vue').PropType<string>;
|
|
328
|
+
default: string;
|
|
329
|
+
};
|
|
330
|
+
subtitle: {
|
|
331
|
+
type: import('vue').PropType<string>;
|
|
332
|
+
default: string;
|
|
333
|
+
};
|
|
334
|
+
portal: {
|
|
335
|
+
type: import('vue').PropType<import('./types').SidebarPortal>;
|
|
336
|
+
default: string;
|
|
337
|
+
};
|
|
338
|
+
}>> & Readonly<{}>, {
|
|
339
|
+
title: string;
|
|
340
|
+
grouped: boolean;
|
|
341
|
+
collapse: boolean;
|
|
342
|
+
to: import('./types').SidebarLinkTarget;
|
|
343
|
+
linkComponent: string | import('vue').Component;
|
|
344
|
+
logo: string;
|
|
345
|
+
subtitle: string;
|
|
346
|
+
portal: import('./types').SidebarPortal;
|
|
347
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, unknown>;
|
|
348
|
+
export type { SidebarItemProps, SidebarLogoProps } from './types';
|
|
349
|
+
export type { SidebarIconRender, SidebarLinkInfo, SidebarLinkTarget, SidebarMenuMeta, SidebarMenuItem, SidebarMode, SidebarPortal, SidebarProps, SidebarTheme, SidebarVariables, } from './types';
|
|
350
|
+
export default Sidebar;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { SidebarProps, SidebarTheme } from './types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
logo?(_: {
|
|
5
|
+
collapse: boolean;
|
|
6
|
+
grouped: boolean;
|
|
7
|
+
}): any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SidebarProps>, {
|
|
10
|
+
menus: () => never[];
|
|
11
|
+
activeMenu: string;
|
|
12
|
+
collapse: boolean;
|
|
13
|
+
mode: string;
|
|
14
|
+
theme: string;
|
|
15
|
+
showLogo: boolean;
|
|
16
|
+
logo: string;
|
|
17
|
+
title: string;
|
|
18
|
+
subtitle: string;
|
|
19
|
+
portal: string;
|
|
20
|
+
logoTo: string;
|
|
21
|
+
linkComponent: string;
|
|
22
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SidebarProps>, {
|
|
23
|
+
menus: () => never[];
|
|
24
|
+
activeMenu: string;
|
|
25
|
+
collapse: boolean;
|
|
26
|
+
mode: string;
|
|
27
|
+
theme: string;
|
|
28
|
+
showLogo: boolean;
|
|
29
|
+
logo: string;
|
|
30
|
+
title: string;
|
|
31
|
+
subtitle: string;
|
|
32
|
+
portal: string;
|
|
33
|
+
logoTo: string;
|
|
34
|
+
linkComponent: string;
|
|
35
|
+
}>>> & Readonly<{}>, {
|
|
36
|
+
title: string;
|
|
37
|
+
mode: import('./types').SidebarMode;
|
|
38
|
+
collapse: boolean;
|
|
39
|
+
linkComponent: string | import('vue').Component;
|
|
40
|
+
activeMenu: string;
|
|
41
|
+
logo: string;
|
|
42
|
+
subtitle: string;
|
|
43
|
+
portal: import('./types').SidebarPortal;
|
|
44
|
+
menus: import('./types').SidebarMenuItem[];
|
|
45
|
+
theme: SidebarTheme;
|
|
46
|
+
showLogo: boolean;
|
|
47
|
+
logoTo: import('./types').SidebarLinkTarget;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
52
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
53
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
54
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
55
|
+
} : {
|
|
56
|
+
type: import('vue').PropType<T[K]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type __VLS_WithDefaults<P, D> = {
|
|
61
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
62
|
+
default: D[K];
|
|
63
|
+
}> : P[K];
|
|
64
|
+
};
|
|
65
|
+
type __VLS_Prettify<T> = {
|
|
66
|
+
[K in keyof T]: T[K];
|
|
67
|
+
} & {};
|
|
68
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|