Element?Plus?去掉表格外邊框的實現(xiàn)代碼
更新時間:2025年04月14日 10:42:18 作者:意桉
使用el-table組件拖拽時,?想使用自定義樣式進行拖拽,?想去掉外邊框,?并在表頭加入豎杠樣式,本文給大家介紹Element?Plus?去掉表格外邊框的實現(xiàn)代碼,感興趣的朋友一起看看吧
使用el-table組件拖拽時, 想使用自定義樣式進行拖拽, 想去掉外邊框, 并在表頭加入豎杠樣式
css代碼:
<style lang="less" scoped> // 表格右邊框線 .el-table--border::after { width: 0; } // 表格上邊框線 :deep(.el-table__inner-wrapper::after) { height: 0 !important; } // 表格左邊框線 .el-table::before { width: 0 !important; } :deep(.el-table__border-left-patch) { background: transparent !important; } </style> <style lang="less"> // 去掉中間線 .el-table--border .el-table__cell { border-right: 1px solid transparent; } </style>
表頭加豎線:
.el-table__header { .cell { position: relative; &:after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: #dde2e9; } } .el-table__cell { &:last-child { .cell:after { width: 0; } } } }
到此這篇關(guān)于Element Plus 去掉表格外邊框的實現(xiàn)代碼的文章就介紹到這了,更多相關(guān)Element Plus 表格外邊框內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Vue3+TS實現(xiàn)數(shù)字滾動效果CountTo組件
最近開發(fā)有個需求需要酷炫的文字滾動效果,發(fā)現(xiàn)vue2版本的CountTo組件不適用與Vue3,沒有輪子咋辦,那咱造一個唄,感興趣的小伙伴可以跟隨小編一起了解一下2022-11-11vue中將html字符串轉(zhuǎn)換成html后遇到的問題小結(jié)
這篇文章主要介紹了vue中將html字符串轉(zhuǎn)換成html后遇到的問題小結(jié),本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下2018-12-12