|
@@ -0,0 +1,66 @@
|
|
|
+import { string } from "vue-types";
|
|
|
+import { useCompData } from ".";
|
|
|
+import { Image, Text } from "../../..";
|
|
|
+import { useEditor } from "../../../../..";
|
|
|
+import { createUIComp } from "../../../defines/createUIComp";
|
|
|
+import { css } from "@linaria/core";
|
|
|
+
|
|
|
+export const Component = createUIComp({
|
|
|
+ props: {
|
|
|
+ compId: string().isRequired,
|
|
|
+ },
|
|
|
+ setup(props) {
|
|
|
+ const { designToNaturalSize } = useEditor().helper;
|
|
|
+ const { value, children } = useCompData(props.compId);
|
|
|
+
|
|
|
+ return () => (
|
|
|
+ <div class="flex justify-between">
|
|
|
+ <div class="flex flex-col justify-center">
|
|
|
+ <Text.Component compId={children.text1.id} />
|
|
|
+ <Text.Component class="mt-0.07rem" compId={children.text2.id} />
|
|
|
+
|
|
|
+ <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}
|
|
|
+ />
|
|
|
+
|
|
|
+ <Image.Component
|
|
|
+ class="rounded-1/2 overflow-hidden"
|
|
|
+ style={{
|
|
|
+ width: designToNaturalSize(51),
|
|
|
+ height: designToNaturalSize(51),
|
|
|
+ }}
|
|
|
+ compId={children.item2.id}
|
|
|
+ />
|
|
|
+
|
|
|
+ <Image.Component
|
|
|
+ class="rounded-1/2 overflow-hidden"
|
|
|
+ style={{
|
|
|
+ width: designToNaturalSize(51),
|
|
|
+ height: designToNaturalSize(51),
|
|
|
+ }}
|
|
|
+ compId={children.item3.id}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <Image.Component class="overflow-hidden"
|
|
|
+ style={{
|
|
|
+ width: designToNaturalSize(317),
|
|
|
+ height: designToNaturalSize(240),
|
|
|
+ }}
|
|
|
+ compId={children.bgImg.id}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ },
|
|
|
+});
|
|
|
+const upStyle = css`
|
|
|
+ position:relative;
|
|
|
+
|
|
|
+`
|