33 lines
1.0 KiB
Vue
33 lines
1.0 KiB
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>
|
|
Used to configure the <i>ptOptions</i> properties of components and the <i>usePassThrough</i> method. The <i>mergeSections</i> defines whether the sections from the main configuration gets added and the <i>mergeProps</i> controls whether
|
|
to override or merge the defined props. Defaults are <i>true</i> for <i>mergeSections</i> and <i>false</i> for <i>mergeProps</i>. Visit the <NuxtLink to="/passthrough">Pass Through Props</NuxtLink> documentation for more information.
|
|
</p>
|
|
</DocSectionText>
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `
|
|
import { createApp } from "vue";
|
|
import PrimeVue from "primevue/config";
|
|
const app = createApp(App);
|
|
|
|
app.use(PrimeVue, {
|
|
ptOptions: {
|
|
mergeSections: true,
|
|
mergeProps: false
|
|
}
|
|
});
|
|
`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|