stubs/inertia-vue-ts/app/javascript/Components/Checkbox.vue in kaze-0.5.0 vs stubs/inertia-vue-ts/app/javascript/Components/Checkbox.vue in kaze-0.6.0
- old
+ new
@@ -1,29 +1,29 @@
<script setup lang="ts">
-import { computed } from 'vue';
+import { computed } from 'vue'
-const emit = defineEmits(['update:checked']);
+const emit = defineEmits(['update:checked'])
const props = defineProps<{
- checked: boolean;
- value?: any;
-}>();
+ checked: boolean
+ value?: any
+}>()
const proxyChecked = computed({
- get() {
- return props.checked;
- },
+ get() {
+ return props.checked
+ },
- set(val) {
- emit('update:checked', val);
- },
-});
+ set(val) {
+ emit('update:checked', val)
+ },
+})
</script>
<template>
- <input
- type="checkbox"
- :value="value"
- v-model="proxyChecked"
- class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
- />
+ <input
+ type="checkbox"
+ :value="value"
+ v-model="proxyChecked"
+ class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
+ />
</template>