From f3a6de86246269bda51980fa41a038a74d4a1f4c Mon Sep 17 00:00:00 2001 From: shylinux Date: Sat, 22 Jul 2023 16:55:50 +0800 Subject: [PATCH] opt some --- lib/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/page.js b/lib/page.js index 1afe15c6..06ccb15c 100644 --- a/lib/page.js +++ b/lib/page.js @@ -171,7 +171,7 @@ Volcanos("page", { AppendTable: function(can, msg, target, list, cb) { if (!msg.append||msg.append.length == 0) { return } var ui = can.page.Append(can, target, [{type: html.TABLE, list: [ {type: "colgroup", list: can.core.List(list, function(key) { if (key[0] != "_") { - if (can.Option(key) == undefined) { return {view: [key, "col"]} } return {view: [[key, "option"], "col"]} + if (can.Option(key) == undefined) { return {view: [key, "col"]} } return {view: [[key, "option"], "col"]} } }) }, {type: html.THEAD}, {type: html.TBODY}]}]) can.page.Append(can, ui.thead, [{data: {dataset: {index: -1}}, th: can.core.List(list, function(key) { if (key[0] != "_") { return key } }) }])