mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-13 16:35:56 +08:00
52 lines
752 B
Vue
52 lines
752 B
Vue
|
<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>
|