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'
|
|
|
|
],
|
|
|
|
primevue: {
|
|
|
|
/* Options */
|
|
|
|
}
|
|
|
|
})
|
|
|
|
`
|
|
|
|
},
|
|
|
|
code2: {
|
|
|
|
basic: `
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
modules: [
|
|
|
|
'nuxt-primevue'
|
|
|
|
],
|
|
|
|
primevue: {
|
|
|
|
usePrimeVue: true,
|
|
|
|
options: {},
|
|
|
|
components: {
|
|
|
|
prefix: '',
|
|
|
|
name: undefined,
|
|
|
|
include: undefined,
|
|
|
|
exclude: undefined
|
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
prefix: '',
|
|
|
|
name: undefined,
|
|
|
|
include: undefined,
|
|
|
|
exclude: undefined
|
|
|
|
},
|
|
|
|
composables: {
|
|
|
|
prefix: '',
|
|
|
|
name: undefined,
|
|
|
|
include: undefined,
|
|
|
|
exclude: undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|