feat: 更新 index.html 和样式文件,优化样式导入和结构
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 1m34s
/ depcheck (push) Successful in 1m28s
/ playwright (push) Failing after 3m25s

This commit is contained in:
严浩
2024-12-23 10:44:47 +08:00
parent 4037060842
commit de9260dcf5
7 changed files with 19 additions and 74 deletions

View File

@ -1,24 +0,0 @@
/**
* 需要把 <DynamicDialog /> <ConfirmDialog /> <Toast /> 放在 App.vue 的 template 中
*/
import Aura from '@primevue/themes/aura';
import zhCN from 'primelocale/zh-CN.json';
import PrimeVue from 'primevue/config';
export function setupPrimeVue(app: import('vue').App) {
app.use(PrimeVue, {
locale: {
...zhCN['zh-CN'],
noFileChosenMessage: '未选择文件',
pending: '待上传',
completed: '已上传',
}, // usePrimeVue().config.locale
theme: { preset: Aura },
options: {
prefix: 'p',
darkModeSelector: 'system',
cssLayer: false,
},
});
}