76 lines
2.4 KiB
Vue
76 lines
2.4 KiB
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>A simple Card is created with a <i>title</i> property along with the content as children.</p>
|
|
</DocSectionText>
|
|
<div class="card">
|
|
<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>
|
|
</div>
|
|
<DocSectionCode :code="code" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `
|
|
<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>
|
|
`,
|
|
options: `
|
|
<template>
|
|
<div class="card">
|
|
<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>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
<\/script>
|
|
`,
|
|
composition: `
|
|
<template>
|
|
<div class="card">
|
|
<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>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
<\/script>
|
|
`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|