Rename component
This commit is contained in:
parent
9ba1485c75
commit
f97a4db8d1
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="{'no-scroll': showModal}">
|
<div :class="{'no-scroll': showModal}">
|
||||||
<new-content-block v-if="showModal"></new-content-block>
|
<new-content-block-wizard v-if="showModal"></new-content-block-wizard>
|
||||||
<component :is="layout"></component>
|
<component :is="layout"></component>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
import DefaultLayout from '@/layouts/DefaultLayout';
|
import DefaultLayout from '@/layouts/DefaultLayout';
|
||||||
import SimpleLayout from '@/layouts/SimpleLayout';
|
import SimpleLayout from '@/layouts/SimpleLayout';
|
||||||
import Modal from '@/components/Modal';
|
import Modal from '@/components/Modal';
|
||||||
import NewContentBlock from '@/components/NewContentBlock';
|
import NewContentBlockWizard from '@/components/NewContentBlockWizard';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
DefaultLayout,
|
DefaultLayout,
|
||||||
SimpleLayout,
|
SimpleLayout,
|
||||||
Modal,
|
Modal,
|
||||||
NewContentBlock
|
NewContentBlockWizard
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<modal>
|
<modal>
|
||||||
<content-block-title-input slot="header"></content-block-title-input>
|
<content-block-title-input slot="header"></content-block-title-input>
|
||||||
<add-content-element></add-content-element>
|
|
||||||
<content-block-chooser-widget></content-block-chooser-widget>
|
<div v-for="element in elements" :key="element.id">
|
||||||
|
<component :is="type(element)"></component>
|
||||||
|
<add-content-element></add-content-element>
|
||||||
|
</div>
|
||||||
</modal>
|
</modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -18,6 +21,22 @@
|
||||||
ContentBlockChooserWidget,
|
ContentBlockChooserWidget,
|
||||||
ContentBlockTitleInput,
|
ContentBlockTitleInput,
|
||||||
AddContentElement
|
AddContentElement
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
type(element) {
|
||||||
|
return 'content-block-chooser-widget'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
elements: [
|
||||||
|
{id: 1},
|
||||||
|
{id: 2},
|
||||||
|
{id: 3}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue