faet(projects): global-search add pinyin-pro history collect

This commit is contained in:
Ben1111
2024-08-06 14:08:47 +08:00
parent d825b6e260
commit 7b33ce64bd
8 changed files with 313 additions and 34 deletions

View File

@@ -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[];
};

View File

@@ -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']

View File

@@ -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[]
}
}