element/types/result.d.ts

34 lines
682 B
TypeScript
Raw Normal View History

2021-07-21 15:20:25 +08:00
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
}