vuecssuiant-designantdreactantantd-vueenterprisefrontendui-designvue-antdvue-antd-uivue3vuecomponent
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
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>
|
|
|