import React from 'react'; import { ModelOutlined } from '@easyv/react-icons'; import { ComponentInfo, ComponentDetailInfo, UpdateComponentQuery, StateTypeEnum, UpdateStateQuery, AnimationInfo, UpdateAnimationQuery, UpdateViewpointQuery, ComponentTypeEnum, } from '@easytwin/core'; import { StateManage, AnimationManage, ViewpointManage } from '../..'; import { BaseForm } from '../_components'; export interface BaseComponenterConfigProp { component: ComponentInfo; onBaseFormValuesChange?: (values: UpdateComponentQuery) => void; stateSelectKey?: string; onStateTabChange?: (key?: string) => void; onAddState?: () => void; onUpdateState?: (state: Partial) => void; onRemoveState?: (key: string) => void; animationList: AnimationInfo[]; animationSelectKey?: string; onAnimationTabChange?: (key?: string) => void; onUpdateAnimation?: (info: UpdateAnimationQuery) => void; viewpointSelectKey?: string; onViewpointTabChange?: (key?: string) => void; onViewpointFlyTo?: () => void; onAddViewpoint?: () => void; onUpdateViewpoint?: (state: Partial, showOkMsg?: boolean) => void; onRemoveViewpoint?: (key: string) => void; } export default function BaseComponenterConfig({ component, stateSelectKey, animationList, animationSelectKey, viewpointSelectKey, onBaseFormValuesChange, onStateTabChange, onAddState, onUpdateState, onRemoveState, onAnimationTabChange, onUpdateAnimation, onViewpointTabChange, onViewpointFlyTo, onAddViewpoint, onUpdateViewpoint, onRemoveViewpoint, }: BaseComponenterConfigProp) { return (
{/* title */}
孪生体
{/* form */}
{component.type === ComponentTypeEnum.MODEL && ( <> )}
); }