element.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import type * as ep from 'element-plus'
  2. declare global {
  3. declare type ElTagType = 'success' | 'info' | 'warning' | 'danger' | ''
  4. declare type ElFormInstance = ep.FormInstance
  5. declare type ElTableInstance = ep.TableInstance
  6. declare type ElUploadInstance = ep.UploadInstance
  7. declare type ElScrollbarInstance = ep.ScrollbarInstance
  8. declare type ElInputInstance = ep.InputInstance
  9. declare type ElInputNumberInstance = ep.InputNumberInstance
  10. declare type ElRadioInstance = ep.RadioInstance
  11. declare type ElRadioGroupInstance = ep.RadioGroupInstance
  12. declare type ElRadioButtonInstance = ep.RadioButtonInstance
  13. declare type ElCheckboxInstance = ep.CheckboxInstance
  14. declare type ElSwitchInstance = ep.SwitchInstance
  15. declare type ElCascaderInstance = ep.CascaderInstance
  16. declare type ElColorPickerInstance = ep.ColorPickerInstance
  17. declare type ElRateInstance = ep.RateInstance
  18. declare type ElSliderInstance = ep.SliderInstance
  19. declare type ElTreeInstance = InstanceType<typeof ep.ElTree>
  20. declare type ElTreeSelectInstance = InstanceType<typeof ep.ElTreeSelect>
  21. declare type ElSelectInstance = InstanceType<typeof ep.ElSelect>
  22. declare type ElCardInstance = InstanceType<typeof ep.ElCard>
  23. declare type ElDialogInstance = InstanceType<typeof ep.ElDialog>
  24. declare type ElCheckboxGroupInstance = InstanceType<typeof ep.ElCheckboxGroup>
  25. declare type ElDatePickerInstance = InstanceType<typeof ep.ElDatePicker>
  26. declare type ElTimePickerInstance = InstanceType<typeof ep.ElTimePicker>
  27. declare type ElTimeSelectInstance = InstanceType<typeof ep.ElTimeSelect>
  28. declare type TransferKey = ep.TransferKey
  29. declare type CheckboxValueType = ep.CheckboxValueType
  30. declare type ElFormRules = ep.FormRules
  31. declare type DateModelType = ep.DateModelType
  32. declare type UploadFile = ep.UploadFile
  33. }