el-scrollbar中el-table的scrollToRow
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 =...
more...el-select 添加可输入功能且失焦后自动录入
allow-create 属性需配合 filterable 使用;
default-first-option 属性配合 filterable ,按下回车时自动选择第一个匹配项,即按下回车键时可以将输入数据写上,更好的实现了 el-input 的效果。
el-select下拉框多选页面数据不更新问题
昨天在做项目时,有一个功能是使用 Element UI 的 Select 多选下拉框,在使用时,发现每次选择的数据已经发生变化,但是页面上的显示却没有变化。
在网上寻找方法,说是: render 函数没有自动更新,所以在选择的时候需要强制更新















