index.tsx 681 B

123456789101112131415161718192021222324252627
  1. import { Dict_Imgs } from "@/dict";
  2. import { createAttrsForm } from "../../../defines/createAttrsForm";
  3. import { createOptions } from "../../../defines/createOptions";
  4. import { GroupNumber } from "../../../formItems/GroupNumber";
  5. export { Component } from "./component";
  6. export const { options, useCompData } = createOptions({
  7. name: "卡片2",
  8. thumbnail: require("@/assets/thumbnails/1.png"),
  9. value: {
  10. img: Dict_Imgs.Default,
  11. imgSize: [240, 240],
  12. desc: "描述",
  13. },
  14. });
  15. export const Form = createAttrsForm([
  16. {
  17. label: "图片尺寸",
  18. dataIndex: "value.imgSize",
  19. component: GroupNumber,
  20. props: {
  21. labels: ["宽", "高"],
  22. },
  23. },
  24. ]);