# hd-button Button 按钮 ## Props |Name|Description|Type|Required|Default| |---|---|---|---|---| |type|按钮类型|`'default'` / `'primary'` / `'error'` / `'warning'` / `'success'`|`false`|默认值是:`default`| |size|按钮尺寸|`'normal'` / `'large'` / `'small'` / `'mini'`|`false`|默认值是:`normal`| |icon|左侧图标名称或图片链接,可选值见 Icon 组件|`String`|`false`|-| |classPrefix|图标类名前缀,同 Icon 组件的 class-prefix 属性|`String`|`false`|fant-icon| |plain|是否为朴素按钮|`Boolean`|`false`|false| |block|是否为块级元素|`Boolean`|`false`|false| |shape|按钮形状|`'square(直角)'` / `'roundsquare(小圆角)'` / `'round(大圆角)'`|`false`|默认值是:`roundsquare`| |loading|是否显示为加载状态|`Boolean`|`false`|false| |hairLine|是否细边框|`Boolean`|`false`|false| |disabled|是否禁用按钮|`Boolean`|`false`|false| |loadingText|加载状态提示文字|`String`|`false`|-| |loadingSize|加载图标大小|`String`|`false`|40rpx| |loadingType|加载状态图标类型|`'flower'` / `'circular'`|`false`|默认值:`circular`| |color|按钮颜色,支持传入linear-gradient渐变色|`String`|`false`|-| |customStyle|自定义样式|`String`|`false`|-| |openType|开放能力,具体请看uniapp稳定关于button组件部分说明 https://uniapp.dcloud.io/component/button|`String`|`false`|-| |formType|用于 `