From a7f9d1042fb06d0c8bbabc9874c89aafa56a8fdf Mon Sep 17 00:00:00 2001 From: yangd Date: Mon, 18 Mar 2019 12:44:05 +0800 Subject: [PATCH] =?UTF-8?q?1.=20Input=20=E7=9A=84=20type=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=96=B0=E5=A2=9E=20number=20=E5=92=8C=20tel=202.=20T?= =?UTF-8?q?abs=20=E6=96=B0=E5=A2=9E=E5=B1=9E=E6=80=A7=20name=203.=20TabPan?= =?UTF-8?q?e=20=E6=96=B0=E5=A2=9E=E5=B1=9E=E6=80=A7=20tab=204.=20TabPane?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=E5=B1=9E=E6=80=A7=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/input.d.ts | 4 ++-- types/tabs.d.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/types/input.d.ts b/types/input.d.ts index bd7b2b52..7e3bb1c8 100644 --- a/types/input.d.ts +++ b/types/input.d.ts @@ -6,10 +6,10 @@ import Vue, { VNode } from 'vue'; export declare interface Input extends Vue { /** - * 输入框类型,可选值为 text、password、textarea、url、email、date + * 输入框类型,可选值为 text、password、textarea、url、email、date、number、tel * @default text */ - type?: 'text' | 'password' | 'textarea' | 'url' | 'email' | 'date'; + type?: 'text' | 'password' | 'textarea' | 'url' | 'email' | 'date' | 'number' | 'tel'; /** * 绑定的值,可使用 v-model 双向绑定 * @default 空 diff --git a/types/tabs.d.ts b/types/tabs.d.ts index a7eebaa3..c0c3b52a 100644 --- a/types/tabs.d.ts +++ b/types/tabs.d.ts @@ -39,6 +39,10 @@ export declare interface Tabs extends Vue { * 关闭前的函数,返回 Promise 可阻止标签关闭 */ 'before-remove'?: (index: number) => {}; + /** + * 当嵌套使用tabs时,指定name区分层级 + */ + name?: string; /** * tab 被点击时触发 */ @@ -82,4 +86,12 @@ export declare interface TabPane extends Vue { * @default null */ closable?: boolean; + /** + * 当嵌套使用tabs时,设置该属性指向对应tabs的name字段 + */ + tab?: string; + /** + * 在tabpane使用v-if时,并不会按照预先的顺序渲染,这时可设置index,并从小到大排序(需大于0) + */ + index?: number; }