|
@@ -34,9 +34,15 @@ export default defineComponent({
|
|
|
this.divStyle.bottom = '0px'
|
|
|
}
|
|
|
|
|
|
+ // nextTick(() => {
|
|
|
+ // const { height } = useRect((this as any).$refs.div)
|
|
|
+ // this.sectionStyle.height = `${height}px`
|
|
|
+ // })
|
|
|
nextTick(() => {
|
|
|
- const { height } = useRect((this as any).$refs.div)
|
|
|
- this.sectionStyle.height = `${height}px`
|
|
|
+ setTimeout(() => {
|
|
|
+ const { height } = useRect((this as any).$refs.div)
|
|
|
+ this.sectionStyle.height = `${height}px`
|
|
|
+ }, 100)
|
|
|
})
|
|
|
},
|
|
|
render() {
|