|
|
@ -1,5 +1,6 @@
|
|
|
|
import { GroupPluginPanel } from '@/components/Panel/group/PluginPanel';
|
|
|
|
import { GroupPluginPanel } from '@/components/Panel/group/PluginPanel';
|
|
|
|
import { TextPanel } from '@/components/Panel/group/TextPanel';
|
|
|
|
import { TextPanel } from '@/components/Panel/group/TextPanel';
|
|
|
|
|
|
|
|
import { Problem } from '@/components/Problem';
|
|
|
|
import { Alert } from 'antd';
|
|
|
|
import { Alert } from 'antd';
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
@ -32,13 +33,7 @@ export const GroupPanelRender: React.FC<GroupPanelRenderProps> = React.memo(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (panelInfo === null) {
|
|
|
|
if (panelInfo === null) {
|
|
|
|
return (
|
|
|
|
return <Problem text={t('面板不存在')} />;
|
|
|
|
<Alert
|
|
|
|
|
|
|
|
className="w-full text-center"
|
|
|
|
|
|
|
|
type="error"
|
|
|
|
|
|
|
|
message={t('面板不存在')}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (panelInfo.type === GroupPanelType.TEXT) {
|
|
|
|
if (panelInfo.type === GroupPanelType.TEXT) {
|
|
|
|