Skip to content

Empty setting configProvider prefixcls does not take effect #4446

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
candy-Tong opened this issue Jul 29, 2021 · 3 comments
Closed
1 task done

Empty setting configProvider prefixcls does not take effect #4446

candy-Tong opened this issue Jul 29, 2021 · 3 comments
Assignees
Labels
1.x version 1.x outdated

Comments

@candy-Tong
Copy link
Contributor

candy-Tong commented Jul 29, 2021

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

Version

1.7.6

Environment

windows10,google chrome 79.0.3945.130,vue 2.6.10

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 用configProvider设置prefixCls
  2. 使用empty组件

What is expected?

empty组件的class,会被改变成设置的prefixCls

What is actually happening?

empty组件的class,没有被改变成设置的prefixCls


https://github.com/vueComponent/ant-design-vue/blob/1.7.3/components/empty/index.jsx#L32
不应该使用ConfigConsumerProps.getPrefixCls方法
应该像下面代码,inject configProvider
https://github.com/vueComponent/ant-design-vue/blob/1.7.3/components/input/Input.jsx#L62

@github-actions github-actions bot changed the title empty设置configProvider prefixcls 不生效 Empty setting configProvider prefixcls does not take effect Jul 29, 2021
@John60676 John60676 added the 1.x version 1.x label Jul 30, 2021
John60676 added a commit to John60676/ant-design-vue that referenced this issue Jul 30, 2021
@John60676 John60676 self-assigned this Jul 30, 2021
@candy-Tong
Copy link
Contributor Author

@tangjinzhou
Copy link
Member

message.config(options)

message configProvider prefixCls 也不生效
https://github.com/vueComponent/ant-design-vue/blob/next/components/message/index.tsx#L13

@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 Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.x version 1.x outdated
Projects
None yet
Development

No branches or pull requests

3 participants