70 lines
1.2 KiB
Vue
70 lines
1.2 KiB
Vue
<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>
|
||
|
||
<script lang="ts">
|
||
import { defineComponent } from 'vue';
|
||
import { FileTextOutlined } from '@ant-design/icons-vue';
|
||
|
||
export default defineComponent({
|
||
components: { FileTextOutlined },
|
||
setup() {
|
||
return {};
|
||
},
|
||
});
|
||
</script>
|