refactor: 优化频谱仪状态管理代码格式,提升可读性
This commit is contained in:
@ -324,7 +324,7 @@ watchEffect(() => {
|
||||
<template>
|
||||
<pre
|
||||
v-if="$__DEV__"
|
||||
class="fixed overflow-y-auto top-10 bottom-10 right-10 z-[9999] bg-white text-black p-[10px] text-[12px] overflow-auto"
|
||||
class="fixed bottom-10 right-10 top-10 z-[9999] overflow-auto overflow-y-auto bg-white p-[10px] text-[12px] text-black"
|
||||
>{{ { 选项卡菜单7个: $enum(E_选项卡菜单).getValues(), ...state } }}</pre
|
||||
>
|
||||
|
||||
@ -352,13 +352,13 @@ watchEffect(() => {
|
||||
<img :src="屏幕照片" alt="频谱仪屏幕" class="absolute left-0 top-0 !h-[330px] !w-[340px]" />
|
||||
|
||||
<!-- bg-pink -->
|
||||
<div data-box="下面左Start 右Stop" class="absolute left-0 right-85px bottom-0 flex justify-between text-white">
|
||||
<div class="flex-1 text-left text-center">
|
||||
<div class="absolute bottom-0 left-0 right-[85px] flex justify-between text-white" data-box="下面左Start 右Stop">
|
||||
<div class="flex-1 text-left">
|
||||
<span>Start </span>
|
||||
<span>{{ state.频谱仪状态.start.value }}</span>
|
||||
<span>{{ state.频谱仪状态.start.unit }}</span>
|
||||
</div>
|
||||
<div class="flex-1 text-right text-center">
|
||||
<div class="flex-1 text-right">
|
||||
<span>Stop </span>
|
||||
<span>{{ state.频谱仪状态.stop.value }}</span>
|
||||
<span>{{ state.频谱仪状态.stop.unit }}</span>
|
||||
@ -382,7 +382,8 @@ watchEffect(() => {
|
||||
state.频谱仪状态.频率输入状态.选中的频率菜单列表的项目 === E_选项卡菜单Freq菜单列表的项目.CenterFreq
|
||||
"
|
||||
>
|
||||
{{ state.频谱仪状态.center.value }} {{ state.频谱仪状态.center.unit }}
|
||||
{{ state.频谱仪状态.center.value }}
|
||||
{{ state.频谱仪状态.center.unit }}
|
||||
</template>
|
||||
<template
|
||||
v-else-if="
|
||||
|
Reference in New Issue
Block a user