dropdown-menu.d.ts 675 B

123456789101112131415161718192021222324
  1. import { RelationsOptions, SuperComponent } from '../common/src/index';
  2. import type { TdDropdownMenuProps } from './type';
  3. export interface DropdownMenuProps extends TdDropdownMenuProps {
  4. }
  5. export default class DropdownMenu extends SuperComponent {
  6. properties: TdDropdownMenuProps;
  7. nodes: any;
  8. data: {
  9. prefix: string;
  10. classPrefix: string;
  11. menus: any;
  12. activeIdx: number;
  13. bottom: number;
  14. };
  15. relations: RelationsOptions;
  16. lifetimes: {
  17. ready(): void;
  18. };
  19. methods: {
  20. toggle(index: number): void;
  21. getAllItems(): void;
  22. handleToggle(e: WechatMiniprogram.BaseEvent): void;
  23. };
  24. }