taro-ui-vue icon indicating copy to clipboard operation
taro-ui-vue copied to clipboard

支付宝小程序使用AtNoticebar直接崩溃

Open CodeListener opened this issue 3 years ago • 1 comments

问题描述 支付宝小程序使用 AtNoticebar 直接崩溃,

复现步骤

  1. 按文档正常引入
   <AtNoticebar marquee>这是 NoticeBar 通告栏</AtNoticebar>

报错信息 结果直接导致支付宝小程序崩溃

系统信息

  • Taro 版本 [v3.1.5]
  • Taro UI Vue 版本 [^1.0.0-alpha.5]
  • 报错平台 [支付宝小程序]

补充信息 从AtNoticebar源码看到


data() {
    return {
      state: {
        animationData: [{}], // 多了 {} 直接导致崩溃,删除后正常运行
      },
    }
  },

CodeListener avatar Mar 31 '21 16:03 CodeListener

PR welcome!

psaren avatar Apr 09 '21 16:04 psaren