38 lines
762 B
Vue
Raw Normal View History

2022-01-05 18:04:41 +08:00
<template>
<n-space class="go-mt-0">
2022-02-06 01:04:05 +08:00
<n-button v-for="item in btnList" :key="item.title" ghost size="small">
2022-01-05 18:04:41 +08:00
<template #icon>
<component :is="item.icon"></component>
</template>
<span>
{{ item.title }}
</span>
</n-button>
</n-space>
</template>
<script setup lang="ts">
import { reactive } from 'vue'
import { renderIcon } from '@/utils'
import { icon } from '@/plugins'
const { DesktopOutlineIcon, SendIcon } = icon.ionicons5
const btnList = reactive([
{
select: true,
title: '预览',
icon: renderIcon(DesktopOutlineIcon)
},
{
select: true,
title: '发布',
icon: renderIcon(SendIcon)
}
])
</script>
<style lang="scss" scoped>
.align-center {
margin-top: -4px;
}
</style>