Skip to content

Expandable Action Bar ​

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

预览 ​

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { ExpandableActionBar } from 'beui-vue'
const current = ref('edit')
const items = [{id:'edit',label:'Edit',icon:'✎'},{id:'save',label:'Save',icon:'✓'},{id:'share',label:'Share',icon:'↗'}]
</script>
<template><ExpandableActionBar :items="items" :active-id="current" @action="current=$event.id" /></template>

API ​

items 描述动作、图标与禁用状态,v-model:expanded 控制工具栏展开,activeId 指示当前动作,@action 接收条目。

还原验收 ​

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