diff --git a/types/result.d.ts b/types/result.d.ts index 855f3d310..b00545207 100644 --- a/types/result.d.ts +++ b/types/result.d.ts @@ -1,37 +1,40 @@ +import { VNodeChild } from 'vue'; import { AntdComponent } from './component'; export declare class Result extends AntdComponent { - /** - * result title - * @type string - */ - title: any; + $props: { + /** + * result title + * @type string + */ + title?: VNodeChild | JSX.Element; - /** - * result sub title - * - * @type string - */ - subTitle: any; + /** + * result sub title + * + * @type string + */ + subTitle?: VNodeChild | JSX.Element; - /** - * result status,decide icons and colors - * enum of 'success' | 'error' | 'info' | 'warning'| '404' | '403' | '500'` | 'info' - * - * @default 'info' - * @type string - */ - status: string; + /** + * result status,decide icons and colors + * enum of 'success' | 'error' | 'info' | 'warning'| '404' | '403' | '500'` | 'info' + * + * @default 'info' + * @type string + */ + status?: 'success' | 'error' | 'info' | 'warning' | '404' | '403' | '500'; - /** - * custom back icon - * @type any v-slot - */ - icon: any; + /** + * custom back icon + * @type any v-slot + */ + icon?: VNodeChild | JSX.Element; - /** - * operating area - * @type any v-slot - */ - extra: any; + /** + * operating area + * @type any v-slot + */ + extra?: VNodeChild | JSX.Element; + }; }