|
@@ -1,9 +1,8 @@
|
|
|
import { string } from "vue-types";
|
|
|
import { useCompData } from ".";
|
|
|
-import { Image, Text } from "../../..";
|
|
|
import { useEditor } from "../../../../..";
|
|
|
+import { Image, Text } from "../../../basicUI";
|
|
|
import { createUIComp } from "../../../defines/createUIComp";
|
|
|
-import { css } from "@linaria/core";
|
|
|
|
|
|
export const Component = createUIComp({
|
|
|
props: {
|
|
@@ -11,7 +10,7 @@ export const Component = createUIComp({
|
|
|
},
|
|
|
setup(props) {
|
|
|
const { designToNaturalSize } = useEditor().helper;
|
|
|
- const { value, children } = useCompData(props.compId);
|
|
|
+ const { children } = useCompData(props.compId);
|
|
|
|
|
|
return () => (
|
|
|
<div class="flex justify-between">
|
|
@@ -21,46 +20,42 @@ export const Component = createUIComp({
|
|
|
|
|
|
<div class="flex justify-between mt-0.07rem">
|
|
|
<Image.Component
|
|
|
- class="rounded-1/2 overflow-hidden"
|
|
|
- style={{
|
|
|
-
|
|
|
- width: designToNaturalSize(51),
|
|
|
- height: designToNaturalSize(51),
|
|
|
- }}
|
|
|
- compId={children.item1.id}
|
|
|
- />
|
|
|
+ class="rounded-1/2 overflow-hidden"
|
|
|
+ style={{
|
|
|
+ width: designToNaturalSize(51),
|
|
|
+ height: designToNaturalSize(51),
|
|
|
+ }}
|
|
|
+ compId={children.item1.id}
|
|
|
+ />
|
|
|
|
|
|
<Image.Component
|
|
|
- class="rounded-1/2 overflow-hidden"
|
|
|
- style={{
|
|
|
+ class="rounded-1/2 overflow-hidden"
|
|
|
+ style={{
|
|
|
width: designToNaturalSize(51),
|
|
|
height: designToNaturalSize(51),
|
|
|
- }}
|
|
|
- compId={children.item2.id}
|
|
|
+ }}
|
|
|
+ compId={children.item2.id}
|
|
|
/>
|
|
|
-
|
|
|
+
|
|
|
<Image.Component
|
|
|
- class="rounded-1/2 overflow-hidden"
|
|
|
- style={{
|
|
|
+ class="rounded-1/2 overflow-hidden"
|
|
|
+ style={{
|
|
|
width: designToNaturalSize(51),
|
|
|
height: designToNaturalSize(51),
|
|
|
- }}
|
|
|
- compId={children.item3.id}
|
|
|
+ }}
|
|
|
+ compId={children.item3.id}
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <Image.Component class="overflow-hidden"
|
|
|
- style={{
|
|
|
- width: designToNaturalSize(317),
|
|
|
- height: designToNaturalSize(240),
|
|
|
- }}
|
|
|
- compId={children.bgImg.id}
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <Image.Component
|
|
|
+ class="overflow-hidden"
|
|
|
+ style={{
|
|
|
+ width: designToNaturalSize(317),
|
|
|
+ height: designToNaturalSize(240),
|
|
|
+ }}
|
|
|
+ compId={children.bgImg.id}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
);
|
|
|
},
|
|
|
});
|
|
|
-const upStyle = css`
|
|
|
- position:relative;
|
|
|
-
|
|
|
-`
|