帝普一世
帝普一世
  • 发布:2022-02-05 18:26
  • 更新:2022-11-07 15:06
  • 阅读:1197

百度小程序下popup组件出错Cannot read property 'open' of undefined

分类:uni-app

使用了uni-popup组件,H5、微信小程序都正常,但百度小程序下就出错。
我换了插件市场的其它组件也是一样的问题,百思不得解,请高手指点一下

<view class="isay" @click="toggle('bottom')">我来说两句</view>  
<uni-popup class="popup-comment" ref="popup" background-color="#fff">  

        <view class="pl-main">  
            <input placeholder="我来说两句..." class="isay" @input="getText" />  
            <button @tap="save" class="btn">发送</button>  
        </view>  

    </uni-popup>

JS

toggle(type) {  
                console.log(type);  
                this.type = type  
                this.$refs.popup.open(type)  
            },
2022-02-05 18:26 负责人:无 分享
已邀请:
6***@qq.com

6***@qq.com

问题解决了嘛?

要回复问题请先登录注册