fix: CanvasElement에 Warehouse3DWidget 렌더링 추가
- 대시보드 디자이너에서 warehouse-3d 위젯이 표시되지 않던 문제 수정 - dynamic import 및 렌더링 케이스 추가
This commit is contained in:
parent
829161d195
commit
d948aa3d3d
|
|
@ -98,6 +98,17 @@ const DocumentWidget = dynamic(() => import("@/components/dashboard/widgets/Docu
|
|||
loading: () => <div className="flex h-full items-center justify-center text-sm text-gray-500">로딩 중...</div>,
|
||||
});
|
||||
|
||||
const Warehouse3DWidget = dynamic(
|
||||
() =>
|
||||
import("@/components/admin/dashboard/widgets/Warehouse3DWidget").then((mod) => ({
|
||||
default: mod.Warehouse3DWidget,
|
||||
})),
|
||||
{
|
||||
ssr: false,
|
||||
loading: () => <div className="flex h-full items-center justify-center text-sm text-gray-500">로딩 중...</div>,
|
||||
},
|
||||
);
|
||||
|
||||
// 시계 위젯 임포트
|
||||
import { ClockWidget } from "./widgets/ClockWidget";
|
||||
// 달력 위젯 임포트
|
||||
|
|
@ -727,6 +738,11 @@ export function CanvasElement({
|
|||
<div className="widget-interactive-area h-full w-full">
|
||||
<DocumentWidget />
|
||||
</div>
|
||||
) : element.type === "widget" && element.subtype === "warehouse-3d" ? (
|
||||
// 창고 현황 3D 위젯 렌더링
|
||||
<div className="widget-interactive-area h-full w-full">
|
||||
<Warehouse3DWidget element={element} />
|
||||
</div>
|
||||
) : (
|
||||
// 기타 위젯 렌더링
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue