mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-10 23:45:33 +08:00
feat: showTextArea 添加一个参数
This commit is contained in:
parent
c1cfb94011
commit
0f46af9f6c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user