Skip to content

Commit 6e6f268

Browse files
committed
fix(u-swipe-action-item): execute the queryRect method in the next tick to obtain accurate information
1 parent 544c4e9 commit 6e6f268

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191
watch: {
9292
// 由于wxs无法直接读取外部的值,需要在外部值变化时,重新执行赋值逻辑
9393
wxsInit() {
94-
this.queryRect()
94+
this.$nextTick(() => {
95+
this.queryRect()
96+
})
9597
},
9698
status(newValue) {
9799
this.$emit('statusChange', newValue)

0 commit comments

Comments
 (0)