2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<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>
|
2024-01-23 22:58:13 +00:00
|
|
|
<div class="mb-3 p-5 flex align-items-center justify-content-center">
|
2024-01-23 12:56:03 +00:00
|
|
|
<Card style="width: 25rem; overflow: hidden">
|
2023-02-28 08:29:30 +00:00
|
|
|
<template #header>
|
2024-01-23 12:56:03 +00:00
|
|
|
<img alt="user header" class="w-full" src="https://primefaces.org/cdn/primevue/images/card-vue.jpg" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
2024-01-23 12:56:03 +00:00
|
|
|
<template #title>Advanced Card</template>
|
|
|
|
<template #subtitle>Card subtitle</template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<template #content>
|
2023-10-21 12:32:52 +00:00
|
|
|
<p class="m-0">
|
2023-02-28 08:29:30 +00:00
|
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
|
|
|
|
quas!
|
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
<template #footer>
|
2024-01-23 12:56:03 +00:00
|
|
|
<div class="flex gap-3 mt-1">
|
|
|
|
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
|
|
|
<Button label="Save" class="w-full" />
|
|
|
|
</div>
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
|
|
|
</Card>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
2024-01-23 12:56:03 +00:00
|
|
|
<Card style="width: 25rem; overflow: hidden">
|
2023-02-28 08:29:30 +00:00
|
|
|
<template #header>
|
|
|
|
<img alt="user header" src="/images/usercard.png" />
|
|
|
|
</template>
|
2024-01-23 12:56:03 +00:00
|
|
|
<template #title>Advanced Card</template>
|
|
|
|
<template #subtitle>Card subtitle</template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<template #content>
|
2023-10-21 12:32:52 +00:00
|
|
|
<p class="m-0">
|
2023-02-28 08:29:30 +00:00
|
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
|
|
|
|
quas!
|
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
<template #footer>
|
2024-01-23 12:56:03 +00:00
|
|
|
<div class="flex gap-3 mt-1">
|
|
|
|
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
|
|
|
<Button label="Save" class="w-full" />
|
|
|
|
</div>
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
2023-10-15 09:38:39 +00:00
|
|
|
</Card>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2024-01-23 22:58:13 +00:00
|
|
|
<Card style="width: 25rem; overflow: hidden">
|
|
|
|
<template #header>
|
|
|
|
<img alt="user header" src="https://primefaces.org/cdn/primevue/images/usercard.png" />
|
|
|
|
</template>
|
|
|
|
<template #title>Advanced Card</template>
|
|
|
|
<template #subtitle>Card subtitle</template>
|
|
|
|
<template #content>
|
|
|
|
<p class="m-0">
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
|
|
|
|
quas!
|
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
<template #footer>
|
|
|
|
<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>
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2024-01-23 22:58:13 +00:00
|
|
|
<Card style="width: 25rem; overflow: hidden">
|
|
|
|
<template #header>
|
|
|
|
<img alt="user header" src="https://primefaces.org/cdn/primevue/images/usercard.png" />
|
|
|
|
</template>
|
|
|
|
<template #title>Advanced Card</template>
|
|
|
|
<template #subtitle>Card subtitle</template>
|
|
|
|
<template #content>
|
|
|
|
<p class="m-0">
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
|
|
|
|
quas!
|
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
<template #footer>
|
|
|
|
<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>
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|