This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-09-05 21:24:04 +08:00
parent f6c7570ec0
commit 88c86438cd
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,3 @@
$output>div.item { text-align:center; padding:10px; width:25%; float:left; }
$output>div.item { text-align:center; padding:10px; float:left; }
$output>div.item div.value { font-size:24px; }
$output>div.item div.title { font-size:12px; }

View File

@ -1,7 +1,9 @@
Volcanos(chat.ONIMPORT, {
_init: function(can, msg) {
var count = (parseInt(can.ConfWidth()/80)); if (msg.Length() < count) { count = msg.Length() }
var width = can.ConfWidth()/(count||1)
can.page.Append(can, can._output, msg.Table(function(value) {
return {view: html.ITEM, list: [{view: ["value", "", value.value]}, {view: ["title", "", value.title]}], oncontextmenu: function(event) {
return {view: html.ITEM, style: {width: width}, list: [{view: ["value", "", value.value]}, {view: ["title", "", value.title]}], oncontextmenu: function(event) {
can.user.carteItem(event, can, value)
}}
}))