dfm-demo-component
v1.0.7
Published
DemoComponent 组件库
Readme
TODO
- [x] Button
组件使用说明
Button 按钮
代码示例
<Button title={'button1'} type={'primary'}/>API 说明
属性 | 说明 | 类型 | 是否必传 | 默认值 -| - | - | - | - title | 按钮文案 | string | true | - type | 按钮类型,可选值为 'primary' | 'default' | 'light' | false | 'default' size | 按钮大小,可选值为 'large' | 'base' | 'small' | false | 'default' icon | 按钮icon | ImageSourcePropType | false | - disabled | 是否禁止点击 | boolean | false | - style | button样式 | StyleProp | false | - iconStyle | icon样式 | StyleProp | false | - textStyle | 文案样式 | StyleProp | false | - activeViewStyle | 点击按钮样式 | StyleProp | false | - activeTextStyle | 点击文案样式 | StyleProp | false | - onPress | 点击回调方法 | Function | false | -
