Skip to content

Morphing Tabs ​

Vue 已实现 · 还原验收 0/1 · 上游演示 · 固定版本源码

预览 ​

Write down project decisions.

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { MorphingTabs } from 'beui-vue'
const tabs = ref([
  {id:'notes',label:'Notes',content:'Write down project decisions.'},
  {id:'plan',label:'Plan',content:'Review the next milestone.'},
  {id:'assets',label:'Assets',content:'Browse shared resources.'},
])
function close(id:string) { tabs.value=tabs.value.filter(tab => tab.id !== id) }
</script>
<template><MorphingTabs :items="tabs" default-value="notes" :on-close="close" /></template>

API ​

items 与 v-model 配置标签。支持拖动或 Alt 加方向键排序,@order-change 返回顺序,onClose 处理关闭。

还原验收 ​

基于 beUI 的独立 Vue 移植,依 MIT 许可证分发。