mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2026-01-31 03:06:02 +08:00
faet(projects): global-search add pinyin-pro history collect
This commit is contained in:
7
src/typings/app.d.ts
vendored
7
src/typings/app.d.ts
vendored
@@ -109,6 +109,8 @@ declare namespace App {
|
||||
[K in keyof ThemeSettingToken]?: Partial<ThemeSettingToken[K]>;
|
||||
};
|
||||
};
|
||||
/** menu history max value */
|
||||
menuSearchHistoryMaxValue: number
|
||||
}
|
||||
|
||||
interface OtherColor {
|
||||
@@ -200,6 +202,11 @@ declare namespace App {
|
||||
children?: Menu[];
|
||||
};
|
||||
|
||||
/** The global search history or collect */
|
||||
type SearchHistoryOrCollect = Menu & {
|
||||
type: 'history' | 'collect';
|
||||
};
|
||||
|
||||
type Breadcrumb = Omit<Menu, 'children'> & {
|
||||
options?: Breadcrumb[];
|
||||
};
|
||||
|
||||
1
src/typings/components.d.ts
vendored
1
src/typings/components.d.ts
vendored
@@ -29,6 +29,7 @@ declare module 'vue' {
|
||||
IconIcRoundRefresh: typeof import('~icons/ic/round-refresh')['default']
|
||||
IconIcRoundRemove: typeof import('~icons/ic/round-remove')['default']
|
||||
IconIcRoundSearch: typeof import('~icons/ic/round-search')['default']
|
||||
IconIonClose: typeof import('~icons/ion/close')['default']
|
||||
IconLocalActivity: typeof import('~icons/local/activity')['default']
|
||||
IconLocalBanner: typeof import('~icons/local/banner')['default']
|
||||
IconLocalCast: typeof import('~icons/local/cast')['default']
|
||||
|
||||
4
src/typings/storage.d.ts
vendored
4
src/typings/storage.d.ts
vendored
@@ -35,5 +35,9 @@ declare namespace StorageType {
|
||||
layout: UnionKey.ThemeLayoutMode;
|
||||
siderCollapse: boolean;
|
||||
};
|
||||
/** The search history */
|
||||
searchHistory: App.Global.SearchHistoryOrCollect[]
|
||||
/** The search collect */
|
||||
searchCollect: App.Global.SearchHistoryOrCollect[]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user