12345678910111213141516171819 |
- <template>
- <m-dropdown title="下拉菜单" @change="handleChange">
- <template #dropdown>
- <m-dropdown-menu>
- <m-dropdown-item>菜单1</m-dropdown-item>
- <m-dropdown-item>菜单2</m-dropdown-item>
- <m-dropdown-item>菜单3</m-dropdown-item>
- <m-dropdown-item>菜单4</m-dropdown-item>
- <m-dropdown-item>菜单5</m-dropdown-item>
- </m-dropdown-menu>
- </template>
- </m-dropdown>
- </template>
- <script setup>
- const handleChange = (e) => {
- console.log(e);
- }
- </script>
|