primevue-mirror/doc/nuxt/SetupDoc.vue

63 lines
1.5 KiB
Vue
Raw Normal View History

2023-10-15 20:57:44 +00:00
<template>
<DocSectionText v-bind="$attrs">
2023-10-15 21:00:28 +00:00
<p>The module is enabled by adding <i>nuxt-primevue</i> to the modules option. Configuration values are defined with the <i>primevue</i> property.</p>
2023-10-15 20:57:44 +00:00
<DocSectionCode :code="code1" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
2023-10-15 21:00:28 +00:00
<p>The complete API with the all available configuration options along with the default values.</p>
2023-10-15 20:57:44 +00:00
<DocSectionCode :code="code2" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
export default defineNuxtConfig({
modules: [
'nuxt-primevue'
],
2023-10-25 11:50:23 +00:00
primevue: {
/* Options */
2023-10-15 20:57:44 +00:00
}
})
`
},
code2: {
basic: `
export default defineNuxtConfig({
modules: [
'nuxt-primevue'
],
2023-10-25 11:50:23 +00:00
primevue: {
2023-10-15 20:57:44 +00:00
usePrimeVue: true,
options: {},
2023-10-25 11:50:23 +00:00
importPT: undefined,
cssLayerOrder: 'tailwind-base, primevue, tailwind-utilities',
2023-10-15 20:57:44 +00:00
components: {
prefix: '',
name: undefined,
include: undefined,
exclude: undefined
},
directives: {
prefix: '',
name: undefined,
include: undefined,
exclude: undefined
},
composables: {
prefix: '',
name: undefined,
include: undefined,
exclude: undefined
}
}
2023-10-25 11:50:23 +00:00
})
2023-10-15 20:57:44 +00:00
`
}
};
}
};
</script>