iview/types/cell.d.ts

86 lines
1.5 KiB
TypeScript
Raw Normal View History

// Type definitions for iview 3.3.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface 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';
/**
* vue-router append
* @default false
*/
append?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
* title
*/
'': VNode[];
/**
* Icon
*/
icon: VNode[];
/**
* label
*/
label: VNode[];
/**
* extra
*/
extra: VNode[];
/**
*
*/
arrow: VNode[];
}
}
export declare interface CellGroup extends Vue {
/**
*
*
*/
$emit(eventName: 'on-click', name: string): this;
}