feat: showTextArea 添加一个参数

This commit is contained in:
lee 2020-10-10 01:02:26 +08:00
parent c1cfb94011
commit 0f46af9f6c

View File

@ -268,12 +268,12 @@ quickcommand = {
},
// 显示文本输入框
showTextAera: function (placeholder = "") {
showTextAera: function (placeholder = "", value = "") {
return new Promise((reslove, reject) => {
utools.setExpendHeight(600)
var html = `
<div id="quicktextarea">
<textarea placeholder="${placeholder}"></textarea>
<textarea placeholder="${placeholder}">${value}</textarea>
<button class="circleButton"></button>
</div>`
$("body").append(html)