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

[Component] [dialog] el-dailog v-bind="$attrs" 非 props属性 报警告问题 #9450

Closed
Corgis opened this issue Aug 25, 2022 · 3 comments · Fixed by #9455
Closed

[Component] [dialog] el-dailog v-bind="$attrs" 非 props属性 报警告问题 #9450

Corgis opened this issue Aug 25, 2022 · 3 comments · Fixed by #9455

Comments

@Corgis
Copy link
Contributor

Corgis commented Aug 25, 2022

Bug Type: Component

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.2.14
  • Browser / OS: Google Chrome 版本 104.0.5112.102
  • Build Tool: Vite

Reproduction

Related Component

  • el-dialog

Reproduction Link

CodeSandbox

Steps to reproduce

打开上述在线编辑器的链接,打开编辑器的console控制台
el-dialog组件在HelloWorld里引用 App.vue中引用该HelloWorld组件 并设置 style="height: 100px"
如下图所示:
[vggEU1.md.jpg

What is Expected?

不会报该警告

What is actually happening?

报警告

Additional comments

例如我使用 el-table v-bind="$attrs" 则不会报该警告
el-table组件在HelloWorld里引用 App.vue中引用该HelloWorld组件 并设置style="height: 100px"
代码示例链接如下:
https://codesandbox.io/s/brave-newton-l50lvo?file=/src/components/HelloWorld.vue

1234

@Corgis
Copy link
Contributor Author

Corgis commented Aug 29, 2022

我重新安装了 element-plus 到2.2.15 还是会报这个错 引用组件 设置 style
image

@sxzz
Copy link
Collaborator

sxzz commented Aug 29, 2022

Wait for the next release version

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants