index.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //https://sku3d-test.obs.cn-east-3.myhuaweicloud.com/queenshow/1685591011649_FHii9K_thumbnail.png
  2. import { createAttrsForm } from "../../../defines/createAttrsForm";
  3. import { createCompHooks } from "../../../defines/createCompHooks";
  4. import { createCompId } from "../../../defines/createCompId";
  5. export { Component } from "./component";
  6. export const options = {
  7. name: "标题3",
  8. thumbnail:
  9. "https://sku3d-test.obs.cn-east-3.myhuaweicloud.com/queenshow/1685591011649_FHii9K_thumbnail.png",
  10. };
  11. export const { createComp, useCompData } = createCompHooks({
  12. value: {},
  13. layout: {
  14. size: [750, 136],
  15. },
  16. children: {
  17. title: () =>
  18. createCompId("Text", {
  19. value: `<p style="text-align:center;line-height:1.5;"><span style="color:#333;font-size:20px;font-weight: bold;">产品详情</span></p>`,
  20. layout: {
  21. size: [750, 60],
  22. },
  23. }),
  24. subtitle: () =>
  25. createCompId("Text", {
  26. value: `<p style="text-align:center;line-height:1.5;">/ Product Details /</p>`,
  27. layout: {
  28. size: [750, 36],
  29. },
  30. }),
  31. },
  32. });
  33. export const Form = createAttrsForm([]);