2019-05-02 08:55:59 +00:00
|
|
|
<template>
|
2021-11-18 14:32:43 +00:00
|
|
|
<!-- eslint-disable vue/no-mutating-props -->
|
2021-11-19 10:36:12 +00:00
|
|
|
<XContainer :draggable="true" @remove="() => $emit('remove')">
|
2021-04-20 14:22:59 +00:00
|
|
|
<template #header><i class="fas fa-bolt"></i> {{ $ts._pages.blocks.counter }}</template>
|
2019-05-02 08:55:59 +00:00
|
|
|
|
|
|
|
<section style="padding: 0 16px 0 16px;">
|
2021-08-06 13:29:19 +00:00
|
|
|
<MkInput v-model="value.name">
|
|
|
|
<template #prefix><i class="fas fa-magic"></i></template>
|
|
|
|
<template #label>{{ $ts._pages.blocks._counter.name }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="value.text">
|
|
|
|
<template #label>{{ $ts._pages.blocks._counter.text }}</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="value.inc" type="number">
|
|
|
|
<template #label>{{ $ts._pages.blocks._counter.inc }}</template>
|
|
|
|
</MkInput>
|
2019-05-02 08:55:59 +00:00
|
|
|
</section>
|
2020-10-17 11:12:00 +00:00
|
|
|
</XContainer>
|
2019-05-02 08:55:59 +00:00
|
|
|
</template>
|
|
|
|
|
2022-06-18 09:39:04 +00:00
|
|
|
<script lang="ts" setup>
|
2021-11-18 14:32:43 +00:00
|
|
|
/* eslint-disable vue/no-mutating-props */
|
2022-06-18 09:39:04 +00:00
|
|
|
import { } from 'vue';
|
2019-05-02 08:55:59 +00:00
|
|
|
import XContainer from '../page-editor.container.vue';
|
2021-11-11 17:02:25 +00:00
|
|
|
import MkInput from '@/components/form/input.vue';
|
2019-05-02 08:55:59 +00:00
|
|
|
|
2022-06-18 09:39:04 +00:00
|
|
|
withDefaults(defineProps<{
|
|
|
|
value: any
|
|
|
|
}>(), {
|
|
|
|
value: {
|
|
|
|
name: ''
|
|
|
|
}
|
2019-05-02 08:55:59 +00:00
|
|
|
});
|
|
|
|
</script>
|