ant-design-vue/types/collapse/collapse.d.ts
2019-09-10 18:57:08 +08:00

51 lines
1.1 KiB
TypeScript

// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { CollapsePanel } from './collapse-panel';
export declare class Collapse extends AntdComponent {
static Panel: typeof CollapsePanel;
/**
* If true, Collapse renders as Accordion
* @default false
* @type boolean
*/
accordion: boolean;
/**
* Key of the active panel
* @default No default value. In accordion mode, it's the key of the first panel.
* @type string | string[]
*/
activeKey: string | string[];
/**
* Toggles rendering of the border around the collapse block
* @default true
* @type boolean
*/
bordered: boolean;
/**
* Key of the initial active panel
* @type string
*/
defaultActiveKey: string | string[];
/**
* Destroy Inactive Panel
* @default false
* @type boolean
*/
destroyInactivePanel: boolean;
/**
* allow to customize collapse icon.
* @type any (function | slot-scope)
*/
expandIcon: any;
}