]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update defineModel comment docs [ci skip]
authorEvan You <yyx990803@gmail.com>
Tue, 12 Dec 2023 09:04:16 +0000 (17:04 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 12 Dec 2023 09:04:16 +0000 (17:04 +0800)
packages/runtime-core/src/apiSetupHelpers.ts

index c11464071f5048bd9e87905762934a1d5b2fc34c..7d056bfdb48276d64eca1b8a62ab49f46bfe66aa 100644 (file)
@@ -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