fix null error
This commit is contained in:
parent
f8576174fd
commit
d8d0ad0c00
@ -131,7 +131,12 @@ export default defineComponent({
|
|||||||
this.$el.style.setProperty("--maxHeight", this.maxHeight + "px");
|
this.$el.style.setProperty("--maxHeight", this.maxHeight + "px");
|
||||||
|
|
||||||
const calcOmit = () => {
|
const calcOmit = () => {
|
||||||
if (this.omitted || this.ignoreOmit || this.maxHeight == null)
|
if (
|
||||||
|
this.omitted ||
|
||||||
|
this.ignoreOmit ||
|
||||||
|
this.maxHeight == null ||
|
||||||
|
this.$refs.content == null
|
||||||
|
)
|
||||||
return;
|
return;
|
||||||
const height = this.$refs.content.offsetHeight;
|
const height = this.$refs.content.offsetHeight;
|
||||||
this.omitted = height > this.maxHeight;
|
this.omitted = height > this.maxHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user