#7411 - addInfoOnVnCheckboxAndVnInput #1295

Merged
jtubau merged 10 commits from 7411-addInfoOnVnCheckboxAndVnInput into dev 2025-02-11 08:50:10 +00:00
1 changed files with 40 additions and 0 deletions
Showing only changes of commit a337bdf474 - Show all commits

View File

@ -0,0 +1,40 @@
<script setup>
import { computed } from 'vue';
const emit = defineEmits(['update:modelValue']);
const $props = defineProps({
modelValue: {
alexm marked this conversation as resolved
Review

no poner label

no poner label
type: [Boolean],
default: null,
},
label: {
type: String,
default: null,
},
info: {
type: String,
default: null,
Review

Falta el
v-on="$attrs"

Falta el v-on="$attrs"
},
});
const isChecked = computed({
get: () => $props.modelValue,
set: (value) => emit('update:modelValue', value),
});
</script>
<template>
<div>
<QCheckbox
:label="$props.label"
v-model="isChecked"
/>
<QIcon v-if="$props.info" class="cursor-info q-ml-sm" name="info" size="sm">
<QTooltip>
{{ $props.info }}
</QTooltip>
</QIcon>
</div>
</template>