1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-10-13 22:27:28 +08:00
parent 77564345e7
commit 92cf6348a6
2 changed files with 3 additions and 5 deletions

View File

@ -310,7 +310,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
return {type: html.INPUT, data: {type: html.BUTTON}, name: item.name, value: item.value, className: item.style, onclick: function(event) { run(event, item.name) }}
}))
can.page.Append(can, target, [{type: html.INPUT, data: {type: html.BUTTON}, name: "more", value: can.user.trans(can, "more"), className: can.page.buttonStyle(can, "more"), onclick: function(event) {
can.user.carte(event, can, {}, can.core.List(list.slice(limit-1), function(item) { return item.name }), function(event, button) { run(event, button) })
can.user.carte(event, can, {}, can.core.List(list.slice(limit-1), function(item) { return item.name }), function(event, button) { run(event, button) }, null, {})
}}])
}
},

View File

@ -132,9 +132,7 @@ Volcanos("user", {
}) }
var isinput = can.page.tagis(event.target, html.INPUT)
var ui = can.page.Append(can, document.body, [{view: [[chat.CARTE, meta._style||can.base.replaceAll(can.ConfIndex()||"", nfs.PT, lex.SP)||"", chat.FLOAT]], list: can.core.List(list, function(item, index) {
if (item === "") {
return {type: html.HR}
}
if (item === "") { return {type: html.HR} }
if (item == web.FILTER) {
return {input: [html.FILTER, function(event) { if (event.key == code.ESCAPE) { return carte.close() } can.onkeymap.selectItems(event, can, carte._target) }],
_init: function(target) { can.onmotion.delay(can, function() { target.placeholder = "search in "+(can.core.List(list, function(item) { if (item) { return item } }).length-1)+" items", target.focus() }) }
@ -142,7 +140,7 @@ Volcanos("user", {
}
if (can.base.isString(item)||can.base.isNumber(item)) { var _style = can.page.buttonStyle(can, item)
return {view: [[html.ITEM, item, _style], html.DIV,
isinput || meta._style == ice.CMD? item: can.user.trans(can, item, trans)
(isinput || meta._style == ice.CMD) && !trans? item: can.user.trans(can, item, trans)
], onclick: function(event) { click(event, item) }, onmouseenter: function(event) { remove_sub(carte) } }
}
if (can.base.isArray(item)) {