forked from x/volcanos
opt some
This commit is contained in:
parent
cf173e3d3a
commit
b3f550a887
@ -9,6 +9,15 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
||||
}
|
||||
},
|
||||
onclick: function(event, can) {
|
||||
if (can.Conf("name") == "添加") {
|
||||
setTimeout(async () => {
|
||||
const text = await navigator.clipboard.readText();
|
||||
console.log(text);
|
||||
can.run(event, ["action", "insert", "paste", "", text], function() {})
|
||||
}, 20)
|
||||
return
|
||||
}
|
||||
|
||||
switch (can.Conf("type")) {
|
||||
case "button":
|
||||
can.run(event, [], function() {})
|
||||
|
Loading…
x
Reference in New Issue
Block a user