mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Demo updates
This commit is contained in:
parent
f63c4c7c3f
commit
deed42de60
16 changed files with 66 additions and 59 deletions
|
@ -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;
|
||||
`
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue