2019-04-28 19:11:57 -05:00
|
|
|
<template>
|
2019-05-02 03:55:59 -05:00
|
|
|
<x-container @remove="() => $emit('remove')" :draggable="true">
|
2020-01-29 13:37:25 -06:00
|
|
|
<template #header><fa :icon="faAlignLeft"/> {{ $t('_pages.blocks.text') }}</template>
|
2019-04-28 19:11:57 -05:00
|
|
|
|
|
|
|
<section class="ihymsbbe">
|
|
|
|
<textarea v-model="value.text"></textarea>
|
|
|
|
</section>
|
|
|
|
</x-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import { faAlignLeft } from '@fortawesome/free-solid-svg-icons';
|
2020-01-29 13:37:25 -06:00
|
|
|
import i18n from '../../../i18n';
|
2019-04-29 16:40:02 -05:00
|
|
|
import XContainer from '../page-editor.container.vue';
|
2019-04-28 19:11:57 -05:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2020-01-29 13:37:25 -06:00
|
|
|
i18n,
|
2019-04-28 19:11:57 -05:00
|
|
|
|
|
|
|
components: {
|
|
|
|
XContainer
|
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
faAlignLeft,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
if (this.value.text == null) Vue.set(this.value, 'text', '');
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2020-01-29 13:37:25 -06:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
.ihymsbbe {
|
|
|
|
> textarea {
|
|
|
|
display: block;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
width: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
min-height: 150px;
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
padding: 16px;
|
|
|
|
background: transparent;
|
|
|
|
color: var(--fg);
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
2019-04-28 19:11:57 -05:00
|
|
|
</style>
|