feat: add prime vue

This commit is contained in:
yanghao05
2025-04-01 17:51:50 +08:00
parent f696dfdfe8
commit fe9a80405d
12 changed files with 339 additions and 1023 deletions

View File

@@ -1,6 +1,11 @@
import Aura from '@primeuix/themes/aura';
import PrimeVue from 'primevue/config';
import { createApp } from 'vue';
import App from './App.vue';
import { router } from './router';
import { router } from './router.js';
// Import only the required PrimeVue styles
import 'primeicons/primeicons.css'; // Icons
import './style.css';
// Log environment information during app initialization
@@ -13,4 +18,18 @@ if (typeof import.meta !== 'undefined') {
}
console.log('=============================');
createApp(App).use(router).mount('#app');
const app = createApp(App)
app.use(router);
app.use(PrimeVue, {
theme: {
preset: Aura,
},
ripple: true,
options: {
darkModeSelector: '.my-app-dark',
}
})
// Remove global component registrations
app.mount('#app');