1
0
mirror of https://shylinux.com/x/volcanos synced 2025-07-01 12:04:43 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-06-10 12:54:54 +08:00
parent 673a14f2d5
commit 0002ed933f
4 changed files with 9 additions and 2 deletions

View File

@ -752,6 +752,9 @@ Volcanos(chat.ONAPPEND, {
can.Update(request(event)._event, [ctx.ACTION, target.name]), can.onkeymap.prevent(event)
}}], target.nextSibling, target.parentNode)
}), can.page.SelectOne(can, target, html.SPAN, function(span) { can.core.List(span.style, function(key) { target.style[key] = span.style[key] }) })
if (key == ctx.ACTION && msg.IsDetail() && value == "") {
can.onmotion.delay(can, function() { can.page.Remove(can, target.parentNode) })
}
}}
})
keys && can.page.RangeTable(can, table, can.core.List(keys, function(key) { return can.page.Select(can, table, html.TH, function(th, index) { if (th.innerHTML == key) { return index } })[0] }))

View File

@ -338,8 +338,10 @@ fieldset.input.key>div.output>div.item img { border-radius:5px; padding:5px; hei
fieldset.input.key>div.output>div.item img[src*=".jpg"] { padding:5px; }
fieldset.input.key>div.output>div.item div.title { padding:var(--input-padding) 0; }
fieldset.input.key>div.output>div.item div.status div.item { color:var(--disable-fg-color); font-size:var(--status-font-size); line-height:18px; float:left; }
fieldset.input.key>div.output div.item.card>div.output img { height:48px; width:48px; }
fieldset.input.key>div.output>div.item div.status div.item span { padding:0 var(--input-padding); }
fieldset.input.key div.status:not(.hide) { background-color:var(--input-bg-color); display:block; position:sticky; bottom:0; }
fieldset.input.key div.status:not(.hide) { display:block; position:sticky; bottom:0; }
// fieldset.input.key div.status:not(.hide) { background-color:var(--input-bg-color); display:block; position:sticky; bottom:0; }
fieldset.input.key.simple th { display:none; }
fieldset.input.key.simple td { min-width:var(--button-width); }
fieldset.input.icon img { height:var(--desktop-icon-size); width:var(--desktop-icon-size); cursor:pointer; }

View File

@ -156,6 +156,8 @@ Volcanos(chat.ONKEYMAP, {
_normal: function(can) { can.onkeymap._model(can, mdb.NORMAL), can.onkeymap.scrollHold(can) },
_insert: function(event, can, count, begin) { can.onkeymap._model(can, mdb.INSERT), can.onkeymap.scrollHold(can, count, begin), can.onkeymap.prevent(event) },
_complete: function(event, can, target) { if (event == undefined || event.type == "click") { return } target = target||can.ui.complete
var parse = can.onexport.parse(can)
if (parse == "go") { return }
var pre = can.ui.current.value.slice(0, can.ui.current.selectionStart), key = can.core.Split(pre, "\t .[]", lex.SP).pop()||"", end = can.ui.current.value.slice(can.ui.current.selectionStart)
function show() { can.current.line.appendChild(target), key && can.onmotion.toggle(can, target, true)
can.page.style(can, target, html.LEFT, can.ui.current.offsetLeft, html.MARGIN_TOP, can.user.isChrome? can.current.line.offsetHeight: 5)

View File

@ -474,7 +474,7 @@ Volcanos(chat.ONIMPORT, {
itemcards: function(can, msg, cb, cbs, target) { target = target||can.ui.list||can._output
if (msg.IsDetail()) { var value = msg.TableDetail(); value.uid = value.user_uid; var _msg = can.request(); _msg.Push(value)
if (!msg.Option("market_uid") && !msg.Option("message_uid")) {
value.user_avatar && can.user.isMobile && can.page.Append(can, target, [{view: "place_info", _init: function(target) {
value.user_avatar && can.page.Append(can, target, [{view: "place_info", _init: function(target) {
_msg.action = [], _msg.PushButton("userInfo")
if (can.base.endWith(can.ConfIndex(), ".member") && !_msg.Append("auth_name")) { _msg.action = [] }
can.onimport.itemcards(can, _msg, function(value) { value.icons = value.auth_avatar||value.user_avatar; return [