UNPKG

2.87 kBTypeScriptView Raw
1import { CSSProperties, PropType } from 'vue';
2import { VueNode } from '../_util/type';
3export interface PanelProps {
4 isActive?: boolean;
5 header?: VueNode;
6 className?: string;
7 class?: string;
8 style?: CSSProperties;
9 showArrow?: boolean;
10 forceRender?: boolean;
11 disabled?: boolean;
12 extra?: VueNode;
13}
14declare type ActiveKeyType = Array<string | number> | string | number;
15declare const _default: import("vue").DefineComponent<{
16 prefixCls: import("vue-types").VueTypeValidableDef<string> & {
17 default: string;
18 };
19 activeKey: {
20 type: PropType<ActiveKeyType>;
21 };
22 defaultActiveKey: {
23 type: PropType<ActiveKeyType>;
24 };
25 accordion: import("vue-types").VueTypeValidableDef<boolean>;
26 destroyInactivePanel: import("vue-types").VueTypeValidableDef<boolean>;
27 bordered: import("vue-types").VueTypeValidableDef<boolean> & {
28 default: boolean;
29 };
30 expandIcon: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
31 default: (...args: any[]) => any;
32 };
33 openAnimation: import("vue-types").VueTypeValidableDef<{
34 [key: string]: any;
35 }> & {
36 default: () => {
37 [key: string]: any;
38 };
39 } & {
40 default: () => {
41 [key: string]: any;
42 };
43 };
44 expandIconPosition: import("vue-types").VueTypeDef<"left" | "right"> & {
45 default: "left" | "right";
46 };
47 'onUpdate:activeKey': import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
48 default: (...args: any[]) => any;
49 };
50 onChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
51 default: (...args: any[]) => any;
52 };
53}, {
54 configProvider: import("../config-provider").ConfigConsumerProps;
55}, unknown, {}, {
56 renderExpandIcon(panelProps: PanelProps, prefixCls: string): any;
57 handleChange(activeKey: ActiveKeyType): void;
58}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
59 onChange: (...args: any[]) => any;
60 prefixCls: string;
61 bordered: boolean;
62 expandIcon: (...args: any[]) => any;
63 openAnimation: {
64 [key: string]: any;
65 };
66 expandIconPosition: "left" | "right";
67 "onUpdate:activeKey": (...args: any[]) => any;
68} & {
69 activeKey?: ActiveKeyType;
70 defaultActiveKey?: ActiveKeyType;
71 accordion?: boolean;
72 destroyInactivePanel?: boolean;
73}>, {
74 onChange: (...args: any[]) => any;
75 prefixCls: string;
76 bordered: boolean;
77 expandIcon: (...args: any[]) => any;
78 openAnimation: {
79 [key: string]: any;
80 };
81 expandIconPosition: "left" | "right";
82 "onUpdate:activeKey": (...args: any[]) => any;
83}>;
84export default _default;