7***@qq.com
7***@qq.com
  • 发布:2021-10-12 09:54
  • 更新:2021-10-12 09:54
  • 阅读:626

vue3编译到微信小程序,报错

分类:uni-app

// 我在设置里面选了vue3版本其他没问题就是使用不了jsx
export default {
setup() {
const msg = ref(123);
const change = param => {
console.log(param);
msg.value ;
};
const dianWo = <button type="primary" onTap={change}>点我</button>

return () => (  
  <view class="index">  
    <view onTap={change.bind(null, 221)}>{msg.value}</view>  
    <button type="primary" onTap={change}>  
      {obj.zxc?.length}  
    </button>  
    {dianWo}  
  </view>  
);  

}
};

0 关注 分享

要回复文章请先登录注册