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

[t-popup] 在组件上使用class属性和style属性,会有vue警告:Extraneous non-props attributes (class) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. #1126

Closed
leihaoj opened this issue Oct 14, 2023 · 2 comments · Fixed by #1135
Labels
bug Something isn't working easy 简单问题 issueshoot 代码共建平台

Comments

@leihaoj
Copy link

leihaoj commented Oct 14, 2023

tdesign-mobile-vue 版本

1.0.5

重现链接

No response

重现步骤

No response

期望结果

No response

实际结果

No response

框架版本

3.3.4

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

虽然不影响正常使用,但是请问能否解决一下控制台警告问题?文档上也使用了style="padding: 100px",一样会警告

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2023-10-19 00:00:00 +0000 UTC
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: anlyyao
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
@github-actions
Copy link
Contributor

👋 @leihaoj,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 16, 2023

@leihaoj 收到反馈。确实是popup的问题,有多个根节点,导致在组件上添加非props或emits的属性,无法继承组件,控制台告警。我这边处理一下~

@anlyyao anlyyao added bug Something isn't working easy 简单问题 issueshoot 代码共建平台 labels Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working easy 简单问题 issueshoot 代码共建平台
Projects
None yet
2 participants