Added ptOptions doc

pull/4476/head
mertsincan 2023-09-20 13:23:57 +01:00
parent 44212378dc
commit dbbd4e4486
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<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>

View File

@ -19,6 +19,7 @@
import ImportDoc from '@/doc/configuration/ImportDoc';
import InputStyleDoc from '@/doc/configuration/InputStyleDoc';
import PTDoc from '@/doc/configuration/PTDoc.vue';
import PTOptionsDoc from '@/doc/configuration/PTOptionsDoc.vue';
import RippleDoc from '@/doc/configuration/RippleDoc';
import UnstyledDoc from '@/doc/configuration/UnstyledDoc';
import ZIndexDoc from '@/doc/configuration/ZIndexDoc';
@ -46,6 +47,11 @@ export default {
label: 'Pass Through',
component: PTDoc
},
{
id: 'ptoptions',
label: 'Pass Through Options',
component: PTOptionsDoc
},
{
id: 'ripple',
label: 'Ripple',