fix: 时间组件样式

This commit is contained in:
fit2cloud-chenyw 2021-11-01 18:42:00 +08:00
parent 896b6a4c66
commit a50f6ad0d4

View File

@ -14,6 +14,7 @@
v-model="formatInfo.openMode"
:placeholder="$t('deshowdate.select_openMode')"
style="width: 100%;"
@change="modelChange"
>
<el-option
v-for="item in modelOptions"
@ -130,6 +131,15 @@ export default {
},
popoverClose() {
this.$refs.popover.showPopper = false
},
modelChange(val) {
if (val === '0') {
this.curComponent.style.height = 100
} else if (val === '1') {
this.curComponent.style.height = 150
} else {
this.curComponent.style.height = 300
}
}
}
}