mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
9cb7b31bba
commit
09810f9d1b
@ -107,8 +107,9 @@ Volcanos("misc", {
|
|||||||
can.onappend.style(can, "warn", can.user.toastFailure(can, msg.Result())._target)
|
can.onappend.style(can, "warn", can.user.toastFailure(can, msg.Result())._target)
|
||||||
input.focus()
|
input.focus()
|
||||||
} else {
|
} else {
|
||||||
can.Update()
|
|
||||||
input.cancel()
|
input.cancel()
|
||||||
|
var sup = can._fields? can.sup: can; if (sup.onimport._process(sup, msg)) { return }
|
||||||
|
can.Update()
|
||||||
}
|
}
|
||||||
}); return true
|
}); return true
|
||||||
}); return true
|
}); return true
|
||||||
|
@ -29,7 +29,8 @@ Volcanos(chat.ONFIGURE, {key: {
|
|||||||
target.value = value, can.onmotion.hidden(can, can._target)
|
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.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)
|
can.layout(msg)
|
||||||
},
|
},
|
||||||
onfocus: function(event, can, meta, target, cbs, mod) { meta._force && mod.onclick(event, can, meta, target, cbs) },
|
onfocus: function(event, can, meta, target, cbs, mod) { meta._force && mod.onclick(event, can, meta, target, cbs) },
|
||||||
|
@ -290,15 +290,16 @@ Volcanos(chat.ONACTION, {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
Volcanos(chat.ONINPUTS, {
|
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) {
|
can.page.Appends(can, can._output, msg.Table(function(value) {
|
||||||
return {view: html.ITEM, list: [{img: can.misc.Resource(can, value.icons)},
|
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}),
|
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, {
|
Volcanos(chat.ONKEYMAP, {
|
||||||
escape: function(event, can) {}, enter: function(event, can) {},
|
escape: function(event, can) {}, enter: function(event, can) {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user