This commit is contained in:
chenyan 2021-12-27 15:18:51 +08:00
parent 6fe3c4cf4a
commit 0f0a20cf9c
1 changed files with 5 additions and 13 deletions

View File

@ -11,9 +11,6 @@ description: websocket 在线联调、测试工具。手动发送、接收 webso
white-space: pre-wrap;
font-family: Consolas, monospace;
}
.more-quick-msg {
display: none;
}
</style>
<div id="content">
@ -88,13 +85,13 @@ description: websocket 在线联调、测试工具。手动发送、接收 webso
style="min-height: 70px;" onkeydown="onkeydown_tab(this)"
placeholder="快捷消息2内容会保存到 localStorage方便下次使用"></textarea>
</div>
<div class="uk-form-row more-quick-msg" style="margin-top: 5px;">
<div class="uk-form-row" style="margin-top: 5px;">
<textarea class="uk-width-1-1 quick-msg-textarea" type="text" v-model="myMsg3"
style="min-height: 70px;" onkeydown="onkeydown_tab(this)"
placeholder="快捷消息3内容会保存到 localStorage方便下次使用"></textarea>
</div>
<div class="uk-form-row">
<button class="uk-button uk-button-primary more-quick-msg" :disabled="!connected" @click="doSend3()"
<button class="uk-button uk-button-primary" :disabled="!connected" @click="doSend3()"
style="float: right;margin-left:15px;">发送消息3</button>
<button class="uk-button uk-button-primary" :disabled="!connected" @click="doSend2()"
style="float: right;margin-left:15px;">发送消息2</button>
@ -165,17 +162,12 @@ description: websocket 在线联调、测试工具。手动发送、接收 webso
$('#alipay-red-bao-button').removeClass('red-point-button')
}
if (localStorage.shyFooter == 'true') {
$('.more-quick-msg').show()
}
$(window).ready(function() {
// -45px 是发送按钮的 30 + margin 15. /3 是有3个文本框. -5 文本框的 margin 5
$('.quick-msg-textarea').css('min-height', (($('.quick-msg-form').height() - 45) / 3) - 5)
})
$(window).ready(function() {
console.log(1)
})
$(window).ready(function() {
console.log(2)
$(window).resize(function() {
$('.quick-msg-textarea').css('min-height', (($('.quick-msg-form').height() - 45) / 3) - 5)
})
</script>