From d6282db69bd2dec3b47eef9163dd3dac9d45d45b Mon Sep 17 00:00:00 2001 From: yangd Date: Mon, 3 Sep 2018 12:50:11 +0800 Subject: [PATCH] 增加color-picker,input-number,modal,tabs的属性到d.ts中 --- types/color-picker.d.ts | 10 ++++++++++ types/input-number.d.ts | 5 +++++ types/modal.d.ts | 5 +++++ types/tabs.d.ts | 4 ++++ 4 files changed, 24 insertions(+), 0 deletions(-) diff --git a/types/color-picker.d.ts b/types/color-picker.d.ts index 6ca6347..e7bf76d 100644 --- a/types/color-picker.d.ts +++ b/types/color-picker.d.ts @@ -10,6 +10,16 @@ export declare interface ColorPicker extends Vue { */ value?: string; /** + * 是否禁用 + * @default false + */ + disabled?: boolean; + /** + * 是否可以输入色值 + * @default false + */ + editable?: boolean; + /** * 是否支持透明度选择 * @default false */ diff --git a/types/input-number.d.ts b/types/input-number.d.ts index 6b23bfe..4340954 100644 --- a/types/input-number.d.ts +++ b/types/input-number.d.ts @@ -61,6 +61,11 @@ export declare interface InputNumber extends Vue { */ 'element-id'?: string; /** + * 是否实时响应数据,设置为 false 时,只会在失焦时更改数据 + * @default true + */ + 'active-change'?: boolean; + /** * 数值改变时的回调,返回当前值,默认值当前值 */ $emit(eventName: 'on-change', value: number): this; diff --git a/types/modal.d.ts b/types/modal.d.ts index 8cac1fd..2a015f6 100644 --- a/types/modal.d.ts +++ b/types/modal.d.ts @@ -79,6 +79,11 @@ export declare interface Modal { */ 'class-name'?: string; /** + * 层级 + * @default 1000 + */ + 'z-index'?: number; + /** * 自定义显示动画,第一项是模态框,第二项是背景, * @default ['ease', 'fade'] */ diff --git a/types/tabs.d.ts b/types/tabs.d.ts index 1c86656..6ed04c3 100644 --- a/types/tabs.d.ts +++ b/types/tabs.d.ts @@ -36,6 +36,10 @@ export declare interface Tabs extends Vue { */ 'capture-focus'?: boolean; /** + * 关闭前的函数,返回 Promise 可阻止标签关闭 + */ + 'before-remove'?: (index: number) => {}; + /** * tab 被点击时触发 */ $emit(eventName: 'on-click', name: string): this; -- libgit2 0.21.4