vxe-table踩坑,表格操作列按钮不出现问题
生活随笔
收集整理的這篇文章主要介紹了
vxe-table踩坑,表格操作列按钮不出现问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.問題復制操作文檔中代碼,按鈕并未顯示
<vxe-table-column title="操作" width="100" show-overflow><template v-slot="{ row }"><vxe-button type="text" icon="fa fa-edit" @click="editEvent(row)"></vxe-button><vxe-button type="text" icon="fa fa-trash-o"></vxe-button></template></vxe-table-column>2.問題解決,改v-slot為slot-scope
<vxe-table-column title="操作" width="150" show-overflow align="center"><template slot-scope="scope"><el-button type="primary" size="small" @click="editData(scope.row)">編輯</el-button><el-button type="danger" plain size="small" @click="delData(scope.row)">刪除</el-button></template></vxe-table-column>?
總結
以上是生活随笔為你收集整理的vxe-table踩坑,表格操作列按钮不出现问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux系统创建用户,并赋予管理员权限
- 下一篇: android获取图片的rgb,使用Im