From d3a1a8c98e7c9303da0eb817ec2fe93020ae321b Mon Sep 17 00:00:00 2001 From: "bai.zixv" Date: Mon, 29 Apr 2024 13:24:38 +0800 Subject: [PATCH] fix: plugin-core, CalcResult, fix childrenType (#888) Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/888 Co-authored-by: bai.zixv Co-committed-by: bai.zixv --- .../plugin-core/src/client/components/fields/CalcResult.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx b/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx index 3d55aed14..8b8299001 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/fields/CalcResult.tsx @@ -93,10 +93,9 @@ export const CalcResult = (props) => { setValue(result.toString()); } else if (panel) { let items = []; - const childrenType = 'normal'; + let childrenType = ''; // ==========动态导入可能需要的包============ // jsx - const { jsx } = (await import('react/jsx-runtime')).default; const keepJSX = () => jsx; keepJSX(); @@ -104,6 +103,8 @@ export const CalcResult = (props) => { const dayjs = (await import('dayjs')).default; const keepDayjs = () => dayjs; keepDayjs(); + // keep childrenType + childrenType = 'normal'; // ==========动态导入结束===================== // ====================字段配置举例==================