From d6282db69bd2dec3b47eef9163dd3dac9d45d45b Mon Sep 17 00:00:00 2001 From: yangd Date: Mon, 3 Sep 2018 12:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0color-picker,input-number,mod?= =?UTF-8?q?al,tabs=E7=9A=84=E5=B1=9E=E6=80=A7=E5=88=B0d.ts=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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(+) diff --git a/types/color-picker.d.ts b/types/color-picker.d.ts index 6ca6347f..e7bf76de 100644 --- a/types/color-picker.d.ts +++ b/types/color-picker.d.ts @@ -9,6 +9,16 @@ export declare interface ColorPicker extends Vue { * 绑定的值,可使用 v-model 双向绑定 */ 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 6b23bfe9..43409548 100644 --- a/types/input-number.d.ts +++ b/types/input-number.d.ts @@ -60,6 +60,11 @@ export declare interface InputNumber extends Vue { * 给表单元素设置 id,详见 Form 用法。 */ 'element-id'?: string; + /** + * 是否实时响应数据,设置为 false 时,只会在失焦时更改数据 + * @default true + */ + 'active-change'?: boolean; /** * 数值改变时的回调,返回当前值,默认值当前值 */ diff --git a/types/modal.d.ts b/types/modal.d.ts index 8cac1fd3..2a015f6a 100644 --- a/types/modal.d.ts +++ b/types/modal.d.ts @@ -78,6 +78,11 @@ export declare interface Modal { * 设置对话框容器.ivu-modal-wrap的类名,可辅助实现垂直居中等自定义效果 */ 'class-name'?: string; + /** + * 层级 + * @default 1000 + */ + 'z-index'?: number; /** * 自定义显示动画,第一项是模态框,第二项是背景, * @default ['ease', 'fade'] diff --git a/types/tabs.d.ts b/types/tabs.d.ts index 1c86656a..6ed04c31 100644 --- a/types/tabs.d.ts +++ b/types/tabs.d.ts @@ -35,6 +35,10 @@ export declare interface Tabs extends Vue { * @default false */ 'capture-focus'?: boolean; + /** + * 关闭前的函数,返回 Promise 可阻止标签关闭 + */ + 'before-remove'?: (index: number) => {}; /** * tab 被点击时触发 */