From: Evan You Date: Tue, 12 Dec 2023 09:04:16 +0000 (+0800) Subject: chore: update defineModel comment docs [ci skip] X-Git-Tag: v3.4.0-beta.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74387929cd29db8d090d098e4d67c3996f81d032;p=thirdparty%2Fvuejs%2Fcore.git chore: update defineModel comment docs [ci skip] --- diff --git a/packages/runtime-core/src/apiSetupHelpers.ts b/packages/runtime-core/src/apiSetupHelpers.ts index c11464071f..7d056bfdb4 100644 --- a/packages/runtime-core/src/apiSetupHelpers.ts +++ b/packages/runtime-core/src/apiSetupHelpers.ts @@ -228,8 +228,11 @@ export function defineSlots< * Otherwise the prop name will default to "modelValue". In both cases, you * can also pass an additional object which will be used as the prop's options. * - * If the parent did not provide the corresponding v-model props, the returned - * ref can still be used and will behave like a normal local ref. + * The the returned ref behaves differently depending on whether the parent + * provided the corresponding v-model props or not: + * - If yes, the returned ref's value will always be in sync with the parent + * prop. + * - If not, the returned ref will behave like a normal local ref. * * @example * ```ts