From f2e9666a562750e3740bf658e04540c81b7aefb5 Mon Sep 17 00:00:00 2001 From: Frost-ZX <30585462+Frost-ZX@users.noreply.github.com> Date: Fri, 19 Nov 2021 22:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E2=80=9C=E6=AF=94=E4=BE=8B?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E2=80=9D=E5=92=8C=E2=80=9CWebSocket=E2=80=9D?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/navTools.js | 8 +-- src/components/tools/CalcRatio.vue | 52 +++++++++++++----- src/components/tools/OtherWebSocket.vue | 72 +++++++++++++++++++------ 3 files changed, 101 insertions(+), 31 deletions(-) diff --git a/src/assets/js/navTools.js b/src/assets/js/navTools.js index bd7a91f..9864d3d 100644 --- a/src/assets/js/navTools.js +++ b/src/assets/js/navTools.js @@ -23,8 +23,8 @@ let navTools = { title: '比例计算', desc: '按设定的比例计算给出的数值所对应的数值。', component: 'CalcRatio', - update: '2021-11-14', - version: '1', + update: '2021-11-16', + version: '2', enabled: true }, 'simple': { @@ -125,8 +125,8 @@ let navTools = { title: 'WebSocket', desc: 'WebSocket 测试工具', component: 'OtherWebSocket', - update: '2021-11-14', - version: '3', + update: '2021-11-19', + version: '4', enabled: true }, } diff --git a/src/components/tools/CalcRatio.vue b/src/components/tools/CalcRatio.vue index 8ba2505..fecce7e 100644 --- a/src/components/tools/CalcRatio.vue +++ b/src/components/tools/CalcRatio.vue @@ -11,11 +11,11 @@ -
+
小数位数
: @@ -42,7 +45,10 @@ v-model="base.b" controls-position="right" size="small" + :min="limit.min" + :max="limit.max" :step="1" + step-strictly @change="update()" >
@@ -75,7 +81,7 @@ diff --git a/src/components/tools/OtherWebSocket.vue b/src/components/tools/OtherWebSocket.vue index fc7416d..1b97b6b 100644 --- a/src/components/tools/OtherWebSocket.vue +++ b/src/components/tools/OtherWebSocket.vue @@ -1,6 +1,15 @@