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

update: src/guide/component-custom-events.md #352

Merged
merged 2 commits into from
Jan 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/guide/component-custom-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ app.component('user-name', {

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

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

```html
<my-component v-model.capitalize="myText"></my-component>
Expand Down