This commit is contained in:
jiaming743 2020-09-09 17:13:24 +08:00
parent 40f22d3eae
commit 2854164452
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export default {
const { $nextTick, $refs, ref, onResize } = this const { $nextTick, $refs, ref, onResize } = this
return new Promise(resolve => { return new Promise(resolve => {
$nextTick(e => { $nextTick(_ => {
const dom = this.dom = $refs[ref] const dom = this.dom = $refs[ref]
this.width = dom ? dom.clientWidth : 0 this.width = dom ? dom.clientWidth : 0