index.tsx 512 B

12345678910111213141516171819202122
  1. import { useResource } from "@/modules/resource";
  2. import { defineComponent } from "vue";
  3. import PromotionUI from "./components";
  4. export default defineComponent({
  5. setup() {
  6. const resource = useResource();
  7. const ctrl = resource.helper.createCompController();
  8. return () => (
  9. <PromotionUI
  10. Controller={ctrl}
  11. slots={
  12. {
  13. // MaterialItem: ()=>{
  14. // return <div>item</div>
  15. // }
  16. }
  17. }
  18. ></PromotionUI>
  19. );
  20. },
  21. });