Skip to content
On this page

Button

常见的操作按钮。

用法

type

设置按钮的类型。

size

设置按钮的尺寸。

state

设置按钮的状态。

shape

设置按钮的形状。

icon

设置按钮左右图标。

disabled

可以使用禁用属性定义是否禁用按钮。

属性

属性名可选值默认值描述
modesolid | white | outline | ghost | linksolid设置按钮类型
typebutton | reset | submitbutton设置按钮原生类型
shaperounded | pilled | circle | plainrounded设置按钮形状
sizesmall | medium | largemedium设置按钮尺寸
stateinfo | success | warning | dangerinfo设置按钮状态
iconLeftBootstrap Icons设置按钮左图标
iconRightBootstrap Icons设置按钮右图标
disabledbooleanfalse设置按钮禁用状态

插槽

插槽名参数描述
default()自定义默认内容

MIT Licensed