instance.d.ts 527 B

123456789101112
  1. import type Menu from './menu';
  2. import type MenuItem from './menu-item.vue';
  3. import type MenuItemGroup from './menu-item-group.vue';
  4. import type SubMenu from './sub-menu';
  5. export type MenuInstance = InstanceType<typeof Menu> & {
  6. open: (index: string) => void;
  7. close: (index: string) => void;
  8. handleResize: () => void;
  9. };
  10. export type MenuItemInstance = InstanceType<typeof MenuItem>;
  11. export type MenuItemGroupInstance = InstanceType<typeof MenuItemGroup>;
  12. export type SubMenuInstance = InstanceType<typeof SubMenu>;