index.ts 821 B

123456789101112131415161718192021222324252627282930
  1. import "@ckeditor/ckeditor5-build-classic/build/translations/zh-cn";
  2. import { createAttrsForm } from "../../defines/createAttrsForm";
  3. import { createCompHooks } from "../../defines/createCompHooks";
  4. import { TextToolForm } from "./TextToolForm";
  5. export { Component } from "./component2";
  6. export const options = {
  7. name: "文本",
  8. thumbnail: require("@/modules/editor/assets/icons/text2.svg"),
  9. };
  10. export const { createComp, useCompData } = createCompHooks({
  11. value: `<p style="text-align:center;line-height:1.5;"><span style="font-size:18px;">请输入内容</span></p>`,
  12. layout: {
  13. size: [750, 60],
  14. },
  15. });
  16. // export const Form = TextForm;
  17. export const Form = createAttrsForm(
  18. [
  19. // {
  20. // label: "文本",
  21. // dataIndex: "value",
  22. // component: "Input",
  23. // },
  24. ],
  25. TextToolForm
  26. );