import { App, defineComponent } from 'vue';
import EmptyAlias from 'ant-design-vue/es/empty';
import 'ant-design-vue/es/empty/style';
// @ts-ignore
import style from './style/index.module.less';
// @ts-ignore
import CUSTOM_ICON_EMPTY from './assets/imgs/nodata@2x.png';
const Empty = defineComponent({
  name: 'AEmpty',
  inheritAttrs: false,
  setup(props, { attrs, slots }) {
    const image = <img class="" src={CUSTOM_ICON_EMPTY} alt="empty" />;
    return () => (
      <EmptyAlias
        image={image}
        // to do... i18n
        // description="暂无数据"
        {...attrs}
        v-slots={slots}
      />
    );
  }
});

export default Empty as typeof Empty & {
  install: (app: App, ...options: any[]) => any;
};
