Commit d6282db69bd2dec3b47eef9163dd3dac9d45d45b
1 parent
03aa82e1
增加color-picker,input-number,modal,tabs的属性到d.ts中
Showing
4 changed files
with
24 additions
and
0 deletions
Show diff stats
types/color-picker.d.ts
... | ... | @@ -10,6 +10,16 @@ export declare interface ColorPicker extends Vue { |
10 | 10 | */ |
11 | 11 | value?: string; |
12 | 12 | /** |
13 | + * 是否禁用 | |
14 | + * @default false | |
15 | + */ | |
16 | + disabled?: boolean; | |
17 | + /** | |
18 | + * 是否可以输入色值 | |
19 | + * @default false | |
20 | + */ | |
21 | + editable?: boolean; | |
22 | + /** | |
13 | 23 | * 是否支持透明度选择 |
14 | 24 | * @default false |
15 | 25 | */ | ... | ... |
types/input-number.d.ts
... | ... | @@ -61,6 +61,11 @@ export declare interface InputNumber extends Vue { |
61 | 61 | */ |
62 | 62 | 'element-id'?: string; |
63 | 63 | /** |
64 | + * 是否实时响应数据,设置为 false 时,只会在失焦时更改数据 | |
65 | + * @default true | |
66 | + */ | |
67 | + 'active-change'?: boolean; | |
68 | + /** | |
64 | 69 | * 数值改变时的回调,返回当前值,默认值当前值 |
65 | 70 | */ |
66 | 71 | $emit(eventName: 'on-change', value: number): this; | ... | ... |
types/modal.d.ts
types/tabs.d.ts
... | ... | @@ -36,6 +36,10 @@ export declare interface Tabs extends Vue { |
36 | 36 | */ |
37 | 37 | 'capture-focus'?: boolean; |
38 | 38 | /** |
39 | + * 关闭前的函数,返回 Promise 可阻止标签关闭 | |
40 | + */ | |
41 | + 'before-remove'?: (index: number) => {}; | |
42 | + /** | |
39 | 43 | * tab 被点击时触发 |
40 | 44 | */ |
41 | 45 | $emit(eventName: 'on-click', name: string): this; | ... | ... |