Skip to content

控制按钮

🌐 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

名称定义
defaultbtn 的内部插槽(被 <button> 元素封装)

VueFlow 中文网 - 粤ICP备13048890号