From 694d1c6fc1c6fab42bd118b9f6fc1782d3250ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=A4=A7=E9=9B=AA?= <2291335922@qq.com> Date: Tue, 12 Dec 2023 18:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E9=99=84=E4=BB=B6=E2=80=9D=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=AF=B9=E8=B1=A1=E5=88=97=E8=A1=A8=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E2=80=9C=E5=8E=86=E5=8F=B2=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E2=80=9D=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实际上是修复了 extra_columns属性功能存在的bug。 https://github.com/steedos/steedos-platform/issues/5839 --- .../amis-lib/src/lib/converter/amis/fields/table.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js index 02fcbc216..ed34b667c 100644 --- a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js +++ b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js @@ -483,6 +483,9 @@ export async function getTableColumns(fields, options){ const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false; for (const field of fields) { + if(field.hidden || field.extra){ + continue; + } //增加quickEdit属性,实现快速编辑 const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit; let className = "";