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> <template>
<el-dropdown :disabled="loading" @command="handleCommand"> <el-dropdown @command="handleCommand">
<slot :loading /> <div class="">
<slot v-bind="{ loading }" />
</div>
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
<template v-if="!loading">
<el-dropdown-item <el-dropdown-item
v-for="item of options" v-for="item of options"
:key="item" :key="item.value"
:command="item.value" :command="item.value"
:title="item.title" :title="item.title"
> >
{{ item.label }} {{ item.label }}
</el-dropdown-item> </el-dropdown-item>
</template>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>