mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Chip pt demo added
This commit is contained in:
parent
b228f30c52
commit
3454c20f50
4 changed files with 110 additions and 2 deletions
56
doc/chip/pt/PTDoc.vue
Normal file
56
doc/chip/pt/PTDoc.vue
Normal file
|
@ -0,0 +1,56 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs"> </DocSectionText>
|
||||
<div class="card flex justify-content-center">
|
||||
<Chip
|
||||
label="Amy Elsner"
|
||||
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
|
||||
:pt="{
|
||||
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
|
||||
label: { class: 'text-white' }
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<Chip
|
||||
label="Amy Elsner"
|
||||
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
|
||||
:pt="{
|
||||
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
|
||||
label: { class: 'text-white' }
|
||||
}"
|
||||
/>`,
|
||||
options: `
|
||||
<template>
|
||||
<Chip
|
||||
label="Amy Elsner"
|
||||
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
|
||||
:pt="{
|
||||
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
|
||||
label: { class: 'text-white' }
|
||||
}"
|
||||
/>
|
||||
</template>`,
|
||||
composition: `
|
||||
<template>
|
||||
<Chip
|
||||
label="Amy Elsner"
|
||||
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
|
||||
:pt="{
|
||||
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
|
||||
label: { class: 'text-white' }
|
||||
}"
|
||||
/>
|
||||
</template>`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue