framework.jsx 294 B

123456789
  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. hideAside: { type: Boolean }
  8. }
  9. export default Framework