@pubinfo/core 2.0.0-rc.1 → 2.0.0-rc.3
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/{AppSetting-Bblni_W7.js → AppSetting-3wJKvibc.js} +19 -19
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-A7PnhNKK.js → HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js} +1 -1
- package/dist/{HToggle-xibvPpmf.js → HToggle-B-ZjSh6S.js} +1 -1
- package/dist/{PreferencesContent--JtPw_LT.js → PreferencesContent-xT4paU7N.js} +52 -52
- package/dist/{SettingBreadcrumb-BwhdAtkC.js → SettingBreadcrumb-CYnO51Ek.js} +5 -5
- package/dist/{SettingCopyright-DPsRDagL.js → SettingCopyright-FOW5ObHK.js} +2 -2
- package/dist/{SettingEnableTransition-mtHTUb08.js → SettingEnableTransition-Q5cvubmF.js} +12 -12
- package/dist/{SettingHome-agxHFIKq.js → SettingHome-Df7-AlWB.js} +8 -8
- package/dist/{SettingMenu-D6WwcOw-.js → SettingMenu-BNAJ3el9.js} +14 -14
- package/dist/{SettingMode-CkmhszlD.js → SettingMode-LzlRsBL9.js} +3 -3
- package/dist/{SettingNavSearch-CEB5DZGf.js → SettingNavSearch-BA08vYuw.js} +6 -6
- package/dist/{SettingOther-Dzs1uwnC.js → SettingOther-BE8dDCYD.js} +11 -11
- package/dist/{SettingPage-bOThkL2-.js → SettingPage-D061yXCv.js} +2 -2
- package/dist/{SettingTabbar-L6yQxAeE.js → SettingTabbar-COwdPPKy.js} +13 -13
- package/dist/{SettingThemes-Cxa5bR66.js → SettingThemes-BHaYERNp.js} +12 -12
- package/dist/{SettingToolbar-BZ2uHom2.js → SettingToolbar-fSuzu6ND.js} +10 -10
- package/dist/{SettingTopbar-hptxTh8m.js → SettingTopbar-D7GgP0KB.js} +6 -6
- package/dist/{SettingWidthMode-D2R2W4-n.js → SettingWidthMode-CNjzChe1.js} +11 -11
- package/dist/{TopThinMode-C26i10py.js → TopThinMode-B-28sBJD.js} +3 -3
- package/dist/built-in/layout-component/Layout.vue.d.ts +1 -0
- package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
- package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +47 -207
- package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
- package/dist/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -206
- package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +2 -7
- package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +19 -0
- package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -5
- package/dist/built-in/layout-component/composables/useMainPage.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useMenu.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTabbar.d.ts +1 -1
- package/dist/built-in/layout-component/composables/useTitle.d.ts +2 -1
- package/dist/built-in/layout-component/composables/useWatermark.d.ts +3 -1
- package/dist/built-in/layout-component/index.d.ts +9 -6
- package/dist/built-in/layout-component/utils/index.d.ts +0 -1
- package/dist/{colors-C8I6Fdyp.js → colors-BIQSd520.js} +1 -1
- package/dist/{index-RwbJwutI.js → index-Beb7_0-E.js} +14499 -14397
- package/dist/{index-D948mfZb.js → index-CPRiufg0.js} +1 -1
- package/dist/{index-DZ6SbWiv.js → index-DNdH93AP.js} +13 -13
- package/dist/index-DYMBkmAp.js +139 -0
- package/dist/{index-DdS6qgK_.js → index-Dlf6GQBd.js} +6418 -6439
- package/dist/{index-D3zjK9rd.js → index-IscoZG-Y.js} +2 -2
- package/dist/{index-DeWCd_-p.js → index-WubcSL0v.js} +1 -1
- package/dist/index-YSjb6X1D.js +232 -0
- package/dist/{index-EOTrQlGo.js → index-wxEEuQXu.js} +17 -17
- package/dist/index.d.ts +4 -2
- package/dist/index.js +53 -55
- package/dist/{pick-D6j4F3UM.js → pick-D_XPbQHB.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -10
- package/src/built-in/authentication/pages/change-organization/assets/change-org.svg +1 -1
- package/src/built-in/authentication/pages/change-password/assets/mima.svg +1 -1
- package/src/built-in/authorization/pages/not-permission/403.svg +1 -1
- package/src/built-in/authorization/pages/not-permission/403_dark.svg +1 -1
- package/src/built-in/layout-component/Layout.vue +11 -22
- package/src/built-in/layout-component/assets/icons/favorites.svg +1 -1
- package/src/built-in/layout-component/assets/icons/toolbar-collapse.svg +1 -1
- package/src/built-in/layout-component/components/Header/TopMode/index.vue +1 -1
- package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +1 -1
- package/src/built-in/layout-component/components/Sidebar/index.vue +1 -1
- package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +108 -0
- package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
- package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
- package/src/built-in/layout-component/components/Tools/SearchBar.vue +44 -0
- package/src/built-in/layout-component/components/Tools/{Search.vue → SearchPanel.vue} +12 -6
- package/src/built-in/layout-component/components/Tools/index.vue +64 -130
- package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
- package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +7 -6
- package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +2 -2
- package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +32 -10
- package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +19 -26
- package/src/built-in/layout-component/composables/useGetComputedStyle.ts +2 -3
- package/src/built-in/layout-component/composables/useGlobalSearch.ts +48 -0
- package/src/built-in/layout-component/composables/useHotkey.ts +6 -10
- package/src/built-in/layout-component/composables/useMainPage.ts +5 -6
- package/src/built-in/layout-component/composables/useMenu.ts +3 -5
- package/src/built-in/layout-component/composables/useTabbar.ts +3 -5
- package/src/built-in/layout-component/composables/useTitle.ts +2 -3
- package/src/built-in/layout-component/composables/useWatermark.ts +25 -12
- package/src/built-in/layout-component/index.ts +21 -12
- package/src/built-in/layout-component/provider.ts +6 -2
- package/src/built-in/layout-component/utils/index.ts +0 -1
- package/src/built-in/settings/router.ts +5 -1
- package/src/features/assets/fonts/digital-7/digital-7-webfont.svg +131 -133
- package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +130 -132
- package/src/features/assets/images/org.svg +2 -2
- package/src/features/components/NotAllowed/assets/403.svg +1 -1
- package/src/features/components/NotAllowed/assets/403_dark.svg +1 -1
- package/src/features/components/PubinfoIcon/index.vue +1 -1
- package/src/features/pages/not-found/assets/404.svg +1 -1
- package/src/features/pages/not-found/assets/404_dark.svg +1 -1
- package/src/features/stores/utils/routerHelper.ts +3 -0
- package/src/index.ts +7 -9
- package/dist/built-in/layout-component/utils/eventBus.d.ts +0 -5
- package/dist/index-CkyHqPON.js +0 -139
- package/dist/index-xzfvpJSq.js +0 -234
- package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +0 -70
- package/src/built-in/layout-component/utils/eventBus.ts +0 -8
- /package/dist/built-in/layout-component/components/Tools/{DayNightSwitch.vue.d.ts → DarkModeToggle.vue.d.ts} +0 -0
- /package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts} +0 -0
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
import { DropdownMenuRender } from './interface';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
dropdownMenuRender?: DropdownMenuRender;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
hotkeysIntroRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
12
|
+
open: () => boolean;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
21
|
+
open: () => boolean;
|
|
22
|
+
}, {}, {}, {}, {}> | null;
|
|
23
|
+
preferencesRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
24
|
+
open: () => boolean;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
33
|
+
open: () => boolean;
|
|
34
|
+
}, {}, {}, {}, {}> | null;
|
|
35
|
+
};
|
|
36
|
+
rootEl: HTMLDivElement;
|
|
37
|
+
};
|
|
38
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
39
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
40
|
+
dropdownMenuRender: DropdownMenuRender;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
2
42
|
hotkeysIntroRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
3
43
|
open: () => boolean;
|
|
4
44
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -11,212 +51,6 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
11
51
|
}, Readonly<{}> & Readonly<{}>, {
|
|
12
52
|
open: () => boolean;
|
|
13
53
|
}, {}, {}, {}, {}> | null;
|
|
14
|
-
searchRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
15
|
-
toggle: (type?: "menu" | "tab") => void;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
17
|
-
searchInputRef: HTMLInputElement;
|
|
18
|
-
searchResultRef: ({
|
|
19
|
-
$: import('vue').ComponentInternalInstance;
|
|
20
|
-
$data: {};
|
|
21
|
-
$props: Partial<{
|
|
22
|
-
element: string | import('vue').Component;
|
|
23
|
-
}> & Omit<{
|
|
24
|
-
readonly element: string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
|
|
25
|
-
readonly options?: false | {
|
|
26
|
-
paddingAbsolute?: boolean | undefined;
|
|
27
|
-
showNativeOverlaidScrollbars?: boolean | undefined;
|
|
28
|
-
update?: {
|
|
29
|
-
elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
|
|
30
|
-
debounce?: number | [timeout: number, maxWait: number] | null | undefined;
|
|
31
|
-
attributes?: string[] | null | undefined;
|
|
32
|
-
ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
|
|
33
|
-
} | undefined;
|
|
34
|
-
overflow?: {
|
|
35
|
-
x?: import('../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
36
|
-
y?: import('../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
scrollbars?: {
|
|
39
|
-
theme?: string | null | undefined;
|
|
40
|
-
visibility?: import('../../../../../../../node_modules/overlayscrollbars').ScrollbarsVisibilityBehavior | undefined;
|
|
41
|
-
autoHide?: import('../../../../../../../node_modules/overlayscrollbars').ScrollbarsAutoHideBehavior | undefined;
|
|
42
|
-
autoHideDelay?: number | undefined;
|
|
43
|
-
autoHideSuspend?: boolean | undefined;
|
|
44
|
-
dragScroll?: boolean | undefined;
|
|
45
|
-
clickScroll?: boolean | undefined;
|
|
46
|
-
pointers?: string[] | null | undefined;
|
|
47
|
-
} | undefined;
|
|
48
|
-
} | null | undefined;
|
|
49
|
-
readonly defer?: boolean | IdleRequestOptions | undefined;
|
|
50
|
-
readonly events?: false | {
|
|
51
|
-
initialized?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void)[] | null | undefined;
|
|
52
|
-
updated?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void)[] | null | undefined;
|
|
53
|
-
destroyed?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void)[] | null | undefined;
|
|
54
|
-
scroll?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void)[] | null | undefined;
|
|
55
|
-
} | null | undefined;
|
|
56
|
-
onOsInitialized?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => any) | undefined | undefined;
|
|
57
|
-
onOsUpdated?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => any) | undefined | undefined;
|
|
58
|
-
onOsDestroyed?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => any) | undefined | undefined;
|
|
59
|
-
onOsScroll?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => any) | undefined | undefined;
|
|
60
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "element">;
|
|
61
|
-
$attrs: {
|
|
62
|
-
[x: string]: unknown;
|
|
63
|
-
};
|
|
64
|
-
$refs: {
|
|
65
|
-
[x: string]: unknown;
|
|
66
|
-
};
|
|
67
|
-
$slots: Readonly<{
|
|
68
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
69
|
-
}>;
|
|
70
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
71
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
72
|
-
$host: Element | null;
|
|
73
|
-
$emit: ((event: "osInitialized", instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) & ((event: "osUpdated", instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) & ((event: "osDestroyed", instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) & ((event: "osScroll", instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void);
|
|
74
|
-
$el: any;
|
|
75
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
76
|
-
element: {
|
|
77
|
-
type: import('vue').PropType<string | import('vue').Component>;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
options: {
|
|
81
|
-
type: import('vue').PropType<false | {
|
|
82
|
-
paddingAbsolute?: boolean | undefined;
|
|
83
|
-
showNativeOverlaidScrollbars?: boolean | undefined;
|
|
84
|
-
update?: {
|
|
85
|
-
elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
|
|
86
|
-
debounce?: number | [timeout: number, maxWait: number] | null | undefined;
|
|
87
|
-
attributes?: string[] | null | undefined;
|
|
88
|
-
ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
overflow?: {
|
|
91
|
-
x?: import('../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
92
|
-
y?: import('../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
scrollbars?: {
|
|
95
|
-
theme?: string | null | undefined;
|
|
96
|
-
visibility?: import('../../../../../../../node_modules/overlayscrollbars').ScrollbarsVisibilityBehavior | undefined;
|
|
97
|
-
autoHide?: import('../../../../../../../node_modules/overlayscrollbars').ScrollbarsAutoHideBehavior | undefined;
|
|
98
|
-
autoHideDelay?: number | undefined;
|
|
99
|
-
autoHideSuspend?: boolean | undefined;
|
|
100
|
-
dragScroll?: boolean | undefined;
|
|
101
|
-
clickScroll?: boolean | undefined;
|
|
102
|
-
pointers?: string[] | null | undefined;
|
|
103
|
-
} | undefined;
|
|
104
|
-
} | null | undefined>;
|
|
105
|
-
};
|
|
106
|
-
events: {
|
|
107
|
-
type: import('vue').PropType<false | {
|
|
108
|
-
initialized?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void)[] | null | undefined;
|
|
109
|
-
updated?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void)[] | null | undefined;
|
|
110
|
-
destroyed?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void)[] | null | undefined;
|
|
111
|
-
scroll?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void)[] | null | undefined;
|
|
112
|
-
} | null | undefined>;
|
|
113
|
-
};
|
|
114
|
-
defer: {
|
|
115
|
-
type: import('vue').PropType<boolean | IdleRequestOptions | undefined>;
|
|
116
|
-
};
|
|
117
|
-
}>> & {
|
|
118
|
-
onOsInitialized?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => any) | undefined;
|
|
119
|
-
onOsUpdated?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => any) | undefined;
|
|
120
|
-
onOsDestroyed?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => any) | undefined;
|
|
121
|
-
onOsScroll?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => any) | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
osInstance(): import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars | null;
|
|
124
|
-
getElement(): HTMLElement | null;
|
|
125
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
126
|
-
osInitialized: (instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void;
|
|
127
|
-
osUpdated: (instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void;
|
|
128
|
-
osDestroyed: (instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void;
|
|
129
|
-
osScroll: (instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void;
|
|
130
|
-
}, string, {
|
|
131
|
-
element: string | import('vue').Component;
|
|
132
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
133
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
134
|
-
created?: (() => void) | (() => void)[];
|
|
135
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
136
|
-
mounted?: (() => void) | (() => void)[];
|
|
137
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
138
|
-
updated?: (() => void) | (() => void)[];
|
|
139
|
-
activated?: (() => void) | (() => void)[];
|
|
140
|
-
deactivated?: (() => void) | (() => void)[];
|
|
141
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
142
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
143
|
-
destroyed?: (() => void) | (() => void)[];
|
|
144
|
-
unmounted?: (() => void) | (() => void)[];
|
|
145
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
146
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
147
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
148
|
-
};
|
|
149
|
-
$forceUpdate: () => void;
|
|
150
|
-
$nextTick: typeof import('vue').nextTick;
|
|
151
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
152
|
-
} & Readonly<{
|
|
153
|
-
element: string | import('vue').Component;
|
|
154
|
-
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
155
|
-
element: {
|
|
156
|
-
type: import('vue').PropType<string | import('vue').Component>;
|
|
157
|
-
default: string;
|
|
158
|
-
};
|
|
159
|
-
options: {
|
|
160
|
-
type: import('vue').PropType<false | {
|
|
161
|
-
paddingAbsolute?: boolean | undefined;
|
|
162
|
-
showNativeOverlaidScrollbars?: boolean | undefined;
|
|
163
|
-
update?: {
|
|
164
|
-
elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
|
|
165
|
-
debounce?: number | [timeout: number, maxWait: number] | null | undefined;
|
|
166
|
-
attributes?: string[] | null | undefined;
|
|
167
|
-
ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
|
|
168
|
-
} | undefined;
|
|
169
|
-
overflow?: {
|
|
170
|
-
x?: import('../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
171
|
-
y?: import('../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
172
|
-
} | undefined;
|
|
173
|
-
scrollbars?: {
|
|
174
|
-
theme?: string | null | undefined;
|
|
175
|
-
visibility?: import('../../../../../../../node_modules/overlayscrollbars').ScrollbarsVisibilityBehavior | undefined;
|
|
176
|
-
autoHide?: import('../../../../../../../node_modules/overlayscrollbars').ScrollbarsAutoHideBehavior | undefined;
|
|
177
|
-
autoHideDelay?: number | undefined;
|
|
178
|
-
autoHideSuspend?: boolean | undefined;
|
|
179
|
-
dragScroll?: boolean | undefined;
|
|
180
|
-
clickScroll?: boolean | undefined;
|
|
181
|
-
pointers?: string[] | null | undefined;
|
|
182
|
-
} | undefined;
|
|
183
|
-
} | null | undefined>;
|
|
184
|
-
};
|
|
185
|
-
events: {
|
|
186
|
-
type: import('vue').PropType<false | {
|
|
187
|
-
initialized?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void)[] | null | undefined;
|
|
188
|
-
updated?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void)[] | null | undefined;
|
|
189
|
-
destroyed?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void)[] | null | undefined;
|
|
190
|
-
scroll?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void) | ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void)[] | null | undefined;
|
|
191
|
-
} | null | undefined>;
|
|
192
|
-
};
|
|
193
|
-
defer: {
|
|
194
|
-
type: import('vue').PropType<boolean | IdleRequestOptions | undefined>;
|
|
195
|
-
};
|
|
196
|
-
}>> & {
|
|
197
|
-
onOsInitialized?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => any) | undefined;
|
|
198
|
-
onOsUpdated?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => any) | undefined;
|
|
199
|
-
onOsDestroyed?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => any) | undefined;
|
|
200
|
-
onOsScroll?: ((instance: import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => any) | undefined;
|
|
201
|
-
}, "element" | "osInstance" | "getElement"> & import('vue').ShallowUnwrapRef<{
|
|
202
|
-
osInstance(): import('../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars | null;
|
|
203
|
-
getElement(): HTMLElement | null;
|
|
204
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
205
|
-
$slots: {
|
|
206
|
-
default?(_: {}): any;
|
|
207
|
-
};
|
|
208
|
-
}) | null;
|
|
209
|
-
searchResultItemRef: HTMLAnchorElement[];
|
|
210
|
-
}, any, import('vue').ComponentProvideOptions, {
|
|
211
|
-
P: {};
|
|
212
|
-
B: {};
|
|
213
|
-
D: {};
|
|
214
|
-
C: {};
|
|
215
|
-
M: {};
|
|
216
|
-
Defaults: {};
|
|
217
|
-
}, Readonly<{}> & Readonly<{}>, {
|
|
218
|
-
toggle: (type?: "menu" | "tab") => void;
|
|
219
|
-
}, {}, {}, {}, {}> | null;
|
|
220
54
|
preferencesRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
221
55
|
open: () => boolean;
|
|
222
56
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -230,4 +64,10 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
230
64
|
open: () => boolean;
|
|
231
65
|
}, {}, {}, {}, {}> | null;
|
|
232
66
|
}, HTMLDivElement>;
|
|
67
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
233
68
|
export default _default;
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface DropdownMenu {
|
|
2
|
+
key?: string | 'divider';
|
|
3
|
+
icon?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
hide?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export type DropdownMenuRender = (items: {
|
|
10
|
+
/** 主页 */
|
|
11
|
+
Home: DropdownMenu;
|
|
12
|
+
/** 个人偏好设置 */
|
|
13
|
+
Preferences: DropdownMenu;
|
|
14
|
+
/** 快捷键介绍 */
|
|
15
|
+
Hotkeys: DropdownMenu;
|
|
16
|
+
/** 切换组织 */
|
|
17
|
+
Org: DropdownMenu;
|
|
18
|
+
/** 个人中心 */
|
|
19
|
+
Profile: DropdownMenu;
|
|
20
|
+
/** 修改密码 */
|
|
21
|
+
Password: DropdownMenu;
|
|
22
|
+
/** 登出 */
|
|
23
|
+
Logout: DropdownMenu;
|
|
24
|
+
/** 分割线 */
|
|
25
|
+
Divider: DropdownMenu;
|
|
26
|
+
}) => DropdownMenu[];
|
|
@@ -7,211 +7,5 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
7
7
|
M: {};
|
|
8
8
|
Defaults: {};
|
|
9
9
|
}, Readonly<import('vue').TransitionGroupProps>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
10
|
-
searchRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
11
|
-
toggle: (type?: "menu" | "tab") => void;
|
|
12
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
13
|
-
searchInputRef: HTMLInputElement;
|
|
14
|
-
searchResultRef: ({
|
|
15
|
-
$: import('vue').ComponentInternalInstance;
|
|
16
|
-
$data: {};
|
|
17
|
-
$props: Partial<{
|
|
18
|
-
element: string | import('vue').Component;
|
|
19
|
-
}> & Omit<{
|
|
20
|
-
readonly element: string | import('vue').Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>;
|
|
21
|
-
readonly options?: false | {
|
|
22
|
-
paddingAbsolute?: boolean | undefined;
|
|
23
|
-
showNativeOverlaidScrollbars?: boolean | undefined;
|
|
24
|
-
update?: {
|
|
25
|
-
elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
|
|
26
|
-
debounce?: number | [timeout: number, maxWait: number] | null | undefined;
|
|
27
|
-
attributes?: string[] | null | undefined;
|
|
28
|
-
ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
overflow?: {
|
|
31
|
-
x?: import('../../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
32
|
-
y?: import('../../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
33
|
-
} | undefined;
|
|
34
|
-
scrollbars?: {
|
|
35
|
-
theme?: string | null | undefined;
|
|
36
|
-
visibility?: import('../../../../../../../../node_modules/overlayscrollbars').ScrollbarsVisibilityBehavior | undefined;
|
|
37
|
-
autoHide?: import('../../../../../../../../node_modules/overlayscrollbars').ScrollbarsAutoHideBehavior | undefined;
|
|
38
|
-
autoHideDelay?: number | undefined;
|
|
39
|
-
autoHideSuspend?: boolean | undefined;
|
|
40
|
-
dragScroll?: boolean | undefined;
|
|
41
|
-
clickScroll?: boolean | undefined;
|
|
42
|
-
pointers?: string[] | null | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
} | null | undefined;
|
|
45
|
-
readonly defer?: boolean | IdleRequestOptions | undefined;
|
|
46
|
-
readonly events?: false | {
|
|
47
|
-
initialized?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void)[] | null | undefined;
|
|
48
|
-
updated?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void)[] | null | undefined;
|
|
49
|
-
destroyed?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void)[] | null | undefined;
|
|
50
|
-
scroll?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void)[] | null | undefined;
|
|
51
|
-
} | null | undefined;
|
|
52
|
-
onOsInitialized?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => any) | undefined | undefined;
|
|
53
|
-
onOsUpdated?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => any) | undefined | undefined;
|
|
54
|
-
onOsDestroyed?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => any) | undefined | undefined;
|
|
55
|
-
onOsScroll?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => any) | undefined | undefined;
|
|
56
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "element">;
|
|
57
|
-
$attrs: {
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
$refs: {
|
|
61
|
-
[x: string]: unknown;
|
|
62
|
-
};
|
|
63
|
-
$slots: Readonly<{
|
|
64
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
65
|
-
}>;
|
|
66
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
67
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
68
|
-
$host: Element | null;
|
|
69
|
-
$emit: ((event: "osInitialized", instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) & ((event: "osUpdated", instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) & ((event: "osDestroyed", instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) & ((event: "osScroll", instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void);
|
|
70
|
-
$el: any;
|
|
71
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
72
|
-
element: {
|
|
73
|
-
type: import('vue').PropType<string | import('vue').Component>;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
options: {
|
|
77
|
-
type: import('vue').PropType<false | {
|
|
78
|
-
paddingAbsolute?: boolean | undefined;
|
|
79
|
-
showNativeOverlaidScrollbars?: boolean | undefined;
|
|
80
|
-
update?: {
|
|
81
|
-
elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
|
|
82
|
-
debounce?: number | [timeout: number, maxWait: number] | null | undefined;
|
|
83
|
-
attributes?: string[] | null | undefined;
|
|
84
|
-
ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
|
|
85
|
-
} | undefined;
|
|
86
|
-
overflow?: {
|
|
87
|
-
x?: import('../../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
88
|
-
y?: import('../../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
scrollbars?: {
|
|
91
|
-
theme?: string | null | undefined;
|
|
92
|
-
visibility?: import('../../../../../../../../node_modules/overlayscrollbars').ScrollbarsVisibilityBehavior | undefined;
|
|
93
|
-
autoHide?: import('../../../../../../../../node_modules/overlayscrollbars').ScrollbarsAutoHideBehavior | undefined;
|
|
94
|
-
autoHideDelay?: number | undefined;
|
|
95
|
-
autoHideSuspend?: boolean | undefined;
|
|
96
|
-
dragScroll?: boolean | undefined;
|
|
97
|
-
clickScroll?: boolean | undefined;
|
|
98
|
-
pointers?: string[] | null | undefined;
|
|
99
|
-
} | undefined;
|
|
100
|
-
} | null | undefined>;
|
|
101
|
-
};
|
|
102
|
-
events: {
|
|
103
|
-
type: import('vue').PropType<false | {
|
|
104
|
-
initialized?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void)[] | null | undefined;
|
|
105
|
-
updated?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void)[] | null | undefined;
|
|
106
|
-
destroyed?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void)[] | null | undefined;
|
|
107
|
-
scroll?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void)[] | null | undefined;
|
|
108
|
-
} | null | undefined>;
|
|
109
|
-
};
|
|
110
|
-
defer: {
|
|
111
|
-
type: import('vue').PropType<boolean | IdleRequestOptions | undefined>;
|
|
112
|
-
};
|
|
113
|
-
}>> & {
|
|
114
|
-
onOsInitialized?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => any) | undefined;
|
|
115
|
-
onOsUpdated?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => any) | undefined;
|
|
116
|
-
onOsDestroyed?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => any) | undefined;
|
|
117
|
-
onOsScroll?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => any) | undefined;
|
|
118
|
-
}, {
|
|
119
|
-
osInstance(): import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars | null;
|
|
120
|
-
getElement(): HTMLElement | null;
|
|
121
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
122
|
-
osInitialized: (instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void;
|
|
123
|
-
osUpdated: (instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void;
|
|
124
|
-
osDestroyed: (instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void;
|
|
125
|
-
osScroll: (instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void;
|
|
126
|
-
}, string, {
|
|
127
|
-
element: string | import('vue').Component;
|
|
128
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
129
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
130
|
-
created?: (() => void) | (() => void)[];
|
|
131
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
132
|
-
mounted?: (() => void) | (() => void)[];
|
|
133
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
134
|
-
updated?: (() => void) | (() => void)[];
|
|
135
|
-
activated?: (() => void) | (() => void)[];
|
|
136
|
-
deactivated?: (() => void) | (() => void)[];
|
|
137
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
138
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
139
|
-
destroyed?: (() => void) | (() => void)[];
|
|
140
|
-
unmounted?: (() => void) | (() => void)[];
|
|
141
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
142
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
143
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
144
|
-
};
|
|
145
|
-
$forceUpdate: () => void;
|
|
146
|
-
$nextTick: typeof import('vue').nextTick;
|
|
147
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
148
|
-
} & Readonly<{
|
|
149
|
-
element: string | import('vue').Component;
|
|
150
|
-
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
151
|
-
element: {
|
|
152
|
-
type: import('vue').PropType<string | import('vue').Component>;
|
|
153
|
-
default: string;
|
|
154
|
-
};
|
|
155
|
-
options: {
|
|
156
|
-
type: import('vue').PropType<false | {
|
|
157
|
-
paddingAbsolute?: boolean | undefined;
|
|
158
|
-
showNativeOverlaidScrollbars?: boolean | undefined;
|
|
159
|
-
update?: {
|
|
160
|
-
elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
|
|
161
|
-
debounce?: number | [timeout: number, maxWait: number] | null | undefined;
|
|
162
|
-
attributes?: string[] | null | undefined;
|
|
163
|
-
ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
|
|
164
|
-
} | undefined;
|
|
165
|
-
overflow?: {
|
|
166
|
-
x?: import('../../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
167
|
-
y?: import('../../../../../../../../node_modules/overlayscrollbars').OverflowBehavior | undefined;
|
|
168
|
-
} | undefined;
|
|
169
|
-
scrollbars?: {
|
|
170
|
-
theme?: string | null | undefined;
|
|
171
|
-
visibility?: import('../../../../../../../../node_modules/overlayscrollbars').ScrollbarsVisibilityBehavior | undefined;
|
|
172
|
-
autoHide?: import('../../../../../../../../node_modules/overlayscrollbars').ScrollbarsAutoHideBehavior | undefined;
|
|
173
|
-
autoHideDelay?: number | undefined;
|
|
174
|
-
autoHideSuspend?: boolean | undefined;
|
|
175
|
-
dragScroll?: boolean | undefined;
|
|
176
|
-
clickScroll?: boolean | undefined;
|
|
177
|
-
pointers?: string[] | null | undefined;
|
|
178
|
-
} | undefined;
|
|
179
|
-
} | null | undefined>;
|
|
180
|
-
};
|
|
181
|
-
events: {
|
|
182
|
-
type: import('vue').PropType<false | {
|
|
183
|
-
initialized?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => void)[] | null | undefined;
|
|
184
|
-
updated?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => void)[] | null | undefined;
|
|
185
|
-
destroyed?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => void)[] | null | undefined;
|
|
186
|
-
scroll?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void) | ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => void)[] | null | undefined;
|
|
187
|
-
} | null | undefined>;
|
|
188
|
-
};
|
|
189
|
-
defer: {
|
|
190
|
-
type: import('vue').PropType<boolean | IdleRequestOptions | undefined>;
|
|
191
|
-
};
|
|
192
|
-
}>> & {
|
|
193
|
-
onOsInitialized?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars) => any) | undefined;
|
|
194
|
-
onOsUpdated?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, onUpdatedArgs: import('../../../../../../../../node_modules/overlayscrollbars').OnUpdatedEventListenerArgs) => any) | undefined;
|
|
195
|
-
onOsDestroyed?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, canceled: boolean) => any) | undefined;
|
|
196
|
-
onOsScroll?: ((instance: import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars, event: Event) => any) | undefined;
|
|
197
|
-
}, "element" | "osInstance" | "getElement"> & import('vue').ShallowUnwrapRef<{
|
|
198
|
-
osInstance(): import('../../../../../../../../node_modules/overlayscrollbars').OverlayScrollbars | null;
|
|
199
|
-
getElement(): HTMLElement | null;
|
|
200
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
201
|
-
$slots: {
|
|
202
|
-
default?(_: {}): any;
|
|
203
|
-
};
|
|
204
|
-
}) | null;
|
|
205
|
-
searchResultItemRef: HTMLAnchorElement[];
|
|
206
|
-
}, any, import('vue').ComponentProvideOptions, {
|
|
207
|
-
P: {};
|
|
208
|
-
B: {};
|
|
209
|
-
D: {};
|
|
210
|
-
C: {};
|
|
211
|
-
M: {};
|
|
212
|
-
Defaults: {};
|
|
213
|
-
}, Readonly<{}> & Readonly<{}>, {
|
|
214
|
-
toggle: (type?: "menu" | "tab") => void;
|
|
215
|
-
}, {}, {}, {}, {}> | null;
|
|
216
10
|
}, HTMLDivElement>;
|
|
217
11
|
export default _default;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
+
import { DropdownMenu } from '../Tools/interface';
|
|
1
2
|
type __VLS_Props = {
|
|
2
|
-
items:
|
|
3
|
-
icon?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
hide?: boolean;
|
|
7
|
-
handle?: () => void;
|
|
8
|
-
}[][];
|
|
3
|
+
items: DropdownMenu[];
|
|
9
4
|
};
|
|
10
5
|
declare function __VLS_template(): {
|
|
11
6
|
attrs: Partial<{}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type SearchType = 'menu' | 'tab';
|
|
2
|
+
declare function open(type?: SearchType): void;
|
|
3
|
+
declare function close(): void;
|
|
4
|
+
declare function toggle(type?: SearchType): void;
|
|
5
|
+
/**
|
|
6
|
+
* 全局搜索服务
|
|
7
|
+
* 可以支持多处挂载,只需要使用 `useGlobalSearch` 开启即可
|
|
8
|
+
* 这样可以避免如果使用快捷键可能会多处开启 search 的问题
|
|
9
|
+
*
|
|
10
|
+
* close [#38](https://github.com/wsypower/pubinfo/issues/38)
|
|
11
|
+
*/
|
|
12
|
+
export declare function useGlobalSearch(): {
|
|
13
|
+
isShow: import('vue').Ref<boolean, boolean>;
|
|
14
|
+
searchType: import('vue').Ref<SearchType, SearchType>;
|
|
15
|
+
open: typeof open;
|
|
16
|
+
close: typeof close;
|
|
17
|
+
toggle: typeof toggle;
|
|
18
|
+
};
|
|
19
|
+
export type { SearchType };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useHotkey({ menuStore, settingsStore, }: {
|
|
3
|
-
menuStore: ReturnType<typeof useMenuStore>;
|
|
4
|
-
settingsStore: ReturnType<typeof useSettingsStore>;
|
|
5
|
-
}): void;
|
|
1
|
+
export declare function useHotkey(): void;
|
|
@@ -3,6 +3,6 @@ import { Menu } from '../../../../types/menu';
|
|
|
3
3
|
* 用于管理菜单功能的自定义组合函数。
|
|
4
4
|
* @returns 一个包含 `switchTo` 函数的对象。
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare function useMenu(): {
|
|
7
7
|
switchTo: (index: number | string, mainRouter?: Menu.recordMainRaw) => void;
|
|
8
8
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { useSettingsStore } from '../../../features/stores';
|
|
2
|
+
export declare function useTitle(appTitle: string, settingsStore: ReturnType<typeof useSettingsStore>): {
|
|
2
3
|
generateI18nTitle: (key?: string, defaultTitle?: string | (() => any)) => any;
|
|
3
4
|
};
|