Button 按钮
按钮用于开始一个即时操作。
何时使用
- 标记一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。
组件示例
组件属性
| 属性 | 说明 | 类型 | 默认值 | 
|---|---|---|---|
| baseIcon | 按钮基础图标,参考Icon的 baseIcon 属性设置 | string |  -  | 
| behavior | 表单展示状态 | 'NORMAL' | 'DISABLED' | 'HIDDEN' | 'NORMAL' | 
| content | 按钮文案内容 | string | '按钮' | 
| contentMarginMobile | 手机端按钮的左右间距 | '0' | '16' | '0' | 
| loading | 是否处于加载状态 | boolean | false | 
| otherIcon | 其他图标,参考Icon的 otherIcon 属性设置 | string |  -  | 
| size | 按钮尺寸大小 | 'small' | 'medium' | 'large' | 'medium' | 
| triggerEventsWhenLoading | 当按钮为加载状态时,是否响应动作 | boolean | false | 
| type | 按钮的类型 | 'primary' | 'normal' | 'secondary' | 'ghostLight' | 'ghostDark' | 'warningNormal' |'warningPrimary' | 'textNormal' | 'textPrimary' | 'textSecondary' | 'primary' | 
This doc is generated using machine translation. Any discrepancies or differences created in the translation are not binding and have no legal effect for compliance or enforcement purposes.
本文档对您是否有帮助?