|
@@ -1,47 +1,42 @@
|
|
|
+import { RegCompType } from "../../../CompController";
|
|
|
+import { Image, Text } from "../../../basicUI";
|
|
|
import { createAttrsForm } from "../../../defines/createAttrsForm";
|
|
|
-import { createOptions } from "../../../defines/createOptions";
|
|
|
import { createColorOpts } from "../../../defines/formOpts/createColorOpts";
|
|
|
|
|
|
export { Component } from "./component";
|
|
|
|
|
|
-export const { options, useCompData } = createOptions({
|
|
|
- name: "卡片",
|
|
|
+export const { createCompData, useCompData } = RegCompType({
|
|
|
+ name: "卡片",
|
|
|
thumbnail: require("@/assets/comps/Card15/thumbnail.jpg"),
|
|
|
+ type: "Card15"
|
|
|
+},()=>({
|
|
|
+
|
|
|
value: {
|
|
|
themeColor: "#6D8D70",
|
|
|
- },
|
|
|
- layout: {
|
|
|
- // padding: "0.5rem 0",
|
|
|
- margin: "0.2rem 0.35rem",
|
|
|
- },
|
|
|
- children: {
|
|
|
- title: {
|
|
|
- value:
|
|
|
- '<p><span style="color:hsl(0, 0%, 0%);font-size:24px;"><strong>P190-3#</strong></span></p>',
|
|
|
- },
|
|
|
- colorText: {
|
|
|
- value: `<p style="text-align:center;"><span style="color:hsl(0, 0%, 0%);font-size:12px;">3# </span></p><p style="text-align:center;"><span style="color:hsl(0, 0%, 0%);font-size:12px;">铜绿色</span></p>`,
|
|
|
- },
|
|
|
- text: {
|
|
|
- value: `<p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;">绿色是个舒服的颜色, </span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;">处处充满着生机和希望,</span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;"> 其明净空旷往往让人迷失其中,</span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;"> 给人无限的对未来的憧憬,</span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;"> 不需要过多的言语,让心灵感到平和</span></p>`,
|
|
|
+ title: Text.createCompData('<p><span style="color:hsl(0, 0%, 0%);font-size:24px;"><strong>P190-3#</strong></span></p>'),
|
|
|
+
|
|
|
+ colorText: Text.createCompData(`<p style="text-align:center;"><span style="color:hsl(0, 0%, 0%);font-size:12px;">3# </span></p><p style="text-align:center;"><span style="color:hsl(0, 0%, 0%);font-size:12px;">铜绿色</span></p>`),
|
|
|
+
|
|
|
+ text: Text.createCompData(`<p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;">绿色是个舒服的颜色, </span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;">处处充满着生机和希望,</span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;"> 其明净空旷往往让人迷失其中,</span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;"> 给人无限的对未来的憧憬,</span></p><p style="text-align:center;"><span style="color:hsl(0,0%,0%);font-size:12px;"> 不需要过多的言语,让心灵感到平和</span></p>`, {
|
|
|
layout: {
|
|
|
textAlign: "center",
|
|
|
},
|
|
|
- },
|
|
|
- img2: {
|
|
|
- compKey: "Image",
|
|
|
- value: {
|
|
|
+ }),
|
|
|
+
|
|
|
+ img2: Image.createCompData({
|
|
|
url: require("@/assets/comps/Card15/img_shoe.png"),
|
|
|
- },
|
|
|
- },
|
|
|
- img1: {
|
|
|
- compKey: "Image",
|
|
|
- value: {
|
|
|
+ }),
|
|
|
+
|
|
|
+ img1: Image.createCompData({
|
|
|
url: require("@/assets/comps/Card15/img_1.jpg"),
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ ),
|
|
|
+ },
|
|
|
+ layout: {
|
|
|
+ // padding: "0.5rem 0",
|
|
|
+ margin: "0.2rem 0.35rem",
|
|
|
},
|
|
|
-});
|
|
|
+}));
|
|
|
|
|
|
export const Form = createAttrsForm([
|
|
|
{
|