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

自定义物料时,使用ant-style的antd5组件会渲染异常 #2448

Closed
option-star opened this issue Sep 6, 2023 · 3 comments
Closed
Assignees
Labels
stale Stale / 无进展,即将关闭

Comments

@option-star
Copy link

Describe the bug (required) / 详细描述 bug(必填)

通过npm init @alilc/element your-plugin-name命令构建物料demo,其中引进antd-style, 使用antd-style时,会报组件渲染异常
image

To Reproduce (required) / 如何复现 bug?(必填,非常重要)

  1. node -v (v14.15.3)
  2. npm -v(6.14.9)
  3. npm init @alilc/element demo(选择构建物料组件库)
  4. cd demo
  5. npm i
  6. npm i antd
  7. npm i antd-style
  8. 输入components代码qs-slider
image image image image 10. npm run lowcode:dev 11. 拖拽组件至页面 image 12. 显示渲染异常

Expected behavior (required) / 预期行为(必填,非常重要)

正常渲染组件,不报错


Screenshots (optional) / bug 截图(可选)

image

Environments (please complete the following information) (required): / 请提供如下信息(必填)

Additional context (optional) / 更多额外信息(可选)

Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题

@eternalsky
Copy link
Collaborator

脚手架里默认集成的是 antd4,如果用到 antd5,需要自己配置

@option-star
Copy link
Author

  1. 好像适用antd5渲染没有问题,只是用了antd-style有问题
  2. 如何配置antd5, 有参考的案例吗

@eternalsky
Copy link
Collaborator

  1. 已经说了,内置的是 antd4,没有问题,只能说是因为这部分 antd 没有break change,凑巧能用而已。具体报错你要看下控制台
  2. issue 里之前已经有了,自己搜索一下就知道了。

@eternalsky eternalsky added the stale Stale / 无进展,即将关闭 label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale / 无进展,即将关闭
Projects
None yet
Development

No branches or pull requests

2 participants