19 lines
277 B
Vue
19 lines
277 B
Vue
|
<template>
|
||
|
<component :is="type"></component>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import * as components from './all'
|
||
|
console.log(components)
|
||
|
export default {
|
||
|
|
||
|
components: {
|
||
|
...components
|
||
|
},
|
||
|
|
||
|
props: {
|
||
|
type: { type: String, required: true }
|
||
|
},
|
||
|
}
|
||
|
</script>
|