Added ptOptions doc
parent
44212378dc
commit
dbbd4e4486
|
@ -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>
|
|
@ -19,6 +19,7 @@
|
||||||
import ImportDoc from '@/doc/configuration/ImportDoc';
|
import ImportDoc from '@/doc/configuration/ImportDoc';
|
||||||
import InputStyleDoc from '@/doc/configuration/InputStyleDoc';
|
import InputStyleDoc from '@/doc/configuration/InputStyleDoc';
|
||||||
import PTDoc from '@/doc/configuration/PTDoc.vue';
|
import PTDoc from '@/doc/configuration/PTDoc.vue';
|
||||||
|
import PTOptionsDoc from '@/doc/configuration/PTOptionsDoc.vue';
|
||||||
import RippleDoc from '@/doc/configuration/RippleDoc';
|
import RippleDoc from '@/doc/configuration/RippleDoc';
|
||||||
import UnstyledDoc from '@/doc/configuration/UnstyledDoc';
|
import UnstyledDoc from '@/doc/configuration/UnstyledDoc';
|
||||||
import ZIndexDoc from '@/doc/configuration/ZIndexDoc';
|
import ZIndexDoc from '@/doc/configuration/ZIndexDoc';
|
||||||
|
@ -46,6 +47,11 @@ export default {
|
||||||
label: 'Pass Through',
|
label: 'Pass Through',
|
||||||
component: PTDoc
|
component: PTDoc
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'ptoptions',
|
||||||
|
label: 'Pass Through Options',
|
||||||
|
component: PTOptionsDoc
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'ripple',
|
id: 'ripple',
|
||||||
label: 'Ripple',
|
label: 'Ripple',
|
||||||
|
|
Loading…
Reference in New Issue