alert.d.ts 674 B

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