54 lines
1.4 KiB
Vue
54 lines
1.4 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 setup>
|
||
import { Card as TinyCard } from '@opentiny/vue'
|
||
import { IconDel, IconWriting, IconAscending, IconShare } from '@opentiny/vue-icon'
|
||
|
||
import { ref } from 'vue'
|
||
|
||
const options = ref([
|
||
{
|
||
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>
|