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