iview/types/cell.d.ts

81 lines
1.4 KiB
TypeScript
Raw Normal View History

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