2019-04-29 02:11:57 +02:00
|
|
|
<template>
|
|
|
|
<component :is="'x-' + value.type" :value="value" :page="page" :script="script" :key="value.id" :h="h"/>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import XText from './page.text.vue';
|
|
|
|
import XSection from './page.section.vue';
|
|
|
|
import XImage from './page.image.vue';
|
|
|
|
import XButton from './page.button.vue';
|
2019-04-30 05:15:41 +02:00
|
|
|
import XNumberInput from './page.number-input.vue';
|
|
|
|
import XTextInput from './page.text-input.vue';
|
|
|
|
import XTextareaInput from './page.textarea-input.vue';
|
2019-04-29 02:11:57 +02:00
|
|
|
import XSwitch from './page.switch.vue';
|
2019-04-29 23:40:02 +02:00
|
|
|
import XIf from './page.if.vue';
|
2019-04-30 05:15:41 +02:00
|
|
|
import XTextarea from './page.textarea.vue';
|
|
|
|
import XPost from './page.post.vue';
|
2019-04-29 02:11:57 +02:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
2019-04-30 05:15:41 +02:00
|
|
|
XText, XSection, XImage, XButton, XNumberInput, XTextInput, XTextareaInput, XTextarea, XPost, XSwitch, XIf
|
2019-04-29 02:11:57 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
script: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
page: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
h: {
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|