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

vite+.react 作为子应用,引入antd Tooltip,出现Tooltip 动态计算的style丢失 #1012

Closed
loycoder opened this issue Dec 19, 2023 · 2 comments
Labels
bug Something isn't working solved problem solved Working on it Working on this issue

Comments

@loycoder
Copy link

loycoder commented Dec 19, 2023

问题描述

问题的具体描述

复现步骤

  1. 主应用(webpack+ react) 接入子应用(vite+ react)
  2. 在页面中操作 antd 下拉菜单,

上传截图

单独访问子应用效果:
image

子应用被嵌入后效果:
image

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。
https://stackblitz.com/edit/stackblitz-starters-ihwh2g?file=src%2FApp.tsx

环境信息

  • micro-app版本:1.0.0-rc.3
  • 主应用前端框架&版本:webpack:5.65.0、 react: 16.14.0
  • 子应用前端框架&版本: vite: 5.0.8 、antd:4.21.7
  • 构建工具&版本:主应用 webpack , 子应用: vite,版本同上描述。

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。
https://stackblitz.com/edit/stackblitz-starters-ihwh2g?file=src%2FApp.tsx

环境信息

  • micro-app版本:1.0.0-rc.3
  • 主应用前端框架&版本:webpack:5.65.0、 react: 16.14.0
  • 子应用前端框架&版本: vite: 5.0.8 、antd:4.21.7
  • 构建工具&版本:主应用 webpack , 子应用: vite,版本同上描述。
@loycoder loycoder changed the title vite+.react 作为子应用,引入antd 后,出现antd 动态插入的节点计算有误 vite+.react 作为子应用,引入antd Toolti,出现Tooltip 动态计算的style丢失问题 Dec 20, 2023
@loycoder loycoder changed the title vite+.react 作为子应用,引入antd Toolti,出现Tooltip 动态计算的style丢失问题 vite+.react 作为子应用,引入antd Tooltip,出现Tooltip 动态计算的style丢失 Dec 20, 2023
@bailicangdu bailicangdu added bug Something isn't working Working on it Working on this issue labels Dec 20, 2023
@bartlian
Copy link

主应用 webpack , 子应用: vite、antd 5.x,antd 日期组件也有问题

@bailicangdu
Copy link
Contributor

问题已修复,升级到1.0.0-rc.4即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved problem solved Working on it Working on this issue
Projects
None yet
Development

No branches or pull requests

3 participants