iview/types/collapse.d.ts

53 lines
No EOL
1.1 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 class Collapse extends Vue {
/**
* 当前激活的面板的 name可以使用 v-model 双向绑定
*/
value?: string[] | string;
/**
* 是否开启手风琴模式,开启后每次至多展开一个面板
* @default false
*/
accordion?: boolean;
/**
* 是否开启简洁模式
* @default false
*/
simple?: boolean;
/**
* 切换面板时触发,返回当前已展开的面板的 key格式为数组
* @default []
*/
$emit(eventName: 'on-change', []): this;
}
export declare class CollapsePanel extends Vue {
/**
* 当前面板的 name与 Collapse的value对应不填为索引值
* @default index的值
*/
name?: string;
/**
* 隐藏箭头
* @default false
*/
'hide-arrow'?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
* 面板头内容
*/
'': VNode[];
/**
* 描素内容
*/
content: VNode[];
};
}