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 configProvider is invalid #4780

Closed
1 task
super-hu opened this issue Oct 19, 2021 · 2 comments
Closed
1 task

Modal configProvider is invalid #4780

super-hu opened this issue Oct 19, 2021 · 2 comments
Labels

Comments

@super-hu
Copy link

super-hu commented Oct 19, 2021

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

Version

2.2.6

Environment

vue 3.2.10

Reproduction link

https://2x.antdv.com/components/modal-cn

Steps to reproduce

vue3.0 parentContext传getCurrentInstance()?.appContext或者getCurrentInstance()?.proxy 都无效
`Modal.confirm({

​ title: '提示',

​ parentContext: getCurrentInstance()?.proxy,

​ icon: createVNode(QuestionCircleOutlined),

​ content: h(Select, { style: 'width:120px' })

​ })`

What is expected?

跟随app配置 变化 config-provider :locale="zhCN"

What is actually happening?

默认显示en

image

@github-actions github-actions bot changed the title Modal configProvider 无效 Modal configProvider is invalid Oct 19, 2021
@fengyaogit123
Copy link

我也遇到了

@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 Oct 27, 2022
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