@dt-frames/ui 2.0.3 → 2.0.5
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/es/assets/locales/en.ts +1 -1
- package/es/components/curd/index.js +346 -331
- package/es/components/curd/src/components/Curd.d.ts +0 -8
- package/es/components/curd/src/props.d.ts +0 -4
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/index.js +27 -27
- package/es/components/drawer/src/index.d.ts +2 -3
- package/es/components/form/index.d.ts +0 -33
- package/es/components/form/index.js +72 -36
- package/es/components/form/index.less +212 -9
- package/es/components/form/src/components/FormItem.d.ts +3 -7
- package/es/components/form/src/components/formIcon.d.ts +14 -14
- package/es/components/form/src/components/formInputUseDialog.d.ts +8 -8
- package/es/components/form/src/enums/index.d.ts +1 -1
- package/es/components/form/src/index.d.ts +0 -25
- package/es/components/form/src/props.d.ts +2 -6
- package/es/components/form/src/types/form.type.d.ts +1 -1
- package/es/components/icons/index.less +5 -0
- package/es/components/modal/index.js +35 -34
- package/es/components/modal/index.less +10 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +9 -9
- package/es/components/source/hooks/useSource.d.ts +14 -0
- package/es/components/source/index.js +72 -31
- package/es/components/source/types/source.type.d.ts +5 -8
- package/es/components/table/index.js +418 -305
- package/es/components/table/index.less +62 -14
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/index.d.ts +30 -10
- package/es/components/table/src/props.d.ts +12 -4
- package/es/components/table/src/types/table.type.d.ts +4 -5
- package/es/components/tree/index.d.ts +2 -0
- package/es/components/tree/index.js +1087 -0
- package/es/components/tree/index.less +119 -0
- package/es/components/tree/src/basicProps.d.ts +146 -0
- package/es/components/tree/src/components/ContextMenu.d.ts +64 -0
- package/es/components/tree/src/components/TreeHeader.d.ts +98 -0
- package/es/components/tree/src/enums/index.d.ts +6 -0
- package/es/components/tree/src/hooks/useContextMenu.d.ts +2 -0
- package/es/components/tree/src/hooks/useTree.d.ts +14 -0
- package/es/components/tree/src/index.d.ts +6526 -0
- package/es/components/tree/src/type/menu.d.ts +33 -0
- package/es/components/tree/src/type/tree.d.ts +55 -0
- package/es/components/tree/src/utils/tree.d.ts +5 -0
- package/es/packages/ui/src/assets/locales/en.d.ts +101 -0
- package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
- package/es/packages/ui/src/assets/locales/zh.d.ts +103 -0
- package/es/packages/ui/src/components/container/index.d.ts +94 -0
- package/es/packages/ui/src/components/container/src/components/bar.d.ts +14 -0
- package/es/packages/ui/src/components/container/src/components/scroll-bar.d.ts +70 -0
- package/es/packages/ui/src/components/container/src/hooks/scroll.d.ts +10 -0
- package/es/packages/ui/src/components/container/src/scroll-container.d.ts +76 -0
- package/es/packages/ui/src/components/container/src/slot-container.d.ts +20 -0
- package/es/packages/ui/src/components/container/src/types/scroll.type.d.ts +22 -0
- package/es/packages/ui/src/components/container/src/utils/scroll.d.ts +5 -0
- package/es/packages/ui/src/global.d.ts +7 -0
- package/es/packages/ui/src/theme/index.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/content/index.d.ts +27 -0
- package/es/packages/ui/src/theme/src/components/feature/back-top.d.ts +5 -0
- package/es/packages/ui/src/theme/src/components/feature/index.d.ts +7 -0
- package/es/packages/ui/src/theme/src/components/footer/index.d.ts +31 -0
- package/es/packages/ui/src/theme/src/components/header/components/bread-crumb.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/header/components/fullscreen.d.ts +5 -0
- package/es/packages/ui/src/theme/src/components/header/components/index.d.ts +11 -0
- package/es/packages/ui/src/theme/src/components/header/components/lang-picker.d.ts +23 -0
- package/es/packages/ui/src/theme/src/components/header/components/logo.d.ts +56 -0
- package/es/packages/ui/src/theme/src/components/header/components/menu-filter.d.ts +22 -0
- package/es/packages/ui/src/theme/src/components/header/components/notify.d.ts +24 -0
- package/es/packages/ui/src/theme/src/components/header/components/setting-theme.d.ts +223 -0
- package/es/packages/ui/src/theme/src/components/header/components/size.d.ts +282 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
- package/es/packages/ui/src/theme/src/components/header/components/trigger.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/header/components/user-info.d.ts +37 -0
- package/es/packages/ui/src/theme/src/components/header/helper/change-theme.d.ts +13 -0
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
- package/es/packages/ui/src/theme/src/components/header/index.d.ts +720 -0
- package/es/packages/ui/src/theme/src/components/header/multiple-header.d.ts +806 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
- package/es/packages/ui/src/theme/src/components/sider/components/drag-bar.d.ts +14 -0
- package/es/packages/ui/src/theme/src/components/sider/components/layout-menu.d.ts +22 -0
- package/es/packages/ui/src/theme/src/components/sider/components/props.d.ts +69 -0
- package/es/packages/ui/src/theme/src/components/sider/components/sider-trigger.d.ts +17 -0
- package/es/packages/ui/src/theme/src/components/sider/helper/sider.d.ts +12 -0
- package/es/packages/ui/src/theme/src/components/sider/helper/split-menu.d.ts +10 -0
- package/es/packages/ui/src/theme/src/components/sider/index.d.ts +235 -0
- package/es/packages/ui/src/theme/src/components/sider/mix-sider.d.ts +167 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/TabContent.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
- package/es/packages/ui/src/theme/src/components/tabs/components/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
- package/es/packages/ui/src/theme/src/components/tabs/index.d.ts +63 -0
- package/es/packages/ui/src/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
- package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/packages/ui/src/theme/src/index.d.ts +1851 -0
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +23 -0
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +18 -0
- package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
- package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
- package/es/theme/index.d.ts +2 -1
- package/es/theme/index.js +898 -683
- package/es/theme/index.less +205 -0
- package/es/theme/src/components/header/components/logo.d.ts +22 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
- package/es/theme/src/components/header/index.d.ts +92 -5
- package/es/theme/src/components/header/multiple-header.d.ts +94 -7
- package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
- package/es/theme/src/components/sider/index.d.ts +169 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +168 -0
- package/es/theme/src/enums/theme.enum.d.ts +2 -1
- package/es/theme/src/hooks/useMenu.d.ts +5 -3
- package/es/theme/src/hooks/useMultifyTab.d.ts +1 -0
- package/es/theme/src/index.d.ts +356 -15
- package/es/theme/src/stores/theme.store.d.ts +3 -0
- package/es/theme/src/types/theme.type.d.ts +2 -0
- package/index.d.ts +2 -1
- package/index.js +6 -2
- package/package.json +4 -4
- package/tsconfig.json +1 -0
- package/vite.config.ts +1 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { MenuMode, MenuSplitTye } from '../../../src/enums';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
3
|
+
getMenuFixed: import("vue").ComputedRef<boolean>;
|
|
4
|
+
getSplit: import("vue").ComputedRef<boolean>;
|
|
5
|
+
getMenuHidden: import("vue").ComputedRef<boolean>;
|
|
6
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
7
|
+
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
8
|
+
getMenuTheme: import("vue").ComputedRef<import('../../../src/enums').Theme>;
|
|
9
|
+
getRealWidth: import("vue").ComputedRef<number>;
|
|
10
|
+
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
11
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
12
|
+
getCollapsedWidth: import("vue").ComputedRef<80 | 48 | 0>;
|
|
13
|
+
onBreakPointChange: (broken: boolean) => void;
|
|
14
|
+
getTriggerAttr: import("vue").ComputedRef<{
|
|
15
|
+
trigger?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
trigger: any;
|
|
18
|
+
}>;
|
|
19
|
+
getShowTrigger: import("vue").ComputedRef<boolean>;
|
|
20
|
+
dragBarRef: any;
|
|
21
|
+
sideRef: any;
|
|
22
|
+
hiddenDomStyle: import("vue").ComputedRef<{
|
|
23
|
+
width: string;
|
|
24
|
+
overflow: string;
|
|
25
|
+
flex: string;
|
|
26
|
+
maxWidth: string;
|
|
27
|
+
minWidth: string;
|
|
28
|
+
transition: string;
|
|
29
|
+
}>;
|
|
30
|
+
showClassSideBarRef: import("vue").ComputedRef<boolean>;
|
|
31
|
+
getSiderClass: import("vue").ComputedRef<string>;
|
|
32
|
+
getSplitType: import("vue").ComputedRef<MenuSplitTye.NONE | MenuSplitTye.LEFT>;
|
|
33
|
+
getMode: import("vue").ComputedRef<MenuMode>;
|
|
34
|
+
renderTrigger: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>;
|
|
37
|
+
LayoutMenu: import("vue").DefineComponent<{
|
|
38
|
+
theme: StringConstructor;
|
|
39
|
+
splitType: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: MenuSplitTye;
|
|
42
|
+
};
|
|
43
|
+
isHorizontal: BooleanConstructor;
|
|
44
|
+
menuMode: StringConstructor;
|
|
45
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
theme: StringConstructor;
|
|
47
|
+
splitType: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: MenuSplitTye;
|
|
50
|
+
};
|
|
51
|
+
isHorizontal: BooleanConstructor;
|
|
52
|
+
menuMode: StringConstructor;
|
|
53
|
+
}>>, {
|
|
54
|
+
splitType: number;
|
|
55
|
+
isHorizontal: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
DragBar: import("vue").DefineComponent<{}, {
|
|
58
|
+
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
59
|
+
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
60
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
61
|
+
getDragBarStyle: import("vue").ComputedRef<{
|
|
62
|
+
left: string;
|
|
63
|
+
} | {
|
|
64
|
+
left?: undefined;
|
|
65
|
+
}>;
|
|
66
|
+
getClass: import("vue").ComputedRef<(string | {
|
|
67
|
+
'dt-darg-bar--hide': boolean;
|
|
68
|
+
})[]>;
|
|
69
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
70
|
+
MixSider: import("vue").DefineComponent<{}, {
|
|
71
|
+
MENU_WIDTH: number;
|
|
72
|
+
go: (path: string, isReplace?: boolean) => void;
|
|
73
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
74
|
+
getMenuTheme: import("vue").ComputedRef<import('../../../src/enums').Theme>;
|
|
75
|
+
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
76
|
+
setMixSiderIsHasMenu: (val: boolean) => void;
|
|
77
|
+
menuModules: any;
|
|
78
|
+
activeId: import("vue").Ref<string>;
|
|
79
|
+
subMenus: import("vue").Ref<any[]>;
|
|
80
|
+
getDomStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
81
|
+
getWrapStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
82
|
+
getSubMenuStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
83
|
+
setDomWidth: (width: string) => {
|
|
84
|
+
width: string;
|
|
85
|
+
minWidth: string;
|
|
86
|
+
maxWidth: string;
|
|
87
|
+
flex: string;
|
|
88
|
+
transition: string;
|
|
89
|
+
};
|
|
90
|
+
getMenuEvents: {
|
|
91
|
+
onMouseleave: () => void;
|
|
92
|
+
};
|
|
93
|
+
getItemEvents: (item: import("@dt-frames/core").Menus) => {
|
|
94
|
+
onMouseenter: () => void;
|
|
95
|
+
onClick: () => void;
|
|
96
|
+
} | {
|
|
97
|
+
onClick: () => void;
|
|
98
|
+
onMouseenter?: undefined;
|
|
99
|
+
};
|
|
100
|
+
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>;
|
|
101
|
+
setActive: (path: string) => void;
|
|
102
|
+
handleModuleClick: (path: string, isHover?: boolean) => void;
|
|
103
|
+
DtLogo: import("vue").DefineComponent<{
|
|
104
|
+
theme: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
validator: (v: string) => boolean;
|
|
107
|
+
};
|
|
108
|
+
showTitle: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
}, {
|
|
113
|
+
t: {
|
|
114
|
+
(key: string): string;
|
|
115
|
+
(key: string, locale: string): string;
|
|
116
|
+
(key: string, locale: string, list: unknown[]): string;
|
|
117
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
118
|
+
(key: string, list: unknown[]): string;
|
|
119
|
+
(key: string, named: Record<string, unknown>): string;
|
|
120
|
+
};
|
|
121
|
+
slots: {
|
|
122
|
+
[name: string]: import("vue").Slot;
|
|
123
|
+
};
|
|
124
|
+
title: string;
|
|
125
|
+
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
126
|
+
props: any;
|
|
127
|
+
getLogoClass: import("vue").ComputedRef<string>;
|
|
128
|
+
readonly DtSlotContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
|
|
129
|
+
template: {
|
|
130
|
+
type: FunctionConstructor;
|
|
131
|
+
};
|
|
132
|
+
data: {
|
|
133
|
+
type: ObjectConstructor;
|
|
134
|
+
};
|
|
135
|
+
}, {
|
|
136
|
+
props: any;
|
|
137
|
+
Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
138
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
139
|
+
template: {
|
|
140
|
+
type: FunctionConstructor;
|
|
141
|
+
};
|
|
142
|
+
data: {
|
|
143
|
+
type: ObjectConstructor;
|
|
144
|
+
};
|
|
145
|
+
}>>, {}>>;
|
|
146
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
+
theme: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
validator: (v: string) => boolean;
|
|
150
|
+
};
|
|
151
|
+
showTitle: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
}>>, {
|
|
156
|
+
showTitle: boolean;
|
|
157
|
+
}>;
|
|
158
|
+
readonly DtScrollContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
159
|
+
scrollbarRef: any;
|
|
160
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
161
|
+
getScrollWrap: () => any;
|
|
162
|
+
scrollBottom: () => void;
|
|
163
|
+
ScrollBar: import("vue").DefineComponent<{
|
|
164
|
+
wrapClass: {
|
|
165
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
wrapStyle: ArrayConstructor;
|
|
169
|
+
viewClass: {
|
|
170
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
viewStyle: {
|
|
174
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
noresize: BooleanConstructor;
|
|
178
|
+
tag: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
}, {
|
|
183
|
+
sizeWidth: import("vue").Ref<string>;
|
|
184
|
+
sizeHeight: import("vue").Ref<string>;
|
|
185
|
+
moveX: import("vue").Ref<number>;
|
|
186
|
+
moveY: import("vue").Ref<number>;
|
|
187
|
+
wrap: import("vue").Ref<any>;
|
|
188
|
+
resize: import("vue").Ref<any>;
|
|
189
|
+
props: any;
|
|
190
|
+
style: import("vue").ComputedRef<{}>;
|
|
191
|
+
handleScroll: () => void;
|
|
192
|
+
update: () => void;
|
|
193
|
+
readonly Bar: import("vue").DefineComponent<{
|
|
194
|
+
vertical: BooleanConstructor;
|
|
195
|
+
size: StringConstructor;
|
|
196
|
+
move: NumberConstructor;
|
|
197
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
198
|
+
[key: string]: any;
|
|
199
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
200
|
+
vertical: BooleanConstructor;
|
|
201
|
+
size: StringConstructor;
|
|
202
|
+
move: NumberConstructor;
|
|
203
|
+
}>>, {
|
|
204
|
+
vertical: boolean;
|
|
205
|
+
}>;
|
|
206
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
|
+
wrapClass: {
|
|
208
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
wrapStyle: ArrayConstructor;
|
|
212
|
+
viewClass: {
|
|
213
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
214
|
+
default: string;
|
|
215
|
+
};
|
|
216
|
+
viewStyle: {
|
|
217
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
218
|
+
default: string;
|
|
219
|
+
};
|
|
220
|
+
noresize: BooleanConstructor;
|
|
221
|
+
tag: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
}>>, {
|
|
226
|
+
wrapClass: string | unknown[];
|
|
227
|
+
viewClass: string | unknown[];
|
|
228
|
+
viewStyle: string | unknown[];
|
|
229
|
+
noresize: boolean;
|
|
230
|
+
tag: string;
|
|
231
|
+
}>;
|
|
232
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
233
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
234
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
235
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { Menus } from '@dt-frames/core';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
4
|
+
MENU_WIDTH: number;
|
|
5
|
+
go: (path: string, isReplace?: boolean) => void;
|
|
6
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
7
|
+
getMenuTheme: import("vue").ComputedRef<import("../../enums").Theme>;
|
|
8
|
+
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
9
|
+
setMixSiderIsHasMenu: (val: boolean) => void;
|
|
10
|
+
menuModules: any;
|
|
11
|
+
activeId: import("vue").Ref<string>;
|
|
12
|
+
subMenus: import("vue").Ref<any[]>;
|
|
13
|
+
getDomStyle: import("vue").ComputedRef<CSSProperties>;
|
|
14
|
+
getWrapStyle: import("vue").ComputedRef<CSSProperties>;
|
|
15
|
+
getSubMenuStyle: import("vue").ComputedRef<CSSProperties>;
|
|
16
|
+
setDomWidth: (width: string) => {
|
|
17
|
+
width: string;
|
|
18
|
+
minWidth: string;
|
|
19
|
+
maxWidth: string;
|
|
20
|
+
flex: string;
|
|
21
|
+
transition: string;
|
|
22
|
+
};
|
|
23
|
+
getMenuEvents: {
|
|
24
|
+
onMouseleave: () => void;
|
|
25
|
+
};
|
|
26
|
+
getItemEvents: (item: Menus) => {
|
|
27
|
+
onMouseenter: () => void;
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
} | {
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
onMouseenter?: undefined;
|
|
32
|
+
};
|
|
33
|
+
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>;
|
|
34
|
+
setActive: (path: string) => void;
|
|
35
|
+
handleModuleClick: (path: string, isHover?: boolean) => void;
|
|
36
|
+
DtLogo: import("vue").DefineComponent<{
|
|
37
|
+
theme: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
validator: (v: string) => boolean;
|
|
40
|
+
};
|
|
41
|
+
showTitle: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
t: {
|
|
47
|
+
(key: string): string;
|
|
48
|
+
(key: string, locale: string): string;
|
|
49
|
+
(key: string, locale: string, list: unknown[]): string;
|
|
50
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
51
|
+
(key: string, list: unknown[]): string;
|
|
52
|
+
(key: string, named: Record<string, unknown>): string;
|
|
53
|
+
};
|
|
54
|
+
slots: {
|
|
55
|
+
[name: string]: import("vue").Slot;
|
|
56
|
+
};
|
|
57
|
+
title: string;
|
|
58
|
+
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
59
|
+
props: any;
|
|
60
|
+
getLogoClass: import("vue").ComputedRef<string>;
|
|
61
|
+
readonly DtSlotContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
|
|
62
|
+
template: {
|
|
63
|
+
type: FunctionConstructor;
|
|
64
|
+
};
|
|
65
|
+
data: {
|
|
66
|
+
type: ObjectConstructor;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
props: any;
|
|
70
|
+
Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
71
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
+
template: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
};
|
|
75
|
+
data: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
};
|
|
78
|
+
}>>, {}>>;
|
|
79
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
theme: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
validator: (v: string) => boolean;
|
|
83
|
+
};
|
|
84
|
+
showTitle: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
}>>, {
|
|
89
|
+
showTitle: boolean;
|
|
90
|
+
}>;
|
|
91
|
+
readonly DtScrollContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
92
|
+
scrollbarRef: any;
|
|
93
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
94
|
+
getScrollWrap: () => any;
|
|
95
|
+
scrollBottom: () => void;
|
|
96
|
+
ScrollBar: import("vue").DefineComponent<{
|
|
97
|
+
wrapClass: {
|
|
98
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
wrapStyle: ArrayConstructor;
|
|
102
|
+
viewClass: {
|
|
103
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
viewStyle: {
|
|
107
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
noresize: BooleanConstructor;
|
|
111
|
+
tag: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
sizeWidth: import("vue").Ref<string>;
|
|
117
|
+
sizeHeight: import("vue").Ref<string>;
|
|
118
|
+
moveX: import("vue").Ref<number>;
|
|
119
|
+
moveY: import("vue").Ref<number>;
|
|
120
|
+
wrap: import("vue").Ref<any>;
|
|
121
|
+
resize: import("vue").Ref<any>;
|
|
122
|
+
props: any;
|
|
123
|
+
style: import("vue").ComputedRef<{}>;
|
|
124
|
+
handleScroll: () => void;
|
|
125
|
+
update: () => void;
|
|
126
|
+
readonly Bar: import("vue").DefineComponent<{
|
|
127
|
+
vertical: BooleanConstructor;
|
|
128
|
+
size: StringConstructor;
|
|
129
|
+
move: NumberConstructor;
|
|
130
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
133
|
+
vertical: BooleanConstructor;
|
|
134
|
+
size: StringConstructor;
|
|
135
|
+
move: NumberConstructor;
|
|
136
|
+
}>>, {
|
|
137
|
+
vertical: boolean;
|
|
138
|
+
}>;
|
|
139
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
+
wrapClass: {
|
|
141
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
wrapStyle: ArrayConstructor;
|
|
145
|
+
viewClass: {
|
|
146
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
viewStyle: {
|
|
150
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
noresize: BooleanConstructor;
|
|
154
|
+
tag: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
}>>, {
|
|
159
|
+
wrapClass: string | unknown[];
|
|
160
|
+
viewClass: string | unknown[];
|
|
161
|
+
viewStyle: string | unknown[];
|
|
162
|
+
noresize: boolean;
|
|
163
|
+
tag: string;
|
|
164
|
+
}>;
|
|
165
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
166
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
167
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
getDropMenuList: import("vue").ComputedRef<import("../types/tabs.type").DropMenu[]>;
|
|
3
|
+
handleContext: (e: any) => void;
|
|
4
|
+
handleMenuEvent: (item: import("../types/tabs.type").DropMenu) => void;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
6
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
tabStore: import("pinia").Store<"route-reuse", import("../../../stores/routeReuse.store").RouteReuseState, {
|
|
3
|
+
getTabList(): import("vue-router").RouteLocationNormalized[];
|
|
4
|
+
getCachedTabList(): string[];
|
|
5
|
+
getLastDragEndIndex(): number;
|
|
6
|
+
}, {
|
|
7
|
+
addTab(route: import("vue-router").RouteLocationNormalized): Promise<void>;
|
|
8
|
+
closeTab(path: string, router: import("vue-router").Router): void;
|
|
9
|
+
closeAllTab(currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>, router: import("vue-router").Router): void;
|
|
10
|
+
closeLeftTabs(path: string): void;
|
|
11
|
+
closeRightTabs(path: string): void;
|
|
12
|
+
closeOtherTabs(path: string): void;
|
|
13
|
+
bulkCloseTabs(pathList: string[]): void;
|
|
14
|
+
updateCacheTab(): void;
|
|
15
|
+
refreshPage(router: import("vue-router").Router): Promise<void>;
|
|
16
|
+
sortTabs(oldIndex: number, newIndex: number): void;
|
|
17
|
+
}>;
|
|
18
|
+
router: import("vue-router").Router;
|
|
19
|
+
handleRedo: () => void;
|
|
20
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
21
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Options } from 'sortablejs';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export declare function initAffixTabs(): string[];
|
|
4
|
+
export declare function useSortable(el: HTMLElement | Ref<HTMLElement>, options?: Options): {
|
|
5
|
+
initSortable: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function useTabsDrag(affixList: string[]): void;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
t: {
|
|
3
|
+
(key: string): string;
|
|
4
|
+
(key: string, locale: string): string;
|
|
5
|
+
(key: string, locale: string, list: unknown[]): string;
|
|
6
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
7
|
+
(key: string, list: unknown[]): string;
|
|
8
|
+
(key: string, named: Record<string, unknown>): string;
|
|
9
|
+
};
|
|
10
|
+
router: import("vue-router").Router;
|
|
11
|
+
go: (path: string, isReplace?: boolean) => void;
|
|
12
|
+
tabStore: import("pinia").Store<"route-reuse", import("../../stores/routeReuse.store").RouteReuseState, {
|
|
13
|
+
getTabList(): import("vue-router").RouteLocationNormalized[];
|
|
14
|
+
getCachedTabList(): string[];
|
|
15
|
+
getLastDragEndIndex(): number;
|
|
16
|
+
}, {
|
|
17
|
+
addTab(route: import("vue-router").RouteLocationNormalized): Promise<void>;
|
|
18
|
+
closeTab(path: string, router: import("vue-router").Router): void;
|
|
19
|
+
closeAllTab(currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>, router: import("vue-router").Router): void;
|
|
20
|
+
closeLeftTabs(path: string): void;
|
|
21
|
+
closeRightTabs(path: string): void;
|
|
22
|
+
closeOtherTabs(path: string): void;
|
|
23
|
+
bulkCloseTabs(pathList: string[]): void;
|
|
24
|
+
updateCacheTab(): void;
|
|
25
|
+
refreshPage(router: import("vue-router").Router): Promise<void>;
|
|
26
|
+
sortTabs(oldIndex: number, newIndex: number): void;
|
|
27
|
+
}>;
|
|
28
|
+
getShowQuick: import("vue").ComputedRef<boolean>;
|
|
29
|
+
getShowRedo: import("vue").ComputedRef<boolean>;
|
|
30
|
+
menuLabelMap: Map<any, any>;
|
|
31
|
+
activeKeyRef: any;
|
|
32
|
+
getTabsState: import("vue").ComputedRef<import("vue-router").RouteLocationNormalized[]>;
|
|
33
|
+
unClose: import("vue").ComputedRef<boolean>;
|
|
34
|
+
handleChange: (activeKey: string) => void;
|
|
35
|
+
handleEdit: (targetKey: string) => void;
|
|
36
|
+
affixTextList: string[];
|
|
37
|
+
readonly DtTabRedo: import("vue").DefineComponent<{}, {
|
|
38
|
+
tabStore: import("pinia").Store<"route-reuse", import("../../stores/routeReuse.store").RouteReuseState, {
|
|
39
|
+
getTabList(): import("vue-router").RouteLocationNormalized[];
|
|
40
|
+
getCachedTabList(): string[];
|
|
41
|
+
getLastDragEndIndex(): number;
|
|
42
|
+
}, {
|
|
43
|
+
addTab(route: import("vue-router").RouteLocationNormalized): Promise<void>;
|
|
44
|
+
closeTab(path: string, router: import("vue-router").Router): void;
|
|
45
|
+
closeAllTab(currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>, router: import("vue-router").Router): void;
|
|
46
|
+
closeLeftTabs(path: string): void;
|
|
47
|
+
closeRightTabs(path: string): void;
|
|
48
|
+
closeOtherTabs(path: string): void;
|
|
49
|
+
bulkCloseTabs(pathList: string[]): void;
|
|
50
|
+
updateCacheTab(): void;
|
|
51
|
+
refreshPage(router: import("vue-router").Router): Promise<void>;
|
|
52
|
+
sortTabs(oldIndex: number, newIndex: number): void;
|
|
53
|
+
}>;
|
|
54
|
+
router: import("vue-router").Router;
|
|
55
|
+
handleRedo: () => void;
|
|
56
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
57
|
+
readonly DtTabContent: import("vue").DefineComponent<{}, {
|
|
58
|
+
getDropMenuList: import("vue").ComputedRef<import("./types/tabs.type").DropMenu[]>;
|
|
59
|
+
handleContext: (e: any) => void;
|
|
60
|
+
handleMenuEvent: (item: import("./types/tabs.type").DropMenu) => void;
|
|
61
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
62
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
63
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './theme.enum';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum Theme {
|
|
2
|
+
DARK = "dark",
|
|
3
|
+
LIGHT = "light"
|
|
4
|
+
}
|
|
5
|
+
export declare enum MenuTriggerPos {
|
|
6
|
+
NONE = "none",
|
|
7
|
+
FOOTER = "footer",
|
|
8
|
+
HEADER = "header"
|
|
9
|
+
}
|
|
10
|
+
export declare enum MenuType {
|
|
11
|
+
SIDE = "sidebar",
|
|
12
|
+
TOP_MENU = "top-menu",
|
|
13
|
+
MIX = "mix",
|
|
14
|
+
MIX_SIDEBAR = "mix-sidebar"
|
|
15
|
+
}
|
|
16
|
+
export declare enum MenuMode {
|
|
17
|
+
INLINE = "inline",
|
|
18
|
+
HORIZONTAL = "horizontal",
|
|
19
|
+
VERTICAL = "vertical"
|
|
20
|
+
}
|
|
21
|
+
export declare enum ContentMode {
|
|
22
|
+
FULL = "full",
|
|
23
|
+
FIXED = "fixed"
|
|
24
|
+
}
|
|
25
|
+
export declare enum MenuSplitTye {
|
|
26
|
+
NONE = 0,
|
|
27
|
+
TOP = 1,
|
|
28
|
+
LEFT = 2
|
|
29
|
+
}
|
|
30
|
+
export declare enum UiSize {
|
|
31
|
+
LARGE = "large",
|
|
32
|
+
MIDDLE = "middle",
|
|
33
|
+
SMALL = "small"
|
|
34
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UiSize } from "../enums";
|
|
2
|
+
export declare function useHeader(): {
|
|
3
|
+
getHeaderTheme: import("vue").ComputedRef<import("../enums").Theme>;
|
|
4
|
+
getFixed: import("vue").ComputedRef<boolean>;
|
|
5
|
+
getShowSearch: import("vue").ComputedRef<boolean>;
|
|
6
|
+
getShowHeaderLogo: import("vue").ComputedRef<boolean>;
|
|
7
|
+
getShowHeaderTrigger: import("vue").ComputedRef<boolean>;
|
|
8
|
+
getShowBread: import("vue").ComputedRef<boolean>;
|
|
9
|
+
getShowTopMenu: import("vue").ComputedRef<boolean>;
|
|
10
|
+
getShowFullScreen: import("vue").ComputedRef<boolean>;
|
|
11
|
+
getShowLocale: import("vue").ComputedRef<boolean>;
|
|
12
|
+
getShowSettingTheme: import("vue").ComputedRef<boolean>;
|
|
13
|
+
getShowNotice: import("vue").ComputedRef<boolean>;
|
|
14
|
+
getShowFullHeaderRef: import("vue").ComputedRef<boolean>;
|
|
15
|
+
getHeaderHeight: import("vue").ComputedRef<number>;
|
|
16
|
+
getTabsHeight: import("vue").ComputedRef<number>;
|
|
17
|
+
getShowInsetHeaderRef: import("vue").ComputedRef<boolean>;
|
|
18
|
+
getShowBackToTop: import("vue").ComputedRef<boolean>;
|
|
19
|
+
getIsZH: import("vue").ComputedRef<boolean>;
|
|
20
|
+
getUiSize: import("vue").ComputedRef<UiSize>;
|
|
21
|
+
getShowLogo: import("vue").ComputedRef<boolean>;
|
|
22
|
+
getShowLoginOut: import("vue").ComputedRef<boolean>;
|
|
23
|
+
getShowUiSize: import("vue").ComputedRef<boolean>;
|
|
24
|
+
loginOutClick: () => {};
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { MenuMode, MenuType } from "../enums";
|
|
3
|
+
export declare function useMenu(): {
|
|
4
|
+
getCollapsedShowTitle: import("vue").ComputedRef<boolean>;
|
|
5
|
+
getIsSidebarType: import("vue").ComputedRef<boolean>;
|
|
6
|
+
getMenuFixed: import("vue").ComputedRef<boolean>;
|
|
7
|
+
getShowMenu: import("vue").ComputedRef<boolean>;
|
|
8
|
+
getShowSidebar: import("vue").ComputedRef<boolean>;
|
|
9
|
+
getMenuHidden: import("vue").ComputedRef<boolean>;
|
|
10
|
+
getMenuTheme: import("vue").ComputedRef<import("../enums").Theme>;
|
|
11
|
+
getTrigger: import("vue").ComputedRef<boolean>;
|
|
12
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
13
|
+
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
14
|
+
getMenuType: import("vue").ComputedRef<MenuType>;
|
|
15
|
+
getIsTopMenu: import("vue").ComputedRef<boolean>;
|
|
16
|
+
getMenuMode: import("vue").ComputedRef<MenuMode>;
|
|
17
|
+
getSplit: import("vue").ComputedRef<boolean>;
|
|
18
|
+
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
19
|
+
getIsHorizontal: import("vue").ComputedRef<boolean>;
|
|
20
|
+
getMiniWidthNumber: import("vue").ComputedRef<80 | 48>;
|
|
21
|
+
getRealWidth: import("vue").ComputedRef<number>;
|
|
22
|
+
getCalcContentWidth: import("vue").ComputedRef<string>;
|
|
23
|
+
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
24
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
25
|
+
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
26
|
+
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
27
|
+
toggleCollapsed: () => void;
|
|
28
|
+
setThemeStore: (conf?: Recordable) => void;
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function useMultipleTab(): {
|
|
2
|
+
getShowMultipleTab: import("vue").ComputedRef<boolean>;
|
|
3
|
+
getShowQuick: import("vue").ComputedRef<boolean>;
|
|
4
|
+
getMultipleTabPosIsTop: import("vue").ComputedRef<boolean>;
|
|
5
|
+
getShowRedo: import("vue").ComputedRef<boolean>;
|
|
6
|
+
getCanCache: import("vue").ComputedRef<boolean>;
|
|
7
|
+
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Menus, MenuState } from "../types";
|
|
2
|
+
export declare function useOpenKeys(menuState: MenuState, menus: Menus[], type: string): {
|
|
3
|
+
getOpenKeys: import("vue").ComputedRef<string[]>;
|
|
4
|
+
setOpenKeys: (path: string) => Promise<void>;
|
|
5
|
+
resetKeys: () => void;
|
|
6
|
+
handleOpenChange: (openKeys: string[]) => void;
|
|
7
|
+
};
|