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

Commit 05d4b0f

Browse files
committed
update: src/guide/component-custom-events.md
1 parent af04f6a commit 05d4b0f

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`——因为 `capitalize` 被设置在了 `v-model.capitalize="myText"``v-model` 绑定上。
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)