fix: plugin-core, CalcResult, fix childrenType (#888)

Reviewed-on: daoyoucloud/tachybase#888
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-04-29 13:24:38 +08:00 committed by sealday
parent f3bd122b57
commit d3a1a8c98e

View File

@ -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';
// ==========动态导入结束=====================
// ====================字段配置举例==================