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.
52 lines
752 B
52 lines
752 B
<docs>
|
|
---
|
|
order: 2
|
|
iframe: 360
|
|
title:
|
|
zh-CN: 形状
|
|
en-US: Shape
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
最简单的用法。
|
|
|
|
## en-US
|
|
|
|
The most basic usage.
|
|
|
|
</docs>
|
|
|
|
<template>
|
|
<a-float-button @click="handleClick" />
|
|
|
|
<a-float-button
|
|
shape="circle"
|
|
type="primary"
|
|
:style="{
|
|
right: '94px',
|
|
}"
|
|
>
|
|
<template #icon>
|
|
<CustomerServiceOutlined />
|
|
</template>
|
|
</a-float-button>
|
|
|
|
<a-float-button
|
|
shape="square"
|
|
type="primary"
|
|
:style="{
|
|
right: '24px',
|
|
}"
|
|
>
|
|
<template #icon>
|
|
<CustomerServiceOutlined />
|
|
</template>
|
|
</a-float-button>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { CustomerServiceOutlined } from '@ant-design/icons-vue';
|
|
const handleClick = () => console.log('click');
|
|
</script>
|