monkeeShark/src/client/pages/page-editor/els/page-editor.el.textarea.vue

59 lines
1 KiB
Vue
Raw Normal View History

2019-04-30 03:15:41 +00:00
<template>
2019-05-02 08:55:59 +00:00
<x-container @remove="() => $emit('remove')" :draggable="true">
<template #header><fa :icon="faAlignLeft"/> {{ $t('_pages.blocks.textarea') }}</template>
2019-04-30 03:15:41 +00: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';
import XContainer from '../page-editor.container.vue';
export default Vue.extend({
components: {
XContainer
},
props: {
value: {
required: true
},
},
data() {
return {
faAlignLeft,
};
},
created() {
if (this.value.text == null) Vue.set(this.value, 'text', '');
},
});
</script>
<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;
2020-04-12 18:23:23 +00:00
box-sizing: border-box;
}
}
2019-04-30 03:15:41 +00:00
</style>