From b1c4013ceee2a53253e410bc56a4cbf7f4316b60 Mon Sep 17 00:00:00 2001 From: undefined Date: Fri, 2 Oct 2020 21:39:54 +0800 Subject: [PATCH] fix: empty support htmlattributes --- components/empty/index.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/empty/index.tsx b/components/empty/index.tsx index e1f4f56de..5483d6c87 100644 --- a/components/empty/index.tsx +++ b/components/empty/index.tsx @@ -1,4 +1,12 @@ -import { CSSProperties, VNodeTypes, inject, App, SetupContext, FunctionalComponent } from 'vue'; +import { + CSSProperties, + VNodeTypes, + inject, + App, + SetupContext, + FunctionalComponent, + HTMLAttributes, +} from 'vue'; import classNames from '../_util/classNames'; import { defaultConfigProvider, ConfigConsumerProps } from '../config-provider'; import LocaleReceiver from '../locale-provider/LocaleReceiver'; @@ -14,7 +22,7 @@ export interface TransferLocale { description: string; } -export interface EmptyProps { +export interface EmptyProps extends HTMLAttributes { prefixCls?: string; imageStyle?: CSSProperties; image?: VNodeTypes | null;