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})
|
handlerInputStyle(this.$refs.visualSelect.$el.querySelector('.el-select__input'), {wordColor: this.$parent.element.style.wordColor})
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
this.customInputStyle()
|
|
||||||
if (this.defaultFirst && this.list.length > 0) {
|
if (this.defaultFirst && this.list.length > 0) {
|
||||||
this.selectValue = this.list[0].value
|
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(
|
const selectDom = document.querySelector(
|
||||||
`.${this.classId} .el-select-dropdown .el-select-dropdown__wrap`
|
`.${this.classId} .el-select-dropdown .el-select-dropdown__wrap`
|
||||||
@ -133,6 +135,7 @@ export default {
|
|||||||
this.addScrollDiv(this.slectBoxDom)
|
this.addScrollDiv(this.slectBoxDom)
|
||||||
|
|
||||||
this.scrollFn()
|
this.scrollFn()
|
||||||
|
this.customInputStyle()
|
||||||
},
|
},
|
||||||
|
|
||||||
scrollFn() {
|
scrollFn() {
|
||||||
|
@ -74,6 +74,7 @@ function textSelectWidget(nodeCache, style) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handlerInputStyle (node, style) {
|
function handlerInputStyle (node, style) {
|
||||||
|
if (!node) return;
|
||||||
styleAttrs.forEach(ele => {
|
styleAttrs.forEach(ele => {
|
||||||
node.style[attrsMap[ele]] = style[ele];
|
node.style[attrsMap[ele]] = style[ele];
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user