Skip to content

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

@aladingmaideng

Description

@aladingmaideng

相关平台

微信小程序

小程序基础库: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-vue3Framework - Vue 3T-weappTarget - 编译到微信小程序V-3Version - 3.x

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions