New card demo
parent
12611988ed
commit
229e491405
|
@ -3,9 +3,9 @@
|
|||
<p>Card provides <i>header</i>, <i>title</i>, <i>subtitle</i>, <i>content</i> and <i>footer</i> as the named templates to place content.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex align-items-center justify-content-center">
|
||||
<Card style="width: 25em">
|
||||
<Card style="width: 25rem; overflow: hidden">
|
||||
<template #header>
|
||||
<img alt="user header" class="w-full" src="https://primefaces.org/cdn/primevue/images/usercard.png" />
|
||||
<img alt="user header" class="w-full" src="https://primefaces.org/cdn/primevue/images/card-vue.jpg" />
|
||||
</template>
|
||||
<template #title>Advanced Card</template>
|
||||
<template #subtitle>Card subtitle</template>
|
||||
|
@ -16,8 +16,10 @@
|
|||
</p>
|
||||
</template>
|
||||
<template #footer>
|
||||
<Button icon="pi pi-check" label="Save" />
|
||||
<Button icon="pi pi-times" label="Cancel" severity="secondary" style="margin-left: 0.5em" />
|
||||
<div class="flex gap-3 mt-1">
|
||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||
<Button label="Save" class="w-full" />
|
||||
</div>
|
||||
</template>
|
||||
</Card>
|
||||
</div>
|
||||
|
@ -30,7 +32,7 @@ export default {
|
|||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<Card style="width: 25em">
|
||||
<Card style="width: 25rem; overflow: hidden">
|
||||
<template #header>
|
||||
<img alt="user header" src="/images/usercard.png" />
|
||||
</template>
|
||||
|
@ -43,15 +45,17 @@ export default {
|
|||
</p>
|
||||
</template>
|
||||
<template #footer>
|
||||
<Button icon="pi pi-check" label="Save" />
|
||||
<Button icon="pi pi-times" label="Cancel" severity="secondary" style="margin-left: 0.5em" />
|
||||
<div class="flex gap-3 mt-1">
|
||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||
<Button label="Save" class="w-full" />
|
||||
</div>
|
||||
</template>
|
||||
</Card>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex align-items-center justify-content-center">
|
||||
<Card style="width: 25em">
|
||||
<Card style="width: 25rem; overflow: hidden">
|
||||
<template #header>
|
||||
<img alt="user header" src="https://primefaces.org/cdn/primevue/images/usercard.png" />
|
||||
</template>
|
||||
|
@ -64,8 +68,10 @@ export default {
|
|||
</p>
|
||||
</template>
|
||||
<template #footer>
|
||||
<Button icon="pi pi-check" label="Save" />
|
||||
<Button icon="pi pi-times" label="Cancel" severity="secondary" style="margin-left: 0.5em" />
|
||||
<div class="flex gap-3 mt-1">
|
||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||
<Button label="Save" class="w-full" />
|
||||
</div>
|
||||
</template>
|
||||
</Card>
|
||||
</div>
|
||||
|
@ -77,7 +83,7 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card flex align-items-center justify-content-center">
|
||||
<Card style="width: 25em">
|
||||
<Card style="width: 25rem; overflow: hidden">
|
||||
<template #header>
|
||||
<img alt="user header" src="https://primefaces.org/cdn/primevue/images/usercard.png" />
|
||||
</template>
|
||||
|
@ -90,8 +96,10 @@ export default {
|
|||
</p>
|
||||
</template>
|
||||
<template #footer>
|
||||
<Button icon="pi pi-check" label="Save" />
|
||||
<Button icon="pi pi-times" label="Cancel" severity="secondary" style="margin-left: 0.5em" />
|
||||
<div class="flex gap-3 mt-1">
|
||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||
<Button label="Save" class="w-full" />
|
||||
</div>
|
||||
</template>
|
||||
</Card>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue