From 1898c9111b6fa9ab13ebf4d9b63b8971cdf20458 Mon Sep 17 00:00:00 2001 From: "bai.zixv" Date: Tue, 23 Apr 2024 12:21:37 +0800 Subject: [PATCH] fix/show-count (#804) Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/804 Reviewed-by: sealday Co-authored-by: bai.zixv Co-committed-by: bai.zixv --- .../plugin-file-manager/src/client/interfaces/attachment.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts index c4c96af92..187ae558b 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/interfaces/attachment.ts @@ -25,9 +25,6 @@ export class AttachmentFieldInterface extends CollectionFieldInterface { if (['Table', 'Kanban'].includes(block)) { schema['x-component-props'] = schema['x-component-props'] || {}; schema['x-component-props']['size'] = 'small'; - // TODO: 此处修改是个临时方案, 找不到具体上下文丢失的原因. 仿照之前size的处理办法. - // 影响: table的附件设置,在根源schema处的设置值无法传递下去. 只能在这里手动赋值. - schema['x-component-props']['showCount'] = 1; } if (!schema['x-component-props']) {