Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro3.0.5版用vue开发进行多端处理组件文件异常 #7265

Closed
ustbzhangli opened this issue Aug 5, 2020 · 2 comments
Closed

taro3.0.5版用vue开发进行多端处理组件文件异常 #7265

ustbzhangli opened this issue Aug 5, 2020 · 2 comments
Labels
F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@ustbzhangli
Copy link

相关平台

微信小程序

小程序基础库: 2.12.0
使用框架: Vue 2

复现步骤

文档中介绍多端组件可以通过定义test.weapp.js,然后通过引入./test,会自动补全名称的方式来解决跨平台组件开发。但是用vue开发,组件文件是.vue格式,不是.js,按文档方式引入不成功。求解决方案:vue中怎么实现多端组件开发。

期望结果

vue中实现多端组件开发

实际结果

vue中没实现多端组件开发

环境信息

👽 Taro v3.0.5


  Taro CLI 3.0.5 environment info:
    System:
      OS: macOS Sierra 10.12.3
      Shell: 5.2 - /bin/zsh
    Binaries:
      Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm
    npmPackages:
      @tarojs/components: 3.0.5 => 3.0.5
      @tarojs/mini-runner: 3.0.5 => 3.0.5
      @tarojs/runtime: 3.0.5 => 3.0.5
      @tarojs/taro: 3.0.5 => 3.0.5
      @tarojs/webpack-runner: 3.0.5 => 3.0.5
      babel-preset-taro: 3.0.5 => 3.0.5
      eslint-config-taro: 3.0.5 => 3.0.5
      taro-ui: ^2.3.4 => 2.3.4
@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 5, 2020
@ruiruiStudy
Copy link

我的最基础的,h5可以正常跳转路由,微信小程序就没有反映了,坑啊

@Chen-jj Chen-jj added this to the 3.0.10 milestone Sep 3, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.10, 3.0.11 Sep 10, 2020
@ZakaryCode ZakaryCode modified the milestones: 3.0.11, 3.0.12 Sep 18, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.15, 3.0.16 Oct 23, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.16, 3.1.0 Nov 3, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Nov 3, 2020

3.1 可以识别出形如 xx.weapp.vue 的多端文件了。

Duplicate of #6786

@Chen-jj Chen-jj closed this as completed Nov 3, 2020
This was referenced Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

4 participants