index.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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/cover/1.png"),
  8. };
  9. export const { createComp, useCompData } = createCompHooks({
  10. layout: {
  11. size: [750, 1300],
  12. },
  13. value: {},
  14. children: {
  15. bg: () =>
  16. createCompId("Image", {
  17. value: {
  18. url: "https://infishwaibao.oss-cn-chengdu.aliyuncs.com/release/sku3d/img/partner_bg.5e324d05.png",
  19. },
  20. layout: {
  21. size: [750, 1300],
  22. },
  23. }),
  24. title: () =>
  25. createCompId("Text", {
  26. value: `<p style="text-align:center;line-height:1.5"><span style="color:hsl(0,0%,100%);font-size:28px;">新科技反光面料</span></p><p style="text-align:center;line-height:1.5"><span style="color:hsl(0,0%,100%);font-size:28px;">引领潮流新风尚</span></p><p style="text-align:center;line-height:1.5">&nbsp;</p><p style="text-align:center;line-height:1.5"><span style="color:hsl(0,0%,100%);font-size:16px;">时尚 | 精致 | 百搭</span></p>`,
  27. layout: {
  28. size: [750, 252],
  29. },
  30. }),
  31. },
  32. });
  33. export const Form = createAttrsForm([]);