Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 881d309

Browse files
authored
Merge pull request #352 from ShroXd/master
update: src/guide/component-custom-events.md
2 parents cc323a9 + 05d4b0f commit 881d309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-custom-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ app.component('user-name', {
154154

155155
添加到组件 `v-model` 的修饰符将通过 `modelModifiers` prop 提供给组件。在下面的示例中,我们创建了一个组件,其中包含默认为空对象的 `modelModifiers` prop。
156156

157-
请注意,当组件的 `created` 生命周期钩子触发时,`modelModifiers` prop 包含 `capitalize`其值为 `true`——因为它被设置在 `v-model` 绑定 `v-model.capitalize="bar"`
157+
请注意,当组件的 `created` 生命周期钩子触发时,`modelModifiers` prop 会包含 `capitalize`且其值为 `true`——因为 `capitalize` 被设置在了写为 `v-model.capitalize="myText"``v-model` 绑定上
158158

159159
```html
160160
<my-component v-model.capitalize="myText"></my-component>

0 commit comments

Comments
 (0)