select.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import { ElementUIComponent, ElementUIComponentSize } from './component'
  2. export interface QueryChangeHandler {
  3. /**
  4. * @param queryString Current value of the text input
  5. */
  6. (queryString: string): void
  7. }
  8. /** Dropdown Select Component */
  9. export declare class ElSelect extends ElementUIComponent {
  10. /** The form input value */
  11. value: any
  12. /** Whether multiple-select is activated */
  13. multiple: boolean
  14. /** Whether Select is disabled */
  15. disabled: boolean
  16. /** Size of Input */
  17. size: ElementUIComponentSize
  18. /** Whether single select can be cleared */
  19. clearable: boolean
  20. /** Maximum number of options user can select when multiple is true. No limit when set to 0 */
  21. multipleLimit: number
  22. /** The name attribute of select input */
  23. name: string
  24. /** Placeholder */
  25. placeholder: string
  26. /** Whether Select is filterable */
  27. filterable: boolean
  28. /** Whether creating new items is allowed. To use this, filterable must be true */
  29. allowCreate: boolean
  30. /** Custom filter method */
  31. filterMethod: AlterItemsEventHandler
  32. /** Whether options are loaded from server */
  33. remote: boolean
  34. /** Custom remote search method */
  35. remoteMethod: AlterItemsEventHandler
  36. /** Whether Select is loading data from server */
  37. loading: boolean
  38. /** Displayed text while loading data from server */
  39. loadingText: string
  40. /** Displayed text when no data matches the filtering query */
  41. noMatchText: string
  42. /** Displayed text when there is no options */
  43. noDataText: string
  44. /** Custom class name for Select's dropdown */
  45. popperClass: string
  46. }