ButtonTag(BaseTag)
按钮组件 snippets:
sword:button
属性说明
| 属性名 | 属性值 | 说明 |
|---|---|---|
| icon | 空值 │ fontawson的icon值 | 按钮前端的icon图标, 即对应 Font Awesomet图标库内,除去fa之外的字段,比如想要图标fa-adjust 则输入adjust即可 |
| type | submit │ button │ reset │ 默认为button | 按钮的类型 |
| className | primary │ default │ danger │warning │ success │ info │ 默认primary | 按钮的样式类型 |
代码
<sword:button type="submit" id="submit" icon="location-arrow" className="success">提交</sword:button>
<sword:button type="reset" className="white" icon="refresh">清空</sword:button>
<sword:button icon="default">默认</sword:button>