parent
a4ce890dd6
commit
6953698385
|
@ -26,10 +26,14 @@ const Empty = {
|
||||||
props: {
|
props: {
|
||||||
...EmptyProps(),
|
...EmptyProps(),
|
||||||
},
|
},
|
||||||
|
inject: {
|
||||||
|
configProvider: { default: () => ConfigConsumerProps },
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
renderEmpty(contentLocale) {
|
renderEmpty(contentLocale) {
|
||||||
const { prefixCls: customizePrefixCls, imageStyle } = this.$props;
|
const { prefixCls: customizePrefixCls, imageStyle } = this.$props;
|
||||||
const prefixCls = ConfigConsumerProps.getPrefixCls('empty', customizePrefixCls);
|
const { getPrefixCls } = this.configProvider;
|
||||||
|
const prefixCls = getPrefixCls('empty', customizePrefixCls);
|
||||||
const image = getComponentFromProp(this, 'image') || <DefaultEmptyImg />;
|
const image = getComponentFromProp(this, 'image') || <DefaultEmptyImg />;
|
||||||
const description = getComponentFromProp(this, 'description');
|
const description = getComponentFromProp(this, 'description');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue