cascader.d.ts
1.39 KB
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
import { ElementUIComponent, ElementUIComponentSize } from './component'
/** Trigger mode of expanding current item */
export type ExpandTrigger = 'click' | 'hover'
/** Cascader Option */
export interface CascaderOption {
label: string,
value: any,
children?: CascaderOption[],
disabled?: boolean
}
/** Cascader Component */
export declare class ElCascader extends ElementUIComponent {
/** Data of the options */
options: CascaderOption[]
/** Configuration options */
props: object
/** Selected value */
value: any[]
/** Custom class name for Cascader's dropdown */
popperClass: string
/** Input placeholder */
placeholder: string
/** Whether Cascader is disabled */
disabled: boolean
/** Whether selected value can be cleared */
clearable: boolean
/** Trigger mode of expanding current item */
expandTrigger: ExpandTrigger
/** Whether to display all levels of the selected value in the input */
showAllLevels: boolean
/** Whether the options can be searched */
filterable: boolean
/** Debounce delay when typing filter keyword, in millisecond */
debounce: number
/** Whether selecting an option of any level is permitted */
changeOnSelect: boolean
/** Size of Input */
size: ElementUIComponentSize
/** Hook function before filtering with the value to be filtered as its parameter */
beforeFilter: (value: string) => boolean | Promise<any>
}