Skip to content

Vue3 中使用 VNode 的问题(Notifiction、Message)组件 #3376

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

Closed
1 task
shanyuhai123 opened this issue Dec 16, 2020 · 4 comments
Closed
1 task

Vue3 中使用 VNode 的问题(Notifiction、Message)组件 #3376

shanyuhai123 opened this issue Dec 16, 2020 · 4 comments
Labels

Comments

@shanyuhai123
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-rc.4

Environment

Windows、Linux

Reproduction link

https://2x.antdv.com/components/notification-cn/#components-notification-demo-custom-close-button

Steps to reproduce

打开官网 https://2x.antdv.com/components/notification-cn/#components-notification-demo-custom-close-button ,点击示例自定义按钮未生效

What is expected?

正确的样式

What is actually happening?

返回了函数本身

@shanyuhai123
Copy link
Contributor Author

  1. 在 2.0 的代码中缺乏了对函数的判断,导致官网发生该问题

  2. 我尝试直接在 h 方法中使用 a-button 会丢失样式,详情见 https://codesandbox.io/s/fhb9l?file=/src/App.vue
    image

  3. 而如果在 h 方法中直接使用 Button 则可以正确展示,详情 https://codesandbox.io/s/0mk3r?file=/src/App.vue
    image

@John60676
Copy link
Member

Duplicate of #3324

@John60676 John60676 marked this as a duplicate of #3324 Dec 16, 2020
@John60676
Copy link
Member

about h('a-button') , refernence: vuejs/core#1927 (comment)

@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.

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

No branches or pull requests

2 participants