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

Modal.method的parentContext属性无效 #3595

Open
1 task done
Lv777F opened this issue Jan 26, 2021 · 0 comments
Open
1 task done

Modal.method的parentContext属性无效 #3595

Lv777F opened this issue Jan 26, 2021 · 0 comments

Comments

@Lv777F
Copy link

Lv777F commented Jan 26, 2021

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

Version

2.0.0-rc.9

Environment

vue:3.0.5

Reproduction link

Edit on CodeSandbox

Steps to reproduce

我需要在Modal.method的弹出框中渲染子组件,子组件逻辑需要注入根组件提供的服务。
指定parentContext为根组件后,弹框中的子组件无法获取根组件上下文。
具体请查看代码示例,谢谢。

What is expected?

弹框里的组件可以注入根组件提供的服务。

What is actually happening?

弹框里组件无法注入根组件提供的服务。

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

No branches or pull requests

2 participants