2023-03-02 02:59:44 +00:00
|
|
|
|
<docs>
|
|
|
|
|
---
|
|
|
|
|
order: 5
|
|
|
|
|
iframe: 360
|
|
|
|
|
title:
|
|
|
|
|
zh-CN: 浮动按钮组
|
|
|
|
|
en-US: FloatButton Group
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
|
|
按钮组合使用时,推荐使用 `<FloatButton.Group />`,并通过设置 `shape` 属性改变悬浮按钮组的形状。悬浮按钮组的 `shape` 会覆盖内部 FloatButton 的 `shape` 属性。
|
|
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
|
|
When multiple buttons are used together, `<FloatButton.Group />` is recommended. By setting `shape` of FloatButton.Group, you can change the shape of group. `shape` of FloatButton.Group will override `shape` of FloatButton inside.
|
|
|
|
|
|
|
|
|
|
</docs>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<a-float-button-group shape="circle" :style="{ right: '24px' }">
|
|
|
|
|
<a-float-button>
|
|
|
|
|
<template #icon>
|
|
|
|
|
<QuestionCircleOutlined />
|
|
|
|
|
</template>
|
|
|
|
|
</a-float-button>
|
|
|
|
|
<a-float-button />
|
2023-03-03 08:58:47 +00:00
|
|
|
|
<a-back-top :visibility-height="0" />
|
2023-03-02 02:59:44 +00:00
|
|
|
|
</a-float-button-group>
|
|
|
|
|
<a-float-button-group shape="square" :style="{ right: '94px' }">
|
|
|
|
|
<a-float-button>
|
|
|
|
|
<template #icon>
|
|
|
|
|
<QuestionCircleOutlined />
|
|
|
|
|
</template>
|
|
|
|
|
</a-float-button>
|
|
|
|
|
<a-float-button />
|
|
|
|
|
|
|
|
|
|
<a-float-button>
|
|
|
|
|
<template #icon>
|
|
|
|
|
<SyncOutlined />
|
|
|
|
|
</template>
|
|
|
|
|
</a-float-button>
|
2023-03-03 08:58:47 +00:00
|
|
|
|
<a-back-top :visibility-height="0" />
|
2023-03-02 02:59:44 +00:00
|
|
|
|
</a-float-button-group>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
|
import { QuestionCircleOutlined, SyncOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
components: { QuestionCircleOutlined, SyncOutlined },
|
|
|
|
|
setup() {
|
|
|
|
|
return {};
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
</script>
|