From db2d0d8b6a5be795830dd0a3ae33ab4b03d87ff1 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 3 Nov 2023 12:20:36 +0800 Subject: [PATCH] add some --- plugin/table.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/table.js b/plugin/table.js index bd5c5163..b846fdb3 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -146,6 +146,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear( }}, {view: html.LIST}]); can.onimport.list(can, item, cb, ui.list, cbs) }) }, tabs: function(can, list, cb, cbs, action) { action = action||can._action; return can.page.Append(can, action, can.core.List(list, function(tabs) { + if (typeof tabs == "string") { tabs = {name: tabs} } function close(target) { if (can.page.ClassList.has(can, target, html.SELECT)) { var next = target.nextSibling||target.previousSibling; if (!next) { return } next.click()