index.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { createAttrsForm } from "../../../defines/createAttrsForm";
  2. import { createCompHooks } from "../../../defines/createCompHooks";
  3. import { createCompId } from "../../../defines/createCompId";
  4. export { Component } from "./component";
  5. export const options = {
  6. name: "卡片",
  7. thumbnail: require("@/assets/comps/Card11/thumbnail.jpg"),
  8. };
  9. export const { createComp, useCompData } = createCompHooks({
  10. value: {},
  11. layout: {
  12. padding: "0.5rem 0",
  13. },
  14. children: {
  15. text: () =>
  16. createCompId("Text", {
  17. 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>`,
  18. layout: {
  19. textAlign: "center",
  20. },
  21. }),
  22. img1: () =>
  23. createCompId("Image", {
  24. value: {
  25. url: require("@/assets/comps/Card11/img_1.jpg"),
  26. },
  27. }),
  28. img2: () =>
  29. createCompId("Image", {
  30. value: {
  31. url: require("@/assets/comps/Card11/img_shoe.png"),
  32. },
  33. }),
  34. },
  35. });
  36. export const Form = createAttrsForm([]);