Collapse.d.ts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import type { CollapsibleType } from './commonProps';
  2. import { collapseProps } from './commonProps';
  3. import type { ExtractPropTypes } from 'vue';
  4. import type { CollapsePanelProps } from './CollapsePanel';
  5. import type { CustomSlotsType } from '../_util/type';
  6. export { collapseProps };
  7. export type CollapseProps = Partial<ExtractPropTypes<ReturnType<typeof collapseProps>>>;
  8. declare const _default: import("vue").DefineComponent<{
  9. prefixCls: StringConstructor;
  10. activeKey: {
  11. type: import("vue").PropType<import("./commonProps").ActiveKeyType>;
  12. default: import("./commonProps").ActiveKeyType;
  13. };
  14. defaultActiveKey: {
  15. type: import("vue").PropType<import("./commonProps").ActiveKeyType>;
  16. default: import("./commonProps").ActiveKeyType;
  17. };
  18. accordion: {
  19. type: BooleanConstructor;
  20. default: boolean;
  21. };
  22. destroyInactivePanel: {
  23. type: BooleanConstructor;
  24. default: boolean;
  25. };
  26. bordered: {
  27. type: BooleanConstructor;
  28. default: boolean;
  29. };
  30. expandIcon: {
  31. type: import("vue").PropType<(panelProps: import("./commonProps").PanelProps) => any>;
  32. default: (panelProps: import("./commonProps").PanelProps) => any;
  33. };
  34. openAnimation: import("vue-types").VueTypeValidableDef<{
  35. [key: string]: any;
  36. }> & {
  37. default: () => {
  38. [key: string]: any;
  39. };
  40. };
  41. expandIconPosition: {
  42. type: import("vue").PropType<"end" | "start">;
  43. default: "end" | "start";
  44. };
  45. collapsible: {
  46. type: import("vue").PropType<CollapsibleType>;
  47. default: CollapsibleType;
  48. };
  49. ghost: {
  50. type: BooleanConstructor;
  51. default: boolean;
  52. };
  53. onChange: {
  54. type: import("vue").PropType<(key: import("../_util/type").Key | import("../_util/type").Key[]) => void>;
  55. default: (key: import("../_util/type").Key | import("../_util/type").Key[]) => void;
  56. };
  57. 'onUpdate:activeKey': {
  58. type: import("vue").PropType<(key: import("../_util/type").Key | import("../_util/type").Key[]) => void>;
  59. default: (key: import("../_util/type").Key | import("../_util/type").Key[]) => void;
  60. };
  61. }, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
  62. prefixCls: StringConstructor;
  63. activeKey: {
  64. type: import("vue").PropType<import("./commonProps").ActiveKeyType>;
  65. default: import("./commonProps").ActiveKeyType;
  66. };
  67. defaultActiveKey: {
  68. type: import("vue").PropType<import("./commonProps").ActiveKeyType>;
  69. default: import("./commonProps").ActiveKeyType;
  70. };
  71. accordion: {
  72. type: BooleanConstructor;
  73. default: boolean;
  74. };
  75. destroyInactivePanel: {
  76. type: BooleanConstructor;
  77. default: boolean;
  78. };
  79. bordered: {
  80. type: BooleanConstructor;
  81. default: boolean;
  82. };
  83. expandIcon: {
  84. type: import("vue").PropType<(panelProps: import("./commonProps").PanelProps) => any>;
  85. default: (panelProps: import("./commonProps").PanelProps) => any;
  86. };
  87. openAnimation: import("vue-types").VueTypeValidableDef<{
  88. [key: string]: any;
  89. }> & {
  90. default: () => {
  91. [key: string]: any;
  92. };
  93. };
  94. expandIconPosition: {
  95. type: import("vue").PropType<"end" | "start">;
  96. default: "end" | "start";
  97. };
  98. collapsible: {
  99. type: import("vue").PropType<CollapsibleType>;
  100. default: CollapsibleType;
  101. };
  102. ghost: {
  103. type: BooleanConstructor;
  104. default: boolean;
  105. };
  106. onChange: {
  107. type: import("vue").PropType<(key: import("../_util/type").Key | import("../_util/type").Key[]) => void>;
  108. default: (key: import("../_util/type").Key | import("../_util/type").Key[]) => void;
  109. };
  110. 'onUpdate:activeKey': {
  111. type: import("vue").PropType<(key: import("../_util/type").Key | import("../_util/type").Key[]) => void>;
  112. default: (key: import("../_util/type").Key | import("../_util/type").Key[]) => void;
  113. };
  114. }>>, {
  115. onChange: (key: import("../_util/type").Key | import("../_util/type").Key[]) => void;
  116. expandIcon: (panelProps: import("./commonProps").PanelProps) => any;
  117. activeKey: import("./commonProps").ActiveKeyType;
  118. 'onUpdate:activeKey': (key: import("../_util/type").Key | import("../_util/type").Key[]) => void;
  119. ghost: boolean;
  120. bordered: boolean;
  121. openAnimation: {
  122. [key: string]: any;
  123. };
  124. defaultActiveKey: import("./commonProps").ActiveKeyType;
  125. destroyInactivePanel: boolean;
  126. accordion: boolean;
  127. collapsible: CollapsibleType;
  128. expandIconPosition: "end" | "start";
  129. }, CustomSlotsType<{
  130. default?: any;
  131. expandIcon?: CollapsePanelProps;
  132. }>>;
  133. export default _default;