From ab70388a53fd5d66b0a4246ae2d633e94d8f1518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 9 May 2025 16:51:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=20PinPuYi.vu?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PinPuYi/CONST.ts | 10 +++++----- src/components/PinPuYi/PinPuYi.vue | 22 ++++++++++++++-------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/components/PinPuYi/CONST.ts b/src/components/PinPuYi/CONST.ts index fb95e12..c0237fe 100644 --- a/src/components/PinPuYi/CONST.ts +++ b/src/components/PinPuYi/CONST.ts @@ -1,9 +1,9 @@ export enum E_选项卡菜单 { + 幅度单位列表 = '幅度单位列表', + 幅度菜单列表 = '幅度菜单列表', + 跨度菜单列表 = '跨度菜单列表', 频率单位列表 = '频率单位列表', 频率菜单列表 = '频率菜单列表', - 跨度菜单列表 = '跨度菜单列表', - 幅度菜单列表 = '幅度菜单列表', - 幅度单位列表 = '幅度单位列表', } export enum E_幅度菜单列表的项目 { @@ -14,14 +14,14 @@ export enum E_幅度菜单列表的项目 { export enum E_幅度单位 { dBm = 'dBm', mV = 'mV', - uV = 'µV', // 使用 uV 表示微伏 uA = 'µA', // 使用 uA 表示微安 + uV = 'µV', // 使用 uV 表示微伏 } export enum E_跨度菜单列表的项目 { FullSpan = 'Full Span', - ZeroSpan = 'Zero Span', LastSpan = 'Last Span', + ZeroSpan = 'Zero Span', } /* 值是在屏幕上显示的值。 */ diff --git a/src/components/PinPuYi/PinPuYi.vue b/src/components/PinPuYi/PinPuYi.vue index 42f46a0..d7cfe5d 100644 --- a/src/components/PinPuYi/PinPuYi.vue +++ b/src/components/PinPuYi/PinPuYi.vue @@ -73,7 +73,10 @@ const 选项卡标题 = computed(() => ); function 执行点击屏幕右边的按钮(按钮序号: number) { - console.group('🔘 点击屏幕右边的按钮', { 按钮序号, 选项卡当前显示: state.选项卡当前显示 }); + console.group('🔘 点击屏幕右边的按钮', { + 按钮序号, + 选项卡当前显示: state.选项卡当前显示, + }); $enum.visitValue(state.选项卡当前显示).with({ [E_选项卡菜单.频率菜单列表]: () => { switch (按钮序号) { @@ -305,7 +308,7 @@ function 执行点击数字按钮(按钮值: E_数字键盘按键) { } let 当前临时输入: string; - let 更新临时输入回调: (newVal: string | null) => void; + let 更新临时输入回调: (newVal: null | string) => void; let 后续操作菜单: E_选项卡菜单; if (isFreqInputActive) { @@ -421,11 +424,11 @@ watchEffect(() => {