feat: 添加 PrimeVue 组件并更新样式,增强按钮交互体验

This commit is contained in:
严浩
2024-11-22 12:34:43 +08:00
parent 30721736a4
commit 2bbe9c7a59
13 changed files with 136 additions and 25 deletions

View File

@ -10,6 +10,9 @@ import App from './App.vue';
import { router } from './router';
import { createI18n } from 'vue-i18n';
import PrimeVue from 'primevue/config';
import Aura from '@primevue/themes/aura';
/* https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n#static-bundle-importing
* All i18n resources specified in the plugin `include` option can be loaded
* at once using the import syntax
@ -46,6 +49,11 @@ async function init() {
messages,
}),
);
app.use(PrimeVue, {
theme: {
preset: Aura,
},
});
app.config.globalProperties.$__DEV__ = $__DEV__;
app.mount('#app');
}