2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
2021-11-18 14:32:43 +00:00
|
|
|
<!-- eslint-disable vue/no-mutating-props -->
|
2021-11-19 10:36:12 +00:00
|
|
|
<XContainer :draggable="true" @remove="() => $emit('remove')">
|
2021-04-20 14:22:59 +00:00
|
|
|
<template #header><i class="fas fa-bolt"></i> {{ $ts._pages.blocks.textareaInput }}</template>
|
2020-01-29 19:37:25 +00:00
|
|
|
|
|
|
|
<section style="padding: 0 16px 16px 16px;">
|
2021-08-06 13:29:19 +00:00
|
|
|
<MkInput v-model="value.name"><template #prefix><i class="fas fa-magic"></i></template><template #label>{{ $ts._pages.blocks._textareaInput.name }}</template></MkInput>
|
|
|
|
<MkInput v-model="value.text"><template #label>{{ $ts._pages.blocks._textareaInput.text }}</template></MkInput>
|
|
|
|
<MkTextarea v-model="value.default"><template #label>{{ $ts._pages.blocks._textareaInput.default }}</template></MkTextarea>
|
2020-01-29 19:37:25 +00:00
|
|
|
</section>
|
2020-10-17 11:12:00 +00:00
|
|
|
</XContainer>
|
2020-01-29 19:37:25 +00:00
|
|
|
</template>
|
|
|
|
|
2022-06-18 09:39:04 +00:00
|
|
|
<script lang="ts" setup>
|
2021-11-18 14:32:43 +00:00
|
|
|
/* eslint-disable vue/no-mutating-props */
|
2022-06-18 09:39:04 +00:00
|
|
|
import { } from 'vue';
|
2020-01-29 19:37:25 +00:00
|
|
|
import XContainer from '../page-editor.container.vue';
|
2021-11-11 17:02:25 +00:00
|
|
|
import MkTextarea from '@/components/form/textarea.vue';
|
|
|
|
import MkInput from '@/components/form/input.vue';
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2022-06-18 09:39:04 +00:00
|
|
|
withDefaults(defineProps<{
|
|
|
|
value: any
|
|
|
|
}>(), {
|
|
|
|
value: {
|
|
|
|
name: ''
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
});
|
|
|
|
</script>
|