-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathdescription.vue
61 lines (49 loc) · 1.05 KB
/
description.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<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" setup>
import { FileTextOutlined } from '@ant-design/icons-vue';
</script>