primevue-mirror/apps/showcase/doc/card/BasicDoc.vue

72 lines
2.2 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
2023-08-22 07:40:07 +00:00
<DocSectionText v-bind="$attrs">
<p>A simple Card is created with a <i>title</i> property along with the content as children.</p>
</DocSectionText>
2024-05-20 12:14:38 +00:00
<div class="mb-4 p-8">
2023-08-22 07:40:07 +00:00
<Card>
2024-01-23 22:58:13 +00:00
<template #title>Simple Card</template>
2023-08-22 07:40:07 +00:00
<template #content>
<p class="m-0">
2023-08-22 07:40:07 +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>
2023-02-28 08:29:30 +00:00
</template>
2023-08-22 07:40:07 +00:00
</Card>
2023-02-28 08:29:30 +00:00
</div>
2023-08-22 07:40:07 +00:00
<DocSectionCode :code="code" />
2023-02-28 08:29:30 +00:00
</template>
2023-08-22 07:40:07 +00:00
<script>
export default {
data() {
return {
code: {
basic: `
<Card>
2024-01-23 22:58:13 +00:00
<template #title>Simple Card</template>
2023-08-22 07:40:07 +00:00
<template #content>
<p class="m-0">
2023-08-22 07:40:07 +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>
2023-10-15 09:38:39 +00:00
</Card>
`,
2023-08-22 07:40:07 +00:00
options: `
<template>
2024-01-23 22:58:13 +00:00
<Card>
<template #title>Simple Card</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>
</Card>
2023-08-22 07:40:07 +00:00
</template>
2023-08-22 07:40:07 +00:00
<script>
2023-10-15 09:38:39 +00:00
<\/script>
`,
2023-08-22 07:40:07 +00:00
composition: `
<template>
2024-01-23 22:58:13 +00:00
<Card>
<template #title>Simple Card</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>
</Card>
2023-08-22 07:40:07 +00:00
</template>
2023-08-22 07:40:07 +00:00
<script setup>
2023-10-15 09:38:39 +00:00
<\/script>
`
2023-02-28 08:29:30 +00:00
}
2023-08-22 07:40:07 +00:00
};
2023-02-28 08:29:30 +00:00
}
};
</script>