lianghongjie hai 1 ano
pai
achega
0682c2913d

+ 3 - 2
src/modules/editor/components/CompUI/basicUI/Web3D/component.tsx

@@ -14,7 +14,7 @@ export const Component = defineComponent({
     compId: string().isRequired,
   },
   setup(props) {
-    const { store } = useEditor();
+    const { store, actions } = useEditor();
     const comp = useCompData(props.compId);
     const { value } = comp;
 
@@ -43,6 +43,7 @@ export const Component = defineComponent({
       () => [value.ratio],
       () => {
         comp.setH(comp.getW() / value.ratio);
+        actions.onCompLayoutUpdated(comp);
       }
     );
 
@@ -53,7 +54,7 @@ export const Component = defineComponent({
           onDblclick={store.isEditMode ? pickPack : undefined}
         >
           {state.show3d ? (
-            <iframe class="w-full border-none" src={value.url} />
+            <iframe class="w-full h-full border-none" src={value.url} />
           ) : (
             <>
               <Image

+ 0 - 6
src/modules/editor/components/Viewport/Slider/SliderRight/CompTree.tsx

@@ -64,12 +64,6 @@ export const CompTree = defineComponent({
           onSelect={(ids) => {
             const id =
               (ids[0] as string) || state.expandedKeys.at(-2) || "root";
-            if (helper.isStreamCardChild(id)) {
-              controls.selectCtrl.selecteObjs([
-                new CompObject(store.compMap[id]),
-              ]);
-              return;
-            }
             actions.pickComp(id);
           }}
         >