index.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { createAttrsForm } from "../../../defines/createAttrsForm";
  2. import { createOptions } from "../../../defines/createOptions";
  3. import { GroupNumber } from "../../../formItems/GroupNumber";
  4. export { Component } from "./component";
  5. const thumbnail = "https://sku3d-test.obs.cn-east-3.myhuaweicloud.com/queenshow/1685607488598_3mmBXh_thumbnail.png"
  6. export const { options, useCompData } = createOptions({
  7. name: "卡片5",
  8. thumbnail:thumbnail,
  9. value: {
  10. },
  11. layout: {
  12. },
  13. children: {
  14. bgImg: {
  15. compKey: "Image",
  16. value: { url: "https://sku3d-test.obs.cn-east-3.myhuaweicloud.com/queenshow/1685609522134_nGPo9k_2.png" },
  17. },
  18. text1: {
  19. compKey: "Text",
  20. value: `<p style="text-align:center;"><span style="color:hsl(0,0%,90%);font-size:52px;">F A SH I O N</span></p>`,
  21. }
  22. },
  23. });
  24. export const Form = createAttrsForm([
  25. {
  26. label: "图片尺寸",
  27. dataIndex: "value.imgSize",
  28. component: GroupNumber,
  29. props: {
  30. labels: ["宽", "高"],
  31. },
  32. },
  33. ]);