mirror of https://github.com/vuejs/core.git
chore: update defineModel comment docs [ci skip]
This commit is contained in:
parent
f74785bc4a
commit
74387929cd
|
@ -228,8 +228,11 @@ export function defineSlots<
|
||||||
* Otherwise the prop name will default to "modelValue". In both cases, you
|
* 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.
|
* 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
|
* The the returned ref behaves differently depending on whether the parent
|
||||||
* ref can still be used and will behave like a normal local ref.
|
* 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
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
|
|
Loading…
Reference in New Issue