From f394b6f97cfc5138ef84fc4309afedcbc4a0b9b5 Mon Sep 17 00:00:00 2001 From: jingganjiaoyu Date: Sun, 18 Aug 2024 02:27:32 +0800 Subject: [PATCH] opt some --- plugin/table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/table.js b/plugin/table.js index cca101d7..226cabcb 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -15,7 +15,7 @@ Volcanos(chat.ONIMPORT, { } cb && cb(msg) }, textView: function(can, value, key, type) { return value[key] && {text: [can.user.transValue(can, value, key), "", [type, value[key], can.Conf("_trans.value."+key+".style."+value[key])||""]]} }, - itemcards: function(can, msg, cb) { + itemcards: function(can, msg, cb, cbs) { if (msg.IsDetail()) { var value = msg.TableDetail(); msg.Show(can) can.page.Select(can, can._output, html.TR, function(target) { if (target.className.indexOf("_uid") > -1) { @@ -24,7 +24,7 @@ Volcanos(chat.ONIMPORT, { }) } else { can.page.Append(can, can._output, msg.Table(function(value) { - return can.onimport.itemcard(can, value, cb(value)) + return can.onimport.itemcard(can, value, cb(value), cbs) })), msg.Result() && can.onappend.board(can, msg) } },