1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-09-05 20:03:01 +08:00
parent e44c12376c
commit d27c8223b2
2 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,7 @@ Volcanos("user", {
},
input: function(event, can, form, cb, button) { if (!form || form.length == 0) { return cb() }
event = event||{}; var msg = can.request(event); event = event._event||event; var need = {}
var title = msg.Option(wiki.TITLE)||msg.Option(ctx.ACTION)
var title = can.user.trans(can, msg.Option(ctx.ACTION))
var ui = can.page.Append(can, document.body, [{view: [[html.INPUT, can.Conf(ctx.INDEX)||can.ConfIndex(), msg.Option(ctx.ACTION), msg.Option(mdb.TYPE), chat.FLOAT]], list: [
{view: html.OPTION, list: [{type: html.TABLE, list: can.core.List(form, function(item) {
item = can.base.isString(item)? {type: html.TEXT, name: item}: item.length > 0? {type: html.SELECT, name: item[0], values: item.slice(1)}: item

View File

@ -21,6 +21,7 @@ Volcanos(chat.ONIMPORT, {
msg.Option("_share_title", (value[title]||value.name||value.uid).slice(0, 6)), msg.Option("_share_content", value[content]||value.info)
} },
itemcards: function(can, msg, cb, cbs) {
can.onimport.shareTitle && can.onimport.shareTitle(can, msg)
if (msg.IsDetail()) { var value = msg.TableDetail(); msg.Show(can)
can.page.Select(can, can._output, html.TR, function(target) {
target.className.indexOf("_uid") > -1 && can.page.ClassList.add(can, target, "hide")