This commit is contained in:
parent
6fe3c4cf4a
commit
0f0a20cf9c
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue