add iframe to demo content
This commit is contained in:
committed by
Hans Pagel
parent
a952cebd00
commit
6fb953dab8
18
docs/src/components/DemoContent/index.vue
Normal file
18
docs/src/components/DemoContent/index.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div v-if="mainFile">
|
||||
<component :is="mainFile" v-if="mode === 'vue'" />
|
||||
<react-renderer :component="mainFile" v-if="mode === 'react'" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DemoMixin from '~/components/DemoMixin'
|
||||
|
||||
export default {
|
||||
mixins: [DemoMixin],
|
||||
|
||||
components: {
|
||||
ReactRenderer: () => import(/* webpackChunkName: "react-renderer" */ '~/components/ReactRenderer'),
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user