primevue-mirror/apps/showcase/doc/nuxt/configuration/ImportPTDoc.vue
Carlos Castro c1c4c82aee
Update ImportPTDoc.vue
Removing extra character ")". This creates a error in the nuxt.config file.
2024-10-20 02:48:40 -07:00

38 lines
798 B
Vue

<template>
<DocSectionText v-bind="$attrs">
<p>Configures the global pass through import path.</p>
<DocSectionCode :code="code1" importCode hideToggleCode hideStackBlitz />
<p><i>mycustompt.js</i> file defines the configuration and exports it.</p>
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
primevue: {
importPT: { from: '@/passthrough/mycustompt.js' }
}
`
},
code2: {
basic: `
const MyCustomPT = {
...
button: {
root: 'my-button',
...
},
...
}
export default MyCustomPT;
`
}
};
}
};
</script>