collapse-panel.d.ts 929 B

12345678910111213141516171819202122232425
  1. import { SuperComponent, RelationsOptions } from '../common/src/index';
  2. import type { TdCollapsePanelProps } from './type';
  3. export interface CollapsePanelProps extends TdCollapsePanelProps {
  4. }
  5. export default class CollapsePanel extends SuperComponent {
  6. externalClasses: string[];
  7. relations: RelationsOptions;
  8. properties: TdCollapsePanelProps;
  9. data: {
  10. contentHeight: number;
  11. expanded: boolean;
  12. classPrefix: string;
  13. classBasePrefix: string;
  14. ultimateExpandIcon: boolean;
  15. ultimateDisabled: boolean;
  16. };
  17. methods: {
  18. set(data: Record<string, object | any>): Promise<unknown>;
  19. updateExpanded(activeValues: any): Promise<void>;
  20. getRect(selector: string, all?: boolean): Promise<WechatMiniprogram.BoundingClientRectCallbackResult>;
  21. updateStyle(expanded: boolean): any;
  22. onClick(): void;
  23. onTransitionEnd(): void;
  24. };
  25. }