framework.jsx 262 B

12345678
  1. import { defineAsyncComponent, h } from 'vue'
  2. const Framework = (props, { slots }) => {
  3. return h(defineAsyncComponent(() => import(`./${props.layout}`)), props, slots)
  4. }
  5. Framework.props = {
  6. layout: { type: String, required: true }
  7. }
  8. export default Framework