-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.d.ts
57 lines (40 loc) · 1.41 KB
/
types.d.ts
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 Vue, { VueConstructor } from 'vue'
declare class Props extends Vue {
/** 绑定值 */
value: any
/** 是否使用多选模式,默认 `false` */
multiple: boolean
/** placeholder */
placeholder: string
/** 下拉弹出元素是否插入于 `<body>` 内 */
appendToBody: boolean
/** 单独设置下拉部分宽度。不设置则跟随 width */
dropdownWidth: number | string
/** 下拉弹出元素的 z-index 值 */
dropdownZIndex: number
/** 是否禁用 */
disabled: boolean
/** 控件尺寸 */
size: '' | 'medium' | 'small' | 'mini'
/** 是否启用清空所有选项功能 */
clearable: boolean
/** 限制显示的选项数量,必须大于 `0` 。其余选项会显示为 `limit-text` 所返回的内容。 */
limit: number
/** 当选项超过限制时显示文本的处理方法,参数为剩余选项数量。 */
limitText: (count: number) => string
/** 下拉弹出元素 class 名 */
popperClass: string
/** 下拉元素是否显示为加载中状态 */
loading: boolean
/** 下拉元素加载状态时显示的文字 */
loadingText: string
/**
* 选择选项后是否自动收起下拉,可显示传值更改。
* 默认:单选模式 `true` ,多选模式 `false`
*/
closeOnSelect: boolean
}
declare class SelectWrapper extends Props {
static install(Vue: VueConstructor<Vue>, options: any): void
}
export default SelectWrapper