index.tsx 916 B

1234567891011121314151617181920212223242526272829303132
  1. import { defineUI } from "queenjs";
  2. import Content from "./Content";
  3. import Header from "./Header";
  4. import SliderLeft from "./Slider/SliderLeft";
  5. import SliderRight from "./Slider/SliderRight";
  6. import Toolbar from "./Toolbar";
  7. export default defineUI({
  8. slots: {
  9. Header,
  10. SliderLeft,
  11. SliderRight,
  12. Content,
  13. Toolbar,
  14. },
  15. setup(props, { slots }) {
  16. return () => (
  17. <div class="flex flex-col h-1/1">
  18. {/* <slots.Header class="px-20px py-10px bg-component border-bottom !border-2px" /> */}
  19. <div class="flex flex-1 h-0">
  20. <slots.SliderLeft class="bg-component border-right !border-2px" />
  21. <div class="flex-1 relative flex flex-col overflow-hidden">
  22. <slots.Toolbar />
  23. <slots.Content />
  24. </div>
  25. <slots.SliderRight class="w-300px bg-component border-left !border-2px" />
  26. </div>
  27. </div>
  28. );
  29. },
  30. });