mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 10:56:43 -06:00
0e4a111f81
Resolve #7779
57 lines
1,011 B
Vue
57 lines
1,011 B
Vue
<template>
|
|
<XContainer @remove="() => $emit('remove')" :draggable="true">
|
|
<template #header><i class="fas fa-align-left"></i> {{ $ts._pages.blocks.text }}</template>
|
|
|
|
<section class="vckmsadr">
|
|
<textarea v-model="value.text"></textarea>
|
|
</section>
|
|
</XContainer>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import XContainer from '../page-editor.container.vue';
|
|
import * as os from '@/os';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
XContainer
|
|
},
|
|
|
|
props: {
|
|
value: {
|
|
required: true
|
|
},
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
};
|
|
},
|
|
|
|
created() {
|
|
if (this.value.text == null) this.value.text = '';
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.vckmsadr {
|
|
> 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;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
</style>
|