mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 21:06:27 +01:00
f6154dc0af
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
43 lines
1.1 KiB
Vue
43 lines
1.1 KiB
Vue
<template>
|
|
<x-container @remove="() => $emit('remove')" :draggable="true">
|
|
<template #header><fa :icon="faBolt"/> {{ $t('_pages.blocks.textInput') }}</template>
|
|
|
|
<section style="padding: 0 16px 0 16px;">
|
|
<mk-input v-model="value.name"><template #prefix><fa :icon="faMagic"/></template><span>{{ $t('_pages.blocks._textInput.name') }}</span></mk-input>
|
|
<mk-input v-model="value.text"><span>{{ $t('_pages.blocks._textInput.text') }}</span></mk-input>
|
|
<mk-input v-model="value.default" type="text"><span>{{ $t('_pages.blocks._textInput.default') }}</span></mk-input>
|
|
</section>
|
|
</x-container>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import { faBolt, faMagic } from '@fortawesome/free-solid-svg-icons';
|
|
import i18n from '../../../i18n';
|
|
import XContainer from '../page-editor.container.vue';
|
|
import MkInput from '../../../components/ui/input.vue';
|
|
|
|
export default Vue.extend({
|
|
i18n,
|
|
|
|
components: {
|
|
XContainer, MkInput
|
|
},
|
|
|
|
props: {
|
|
value: {
|
|
required: true
|
|
},
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
faBolt, faMagic
|
|
};
|
|
},
|
|
|
|
created() {
|
|
if (this.value.name == null) Vue.set(this.value, 'name', '');
|
|
},
|
|
});
|
|
</script>
|