导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. jd_7b5a50ae2d812
    3. 帖子
    J
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    jd_7b5a50ae2d812 发布的帖子

    • RE: Taro.getUserProfile报错 global[key] is not a function

      @jd_703c76354613a 如果紧急的话,试试这种方法链接地址,虽然版本不一样。

      发布在 微信小程序
      J
      jd_7b5a50ae2d812
    • 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
      
      发布在 Taro
      J
      jd_7b5a50ae2d812