import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { getComponent } from '../_util/props-util';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import DefaultEmptyImg from './empty';
import SimpleEmptyImg from './simple';
export const TransferLocale = () => {
return {
description: PropTypes.string,
};
};
export const EmptyProps = () => {
return {
prefixCls: PropTypes.string,
image: PropTypes.any,
description: PropTypes.any,
imageStyle: PropTypes.object,
};
};
const Empty = {
name: 'AEmpty',
props: {
...EmptyProps(),
},
methods: {
renderEmpty(contentLocale) {
const { prefixCls: customizePrefixCls, imageStyle } = this.$props;
const prefixCls = ConfigConsumerProps.getPrefixCls('empty', customizePrefixCls);
const image = getComponent(this, 'image') ||
{des}
} {this.$slots.default && }