SliderRight.tsx 782 B

1234567891011121314151617181920212223242526272829
  1. import { useEditor } from "@/modules/editor";
  2. import { defineUI } from "queenjs";
  3. import { h } from "vue";
  4. import { CompUI } from "../../CompUI";
  5. import { createAttrsForm } from "../../CompUI/defines/createAttrsForm";
  6. export default defineUI({
  7. setup() {
  8. const editor = useEditor()
  9. return () => {
  10. const { currComp } = editor.store;
  11. return (
  12. <div class="flex flex-col h-1/1">
  13. <div class="p-16px border-bottom !border-2px">设置栏</div>
  14. <div class="flex-1 p-16px scrollbar">
  15. {h(
  16. currComp?.compKey
  17. ? CompUI[currComp.compKey].Form
  18. : (createAttrsForm([]) as any),
  19. { component: currComp }
  20. )}
  21. </div>
  22. </div>
  23. );
  24. };
  25. },
  26. });