选择器
This commit is contained in:
@@ -111,7 +111,9 @@ export default {
|
||||
fullArea: {
|
||||
handler(v) {
|
||||
this.$nextTick(() => {
|
||||
this.scrollHeight()
|
||||
if (v) {
|
||||
this.scrollHeight()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -125,7 +127,7 @@ export default {
|
||||
this.$refs.areaSelector.showPopup()
|
||||
},
|
||||
scrollHeight () {
|
||||
return this.height = `calc(100% - ${document.querySelector('.areaSelector').offsetHeight}px)`
|
||||
return this.height = document.querySelector('.areaSelector') && `calc(100% - ${document.querySelector('.areaSelector').offsetHeight}px)`
|
||||
},
|
||||
getFullArea() {
|
||||
let areaId = this.areaId || (this.all ? '' : this.$areaId)
|
||||
|
||||
Reference in New Issue
Block a user