el‐button - daniel-qa/Vue GitHub Wiki
- 增加
<el-button>
<el-icon :style="{ color: 'limegreen', fontSize: '24px' }">
<circle-plus-filled />
</el-icon>
添加
</el-button>
- 刪除
<el-button type="danger" :icon="Delete" circle />
- 範例
<el-button type="primary" size="small" @click.stop="addToColumn3(item)">加入</el-button>
在 Element Plus 中,可以使用 type 屬性來設置按鈕的顏色類型,預設提供了以下類型:
primary:主要按鈕(藍色)
success:成功按鈕(綠色)
warning:警告按鈕(橙色)
danger:危險按鈕(紅色)
info:信息按鈕(淺藍色)
默認類型(無色)