mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
mix github
This commit is contained in:
commit
c555786eca
@ -10,11 +10,10 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
|||||||
},
|
},
|
||||||
onclick: function(event, can) {
|
onclick: function(event, can) {
|
||||||
if (can.Conf("name") == "添加") {
|
if (can.Conf("name") == "添加") {
|
||||||
setTimeout(async () => {
|
navigator.clipboard.readText().then(function(text) {
|
||||||
const text = await navigator.clipboard.readText();
|
console.log(text)
|
||||||
console.log(text);
|
|
||||||
can.run(event, ["action", "insert", "paste", "", text], function() {})
|
can.run(event, ["action", "insert", "paste", "", text], function() {})
|
||||||
}, 20)
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user