mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 20:36:43 -06:00
f6154dc0af
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
60 lines
1 KiB
Vue
60 lines
1 KiB
Vue
<template>
|
|
<x-container @remove="() => $emit('remove')" :draggable="true">
|
|
<template #header><fa :icon="faAlignLeft"/> {{ $t('_pages.blocks.text') }}</template>
|
|
|
|
<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 i18n from '../../../i18n';
|
|
import XContainer from '../page-editor.container.vue';
|
|
|
|
export default Vue.extend({
|
|
i18n,
|
|
|
|
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;
|
|
}
|
|
}
|
|
</style>
|