mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
New Nuxt docs
This commit is contained in:
parent
6798b17cf4
commit
18576538e7
15 changed files with 452 additions and 61 deletions
51
doc/nuxt/configuration/DirectivesDoc.vue
Normal file
51
doc/nuxt/configuration/DirectivesDoc.vue
Normal file
|
@ -0,0 +1,51 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>
|
||||
The names of the directives to import and register are provided using the <i>include</i> property. When the value is ignored or set using the * alias, all of the directives are registered.
|
||||
</p>
|
||||
<DocSectionCode :code="code1" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||
<p>
|
||||
Similar to components, certain directives can be excluded and name registration can be customized.
|
||||
</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: {
|
||||
directives: {
|
||||
include: ['Ripple', 'Tooltip']
|
||||
}
|
||||
}
|
||||
`
|
||||
},
|
||||
code2: {
|
||||
basic: `
|
||||
primevue: {
|
||||
directives: {
|
||||
include: '*',
|
||||
exclude: ['Ripple']
|
||||
}
|
||||
}
|
||||
`
|
||||
},
|
||||
code3: {
|
||||
basic: `
|
||||
primevue: {
|
||||
directives: {
|
||||
prefix: 'p'
|
||||
include: ['Ripple', 'Tooltip'] /* Used as v-pripple and v-ptooltip */
|
||||
}
|
||||
}
|
||||
`
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue