Merge branch 'dev' of github.com:dataease/dataease into dev

This commit is contained in:
taojinlong 2022-07-06 13:52:40 +08:00
commit 9b6e054747
2 changed files with 6 additions and 2 deletions

View File

@ -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() {

View File

@ -74,6 +74,7 @@ function textSelectWidget(nodeCache, style) {
}
function handlerInputStyle (node, style) {
if (!node) return;
styleAttrs.forEach(ele => {
node.style[attrsMap[ele]] = style[ele];
})