1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-04-10 00:32:53 +08:00
parent 9cb7b31bba
commit 09810f9d1b
3 changed files with 8 additions and 5 deletions

View File

@ -107,8 +107,9 @@ Volcanos("misc", {
can.onappend.style(can, "warn", can.user.toastFailure(can, msg.Result())._target)
input.focus()
} else {
can.Update()
input.cancel()
var sup = can._fields? can.sup: can; if (sup.onimport._process(sup, msg)) { return }
can.Update()
}
}); return true
}); return true

View File

@ -29,7 +29,8 @@ Volcanos(chat.ONFIGURE, {key: {
target.value = value, can.onmotion.hidden(can, can._target)
}
can.core.CallFunc([can.oninputs, "_show"], {event: event, can: can, msg: msg, target: target, name: name})
can.core.CallFunc([can.sup.sub, "oninputs", name], {event: event, can: can, msg: msg, target: target, name: name})
var style = msg.Option(ice.MSG_DISPLAY)? can.base.ParseURL(msg.Option(ice.MSG_DISPLAY)).style||name: name
can.core.CallFunc([can.sup.sub, "oninputs", style], {event: event, can: can, msg: msg, target: target, name: name})
can.layout(msg)
},
onfocus: function(event, can, meta, target, cbs, mod) { meta._force && mod.onclick(event, can, meta, target, cbs) },

View File

@ -290,15 +290,16 @@ Volcanos(chat.ONACTION, {
},
})
Volcanos(chat.ONINPUTS, {
dream: function(event, can, msg, target, name) {
_nameicon: function(event, can, msg, target, name) {
can.page.Appends(can, can._output, msg.Table(function(value) {
return {view: html.ITEM, list: [{img: can.misc.Resource(can, value.icons)},
{view: html.CONTAINER, list: [{view: [html.TITLE, "", value[name]]},
{view: html.CONTAINER, list: [{view: [html.TITLE, "", value[name]||value[mdb.NAME]]},
can.onappend.label(can, value, {version: icon.version, time: icon.compile}),
]},
], onclick: function(event) { can.showIcons(value[name], value.icons) }}
], onclick: function(event) { can.showIcons(value[name]||value[mdb.NAME], value.icons) }}
}))
},
dream: function(event, can, msg, target, name) { can.sup.sub.oninputs._nameicon(event, can, msg, target, name) },
})
Volcanos(chat.ONKEYMAP, {
escape: function(event, can) {}, enter: function(event, can) {},