Appearance
控制按钮
¥Control Button
你可以使用现有的 ControlButton 组件创建新的控制按钮。
¥You can use the existing ControlButton component to create new control buttons.
用法
¥Usage
要使用该组件,请将 ControlButton 组件作为子组件传递给 Controls 组件。
¥To use the component pass the ControlButton component as a child to the Controls component.
vue
<template>
<VueFlow>
<Controls>
<ControlButton>
<i class="fa fa-plus"></i>
</ControlButton>
</Controls>
</VueFlow>
</template>插槽
¥Slots
| 名称 | 定义 |
|---|---|
| default | btn 按钮的内部插槽(由 <button> 元素封装) |