1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-01-22 16:12:27 +08:00
parent 943c1ec129
commit 9f6650df0d
2 changed files with 7 additions and 2 deletions

View File

@ -750,7 +750,8 @@ body.windows form.option>div.item.icon.refresh { font-size:24px; line-height:28p
body.windows form.option>div.item.icon.goback { font-size:24px; line-height:28px; }
body.windows div.item.button.refresh>span.icon { font-size:22px; line-height:28px; }
body.windows div.item.button.create>span.icon { line-height:28px; }
div.item.text { position:relative; display:flex; align-items:center; }
// div.item.text { position:relative; display:flex; align-items:center; }
div.item.text { position:relative; align-items:center; }
div.item.text.filter input { padding-left:24px; }
div.item.text._icon input { padding-left:24px; }
div.item.select._icon i:first-child { color:var(--disable-fg-color); position:absolute; left:0; padding:var(--input-padding); }

View File

@ -5,7 +5,11 @@ Volcanos(chat.ONIMPORT, {
return {view: [[html.ITEM, item.type]], list: [item.type != html.BUTTON && {text: [can.user.trans(can, item.name, item._trans, html.INPUT), "", mdb.NAME]}, item.need == "must" && {text: ["*", "", "need"]}], _init: function(target) {
item.type == html.BUTTON && (item.onclick = function(event) { var args = []
can.core.Item(can.page.SelectArgs(can, can._output)[0], function(key, value) { args.push(key, value) })
can.Update(can.request(event, {_handle: ice.TRUE}), [ctx.ACTION, item.name].concat(args), function() {
can.Update(can.request(event, {_handle: ice.TRUE}), [ctx.ACTION, item.name].concat(args), function(msg) {
if (msg.IsErr()) {
can.user.toastFailure(can, msg.Result())
return
}
can.Update()
})
}), can.onappend.input(can, item, "", target)