1
0
forked from x/volcanos
This commit is contained in:
shylinux 2020-07-28 09:22:09 +08:00
parent cf173e3d3a
commit b3f550a887

View File

@ -9,6 +9,15 @@ Volcanos("onaction", {help: "控件交互", list: [],
} }
}, },
onclick: function(event, can) { 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")) { switch (can.Conf("type")) {
case "button": case "button":
can.run(event, [], function() {}) can.run(event, [], function() {})