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

61
types/result.d.ts vendored
View File

@ -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;
};
}