forked from github/dataease
Merge pull request #2595 from dataease/pr@dev_code_conflict
fix: 修复自定义样式导致过滤组件的虚拟滚动部分数据不全
This commit is contained in:
commit
257d5bfd97
@ -114,11 +114,13 @@ export default {
|
||||
handlerInputStyle(this.$refs.visualSelect.$el.querySelector('.el-select__input'), {wordColor: this.$parent.element.style.wordColor})
|
||||
},
|
||||
init() {
|
||||
this.customInputStyle()
|
||||
if (this.defaultFirst && this.list.length > 0) {
|
||||
this.selectValue = this.list[0].value
|
||||
}
|
||||
if (!this.list || !this.list.length) return
|
||||
if (!this.list || !this.list.length) {
|
||||
this.customInputStyle()
|
||||
return
|
||||
}
|
||||
|
||||
const selectDom = document.querySelector(
|
||||
`.${this.classId} .el-select-dropdown .el-select-dropdown__wrap`
|
||||
@ -133,6 +135,7 @@ export default {
|
||||
this.addScrollDiv(this.slectBoxDom)
|
||||
|
||||
this.scrollFn()
|
||||
this.customInputStyle()
|
||||
},
|
||||
|
||||
scrollFn() {
|
||||
|
@ -74,6 +74,7 @@ function textSelectWidget(nodeCache, style) {
|
||||
}
|
||||
|
||||
function handlerInputStyle (node, style) {
|
||||
if (!node) return;
|
||||
styleAttrs.forEach(ele => {
|
||||
node.style[attrsMap[ele]] = style[ele];
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user