index.tsx 488 B

1234567891011121314151617181920
  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.createPromotinController();
  8. return () => (
  9. <PromotionUI
  10. Controller={ctrl}
  11. slots={{
  12. // MaterialItem: ()=>{
  13. // return <div>item</div>
  14. // }
  15. }}
  16. ></PromotionUI>
  17. );
  18. },
  19. });