perf: 收敛前端按需加载与图标导入
- 延迟加载第三方登录组件并使用按需 SVG 图标入口 - 修复 CardList 图标依赖并整理组件格式
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user