import Empty from '../empty'; import type { VueNode } from '../_util/type'; import useConfigInject from './hooks/useConfigInject'; export interface RenderEmptyProps { componentName?: string; } export const DefaultRenderEmpty = (props: RenderEmptyProps) => { const { prefixCls } = useConfigInject('empty', props); const renderHtml = (componentName?: string) => { 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?: string): VueNode { return ; } export type RenderEmptyHandler = typeof renderEmpty; export default renderEmpty;