tiny-vue/examples/sites/demos/mobile-first/app/standard-list-item/content-slot.vue

54 lines
1.1 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="h-64 w-full p-5 bg-color-bg-5">
<tiny-standard-list-item
:show-image="true"
:user-head="userHeadOption"
:options="iconOptions"
class="bg-color-bg-1"
>
<div>内容区域插槽可以自定义想展示的内容</div>
</tiny-standard-list-item>
</div>
</template>
<script>
import { StandardListItem } from '@opentiny/vue'
import { IconDel, IconWriting, IconAscending, IconShare } from '@opentiny/vue-icon'
export default {
components: {
TinyStandardListItem: StandardListItem
},
data() {
return {
userHeadOption: {
type: 'image',
size: 40,
value: `${import.meta.env.VITE_APP_BUILD_BASE_URL}static/images/1.jpg`,
round: true
},
iconOptions: [
{
text: '删除列表',
icon: IconDel()
},
{
text: '编辑',
icon: IconWriting(),
disabled: true
},
{
text: '排序',
icon: IconAscending()
},
{
text: '分享',
icon: IconShare(),
disabled: true
}
]
}
}
}
</script>