mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 16:22:16 +01:00
* add linter, prettier and typescript support for jetstream * add github actions for lint, build and typecheck * add composer install to build action * fix composer lock * add ext-intl and fixed php version * fix intl php extension install * add tip php extension to github npm build action * fix php version to 8.3.1 * change github php base action * fix primary button default type * updated typescript types from Team to Organization --------- Co-authored-by: Gregor Vostrak <gregorvostrak@Gregors-MacBook-Pro.local>
35 lines
737 B
Vue
35 lines
737 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
|
|
const emit = defineEmits(['update:checked']);
|
|
|
|
const props = defineProps({
|
|
checked: {
|
|
type: [Array, Boolean],
|
|
default: false,
|
|
},
|
|
value: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
});
|
|
|
|
const proxyChecked = computed({
|
|
get() {
|
|
return props.checked;
|
|
},
|
|
|
|
set(val) {
|
|
emit('update:checked', val);
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<input
|
|
v-model="proxyChecked"
|
|
type="checkbox"
|
|
:value="value"
|
|
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>
|