Skip to content

Commit

Permalink
Fix/bug (#1753)
Browse files Browse the repository at this point in the history
* fix(swipe-action): 修复在 h5 环境下点击事件失效的问题

* fix(tabs): 修复 h5 环境下样式报错的问题

* refactor(types): 完善类型声明

* chore: 修复在Windows环境下样式文件拷贝的路径分隔符问题 (#1752)

解决了在Windows环境下的路径分隔符问题,该问题导致样式文件无法正确拷贝。

Co-authored-by: xiayuxuan <[email protected]>

* refactor(type): Add onChooseAvatar event handler to TaroButtonProps

相关问题:#1736

* fix: 解决小程序下无法获取元素信息的问题

相关问题:#1734

---------

Co-authored-by: Xia Yuxuan <[email protected]>
Co-authored-by: xiayuxuan <[email protected]>
  • Loading branch information
3 people authored Jan 19, 2024
1 parent a93f319 commit 9383a54
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
18 changes: 10 additions & 8 deletions packages/taro-ui/rn/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ function delayQuerySelector(
delayTime = 500
): Promise<any[]> {
return new Promise(resolve => {
const selector: SelectorQuery = Taro.createSelectorQuery()
delay(delayTime).then(() => {
selector
.select(selectorStr)
.boundingClientRect()
.exec((res: any[]) => {
resolve(res)
})
Taro.nextTick(() => {
const selector: SelectorQuery = Taro.createSelectorQuery()
delay(delayTime).then(() => {
selector
.select(selectorStr)
.boundingClientRect()
.exec((res: any[]) => {
resolve(res)
})
})
})
})
}
Expand Down
18 changes: 10 additions & 8 deletions packages/taro-ui/src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ function delayQuerySelector(
delayTime = 500
): Promise<any[]> {
return new Promise(resolve => {
const selector: SelectorQuery = Taro.createSelectorQuery()
delay(delayTime).then(() => {
selector
.select(selectorStr)
.boundingClientRect()
.exec((res: any[]) => {
resolve(res)
})
Taro.nextTick(() => {
const selector: SelectorQuery = Taro.createSelectorQuery()
delay(delayTime).then(() => {
selector
.select(selectorStr)
.boundingClientRect()
.exec((res: any[]) => {
resolve(res)
})
})
})
})
}
Expand Down

0 comments on commit 9383a54

Please sign in to comment.