2019-04-28 19:11:57 -05:00
|
|
|
<template>
|
2020-04-20 07:35:27 -05:00
|
|
|
<component :is="'x-' + value.type" :value="value" :page="page" :hpml="hpml" :key="value.id" :h="h"/>
|
2019-04-28 19:11:57 -05:00
|
|
|
</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-29 22:15:41 -05:00
|
|
|
import XNumberInput from './page.number-input.vue';
|
|
|
|
import XTextInput from './page.text-input.vue';
|
|
|
|
import XTextareaInput from './page.textarea-input.vue';
|
2019-04-28 19:11:57 -05:00
|
|
|
import XSwitch from './page.switch.vue';
|
2019-04-29 16:40:02 -05:00
|
|
|
import XIf from './page.if.vue';
|
2019-04-29 22:15:41 -05:00
|
|
|
import XTextarea from './page.textarea.vue';
|
|
|
|
import XPost from './page.post.vue';
|
2019-05-02 03:55:59 -05:00
|
|
|
import XCounter from './page.counter.vue';
|
2019-07-10 04:30:51 -05:00
|
|
|
import XRadioButton from './page.radio-button.vue';
|
2020-04-15 10:39:21 -05:00
|
|
|
import XCanvas from './page.canvas.vue';
|
2019-04-28 19:11:57 -05:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
2020-04-15 10:39:21 -05:00
|
|
|
XText, XSection, XImage, XButton, XNumberInput, XTextInput, XTextareaInput, XTextarea, XPost, XSwitch, XIf, XCounter, XRadioButton, XCanvas
|
2019-04-28 19:11:57 -05:00
|
|
|
},
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
2020-04-20 07:35:27 -05:00
|
|
|
hpml: {
|
2019-04-28 19:11:57 -05:00
|
|
|
required: true
|
|
|
|
},
|
|
|
|
page: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
h: {
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|