import { createAttrsForm } from "../../../defines/createAttrsForm"; import { createCompHooks } from "../../../defines/createCompHooks"; import { createCompId } from "../../../defines/createCompId"; import { createColorOpts } from "../../../defines/formOpts/createColorOpts"; export { Component } from "./component"; export const options = { name: "卡片", thumbnail: require("@/assets/comps/Card15/thumbnail.jpg"), }; export const { createComp, useCompData } = createCompHooks({ value: { themeColor: "#6D8D70", }, layout: { size: [750, 1200], }, children: { title: () => createCompId("Text", { value: '
P190-3#
', layout: { size: [260, 60], }, }), colorText: () => createCompId("Text", { value: `3#
铜绿色
`, layout: { size: [130, 80], }, }), text: () => createCompId("Text", { value: `绿色是个舒服的颜色,
处处充满着生机和希望,
其明净空旷往往让人迷失其中,
给人无限的对未来的憧憬,
不需要过多的言语,让心灵感到平和
`, layout: { size: [475, 328], }, }), img2: () => createCompId("Image", { value: { url: require("@/assets/comps/Card15/img_shoe.png"), }, layout: { size: [400, 285], }, }), img1: () => createCompId("Image", { value: { url: require("@/assets/comps/Card15/img_1.jpg"), }, layout: { size: [622, 622], }, }), }, }); export const Form = createAttrsForm([ { label: "主题色", dataIndex: "value.themeColor", ...createColorOpts(), }, ]);