primevue-mirror/apps/showcase/doc/nuxt/configuration/ImportPTDoc.vue

39 lines
798 B
Vue
Raw Normal View History

2023-10-25 03:17:40 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Configures the global pass through import path.</p>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code1" importCode hideToggleCode hideStackBlitz />
2024-06-12 21:12:30 +00:00
<p><i>mycustompt.js</i> file defines the configuration and exports it.</p>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
2023-10-25 03:17:40 +00:00
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
2024-01-30 08:16:35 +00:00
primevue: {
2024-06-12 21:12:30 +00:00
importPT: { from: '@/passthrough/mycustompt.js')}
2023-10-25 03:17:40 +00:00
}
`
},
code2: {
basic: `
2024-06-12 21:12:30 +00:00
const MyCustomPT = {
2023-10-25 03:17:40 +00:00
...
button: {
root: 'my-button',
...
},
...
}
2024-06-12 21:12:30 +00:00
export default MyCustomPT;
2023-10-25 03:17:40 +00:00
`
}
};
}
};
</script>