perf: 收敛前端按需加载与图标导入

- 延迟加载第三方登录组件并使用按需 SVG 图标入口

- 修复 CardList 图标依赖并整理组件格式
This commit is contained in:
2026-07-27 19:42:03 +08:00
parent 908eb5583d
commit 24b1142738
8 changed files with 38 additions and 35 deletions

View File

@@ -127,11 +127,12 @@ const strategyOptions = [
},
];
const fileExt = computed(() =>
String(props.documentTitle || '')
.split('.')
.pop()
?.toLowerCase() || '',
const fileExt = computed(
() =>
String(props.documentTitle || '')
.split('.')
.pop()
?.toLowerCase() || '',
);
const isPptx = computed(() => fileExt.value === 'pptx');

View File

@@ -12,7 +12,7 @@ import {
SvgCakeIcon,
SvgCardIcon,
SvgDownloadIcon,
} from '@easyflow/icons';
} from '@easyflow/icons/svg';
import AnalyticsTrends from './analytics-trends.vue';
import AnalyticsVisitsData from './analytics-visits-data.vue';