fix: 终端telnet支持调整窗口行宽
This commit is contained in:
@@ -19,6 +19,16 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
/**窗口单行字符数 */
|
||||||
|
cols: {
|
||||||
|
type: Number,
|
||||||
|
default: 100,
|
||||||
|
},
|
||||||
|
/**窗口行数 */
|
||||||
|
rows: {
|
||||||
|
type: Number,
|
||||||
|
default: 128,
|
||||||
|
},
|
||||||
/**禁止输入 */
|
/**禁止输入 */
|
||||||
disable: {
|
disable: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -238,6 +248,8 @@ onMounted(() => {
|
|||||||
url: '/ws/telnet',
|
url: '/ws/telnet',
|
||||||
params: {
|
params: {
|
||||||
hostId: props.hostId,
|
hostId: props.hostId,
|
||||||
|
cols: props.cols,
|
||||||
|
rows: props.rows,
|
||||||
},
|
},
|
||||||
onmessage: wsMessage,
|
onmessage: wsMessage,
|
||||||
onerror: wsError,
|
onerror: wsError,
|
||||||
|
|||||||
Reference in New Issue
Block a user