mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Theming API: update nuxt-primevue module
This commit is contained in:
parent
b5e53e6fa3
commit
a5dff7722e
11 changed files with 46 additions and 50 deletions
|
@ -1,5 +1,5 @@
|
|||
// @ts-expect-error
|
||||
import { styles } from '#primevue-style';
|
||||
import { styles, themes } from '#primevue-style';
|
||||
//import { useRuntimeConfig } from '#imports';
|
||||
|
||||
const defineNitroPlugin = (def) => def;
|
||||
|
@ -7,7 +7,7 @@ const defineNitroPlugin = (def) => def;
|
|||
export default defineNitroPlugin(async (nitroApp) => {
|
||||
nitroApp.hooks.hook('render:html', (html) => {
|
||||
html.head.push(styles);
|
||||
//html.head.push(themes);
|
||||
html.head.push(themes);
|
||||
//html.htmlAttrs.push('class="p-dark"'); // @todo
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue