eo-button
<eo-button>
Alias:
<basic.general-button>
通用按钮构件。
Examples
Types
Sizes
Shapes
Danger
Disabled
Tooltips
Icons
Click
Links
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
type | 按钮类型 | ButtonType | ||
size | 按钮大小 | ComponentSize | "medium" | |
danger | 是否开启危险状态 | boolean | false | |
icon | 图标 | GeneralIconProps | ||
shape | 按钮形状,支持圆形、椭圆形,不设置为默认方形 | Shape | ||
disabled | 是否禁用 | boolean | false | |
url | 链接地址 | string | ||
href | 跳转外链地址 | string | ||
target | 链接类型 | string | ||
tooltip | tooltip | string | ||
buttonStyle | 按钮样式 | React.CSSProperties |
Slots
Name | Description |
---|---|
(default) | 按钮内容 |
Type references
ButtonType
"primary" | "default" | "dashed" | "ghost" | "link" | "text" | "icon"
ComponentSize
"large" | "medium" | "small" | "xs"
Shape
"round" | "circle"