index.ts 463 B

123456789101112131415161718
  1. import { createAttrsForm } from "../../defines/createAttrsForm";
  2. import { createCompHooks } from "../../defines/createCompHooks";
  3. export { Component } from "./component";
  4. export const options = {
  5. name: "组合",
  6. thumbnail: require("@/modules/editor/assets/icons/container.svg"),
  7. };
  8. export const { createComp, useCompData } = createCompHooks({
  9. value: {},
  10. children: {
  11. default: () => [] as string[],
  12. },
  13. });
  14. export const Form = createAttrsForm([]);