🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.0 KiB

<docs>
---
order: 6
iframe: 360
title:
zh-CN: 菜单模式
en-US: Menu mode
---
## zh-CN
设置 `trigger` 属性即可开启菜单模式提供 `hover` `click` 两种触发方式
## en-US
Open menu mode with `trigger`, which could be `hover` or `click`.
</docs>
<template>
<a-float-button-group trigger="click" type="primary" :style="{ right: '24px' }">
<template #icon>
<CustomerServiceOutlined />
</template>
<a-float-button />
<a-float-button>
<template #icon>
<CommentOutlined />
</template>
</a-float-button>
</a-float-button-group>
<a-float-button-group trigger="hover" type="primary" :style="{ right: '94px' }">
<template #icon>
<CustomerServiceOutlined />
</template>
<a-float-button />
<a-float-button>
<template #icon>
<CommentOutlined />
</template>
</a-float-button>
</a-float-button-group>
</template>
<script lang="ts" setup>
import { CustomerServiceOutlined, CommentOutlined } from '@ant-design/icons-vue';
</script>