collapse-panel.d.ts 992 B

1234567891011121314151617181920212223242526272829
  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. options: {
  8. multipleSlots: boolean;
  9. };
  10. relations: RelationsOptions;
  11. properties: TdCollapsePanelProps;
  12. data: {
  13. prefix: string;
  14. contentHeight: number;
  15. expanded: boolean;
  16. classPrefix: string;
  17. classBasePrefix: string;
  18. ultimateExpandIcon: boolean;
  19. ultimateDisabled: boolean;
  20. };
  21. methods: {
  22. set(data: Record<string, object | any>): Promise<unknown>;
  23. updateExpanded(activeValues: any): Promise<void>;
  24. getRect(selector: string): Promise<WechatMiniprogram.BoundingClientRectCallbackResult>;
  25. updateStyle(expanded: boolean): any;
  26. onClick(): void;
  27. onTransitionEnd(): void;
  28. };
  29. }