mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-29 18:57:36 +08:00
34 lines
682 B
TypeScript
34 lines
682 B
TypeScript
import { ElementUIComponent } from './component'
|
|
import { VNode } from 'vue'
|
|
|
|
interface ElResultSlots {
|
|
/* title slot: custom title */
|
|
title: VNode[]
|
|
|
|
/* icon slot: custom icon */
|
|
icon: VNode[]
|
|
|
|
/* subTitle slot: custom sub title */
|
|
subTitle: VNode[]
|
|
|
|
/* extra slot: custom extra area, display on the top right */
|
|
extra: VNode[]
|
|
|
|
[key: string]: VNode[]
|
|
}
|
|
|
|
/** Used to give feedback on the result of user's operation or access exception. **/
|
|
export declare class ElResult extends ElementUIComponent {
|
|
|
|
/* title */
|
|
title: string
|
|
|
|
/* sub title */
|
|
subTitle: string
|
|
|
|
/* icon type */
|
|
icon: 'success' | 'warning' | 'info' | 'error'
|
|
|
|
$slots: ElResultSlots
|
|
}
|