Skip to content
目录

Button

何时使用

按钮用于开始一个即时操作。 标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。

代码演示

button

disabled button

块button

tsx
<script setup>
import { AlanButton } from "@xiaomh/vue3-alan-vite-component"

</script>
<alan-button type="primary">1231</alan-button>

<script setup>
import { AlanButton } from "@xiaomh/vue3-alan-vite-component"

</script>
<alan-button type="primary">1231</alan-button>

1
2
3
4
5
6

API

属性说明

属性说明类型默认值版本
block将按钮宽度调整为其父宽度的选项booleanfalse1.0.11
disabled按钮失效状态booleanfalse1.0.11
type设置按钮类型primarydefaultdefault

Welcome to the site