kui-vue
Version:
A lightweight desktop UI component library suitable for Vue.js 2.
23 lines (21 loc) • 450 B
Markdown
<cn>
### 图标
有图标的标签。
</cn>
```vue
<template>
<Tabs v-model="current">
<TabPanel key="1" title="Tab 1" :icon="LogoApple">
Content of Tab Pane 1
</TabPanel>
<TabPanel key="2" title="Tab 2" :icon="LogoMicrosoft">
Content of Tab Pane 2
</TabPanel>
</Tabs>
</template>
<script setup>
import { ref } from "vue";
import { LogoApple, LogoMicrosoft } from "kui-icons";
const current = ref("1");
</script>
```