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

root-portal 不支持嵌套? #12878

Closed
ccqgithub opened this issue Nov 26, 2022 · 4 comments · Fixed by #15366 or #15496
Closed

root-portal 不支持嵌套? #12878

ccqgithub opened this issue Nov 26, 2022 · 4 comments · Fixed by #15366 or #15496
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@ccqgithub
Copy link

ccqgithub commented Nov 26, 2022

相关平台

微信小程序

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

复现步骤

root-portal 嵌套会报错:

./base.wxml:-1:-1:-1: Template ./base.wxml:tmpl_0_46 is being called recursively, will be stop.

期望结果

可以嵌套

实际结果

不可用嵌套

环境信息

Taro CLI 3.5.3 environment info:
    System:
      OS: macOS 12.4
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.15.1 - /usr/local/bin/node
      npm: 8.11.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.6 => 3.5.6 
      @tarojs/components: 3.5.6 => 3.5.6 
      @tarojs/plugin-framework-vue3: 3.5.6 => 3.5.6 
      @tarojs/runtime: 3.5.6 => 3.5.6 
      @tarojs/taro: 3.5.6 => 3.5.6 
      @tarojs/webpack5-runner: 3.5.6 => 3.5.6 
      babel-preset-taro: 3.5.6 => 3.5.6 
      eslint-config-taro: 3.5.6 => 3.5.6 
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Nov 26, 2022
@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 5, 2022

@ccqgithub root-portal 有需要嵌套的场景么?

@adoniscyz
Copy link

@Chen-jj 比如: 弹窗表单内 打开一个自定义日期选择器 (微信小程序官方是支持嵌套root-portal正常渲染节点的)

@ccqgithub
Copy link
Author

@Chen-jj 比如: 弹窗表单内 打开一个自定义日期选择器 (微信小程序官方是支持嵌套root-portal正常渲染节点的)

对,比如弹窗内又弹窗

@ccqgithub
Copy link
Author

这个会修复么?

@Chen-jj Chen-jj modified the milestones: 3.6.25, 3.6.26 Mar 18, 2024
Chen-jj added a commit that referenced this issue Mar 18, 2024
* fix: 修复canvasContext的createLinearGradient循环调用的问题

* fix(weapp):修复root-portal不支持嵌套的问题

* fix(template): 将 root-portal 的处理放到端平台插件里

---------

Co-authored-by: 三少 <sanshao@dian.so>
Co-authored-by: chenjiajian <798095202@qq.com>
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
None yet
3 participants