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>
|
<template>
|
||||||
<el-dropdown :disabled="loading" @command="handleCommand">
|
<el-dropdown @command="handleCommand">
|
||||||
<div class="">
|
<div class="">
|
||||||
<slot :loading="loading" />
|
<slot :loading="loading" />
|
||||||
</div>
|
</div>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item v-for="item of 4" :key="item" :command="item">
|
<template v-if="!loading">
|
||||||
{{ $t("device.control.mirror-group.open", { num: item }) }}
|
<el-dropdown-item v-for="item of 4" :key="item" :command="item">
|
||||||
</el-dropdown-item>
|
{{ $t("device.control.mirror-group.open", { num: item }) }}
|
||||||
|
</el-dropdown-item>
|
||||||
<el-dropdown-item command="close">
|
</template>
|
||||||
|
<el-dropdown-item v-else command="close">
|
||||||
<span class="" :title="$t('device.control.mirror-group.close.tips')">
|
<span class="" :title="$t('device.control.mirror-group.close.tips')">
|
||||||
{{ $t("device.control.mirror-group.close") }}
|
{{ $t("device.control.mirror-group.close") }}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user