mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Result: add result component (#21171)
This commit is contained in:
33
types/result.d.ts
vendored
Normal file
33
types/result.d.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user