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] [form] ElForm slot问题 #16729

Open
xdewx opened this issue Apr 30, 2024 · 2 comments
Open

[Component] [form] ElForm slot问题 #16729

xdewx opened this issue Apr 30, 2024 · 2 comments

Comments

@xdewx
Copy link

xdewx commented Apr 30, 2024

Bug Type: Component

Environment

  • Vue Version: 3.4.24
  • Element Plus Version: 2.7.1
  • Browser / OS: linux chrome
  • Build Tool: Vite

Reproduction

Related Component

  • el-form

Reproduction Link

Element Plus Playground

Steps to reproduce

如代码所示

What is Expected?

期望自定义slot=footer正常显示

What is actually happening?

底层组件会完全覆盖底层内容

Additional comments

(empty)

@makedopamine
Copy link
Contributor

参考这个例子

@xdewx
Copy link
Author

xdewx commented May 6, 2024

参考这个例子

这样的确可以解决问题,不过为什么最符合直觉的做法不奏效呢?是vue的问题还是element的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants