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

new-blended示例在vue3中运行,会导致抽离到components中的自定义组件不渲染 #16321

Open
aladingmaideng opened this issue Aug 15, 2024 · 0 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@aladingmaideng
Copy link

相关平台

微信小程序

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

复现步骤

  1. 使用jsx开发vue3组件
  2. 在页面的index.config.js中使用usingComponents注册为自定义组件
  3. 在页面中通过注册的key值调用组件
  4. 此时显示正常,但无法像真正的自定义组件一样传递参数
  5. 按照文档,在app.conifg.js中添加components属性,value为包含自定义组件的array
  6. 此时自定义组件就不展示了
    备注:相同的操作和配置在react中可以正常运行且正常展示

期望结果

解决不展示问题

实际结果

目前vue3不展示

环境信息

Taro CLI 3.6.27 environment info:
    System:
      OS: macOS 14.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
      npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.12 => 3.6.12 
      @tarojs/components: 3.6.12 => 3.6.12 
      @tarojs/helper: 3.6.12 => 3.6.12 
      @tarojs/plugin-framework-react: 3.6.12 => 3.6.12 
      @tarojs/plugin-framework-vue3: ^3.6.12 => 3.6.12 
      @tarojs/plugin-html: ^3.6.12 => 3.6.12 
      @tarojs/plugin-platform-weapp: 3.6.12 => 3.6.12 
      @tarojs/react: 3.6.12 => 3.6.12 
      @tarojs/runtime: 3.6.12 => 3.6.12 
      @tarojs/shared: 3.6.12 => 3.6.12 
      @tarojs/taro: 3.6.12 => 3.6.12 
      @tarojs/webpack5-runner: 3.6.12 => 3.6.12 
      babel-preset-taro: 3.6.12 => 3.6.12 
      eslint-config-taro: 3.6.12 => 3.6.12 
      react: ^16.10.0 => 16.14.0
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 15, 2024
This was referenced Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

1 participant