Demo updates

This commit is contained in:
Cagatay Civici 2024-06-13 00:12:30 +03:00
parent f63c4c7c3f
commit deed42de60
16 changed files with 66 additions and 59 deletions

View file

@ -2,6 +2,7 @@
<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>
@ -13,13 +14,13 @@ export default {
code1: {
basic: `
primevue: {
importPT: { as: 'MyCustomPreset', from: path.resolve(__dirname, './presets/mypreset.js')}
importPT: { from: '@/passthrough/mycustompt.js')}
}
`
},
code2: {
basic: `
const MyPreset = {
const MyCustomPT = {
...
button: {
root: 'my-button',
@ -28,7 +29,7 @@ const MyPreset = {
...
}
export default MyPreset;
export default MyCustomPT;
`
}
};