From 6fd4389ace60894a282e05d1008c1bcf48a8bb50 Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 9 Jan 2024 22:30:08 +0800 Subject: [PATCH] add some --- frame.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frame.js b/frame.js index c7e81157..683fdf19 100644 --- a/frame.js +++ b/frame.js @@ -214,7 +214,8 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) { limit = limit||html.ACTION_BUTTON; if (list.length > limit) { var rest = list.slice(limit-1); list = list.slice(0, limit-1), list.push({type: html.BUTTON, name: "more", onclick: function(event) { can.user.carte(event, can, {_trans: meta._trans||can._trans}, can.core.List(rest, function(item) { return item.name }), function(event, button) { run(event, button) }) - }}) } + }}) + } can.core.List(list, function(item) { can.base.isUndefined(item) || can.onappend.input(can, item == ""? /* 1.空白 */ {type: html.BR}: can.base.isString(item)? /* 2.按键 */ {type: html.BUTTON, name: item, value: can.user.trans(can, item, meta._trans), onclick: function(event) {