在el-table標簽中添加highlight-current-row
<el-table highlight-current-row >
在style 里面設置全局樣式:
/* 用來設置當前頁面element全局table 選中某行時的背景色*/ .el-table__body tr.current-row>td{ background-color: #69A8EA !important; color: #fff; }
在el-table標簽中添加highlight-current-row
<el-table highlight-current-row >
在style 里面設置全局樣式:
/* 用來設置當前頁面element全局table 選中某行時的背景色*/ .el-table__body tr.current-row>td{ background-color: #69A8EA !important; color: #fff; }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。