@jd_703c76354613a 如果紧急的话,试试这种方法链接地址,虽然版本不一样。
J
jd_7b5a50ae2d812 发布的帖子
-
RE: Taro.getUserProfile报错 global[key] is not a function
-
RE: SwipeAction 绑定点击事件
<AtSwipeAction onClick={this.handleClick} options={[ { id: item.id, text: '删除', style: { backgroundColor: '#FF4949' } } ]}>
handleClick(this, index) { console.log('this', this) console.log('index', index) //可以取到options的内容 const { text } = index if (text === '删除') { Taro.showLoading({ title: '删除中', mask: true, }) } }
// 找到这里 export interface SwipeActionOption { /** * id标记,可以自己添加 */ id: string