1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shylinux 2020-07-29 11:39:40 +08:00
parent b3f550a887
commit 0e7c801bfd
2 changed files with 10 additions and 0 deletions

View File

@ -472,6 +472,13 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met
}
return {type: "td", inner: value, click: function(event) {
var target = event.target; if (target.tagName == "INPUT" && target.type == "button") {
switch (target.value) {
case "复制":
navigator.clipboard.writeText(line.text).then(function() {
can.user.toast(can, "复制成功", "paste")
})
return
}
return run(event, event.target.value, value)
}
can.page.Select(can, can._option, "input.args", function(input) { if (input.name == key) { var data = input.dataset || {}

View File

@ -184,6 +184,9 @@ table td:hover {
table td.select {
background-color:red;
}
table td input {
margin-left:4px;
}
div.toast {
color:yellow;