Update index.tsx (#5764)

fix:修复打包报错
This commit is contained in:
Deepturn 2025-10-14 20:30:38 +08:00 committed by GitHub
parent 5bac31f530
commit 7aa26ea587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,6 +86,8 @@ const StructureRender = ({ code }: { code: string }) => {
<>
{jsonObjList.map((jsonObj, index) => {
const { type, content } = jsonObj;
if (type === 'DIVIDER') return <Divider key={index}></Divider>;
if (!content) return '';
if (type === 'TABLE') return <Table data={content.data} key={index}></Table>;
if (type === 'INDICATOR')
return <Indicator dataList={content.dataList} key={index}></Indicator>;
@ -93,7 +95,6 @@ const StructureRender = ({ code }: { code: string }) => {
if (type === 'ERROR_TIPS') return <Tips content={content} key={index} type="error"></Tips>;
if (type === 'WARNING_TIPS')
return <Tips content={content} key={index} type="warning"></Tips>;
if (type === 'DIVIDER') return <Divider key={index}></Divider>;
if (type === 'TEXTBLOCK') return <TextBlock content={content} key={index}></TextBlock>;
if (type === 'CHART')
return (