417 1 分钟

scrollToRow() { if (this.currentRowIndex === 0) { return } const index = this.currentRowIndex this.$nextTick(() => { const tableBodyWrapper = this.$refs.tableRef.$el.querySelector('.el-table__body-wrapper') if (tableBodyWrapper) { const rows =...
243 1 分钟

昨天在做项目时,有一个功能是使用 Element UI 的 Select 多选下拉框,在使用时,发现每次选择的数据已经发生变化,但是页面上的显示却没有变化。

在网上寻找方法,说是: render 函数没有自动更新,所以在选择的时候需要强制更新

1.4k 1 分钟

# sass /* 修改滚动条的宽度 */::v-deep .el-table__body-wrapper::-webkit-scrollbar { width: 6px; /* 对于水平滚动条 */ height: 6px; /* 对于垂直滚动条 */} /* 修改滚动条滑块的样式 */::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.5); /* 滚动条滑块颜色 */ border-radius:...
86 1 分钟

# 问题描述

在我们使用饿了么 UI 框架做项目的时候,el-table 的自带的表格边框颜色有时候需要修改一下。本文记录一下修改 el-table 边框样式的注意事项。