fix: 🐛 Fix the mirror group bug

This commit is contained in:
viarotel 2024-09-16 16:21:56 +08:00
parent ae8a4f34df
commit cd7d9cdd3c

View File

@ -1,19 +1,19 @@
<template>
<el-dropdown :disabled="loading" @command="handleCommand">
<slot :loading />
<el-dropdown @command="handleCommand">
<div class="">
<slot v-bind="{ loading }" />
</div>
<template #dropdown>
<el-dropdown-menu>
<template v-if="!loading">
<el-dropdown-item
v-for="item of options"
:key="item"
:command="item.value"
:title="item.title"
>
{{ item.label }}
</el-dropdown-item>
</template>
<el-dropdown-item
v-for="item of options"
:key="item.value"
:command="item.value"
:title="item.title"
>
{{ item.label }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>