Skip to content

ConfigProvider对Modal.confirm无效 #1709

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 done
mkanako opened this issue Jan 11, 2020 · 1 comment
Closed
1 task done

ConfigProvider对Modal.confirm无效 #1709

mkanako opened this issue Jan 11, 2020 · 1 comment
Labels

Comments

@mkanako
Copy link

mkanako commented Jan 11, 2020

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

Version

1.4.10

Environment

Chrome79

Reproduction link

https://www.antdv.com/components/config-provider-cn/

Steps to reproduce

例如我设置了autoInsertSpaceInButton=false,但是弹出来的对话框按钮仍然有空格

看了下代码https://github.com/vueComponent/ant-design-vue/blob/master/components/modal/confirm.js#L47 原来是自己new了一个新的vue实例出来,也没人给他provide配置
但为啥LocaleProvider就对Modal.confirm有效呢,原来这里并没有用Vue 的 provide/inject 特性,而是专门去读取相关配置信息( https://github.com/vueComponent/ant-design-vue/blob/master/components/modal/locale.js

What is expected?

ConfigProvider对Modal.confirm有效

What is actually happening?

ConfigProvider对Modal.confirm无效

@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 Jan 15, 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