Result: add result component (#21171)

This commit is contained in:
好多大米
2021-07-21 15:20:25 +08:00
committed by GitHub
parent 6bbc046563
commit 09e789bad2
21 changed files with 692 additions and 11 deletions

33
types/result.d.ts vendored Normal file
View 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
}