import * as Icons from '@arco-design/web-vue/es/icon' /** Arco Design 图标组件名列表(Icon 前缀,按字母排序) */ export const ARCO_ICON_NAMES: string[] = Object.keys(Icons) .filter((key) => key.startsWith('Icon') && key !== 'Icon') .sort((a, b) => a.localeCompare(b)) export function filterArcoIconNames(keyword: string): string[] { const q = keyword.trim().toLowerCase() if (!q) return ARCO_ICON_NAMES return ARCO_ICON_NAMES.filter((name) => name.toLowerCase().includes(q)) }