mirror of
https://gitee.com/viarotel-org/escrcpy.git
synced 2024-11-30 02:08:59 +08:00
perf: ♻️ Optimize mirror group
This commit is contained in:
parent
92f57eca6a
commit
5793c246fa
@ -1,15 +1,16 @@
|
||||
<template>
|
||||
<el-dropdown :disabled="loading" @command="handleCommand">
|
||||
<el-dropdown @command="handleCommand">
|
||||
<div class="">
|
||||
<slot :loading="loading" />
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item v-for="item of 4" :key="item" :command="item">
|
||||
{{ $t("device.control.mirror-group.open", { num: item }) }}
|
||||
</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item command="close">
|
||||
<template v-if="!loading">
|
||||
<el-dropdown-item v-for="item of 4" :key="item" :command="item">
|
||||
{{ $t("device.control.mirror-group.open", { num: item }) }}
|
||||
</el-dropdown-item>
|
||||
</template>
|
||||
<el-dropdown-item v-else command="close">
|
||||
<span class="" :title="$t('device.control.mirror-group.close.tips')">
|
||||
{{ $t("device.control.mirror-group.close") }}
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user