1. Input 的 type 属性新增 number 和 tel
2. Tabs 新增属性 name 3. TabPane 新增属性 tab 4. TabPane 新增属性 index
This commit is contained in:
parent
33b3672e00
commit
a7f9d1042f
2 changed files with 14 additions and 2 deletions
4
types/input.d.ts
vendored
4
types/input.d.ts
vendored
|
@ -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 空
|
||||
|
|
12
types/tabs.d.ts
vendored
12
types/tabs.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue