From 55d4a36efb4f4b8c3aa83164138627ada47ed34b Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 16 Apr 2024 19:49:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=88=E7=AB=AFtelnet=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=B0=83=E6=95=B4=E7=AA=97=E5=8F=A3=E8=A1=8C=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TerminalTelnet/index.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/TerminalTelnet/index.vue b/src/components/TerminalTelnet/index.vue index 47ab215c..8d8f8ba8 100644 --- a/src/components/TerminalTelnet/index.vue +++ b/src/components/TerminalTelnet/index.vue @@ -19,6 +19,16 @@ const props = defineProps({ type: String, required: true, }, + /**窗口单行字符数 */ + cols: { + type: Number, + default: 100, + }, + /**窗口行数 */ + rows: { + type: Number, + default: 128, + }, /**禁止输入 */ disable: { type: Boolean, @@ -238,6 +248,8 @@ onMounted(() => { url: '/ws/telnet', params: { hostId: props.hostId, + cols: props.cols, + rows: props.rows, }, onmessage: wsMessage, onerror: wsError,