primevue-mirror/doc/card/BasicDoc.vue

76 lines
2.3 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>
2023-02-28 08:29:30 +00:00
<div class="card">
2023-08-22 07:40:07 +00:00
<Card>
<template #title> Simple Card </template>
<template #content>
<p>
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>
<template #title> Simple Card </template>
<template #content>
<p>
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>
<div class="card">
<Card>
<template #title> Simple Card </template>
<template #content>
<p>
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>
</div>
</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>
<div class="card">
<Card>
<template #title> Simple Card </template>
<template #content>
<p>
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>
</div>
</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>