2023-03-02 02:59:44 +00:00
|
|
|
|
<docs>
|
|
|
|
|
---
|
|
|
|
|
order: 3
|
|
|
|
|
iframe: 360
|
|
|
|
|
title:
|
|
|
|
|
zh-CN: 描述
|
|
|
|
|
en-US: Description
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
|
|
可以通过 `description` 设置文字内容。
|
|
|
|
|
|
|
|
|
|
> 仅当 `shape` 属性为 `square` 时支持。由于空间较小,推荐使用比较精简的双数文字。
|
|
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
|
|
Setting `description` prop to show FloatButton with description.
|
|
|
|
|
|
|
|
|
|
> supported only when `shape` is `square`. Due to narrow space for text, short sentence is recommended.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</docs>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<a-float-button
|
|
|
|
|
shape="square"
|
|
|
|
|
description="HELP INFO"
|
|
|
|
|
:style="{
|
|
|
|
|
right: '24px',
|
|
|
|
|
}"
|
|
|
|
|
>
|
|
|
|
|
<template #icon>
|
|
|
|
|
<FileTextOutlined />
|
|
|
|
|
</template>
|
|
|
|
|
</a-float-button>
|
|
|
|
|
|
|
|
|
|
<a-float-button
|
|
|
|
|
shape="square"
|
|
|
|
|
description="HELP INFO"
|
|
|
|
|
:style="{
|
|
|
|
|
right: '94px',
|
|
|
|
|
}"
|
|
|
|
|
></a-float-button>
|
|
|
|
|
|
|
|
|
|
<a-float-button
|
|
|
|
|
shape="square"
|
|
|
|
|
description="HELP"
|
|
|
|
|
:style="{
|
|
|
|
|
right: '164px',
|
|
|
|
|
}"
|
|
|
|
|
>
|
|
|
|
|
<template #icon>
|
|
|
|
|
<FileTextOutlined />
|
|
|
|
|
</template>
|
|
|
|
|
</a-float-button>
|
|
|
|
|
</template>
|
|
|
|
|
|
2023-04-28 06:08:21 +00:00
|
|
|
|
<script lang="ts" setup>
|
2023-03-02 02:59:44 +00:00
|
|
|
|
import { FileTextOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
</script>
|