We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
prefixCls
configProvider
1 parent a4ce890 commit 6953698Copy full SHA for 6953698
components/empty/index.jsx
@@ -26,10 +26,14 @@ const Empty = {
26
props: {
27
...EmptyProps(),
28
},
29
+ inject: {
30
+ configProvider: { default: () => ConfigConsumerProps },
31
+ },
32
methods: {
33
renderEmpty(contentLocale) {
34
const { prefixCls: customizePrefixCls, imageStyle } = this.$props;
- const prefixCls = ConfigConsumerProps.getPrefixCls('empty', customizePrefixCls);
35
+ const { getPrefixCls } = this.configProvider;
36
+ const prefixCls = getPrefixCls('empty', customizePrefixCls);
37
const image = getComponentFromProp(this, 'image') || <DefaultEmptyImg />;
38
const description = getComponentFromProp(this, 'description');
39
0 commit comments