index.ts 499 B

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