qinyan 1 year ago
parent
commit
66bc8f51af

+ 1 - 1
src/modules/editor/components/Viewport/Slider/SliderLeft/Comp3d.tsx

@@ -17,7 +17,7 @@ export default defineUI({
             onClick={() => editor.actions.clickCompToDesign("Web3D")}
           >
             <IconAddLine class="mr-5px text-14px" />
-            添加3D组件
+            添加3D模型
           </Button>
         </div>
       );

+ 8 - 13
src/modules/editor/components/Viewport/Slider/SliderLeft/index.tsx

@@ -35,18 +35,8 @@ const tabs = [
   {
     title: "组合",
     icon: IconCombination,
-    content: [
-      {
-        title: "平台",
-        component: CustomComps,
-        props: { compType: "senior" },
-      },
-      {
-        title: "我的",
-        component: CustomComps,
-        props: { compType: "user" },
-      },
-    ],
+    component: CustomComps,
+    props: { compType: "senior" },
   },
   {
     title: "组件",
@@ -94,6 +84,11 @@ const tabs = [
         component: Sources,
         props: { sourceType: "Video", sourceFrom: "user" },
       },
+      {
+        title: "组合",
+        component: CustomComps,
+        props: { compType: "user" },
+      },
     ],
   },
   {
@@ -112,7 +107,7 @@ export default defineUI({
   setup() {
     // @ts-ignore
     const state = reactive({
-      tabIndex: 0,
+      tabIndex: 8,
       compIndexs: [0, 0, 0, 0, 0, 0, 0, 0, 0],
       currentTab: computed(() => {
         return tabs[state.tabIndex];

+ 2 - 2
src/modules/editor/components/Viewport/Toolbar/index.tsx

@@ -11,13 +11,13 @@ export default defineUI({
 
     return () => (
       <div>
-        <div class="absolute right-25px top-30px space-x-10px z-999">
+        <div class="absolute right-25px top-30px space-x-10px z-1001">
           <TipIcons.Screenshot
             class={bottomBtnStyles}
             onClick={() => actions.updateThumbnailByScreenshot(true)}
           />
         </div>
-        <div class="absolute bottom-20px right-20px z-999">
+        <div class="absolute bottom-20px right-20px z-1001">
           <TipIcons.QueenService
             class={bottomBtnStyles}
             onClick={() => {