diff --git a/src/tools.ts b/src/tools.ts index 28abede..5403025 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -21,7 +21,7 @@ export function bindProp(src: any, srcProp: string, dst: any, dstProp?: string): setFromProp(dst[_dstProp], ref.value) watch(ref, (value) => { setFromProp(dst[_dstProp], value) }, { deep: true }) } else { - if (ref.value) dst[_dstProp] = src[srcProp] + if (typeof ref.value === 'boolean' || ref.value) dst[_dstProp] = src[srcProp] watch(ref, (value) => { dst[_dstProp] = value }) } }