chore: update type result (#2684)

* chore: update type result
pull/2687/head
xrkffgg 2020-08-17 11:34:36 +08:00 committed by GitHub
parent 74fe24b77f
commit 2b53c74f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 29 deletions

13
types/result.d.ts vendored
View File

@ -1,18 +1,20 @@
import { VNodeChild } from 'vue';
import { AntdComponent } from './component'; import { AntdComponent } from './component';
export declare class Result extends AntdComponent { export declare class Result extends AntdComponent {
$props: {
/** /**
* result title * result title
* @type string * @type string
*/ */
title: any; title?: VNodeChild | JSX.Element;
/** /**
* result sub title * result sub title
* *
* @type string * @type string
*/ */
subTitle: any; subTitle?: VNodeChild | JSX.Element;
/** /**
* result status,decide icons and colors * result status,decide icons and colors
@ -21,17 +23,18 @@ export declare class Result extends AntdComponent {
* @default 'info' * @default 'info'
* @type string * @type string
*/ */
status: string; status?: 'success' | 'error' | 'info' | 'warning' | '404' | '403' | '500';
/** /**
* custom back icon * custom back icon
* @type any v-slot * @type any v-slot
*/ */
icon: any; icon?: VNodeChild | JSX.Element;
/** /**
* operating area * operating area
* @type any v-slot * @type any v-slot
*/ */
extra: any; extra?: VNodeChild | JSX.Element;
};
} }