Appearance
Button 按钮
使用原生按钮承载点击和文字。按实测尺寸绘制轮廓,窄按钮与长文本使用相同线宽。
vue
<ll-button variant="outline" @click="save">保存</ll-button>Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| variant | 外观 | ButtonVariant | default、destructive、outline、secondary、ghost、link | default |
| size | 尺寸 | ButtonSize | default、xs、sm、lg、icon、icon-xs、icon-sm、icon-lg | default |
| disabled | 禁止激活 | boolean | — | false |
| seed | 笔画种子 | string / number | — | button |
| id | 原生按钮节点的标识 | string | — | — |
| aria-label | 纯图标按钮的可读名称 | string | — | — |
| role | 可访问角色 | string | button、tab、checkbox | button |
| tab-index | H5 焦点顺序 | number | — | 0 |
Events
| 事件名称 | 说明 |
|---|---|
| click | 有效激活时发出一次,负载为端侧事件 |
Slots
| 名称 | 说明 |
|---|---|
| default | 按钮内容 |