2019-05-02 10:55:59 +02:00
|
|
|
<template>
|
|
|
|
<x-container @remove="() => $emit('remove')" :draggable="true">
|
|
|
|
<template #header><fa :icon="faBolt"/> {{ $t('blocks.counter') }}</template>
|
|
|
|
|
|
|
|
<section style="padding: 0 16px 0 16px;">
|
|
|
|
<ui-input v-model="value.name"><template #prefix><fa :icon="faMagic"/></template><span>{{ $t('blocks._counter.name') }}</span></ui-input>
|
|
|
|
<ui-input v-model="value.text"><span>{{ $t('blocks._counter.text') }}</span></ui-input>
|
2019-05-26 17:03:39 +02:00
|
|
|
<ui-input v-model="value.inc" type="number"><span>{{ $t('blocks._counter.inc') }}</span></ui-input>
|
2019-05-02 10:55:59 +02:00
|
|
|
</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';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
i18n: i18n('pages'),
|
|
|
|
|
|
|
|
components: {
|
|
|
|
XContainer
|
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
faBolt, faMagic
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
if (this.value.name == null) Vue.set(this.value, 'name', '');
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|