Skip to content

Commit b9a3cc3

Browse files
skirtles-codeAbdelaziz18003
authored andcommitted
Move component v-model to its own page (#2153)
1 parent 696c36a commit b9a3cc3

File tree

6 files changed

+459
-438
lines changed

6 files changed

+459
-438
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export const sidebar: ThemeConfig['sidebar'] = {
194194
},
195195
{ text: 'الخاصيات', link: '/guide/components/props' },
196196
{ text: 'الأحداث', link: '/guide/components/events' },
197+
{ text: 'Component v-model', link: '/guide/components/v-model' },
197198
{
198199
text: 'السمات الإحتياطية',
199200
link: '/guide/components/attrs'

src/api/built-in-directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Create a two-way binding on a form input element or a component.
362362
- **See also:**
363363

364364
- [Form Input Bindings](/guide/essentials/forms.html)
365-
- [Component Events - Usage with `v-model`](/guide/components/events.html#usage-with-v-model)
365+
- [Component Events - Usage with `v-model`](/guide/components/v-model.html)
366366

367367
## v-slot {#v-slot}
368368

src/api/reactivity-utilities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Can be used to create a ref for a property on a source reactive object. The crea
9696
</script>
9797
```
9898
99-
When `toRef` is used with component props, the usual restrictions around mutating the props still apply. Attempting to assign a new value to the ref is equivalent to trying to modify the prop directly and is not allowed. In that scenario you may want to consider using [`computed`](./reactivity-core.html#computed) with `get` and `set` instead. See the guide to [using `v-model` with components](/guide/components/events.html#usage-with-v-model) for more information.
99+
When `toRef` is used with component props, the usual restrictions around mutating the props still apply. Attempting to assign a new value to the ref is equivalent to trying to modify the prop directly and is not allowed. In that scenario you may want to consider using [`computed`](./reactivity-core.html#computed) with `get` and `set` instead. See the guide to [using `v-model` with components](/guide/components/v-model.html) for more information.
100100
101101
`toRef()` will return a usable ref even if the source property doesn't currently exist. This makes it possible to work with optional properties, which wouldn't be picked up by [`toRefs`](#torefs).
102102

0 commit comments

Comments
 (0)