-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Labels
Comments
github-actions
bot
changed the title
Modal configProvider 无效
Modal configProvider is invalid
Oct 19, 2021
我也遇到了 |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: