import { inject } from 'vue'; import PropTypes from '../_util/vue-types'; import Empty from '../empty'; import { ConfigConsumerProps } from './'; const RenderEmpty = { props: { componentName: PropTypes.string, }, setup(props) { const configProvider = inject('configProvider', ConfigConsumerProps); function renderHtml(componentName) { const getPrefixCls = configProvider.getPrefixCls; const prefix = getPrefixCls('empty'); switch (componentName) { case 'Table': case 'List': return ; case 'Select': case 'TreeSelect': case 'Cascader': case 'Transfer': case 'Mentions': return ; default: return ; } } return () => renderHtml(props.componentName); }, }; function renderEmpty(componentName) { return ; } export default renderEmpty;