mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Button section pt demos added
This commit is contained in:
parent
36dc999bda
commit
cf7eb76578
11 changed files with 578 additions and 4 deletions
44
doc/button/pt/PTDoc.vue
Normal file
44
doc/button/pt/PTDoc.vue
Normal file
|
@ -0,0 +1,44 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs"> </DocSectionText>
|
||||
<div class="card flex flex-wrap gap-3 justify-content-center">
|
||||
<Button label="Submit" icon="pi pi-check" :pt="{ root: { class: 'bg-indigo-600 border-indigo-600' } }" />
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<Button label="Submit" icon="pi pi-check"
|
||||
:pt="{
|
||||
root: { class: 'bg-indigo-600 border-indigo-600' }
|
||||
}"
|
||||
/>`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex flex-wrap gap-3 justify-content-center">
|
||||
<Button label="Submit" icon="pi pi-check"
|
||||
:pt="{
|
||||
root: { class: 'bg-indigo-600 border-indigo-600' }
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
</template>`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card flex flex-wrap gap-3 justify-content-center">
|
||||
<Button label="Submit" icon="pi pi-check"
|
||||
:pt="{
|
||||
root: { class: 'bg-indigo-600 border-indigo-600' }
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
</template>`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
8
doc/button/pt/PTImage.vue
Normal file
8
doc/button/pt/PTImage.vue
Normal file
|
@ -0,0 +1,8 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>{{ $attrs.description }}</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/wireframe-placeholder.jpg" />
|
||||
</div>
|
||||
</template>
|
41
doc/button/pt/index.vue
Normal file
41
doc/button/pt/index.vue
Normal file
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
<div class="doc-main">
|
||||
<div class="doc-intro">
|
||||
<h1>Button Pass Through</h1>
|
||||
</div>
|
||||
<DocSections :docs="docs" />
|
||||
</div>
|
||||
<DocSectionNav :docs="docs" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DocApiTable from '@/components/doc/DocApiTable.vue';
|
||||
import { getPTOption } from '@/components/doc/helpers/PTHelper.js';
|
||||
import PtDoc from './PTDoc.vue';
|
||||
import PTImage from './PTImage.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
docs: [
|
||||
{
|
||||
id: 'pt.image',
|
||||
label: 'Wireframe',
|
||||
component: PTImage
|
||||
},
|
||||
{
|
||||
id: 'pt.doc.button',
|
||||
label: 'Button PT Options',
|
||||
component: DocApiTable,
|
||||
data: getPTOption('Button')
|
||||
},
|
||||
{
|
||||
id: 'pt.demo',
|
||||
label: 'Demo',
|
||||
component: PtDoc
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue