Refactor on nuxt doc
parent
80aab2f90c
commit
2d66c39da4
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>The <a href="https://www.npmjs.com/package/nuxt-primevue" target="_blank" rel="noopener noreferrer">nuxt-prime</a> package is the official module by PrimeTek.</p>
|
||||
<p>The <a href="https://www.npmjs.com/package/nuxt-primevue" target="_blank" rel="noopener noreferrer">nuxt-primevue</a> package is the official module by PrimeTek.</p>
|
||||
</DocSectionText>
|
||||
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||
</template>
|
||||
|
|
|
@ -42,7 +42,7 @@ primevue: {
|
|||
primevue: {
|
||||
components: {
|
||||
prefix: 'Prime'
|
||||
include: ['Button', 'DataTable'] /* Used as <PrimeButton /> and <DataTable /> */
|
||||
include: ['Button', 'DataTable'] /* Used as <PrimeButton /> and <PrimeDataTable /> */
|
||||
}
|
||||
}
|
||||
`
|
||||
|
@ -51,7 +51,7 @@ primevue: {
|
|||
basic: `
|
||||
primevue: {
|
||||
components: {
|
||||
name: ({ name: string, as: string, from: string }) => {
|
||||
name: ({ name, as, from }) => {
|
||||
return name === 'Button' ? \`My\${name}\` : name;
|
||||
}
|
||||
include: ['Button', 'DataTable'] /* Used as <MyButton /> and <DataTable /> */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<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>
|
||||
<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 <i>*</i> 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 />
|
||||
|
|
Loading…
Reference in New Issue