forked from opentiny/tiny-vue
61 lines
1.5 KiB
Vue
61 lines
1.5 KiB
Vue
<template>
|
||
<div class="card-wrap">
|
||
<tiny-card title="这是卡片标题" :options="options" size="large">
|
||
<p>
|
||
这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,
|
||
这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,
|
||
</p>
|
||
</tiny-card>
|
||
<br />
|
||
<tiny-card title="这是卡片标题" :options="options" size="large" status="success">
|
||
<p>
|
||
这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,
|
||
这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,这是一段长文本内容,
|
||
</p>
|
||
</tiny-card>
|
||
<br />
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
import { Card } from '@opentiny/vue'
|
||
import { IconDel, IconWriting, IconAscending, IconShare } from '@opentiny/vue-icon'
|
||
|
||
export default {
|
||
components: {
|
||
TinyCard: Card
|
||
},
|
||
data() {
|
||
return {
|
||
options: [
|
||
{
|
||
text: '删除列表',
|
||
icon: IconDel()
|
||
},
|
||
{
|
||
text: '编辑',
|
||
icon: IconWriting(),
|
||
disabled: true
|
||
},
|
||
{
|
||
text: '排序',
|
||
icon: IconAscending()
|
||
},
|
||
{
|
||
text: '分享',
|
||
icon: IconShare(),
|
||
disabled: true
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style scoped>
|
||
.card-wrap {
|
||
background: #f5f5f5;
|
||
padding: 16px;
|
||
}
|
||
</style>
|