import PropTypes from '../_util/vue-types'; import Empty from '../empty'; import emptyImg from './empty.svg'; import { ConfigConsumerProps } from '.'; const RenderEmpty = { functional: true, inject: { configProvider: { default: () => ({}) }, }, props: { componentName: PropTypes.string, }, render(createElement, context) { const { props, injections } = context; function renderHtml(componentName) { const getPrefixCls = injections.configProvider.getPrefixCls || ConfigConsumerProps.getPrefixCls; const prefix = getPrefixCls('empty'); switch (componentName) { case 'Table': case 'List': return ; case 'Select': case 'TreeSelect': case 'Cascader': case 'Transfer': return ; default: return ; } } return renderHtml(props.componentName); }, }; function renderEmpty(h, componentName) { return ; } export default renderEmpty;