Skip to content

Commit

Permalink
feat(v-checkbox): added native checkbox value support
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Sep 27, 2021
1 parent a7b6420 commit 798c9ce
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/VCheckbox/VCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,21 @@ const props = defineProps({
type: String,
default: '',
},
value: {
type: String,
default: '',
},
});
const {modelValue, label, inputClass, color, disabled, size} = toRefs(props);
const {
modelValue,
label,
inputClass,
color,
disabled,
size,
value: checkboxValue,
} = toRefs(props);
const emit = defineEmits(['update:modelValue']);
Expand Down Expand Up @@ -69,6 +81,7 @@ watch(modelValue, (val) => {
<input
v-model="value"
type="checkbox"
:value="checkboxValue"
class="
rounded
transition
Expand Down

0 comments on commit 798c9ce

Please sign in to comment.