Skip to content
Open
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 demo/pages/docs/common-issues/zhCN/index.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

据我所知,vue 的 v-model 并不会生成叫 on-model:xxx 的事件。您能说明一下您为什么要这么做吗?

https://cn.vuejs.org/guide/components/v-model.html#basic-usage

image

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### 情况 1

如果你没有在同一个组件上同时使用 `v-model:xxx` 和 `on-update:xxx`,`@update:xxx` 和 `on-update:xxx` 在模版中使用时没有任何区别。
如果你没有在同一个组件上同时使用 `v-model:xxx` 和 `on-model:xxx`,`@update:xxx` 和 `on-update:xxx` 在模版中使用时没有任何区别。

在 Naive UI 中,全部的 API 文档使用 `on-update:xxx` 格式,因为 `@` 只是 Vue 提供的一种简写。

Expand Down