iview/dist/types/cell.d.ts

81 lines
1.5 KiB
TypeScript
Raw Normal View History

2018-08-31 18:04:17 +08:00
// Type definitions for iview 3.1.0
2018-08-30 18:11:37 +08:00
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
2018-09-03 13:28:21 +08:00
import Vue, { VNode } from 'vue';
2018-08-30 18:11:37 +08:00
2018-09-03 13:28:21 +08:00
export declare interface Cell extends Vue {
2018-08-30 18:11:37 +08:00
/**
*
*/
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[];
}
}
2018-09-03 13:28:21 +08:00
export declare interface CellGroup extends Vue {
2018-08-30 18:11:37 +08:00
/**
*
*
*/
$emit(eventName: 'on-click', name: string): this;
}