lianghongjie há 1 ano atrás
pai
commit
1ec46d8473

+ 3 - 0
src/modules/editor/components/CompUI/customUI/Cards/CardList/index.tsx

@@ -39,6 +39,9 @@ export const { createComp, useCompData, useCreateChild } = createCompHooks({
               url: thumb,
               ...offset,
             },
+            layout: {
+              size: [0, 0]
+            }
           }),
           desc: createCompId("Text", {
             value: `<p style="text-align:center;">这是一个小标题</p>`,

+ 7 - 0
src/modules/editor/components/Viewport/Slider/SliderLeft/MySources.tsx

@@ -0,0 +1,7 @@
+import { defineComponent } from "vue";
+
+export const MySources = defineComponent({
+  setup() {
+    return () => <div>我的素材</div>;
+  },
+});