demo3.vue 857 B

123456789101112131415161718192021222324
  1. <template>
  2. <m-dropdown title="hover 激活">
  3. <template #dropdown>
  4. <m-dropdown-menu>
  5. <m-dropdown-item>菜单1</m-dropdown-item>
  6. <m-dropdown-item>菜单2</m-dropdown-item>
  7. <m-dropdown-item>菜单3</m-dropdown-item>
  8. <m-dropdown-item>菜单4</m-dropdown-item>
  9. <m-dropdown-item>菜单5</m-dropdown-item>
  10. </m-dropdown-menu>
  11. </template>
  12. </m-dropdown>
  13. <m-dropdown title="click 激活" trigger="click" style="margin-left:50px">
  14. <template #dropdown>
  15. <m-dropdown-menu>
  16. <m-dropdown-item>菜单1</m-dropdown-item>
  17. <m-dropdown-item>菜单2</m-dropdown-item>
  18. <m-dropdown-item>菜单3</m-dropdown-item>
  19. <m-dropdown-item>菜单4</m-dropdown-item>
  20. <m-dropdown-item>菜单5</m-dropdown-item>
  21. </m-dropdown-menu>
  22. </template>
  23. </m-dropdown>
  24. </template>