kui-vue
Version:
A lightweight desktop UI component library suitable for Vue.js 2.
22 lines (20 loc) • 523 B
Markdown
<cn>
### 附加内容
可以在页签右边添加附加操作。
</cn>
```vue
<template>
<Tabs v-model="current">
<TabPanel key="1" title="Tab 1"> Content of Tab Pane 1 </TabPanel>
<TabPanel key="2" title="Tab 2"> Content of Tab Pane 2 </TabPanel>
<TabPanel key="3" title="Tab 3"> Content of Tab Pane 3 </TabPanel>
<template #extra>
<Button size="small">Extra Operate</Button>
</template>
</Tabs>
</template>
<script setup>
import { ref } from "vue";
const current = ref("1");
</script>
```