feat: 新增图标选择器组件及相关功能;更新路由配置和类型定义;修复依赖地址
This commit is contained in:
2
src/typings/components.d.ts
vendored
2
src/typings/components.d.ts
vendored
@@ -34,6 +34,7 @@ declare module 'vue' {
|
||||
IconMdiKeyboardEsc: typeof import('~icons/mdi/keyboard-esc')['default']
|
||||
IconMdiKeyboardReturn: typeof import('~icons/mdi/keyboard-return')['default']
|
||||
IconMdiRefresh: typeof import('~icons/mdi/refresh')['default']
|
||||
IconPicker: typeof import('./../components/custom/icon-picker.vue')['default']
|
||||
IconTooltip: typeof import('./../components/common/icon-tooltip.vue')['default']
|
||||
IconUilSearch: typeof import('~icons/uil/search')['default']
|
||||
LangSwitch: typeof import('./../components/common/lang-switch.vue')['default']
|
||||
@@ -124,6 +125,7 @@ declare global {
|
||||
const IconMdiKeyboardEsc: typeof import('~icons/mdi/keyboard-esc')['default']
|
||||
const IconMdiKeyboardReturn: typeof import('~icons/mdi/keyboard-return')['default']
|
||||
const IconMdiRefresh: typeof import('~icons/mdi/refresh')['default']
|
||||
const IconPicker: typeof import('./../components/custom/icon-picker.vue')['default']
|
||||
const IconTooltip: typeof import('./../components/common/icon-tooltip.vue')['default']
|
||||
const IconUilSearch: typeof import('~icons/uil/search')['default']
|
||||
const LangSwitch: typeof import('./../components/common/lang-switch.vue')['default']
|
||||
|
||||
21
src/typings/icon.d.ts
vendored
Normal file
21
src/typings/icon.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 图标相关类型定义
|
||||
*/
|
||||
|
||||
/** 图标集名称 */
|
||||
export type IconCollection = 'material-symbols' | 'cryptocurrency-color';
|
||||
|
||||
/** 图标完整路径 */
|
||||
export type IconPath = `${IconCollection}:${string}`;
|
||||
|
||||
/** 图标选择器配置 */
|
||||
export interface IconPickerOptions {
|
||||
/** 图标集前缀 */
|
||||
prefix?: IconCollection;
|
||||
/** 每页显示数量 */
|
||||
pageSize?: number;
|
||||
/** 弹窗宽度 */
|
||||
width?: number;
|
||||
/** 图标尺寸 */
|
||||
iconSize?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user