alert.d.ts 585 B

123456789101112131415161718192021222324252627
  1. import { ElementUIComponent } from './component'
  2. export type AlertType = 'success' | 'warning' | 'info' | 'error'
  3. /** Alert Component */
  4. export declare class ElAlert extends ElementUIComponent {
  5. /** Title */
  6. title: string
  7. /** Component type */
  8. type: AlertType
  9. /** Descriptive text. Can also be passed with the default slot */
  10. description: string
  11. /** If closable or not */
  12. closable: boolean
  13. /** whether to center the text */
  14. center: boolean
  15. /** Customized close button text */
  16. closeText: string
  17. /** If a type icon is displayed */
  18. showIcon: boolean
  19. }