primevue-mirror/pages/card/index.vue

61 lines
2.0 KiB
Vue
Raw Normal View History

2022-09-09 20:41:18 +00:00
<template>
<div>
<div class="content-section introduction">
<div class="feature-intro">
<h1>Card</h1>
<p>Card is a flexible container component.</p>
</div>
<AppDemoActions />
</div>
<div class="content-section implementation">
<Card style="width: 25rem; margin-bottom: 2em">
<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>
<Card style="width: 25em">
<template #header>
2022-12-08 12:26:57 +00:00
<img alt="user header" src="demo/images/usercard.png" />
2022-09-09 20:41:18 +00:00
</template>
<template #title> Advanced Card </template>
<template #subtitle> Card subtitle </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>
<template #footer>
<Button icon="pi pi-check" label="Save" />
<Button icon="pi pi-times" label="Cancel" class="p-button-secondary" style="margin-left: 0.5em" />
</template>
</Card>
</div>
<CardDoc />
</div>
</template>
<script>
import CardDoc from './CardDoc';
export default {
components: {
CardDoc: CardDoc
}
};
</script>
<style lang="scss" scoped>
p {
line-height: 1.5;
margin: 0;
}
</style>