37 lines
437 B
Vue
37 lines
437 B
Vue
|
<docs>
|
||
|
---
|
||
|
order: 0
|
||
|
iframe: 360
|
||
|
title:
|
||
|
zh-CN: 基本
|
||
|
en-US: Basic Usage
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
最简单的用法。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
The most basic usage.
|
||
|
|
||
|
</docs>
|
||
|
|
||
|
<template>
|
||
|
<a-float-button @click="handleClick" />
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent } from 'vue';
|
||
|
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
const handleClick = () => console.log('click');
|
||
|
|
||
|
return {
|
||
|
handleClick,
|
||
|
};
|
||
|
},
|
||
|
});
|
||
|
</script>
|