From 37efe5e72a6a2f9306f48ea1d84a2bb003b25e86 Mon Sep 17 00:00:00 2001
From: Lykin <137850705+tiny-craft@users.noreply.github.com>
Date: Wed, 3 Jan 2024 16:55:41 +0800
Subject: [PATCH] perf: remove increase/decrease button in some number input
---
.../components/dialogs/ConnectionDialog.vue | 22 ++++++++++++++++---
.../components/dialogs/PreferencesDialog.vue | 10 ++++++---
.../src/components/new_value/AddZSetValue.vue | 1 +
.../src/components/new_value/NewZSetValue.vue | 1 +
4 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/frontend/src/components/dialogs/ConnectionDialog.vue b/frontend/src/components/dialogs/ConnectionDialog.vue
index d6718ff..143d770 100644
--- a/frontend/src/components/dialogs/ConnectionDialog.vue
+++ b/frontend/src/components/dialogs/ConnectionDialog.vue
@@ -289,6 +289,7 @@ const onClose = () => {
v-model:value="generalForm.port"
:max="65535"
:min="1"
+ :show-button="false"
style="width: 200px" />
@@ -336,7 +337,12 @@ const onClose = () => {
:label="$t('dialogue.connection.advn.conn_timeout')"
:span="12"
path="connTimeout">
-
+
{{ $t('common.second') }}
@@ -346,7 +352,12 @@ const onClose = () => {
:label="$t('dialogue.connection.advn.exec_timeout')"
:span="12"
path="execTimeout">
-
+
{{ $t('common.second') }}
@@ -363,7 +374,11 @@ const onClose = () => {
-
+
{
v-model:value="generalForm.ssh.port"
:max="65535"
:min="1"
+ :show-button="false"
style="width: 200px" />
diff --git a/frontend/src/components/dialogs/PreferencesDialog.vue b/frontend/src/components/dialogs/PreferencesDialog.vue
index ead3447..525064d 100644
--- a/frontend/src/components/dialogs/PreferencesDialog.vue
+++ b/frontend/src/components/dialogs/PreferencesDialog.vue
@@ -101,7 +101,11 @@ const onClose = () => {
-
+
@@ -128,13 +132,13 @@ const onClose = () => {
-
+
-
+
diff --git a/frontend/src/components/new_value/AddZSetValue.vue b/frontend/src/components/new_value/AddZSetValue.vue
index 6e77c14..8bb4304 100644
--- a/frontend/src/components/new_value/AddZSetValue.vue
+++ b/frontend/src/components/new_value/AddZSetValue.vue
@@ -72,6 +72,7 @@ const onUpdate = () => {
diff --git a/frontend/src/components/new_value/NewZSetValue.vue b/frontend/src/components/new_value/NewZSetValue.vue
index 6a0a769..99326ee 100644
--- a/frontend/src/components/new_value/NewZSetValue.vue
+++ b/frontend/src/components/new_value/NewZSetValue.vue
@@ -52,6 +52,7 @@ defineExpose({