taro icon indicating copy to clipboard operation
taro copied to clipboard

taro3 vue3 引用原生mp-html组件支付宝端编译错误

Open LingF opened this issue 1 year ago • 3 comments

相关平台

支付宝小程序

小程序基础库: 2.9.12 使用框架: Vue 3

复现步骤

编译后 mp-html 与第一个属性中间缺少空格,使用该组件的页面和 base.axml 都会有此问题;微信正常 image

<view class="info-content">
    <mp-html selectable="true" :contentValue="item.userInput" />
</view>

image

期望结果

mp-html selectable

实际结果

mp-htmlselectable

环境信息

Taro v3.6.20

process.env.NODE_ENV undefined

  Taro CLI 3.6.20 environment info:
    System:
      OS: macOS 13.2.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.0/bin/yarn
      npm: 9.6.7 - ~/.nvm/versions/node/v18.16.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.19 => 3.6.19 
      @tarojs/components: 3.6.19 => 3.6.19 
      @tarojs/helper: 3.6.19 => 3.6.19 
      @tarojs/plugin-framework-vue3: 3.6.19 => 3.6.19 
      @tarojs/plugin-html: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-alipay: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-h5: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-jd: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-qq: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-swan: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-tt: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-weapp: 3.6.19 => 3.6.19 
      @tarojs/runtime: 3.6.19 => 3.6.19 
      @tarojs/shared: 3.6.19 => 3.6.19 
      @tarojs/taro: 3.6.19 => 3.6.19 
      @tarojs/taro-loader: 3.6.19 => 3.6.19 
      @tarojs/webpack5-runner: 3.6.19 => 3.6.19 
      babel-preset-taro: 3.6.19 => 3.6.19 
      eslint-config-taro: 3.6.19 => 3.6.19

补充信息

参考官方demo 和 https://github.com/NervJS/taro/issues/13146 使用,编译出错

LingF avatar Jan 22 '24 07:01 LingF

https://github.com/NervJS/taro/pull/14818

应该已经修复了,升级到最新版本试试

TheKonka avatar Jan 22 '24 14:01 TheKonka

感谢你的来信~~我会尽快给你回复或者通过其他方式答复你

验证已修复

LingF avatar Jan 22 '24 14:01 LingF

大佬 好 请问vue3 怎么使用的 我的一直报错 感谢

hcweb avatar Feb 03 '24 01:02 hcweb