Badge: fix typing for `badge` props type

pull/22111/head
Egor Volvachev 2022-08-20 16:50:01 +03:00 committed by Egor Volvachev
parent acfc93a71f
commit b93aef15e7
1 changed files with 6 additions and 0 deletions

6
types/badge.d.ts vendored
View File

@ -1,5 +1,8 @@
import { ElementUIComponent } from './component'
/** Badge type */
export type BadgeType = 'primary' | 'success' | 'warning' | 'info' | 'danger'
/** Badge Component */
export declare class ElBadge extends ElementUIComponent {
/** Display value */
@ -13,4 +16,7 @@ export declare class ElBadge extends ElementUIComponent {
/** Hidden badge */
hidden: boolean
/** Badge type */
type: BadgeType
}