Skip to content

Commit

Permalink
chore: update defineModel comment docs [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 12, 2023
1 parent f74785b commit 7438792
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/runtime-core/src/apiSetupHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7438792

Please sign in to comment.