12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { createAttrsForm } from "../../../defines/createAttrsForm";
- import { createCompHooks } from "../../../defines/createCompHooks";
- import { createCompId } from "../../../defines/createCompId";
- export { Component } from "./component";
- export const options = {
- name: "卡片",
- thumbnail: require("@/assets/comps/Card11/thumbnail.jpg"),
- };
- export const { createComp, useCompData } = createCompHooks({
- value: {},
- layout: {
- padding: "0.5rem 0",
- },
- children: {
- text: () =>
- createCompId("Text", {
- value: `<p><span style="color:#666;font-size:12px;"><strong>皮中贵族,触及之处皆舒适,柔韧度高的细腻肌理皮革,触感柔润亲肤,透气</strong></span></p><p><span style="color:#666;font-size:12px;"><strong>质量经久耐磨,性价比高, 经典之作用不过时。 潮流耐磨的2023年最新款皮革材料</strong></span></p>`,
- layout: {
- textAlign: "center",
- },
- }),
- img1: () =>
- createCompId("Image", {
- value: {
- url: require("@/assets/comps/Card11/img_1.jpg"),
- },
- }),
- img2: () =>
- createCompId("Image", {
- value: {
- url: require("@/assets/comps/Card11/img_shoe.png"),
- },
- }),
- },
- });
- export const Form = createAttrsForm([]);
|