From 6299b6d45f83dea0eb610bdf73f9307c40ea21c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 28 Apr 2025 17:44:11 +0800 Subject: [PATCH] PinPuYi --- src/components/PinPuYi/CONST.ts | 37 +++++ src/components/PinPuYi/Helvetica.css | 4 +- src/components/PinPuYi/PinPuYi.vue | 231 +++++++++++++-------------- 3 files changed, 150 insertions(+), 122 deletions(-) create mode 100644 src/components/PinPuYi/CONST.ts diff --git a/src/components/PinPuYi/CONST.ts b/src/components/PinPuYi/CONST.ts new file mode 100644 index 0000000..65e19d6 --- /dev/null +++ b/src/components/PinPuYi/CONST.ts @@ -0,0 +1,37 @@ +export enum E_选项卡菜单 { + 频率单位列表 = '频率单位列表', + 频率菜单列表 = '频率菜单列表', +} + +/* 值是在屏幕上显示的值。 */ +export enum E_选项卡菜单Freq菜单列表的项目 { + CenterFreq = 'Center', + StartFreq = 'Start', + StopFreq = 'Stop', + // CFStep = 'CFStep', + // FreqOffset = 'FreqOffset', + // SingnalTrack = 'SingnalTrack', + // ScaleType = 'ScaleType', +} + +export enum E_Freq单位 { + GHz = 'GHz', + Hz = 'Hz', + kHz = 'kHz', + MHz = 'MHz', +} + +export enum E_数字键盘按键 { + Dot = '.', + Num0 = 0, + Num1 = 1, + Num2 = 2, + Num3 = 3, + Num4 = 4, + Num5 = 5, + Num6 = 6, + Num7 = 7, + Num8 = 8, + Num9 = 9, + PlusMinus = '+/-', +} diff --git a/src/components/PinPuYi/Helvetica.css b/src/components/PinPuYi/Helvetica.css index 67ec674..090db2b 100644 --- a/src/components/PinPuYi/Helvetica.css +++ b/src/components/PinPuYi/Helvetica.css @@ -1,5 +1,7 @@ @font-face { font-family: 'Helvetica Custom'; + font-style: normal; + font-weight: 400; /* 400 通常代表 'normal' 或 'regular' */ src: url('fonts/Helvetica-Light-05.eot'); src: url('fonts/Helvetica-Light-05.eot?#iefix') format('embedded-opentype'), @@ -7,7 +9,5 @@ url('fonts/Helvetica-Light-05.woff') format('woff'), url('fonts/Helvetica-Light-05.ttf') format('truetype'), url('fonts/Helvetica-Light-05.svg#Helvetica') format('svg'); - font-weight: 400; /* 400 通常代表 'normal' 或 'regular' */ - font-style: normal; font-display: swap; /* 推荐 */ } diff --git a/src/components/PinPuYi/PinPuYi.vue b/src/components/PinPuYi/PinPuYi.vue index f09db6a..a476405 100644 --- a/src/components/PinPuYi/PinPuYi.vue +++ b/src/components/PinPuYi/PinPuYi.vue @@ -2,51 +2,14 @@