vtabs获取content中每个元素的高度时,取值为什么不正确?
relations: { '../vtabs-content/vtabs-content': { type: 'child', linked: function linked(target) { const _this = this target.calcHeight(function (rect) { _this.data._contentHeight[target.data.tabIndex] = rect.height if (_this._calcHeightTimer) { clearTimeout(_this._calcHeightTimer) } _this._calcHeightTimer = setTimeout(function () { _this.calcHeight() }, 100) }) }, unlinked: function unlinked(target) { delete this.data._contentHeight[target.data.tabIndex] } } }, vtabs组件问题, 在 target.calcHeight中,获取rect.height时,获取的高度都是不正确的,这个如何解决?