Skip to content

Commit d68541a

Browse files
committed
fix: 用了箭头函数不应再用 bind
1 parent ae6f01f commit d68541a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/swipe-action/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class AtSwipeAction extends AtComponent<
3030
private startX: number
3131
private startY: number
3232
private maxOffsetSize: number
33-
private domInfo: Taro.rectElement
33+
private domInfo: any
3434
private isMoving: boolean
3535
private isTouching: boolean
3636

@@ -243,7 +243,7 @@ export default class AtSwipeAction extends AtComponent<
243243
<View
244244
key={`${item.text}-${key}`}
245245
style={item.style}
246-
onClick={this.handleClick.bind(this, item, key)}
246+
onClick={e => this.handleClick(item, key, e)}
247247
className={classNames(
248248
'at-swipe-action__option',
249249
item.className

0 commit comments

Comments
 (0)