Skip to content

Button 按钮

基础用法

使用 typeplainroundcircle 来定义按钮的样式。

你可以使用 disabled 属性来定义按钮是否被禁用。

禁用状态

图标按钮

使用 icon 属性来为按钮添加图标。

不同尺寸

使用 size 属性额外配置尺寸,可使用 largesmall两种值。

链接按钮

通过设置 link 属性为 true 来显示链接按钮。

加载中

通过设置 loading 属性为 true 来显示加载中状态。

Button API

Button Attributes

NameDescriptionTypeDefaultVersion
size尺寸large | small
type类型primary | success | warning | danger | info
plain朴素按钮booleanfalse
link链接按钮booleanfalse
round圆角按钮booleanfalse
circle圆形按钮booleanfalse
loading加载中booleanfalse
disabled禁用booleanfalse
icon图标组件string / Component

贡献者

lazy

变更记录

f39e1 - fix: 修复buttondisabled无效功能 on 12/19/2023

Released under the MIT License.