Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

Commit 3050c68

Browse files
committed
fix(swipe-action): cannot find width of null
1 parent 30419e9 commit 3050c68

File tree

1 file changed

+3
-1
lines changed
  • src/components/swipe-action/options

1 file changed

+3
-1
lines changed

src/components/swipe-action/options/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ const AtSwipeActionOptions = defineComponent({
3939
100
4040
).then(res => {
4141
const arr = [...res]
42-
props.onQueryedDom(arr[0])
42+
if (Boolean(arr[0])) {
43+
props.onQueryedDom(arr[0])
44+
}
4345
})
4446
}
4547

0 commit comments

Comments
 (0)