✨ feature: Binary mode added
This commit is contained in:
parent
288008e5d9
commit
9af82a2bd0
|
@ -25,7 +25,11 @@ const typeMessage = computed(() => {
|
|||
else return undefined
|
||||
});
|
||||
|
||||
const binary = computed(() => Array.isArray(props.modelValue) ? undefined : props.modelValue)
|
||||
const binary = computed(() => {
|
||||
if (typeof props.binary === 'boolean') return props.binary;
|
||||
return typeof props.modelValue === 'boolean';
|
||||
});
|
||||
|
||||
|
||||
const labelState = computed(() => {
|
||||
if((!!props.errorMessage || props.type === 'error') && !props.disabled) return 'error';
|
||||
|
|
Loading…
Reference in New Issue
Block a user