1 | import { VuePopperProps } from '@livelybone/vue-popper'
|
2 | import Vue from 'vue'
|
3 | import { VueScrollbarProps } from 'vue-scrollbar-live'
|
4 |
|
5 | declare class Common extends Vue {
|
6 | id?: string | number
|
7 | |
8 |
|
9 |
|
10 | canEdit?: boolean
|
11 | |
12 |
|
13 |
|
14 | canSearch?: boolean
|
15 | placeholder?: string
|
16 | searchPlaceholder?: string
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | popperProps?: VuePopperProps
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | scrollbarProps?: VueScrollbarProps
|
46 | }
|
47 |
|
48 | export interface SelectOptions {
|
49 | name: string
|
50 | value: string | number
|
51 | }
|
52 |
|
53 | declare class SelectBase extends Common {
|
54 | value: string | number
|
55 | options: SelectOptions
|
56 | inputWrapStyle?: CSSStyleDeclaration | string
|
57 | }
|
58 |
|
59 | declare class SelectMulti extends Common {
|
60 | value: Array<string | number>
|
61 | options: SelectOptions
|
62 | }
|
63 |
|
64 | export interface CascaderOptions extends SelectOptions {
|
65 | children?: CascaderOptions
|
66 | }
|
67 |
|
68 | export type ExpandType = 'click' | 'hover'
|
69 |
|
70 | declare class Cascader extends Common {
|
71 | value: Array<string | number>
|
72 | options: CascaderOptions
|
73 | |
74 |
|
75 |
|
76 |
|
77 |
|
78 | expandType?: ExpandType
|
79 | |
80 |
|
81 |
|
82 |
|
83 |
|
84 | changeOnSelect?: boolean
|
85 | inputWrapStyle?: CSSStyleDeclaration | string
|
86 | }
|
87 |
|
88 | declare class CasecaderMulti extends Common {
|
89 | value: Array<Array<string | number>>
|
90 | options: CascaderOptions
|
91 | |
92 |
|
93 |
|
94 |
|
95 |
|
96 | expandType?: ExpandType
|
97 | }
|
98 |
|
99 | export { SelectBase, SelectMulti, Cascader, CasecaderMulti }
|