2019-04-30 05:15:41 +02:00
|
|
|
<template>
|
2021-11-18 15:32:43 +01:00
|
|
|
<!-- eslint-disable vue/no-mutating-props -->
|
2021-11-19 11:36:12 +01:00
|
|
|
<XContainer :draggable="true" @remove="() => $emit('remove')">
|
2021-04-20 16:22:59 +02:00
|
|
|
<template #header><i class="fas fa-paper-plane"></i> {{ $ts._pages.blocks.post }}</template>
|
2019-04-30 05:15:41 +02:00
|
|
|
|
2020-04-19 02:05:20 +02:00
|
|
|
<section style="padding: 16px;">
|
2021-08-06 15:29:19 +02:00
|
|
|
<MkTextarea v-model="value.text"><template #label>{{ $ts._pages.blocks._post.text }}</template></MkTextarea>
|
|
|
|
<MkSwitch v-model="value.attachCanvasImage"><span>{{ $ts._pages.blocks._post.attachCanvasImage }}</span></MkSwitch>
|
|
|
|
<MkInput v-if="value.attachCanvasImage" v-model="value.canvasId"><template #label>{{ $ts._pages.blocks._post.canvasId }}</template></MkInput>
|
2019-04-30 05:15:41 +02:00
|
|
|
</section>
|
2020-10-17 13:12:00 +02:00
|
|
|
</XContainer>
|
2019-04-30 05:15:41 +02:00
|
|
|
</template>
|
|
|
|
|
2022-06-18 11:39:04 +02:00
|
|
|
<script lang="ts" setup>
|
2021-11-18 15:32:43 +01:00
|
|
|
/* eslint-disable vue/no-mutating-props */
|
2022-06-18 11:39:04 +02:00
|
|
|
import { } from 'vue';
|
2019-04-30 05:15:41 +02:00
|
|
|
import XContainer from '../page-editor.container.vue';
|
2021-11-11 18:02:25 +01:00
|
|
|
import MkTextarea from '@/components/form/textarea.vue';
|
|
|
|
import MkInput from '@/components/form/input.vue';
|
|
|
|
import MkSwitch from '@/components/form/switch.vue';
|
2019-04-30 05:15:41 +02:00
|
|
|
|
2022-06-18 11:39:04 +02:00
|
|
|
withDefaults(defineProps<{
|
|
|
|
value: any
|
|
|
|
}>(), {
|
|
|
|
value: {
|
|
|
|
text: '',
|
|
|
|
attachCanvasImage: false,
|
|
|
|
canvasId: ''
|
|
|
|
}
|
2019-04-30 05:15:41 +02:00
|
|
|
});
|
|
|
|
</script>
|