PC Prefix section added
parent
ad63b5994e
commit
0d71d3224c
|
@ -0,0 +1,74 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Section names that start with the <i>pc</i> prefix indicate that the element is a PrimeVue component not a DOM element.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex justify-center">
|
||||
<Button
|
||||
type="button"
|
||||
label="Messages"
|
||||
icon="pi pi-users"
|
||||
badge="2"
|
||||
outlined
|
||||
:pt="{
|
||||
root: 'border-violet-500',
|
||||
label: 'text-violet-900 dark:text-violet-400',
|
||||
icon: 'text-violet-900 dark:text-violet-400',
|
||||
pcBadge: {
|
||||
root: '!bg-violet-400 !text-white'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<Button type="button" label="Messages" icon="pi pi-users" badge="2" outlined
|
||||
:pt="{
|
||||
root: 'border-violet-500',
|
||||
label: 'text-violet-900 dark:text-violet-400',
|
||||
icon: 'text-violet-900 dark:text-violet-400',
|
||||
pcBadge: {
|
||||
root: '!bg-violet-400 !text-white'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<Button type="button" label="Messages" icon="pi pi-users" badge="2" outlined
|
||||
:pt="{
|
||||
root: 'border-violet-500',
|
||||
label: 'text-violet-900 dark:text-violet-400',
|
||||
icon: 'text-violet-900 dark:text-violet-400',
|
||||
pcBadge: {
|
||||
root: '!bg-violet-400 !text-white'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
</template>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<Button type="button" label="Messages" icon="pi pi-users" badge="2" outlined
|
||||
:pt="{
|
||||
root: 'border-violet-500',
|
||||
label: 'text-violet-900 dark:text-violet-400',
|
||||
icon: 'text-violet-900 dark:text-violet-400',
|
||||
pcBadge: {
|
||||
root: '!bg-violet-400 !text-white'
|
||||
}
|
||||
}"
|
||||
/>
|
||||
</template>
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -21,6 +21,7 @@ import CustomCSSDoc from '@/doc/passthrough/CustomCSSDoc.vue';
|
|||
import DeclarativeDoc from '@/doc/passthrough/DeclarativeDoc.vue';
|
||||
import GlobalDoc from '@/doc/passthrough/GlobalDoc.vue';
|
||||
import LifecycleDoc from '@/doc/passthrough/LifecycleDoc.vue';
|
||||
import PCPrefixDoc from '@/doc/passthrough/PCPrefixDoc.vue';
|
||||
import UsePassThroughDoc from '@/doc/passthrough/UsePassThroughDoc.vue';
|
||||
|
||||
export default {
|
||||
|
@ -37,6 +38,11 @@ export default {
|
|||
label: 'Declarative',
|
||||
component: DeclarativeDoc
|
||||
},
|
||||
{
|
||||
id: 'pcprefix',
|
||||
label: 'PC Prefix',
|
||||
component: PCPrefixDoc
|
||||
},
|
||||
{
|
||||
id: 'lifecycle',
|
||||
label: 'Lifecycle',
|
||||
|
|
Loading…
Reference in New Issue