feat: 侧边栏历史会话

This commit is contained in:
ChenZhaoYu
2023-02-13 13:47:41 +08:00
parent 951636869b
commit d7464642a7
7 changed files with 91 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
<script setup lang='ts'>
import { computed, useAttrs } from 'vue'
import { Icon } from '@iconify/vue'
interface Props {
icon?: string
}
defineProps<Props>()
const attrs = useAttrs()
const bindAttrs = computed<{ class: string; style: string }>(() => ({
class: (attrs.class as string) || '',
style: (attrs.style as string) || '',
}))
</script>
<template>
<Icon :icon="icon" v-bind="bindAttrs" />
</template>