commonProps.d.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import type { Key } from '../_util/type';
  2. export type CollapsibleType = 'header' | 'icon' | 'disabled';
  3. export type ActiveKeyType = Array<string | number> | string | number;
  4. export interface PanelProps {
  5. isActive?: boolean;
  6. header?: any;
  7. showArrow?: boolean;
  8. forceRender?: boolean;
  9. /** @deprecated Use `collapsible="disabled"` instead */
  10. disabled?: boolean;
  11. extra?: any;
  12. collapsible?: CollapsibleType;
  13. }
  14. declare const collapseProps: () => {
  15. prefixCls: StringConstructor;
  16. activeKey: {
  17. type: import("vue").PropType<ActiveKeyType>;
  18. default: ActiveKeyType;
  19. };
  20. defaultActiveKey: {
  21. type: import("vue").PropType<ActiveKeyType>;
  22. default: ActiveKeyType;
  23. };
  24. accordion: {
  25. type: BooleanConstructor;
  26. default: boolean;
  27. };
  28. destroyInactivePanel: {
  29. type: BooleanConstructor;
  30. default: boolean;
  31. };
  32. bordered: {
  33. type: BooleanConstructor;
  34. default: boolean;
  35. };
  36. expandIcon: {
  37. type: import("vue").PropType<(panelProps: PanelProps) => any>;
  38. default: (panelProps: PanelProps) => any;
  39. };
  40. openAnimation: import("vue-types").VueTypeValidableDef<{
  41. [key: string]: any;
  42. }> & {
  43. default: () => {
  44. [key: string]: any;
  45. };
  46. };
  47. expandIconPosition: {
  48. type: import("vue").PropType<"end" | "start">;
  49. default: "end" | "start";
  50. };
  51. collapsible: {
  52. type: import("vue").PropType<CollapsibleType>;
  53. default: CollapsibleType;
  54. };
  55. ghost: {
  56. type: BooleanConstructor;
  57. default: boolean;
  58. };
  59. onChange: {
  60. type: import("vue").PropType<(key: Key | Key[]) => void>;
  61. default: (key: Key | Key[]) => void;
  62. };
  63. 'onUpdate:activeKey': {
  64. type: import("vue").PropType<(key: Key | Key[]) => void>;
  65. default: (key: Key | Key[]) => void;
  66. };
  67. };
  68. declare const collapsePanelProps: () => {
  69. openAnimation: import("vue-types").VueTypeValidableDef<{
  70. [key: string]: any;
  71. }> & {
  72. default: () => {
  73. [key: string]: any;
  74. };
  75. };
  76. prefixCls: StringConstructor;
  77. header: import("vue-types").VueTypeValidableDef<any>;
  78. headerClass: StringConstructor;
  79. showArrow: {
  80. type: BooleanConstructor;
  81. default: boolean;
  82. };
  83. isActive: {
  84. type: BooleanConstructor;
  85. default: boolean;
  86. };
  87. destroyInactivePanel: {
  88. type: BooleanConstructor;
  89. default: boolean;
  90. };
  91. /** @deprecated Use `collapsible="disabled"` instead */
  92. disabled: {
  93. type: BooleanConstructor;
  94. default: boolean;
  95. };
  96. accordion: {
  97. type: BooleanConstructor;
  98. default: boolean;
  99. };
  100. forceRender: {
  101. type: BooleanConstructor;
  102. default: boolean;
  103. };
  104. expandIcon: {
  105. type: import("vue").PropType<(panelProps: PanelProps) => any>;
  106. default: (panelProps: PanelProps) => any;
  107. };
  108. extra: import("vue-types").VueTypeValidableDef<any>;
  109. panelKey: {
  110. type: import("vue").PropType<string | number>;
  111. default: string | number;
  112. };
  113. collapsible: {
  114. type: import("vue").PropType<CollapsibleType>;
  115. default: CollapsibleType;
  116. };
  117. role: StringConstructor;
  118. onItemClick: {
  119. type: import("vue").PropType<(panelKey: Key) => void>;
  120. default: (panelKey: Key) => void;
  121. };
  122. };
  123. export { collapseProps, collapsePanelProps };