Theming API: Refactor on shocase
parent
205aa1bbae
commit
ac1360664e
|
@ -22,12 +22,13 @@ export default defineNuxtConfig({
|
||||||
'/installation': { redirect: { to: '/vite', statusCode: 301 } }
|
'/installation': { redirect: { to: '/vite', statusCode: 301 } }
|
||||||
},
|
},
|
||||||
primevue: {
|
primevue: {
|
||||||
|
usePrimeVue: false,
|
||||||
options: {
|
options: {
|
||||||
ripple: true
|
ripple: true
|
||||||
},
|
},
|
||||||
unstyled: false,
|
unstyled: false,
|
||||||
layerOrder: 'primevue',
|
layerOrder: 'primevue',
|
||||||
importTheme: { from: '@/themes/app-theme.js' },
|
//importTheme: { from: '@/themes/app-theme.js' },
|
||||||
resolvePath: function ({ as, from, type }) {
|
resolvePath: function ({ as, from, type }) {
|
||||||
const resolvedPath = from.replace('primevue', '@/components/lib');
|
const resolvedPath = from.replace('primevue', '@/components/lib');
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import Noir from '@/themes/app-theme.js';
|
||||||
|
import PrimeVue from 'primevue/config';
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
|
|
||||||
const $appState = {
|
const $appState = {
|
||||||
|
@ -17,4 +19,5 @@ const $appState = {
|
||||||
|
|
||||||
export default defineNuxtPlugin((nuxtApp) => {
|
export default defineNuxtPlugin((nuxtApp) => {
|
||||||
nuxtApp.vueApp.use($appState);
|
nuxtApp.vueApp.use($appState);
|
||||||
|
nuxtApp.vueApp.use(PrimeVue, { theme: Noir });
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue