- npm updates - new SearchMap.vue component
This commit is contained in:
parent
7bc9f90cca
commit
a7142f694f
74 changed files with 3360 additions and 3577 deletions
|
@ -1,33 +1,27 @@
|
|||
<script setup>
|
||||
import { ref, watch } from 'vue'
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
defineProps({
|
||||
type: {
|
||||
type: String,
|
||||
default: 'td'
|
||||
}
|
||||
})
|
||||
type: {
|
||||
type: String,
|
||||
default: 'td',
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(['checked'])
|
||||
const emit = defineEmits(['checked']);
|
||||
|
||||
const checked = ref(false)
|
||||
const checked = ref(false);
|
||||
|
||||
watch(checked, newVal => {
|
||||
emit('checked', newVal)
|
||||
})
|
||||
watch(checked, (newVal) => {
|
||||
emit('checked', newVal);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<component
|
||||
:is="type"
|
||||
class="lg:w-1"
|
||||
>
|
||||
<label class="checkbox">
|
||||
<input
|
||||
v-model="checked"
|
||||
type="checkbox"
|
||||
>
|
||||
<span class="check" />
|
||||
</label>
|
||||
</component>
|
||||
<component :is="type" class="lg:w-1">
|
||||
<label class="checkbox">
|
||||
<input v-model="checked" type="checkbox" />
|
||||
<span class="check" />
|
||||
</label>
|
||||
</component>
|
||||
</template>
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue