保誠-保戶業務員媒合平台
Tomas
2024-04-30 f247f8a4ee7edda57d01b184962b3a3ec04316a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { ElementUIComponent } from './component'
 
export type SuggestionPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
 
export interface FetchSuggestionsCallback {
  /**
   * Callback function used in fetch-suggestions function
   *
   * @param data Suggestions to use
   */
  (data: any[]): void
}
 
export interface FetchSuggestions {
  /**
   * The function passed into the fetch-suggestions property
   *
   * @param queryString Current value of the text input
   * @param callback Callback function used to indicate that suggestions have completely fetched
   */
  (queryString: string, callback: FetchSuggestionsCallback): void
}
 
/** Autocomplete Component */
export declare class ElAutocomplete extends ElementUIComponent {
  /** The placeholder of Autocomplete */
  placeholder: string
 
  /** Whether to show clear button */
  clearable: boolean
 
  /** Whether Autocomplete is disabled */
  disabled: boolean
 
  /** Binding value */
  value: string
 
  /** Debounce delay when typing */
  debounce: number
 
  /** Placement of the popup menu */
  placement: SuggestionPlacement
 
  /** Name for the inner native input */
  name: string
 
  /** Key name of the input suggestion object for display */
  valueKey: string
 
  /** Whether to emit select event on enter when there is no autocomplete match */
  selectWhenUnmatched: boolean
 
  /** A method to fetch input suggestions. When suggestions are ready, invoke callback(data:[]) to return them to Autocomplete */
  fetchSuggestions: FetchSuggestions
 
  /** Custom class name for autocomplete's dropdown */
  popperClass: string
 
  /** Whether show suggestions when input focus */
  triggerOnFocus: boolean
 
  /** Prefix icon class */
  prefixIcon: string
 
  /** Suffix icon class */
  suffixIcon: string
 
  /** Whether to hide the loading icon in remote search */
  hideLoading: boolean
 
  /** Whether to append the dropdown to body */
  popperAppendToBody: boolean
 
  /**
   * Focus the Input component
   */
  focus (): void
}