refactor: refs #7411 update VnCheckbox component to use v-bind for attributes
This commit is contained in:
parent
c083eba66c
commit
cc07cc7824
|
@ -4,10 +4,6 @@ import { defineModel } from 'vue';
|
|||
const modelValue = defineModel({ type: Boolean, default: false });
|
||||
|
||||
const $props = defineProps({
|
||||
label: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
info: {
|
||||
type: String,
|
||||
default: null,
|
||||
|
@ -18,10 +14,16 @@ const $props = defineProps({
|
|||
<template>
|
||||
<div>
|
||||
<QCheckbox
|
||||
:label="label"
|
||||
v-bind="$attrs"
|
||||
v-model="modelValue"
|
||||
/>
|
||||
<QIcon v-if="info" class="cursor-info q-ml-sm" name="info" size="sm" v-bind="$attrs">
|
||||
<QIcon
|
||||
v-if="info"
|
||||
v-bind="$attrs"
|
||||
class="cursor-info q-ml-sm"
|
||||
name="info"
|
||||
size="sm"
|
||||
>
|
||||
<QTooltip>
|
||||
{{ info }}
|
||||
</QTooltip>
|
||||
|
|
Loading…
Reference in New Issue