update
This commit is contained in:
parent
ba9d70c770
commit
a3a90be7d5
68 changed files with 6446 additions and 1510 deletions
81
dist/types/cell.d.ts
vendored
Normal file
81
dist/types/cell.d.ts
vendored
Normal file
|
@ -0,0 +1,81 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare class Cell extends Vue {
|
||||
/**
|
||||
* 用来标识这一项
|
||||
*/
|
||||
name?: string | number;
|
||||
/**
|
||||
* 左侧标题
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* 标题下方的描述信息
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* 右侧额外内容
|
||||
*/
|
||||
extra?: string;
|
||||
/**
|
||||
* 禁用该项
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* 标记该项为选中状态
|
||||
* @default false
|
||||
*/
|
||||
selected?: boolean;
|
||||
/**
|
||||
* 跳转的链接,支持 vue-router 对象
|
||||
*/
|
||||
to?: string | object;
|
||||
/**
|
||||
* 路由跳转时,开启 replace 将不会向 history 添加新记录
|
||||
* @default false
|
||||
*/
|
||||
replace?: boolean;
|
||||
/**
|
||||
* 相当于 a 链接的 target 属性
|
||||
* @default _self
|
||||
*/
|
||||
target?: '_blank' | '_self' | '_parent' | '_top';
|
||||
/**
|
||||
* slot插槽对象
|
||||
*/
|
||||
$slots: {
|
||||
/**
|
||||
* 相当于 title
|
||||
*/
|
||||
'': VNode[];
|
||||
/**
|
||||
* 标题前的 Icon
|
||||
*/
|
||||
icon: VNode[];
|
||||
/**
|
||||
* 相当于 label
|
||||
*/
|
||||
label: VNode[];
|
||||
/**
|
||||
* 相当于 extra
|
||||
*/
|
||||
extra: VNode[];
|
||||
/**
|
||||
* 有链接时,可自定义右侧箭头
|
||||
*/
|
||||
arrow: VNode[];
|
||||
}
|
||||
}
|
||||
|
||||
export declare class CellGroup extends Vue {
|
||||
/**
|
||||
* 点击单元格时触发
|
||||
*
|
||||
*/
|
||||
$emit(eventName: 'on-click', name: string): this;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue