mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Updated docs for module and Tailwimd
This commit is contained in:
parent
847decab12
commit
1b120c9e1a
6 changed files with 101 additions and 3 deletions
47
doc/nuxt/configuration/ImportPTDoc.vue
Normal file
47
doc/nuxt/configuration/ImportPTDoc.vue
Normal file
|
@ -0,0 +1,47 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Configures the global pass through import path.</p>
|
||||
|
||||
<DocSectionCode :code="code1" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||
<p>The path may also be a location within your application.</p>
|
||||
<DocSectionCode :code="code2" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||
<DocSectionCode :code="code3" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||
</DocSectionText>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code1: {
|
||||
basic: `
|
||||
primevue: {
|
||||
importPT: { as: 'Tailwind', from: 'primevue/passthrough/tailwind' },
|
||||
}
|
||||
`
|
||||
},
|
||||
code2: {
|
||||
basic: `
|
||||
primevue: {
|
||||
importPT: { as: 'MyCustomPreset', from: path.resolve(__dirname, './assets/presets/mypreset.js')}
|
||||
}
|
||||
`
|
||||
},
|
||||
code3: {
|
||||
basic: `
|
||||
const MyPreset = {
|
||||
...
|
||||
button: {
|
||||
root: 'my-button',
|
||||
...
|
||||
},
|
||||
...
|
||||
}
|
||||
|
||||
export default MyPreset;
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue