index.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { createAttrsForm } from "../../../defines/createAttrsForm";
  2. import { createOptions } from "../../../defines/createOptions";
  3. export { Component } from "./component";
  4. export const { options, useCompData } = createOptions({
  5. name: "标题",
  6. thumbnail: require("@/assets/comps/Cover2/thumbnail.jpg"),
  7. value: {},
  8. children: {
  9. img1: {
  10. compKey: "Image",
  11. value: {
  12. url: require("@/assets/comps/Cover2/img_1.png"),
  13. x: 0,
  14. y: 0,
  15. s: 1,
  16. },
  17. },
  18. img2: {
  19. compKey: "Image",
  20. value: {
  21. url: require("@/assets/comps/Cover2/img_2.jpg"),
  22. },
  23. },
  24. img3: {
  25. compKey: "Image",
  26. value: {
  27. url: require("@/assets/comps/Cover2/img_3.jpg"),
  28. },
  29. },
  30. title: {
  31. compKey: "Text",
  32. value: `<p style="text-align:center;"><span style="color:hsl(0,0%,60%);font-size:42px;">NEW &nbsp;</span><span style="font-size:42px;"> FasHION</span></p><p>&nbsp;</p>`,
  33. },
  34. text1: {
  35. compKey: "Text",
  36. value: `<p><span style="color:hsl(0,0%,100%);font-size:42px;"><strong>P190</strong></span></p><p><span style="color:hsl(0,0%,100%);font-size:20px;"><strong>全新 &nbsp; &nbsp; 时尚 &nbsp; &nbsp;</strong></span><span style="color:hsl(0,0%,0%);font-size:20px;"><strong>简约</strong></span></p>`,
  37. },
  38. text2: {
  39. compKey: "Text",
  40. value: `<p style="text-align:right;"><span style="color:hsl(0, 0%, 0%);">2023新品</span></p>`,
  41. },
  42. },
  43. });
  44. export const Form = createAttrsForm([]);