docs: fix typo (#4900)

This commit is contained in:
吉仔 2023-06-08 22:08:48 +08:00 committed by GitHub
parent 5cb5881fce
commit 9deb0399df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@
这是因为 `v-model:value="xxx"` 会被转化为 `:onUpdate:value="xxx"`。如果你同时使用了 `@update:value="yyy"`,他们会被转化为 `:onUpdate:value="[xxx, yyy]"`,然后 Naive UI 会来处理这种情况。
然而如果你使用了 `on-update:value="yyy"`Vue 会生成类似于 `:onUpdate:value="xxx" :on-update-value="yyy"` 的代码,然后第二个属性会在运行时覆盖掉第一个,`v-model:value` 会崩掉。
然而如果你使用了 `on-update:value="yyy"`Vue 会生成类似于 `:onUpdate:value="xxx" :on-update:value="yyy"` 的代码,然后第二个属性会在运行时覆盖掉第一个,`v-model:value` 会崩掉。
如果你发现任何问题,欢迎在 GitHub 上提交 issue 和 PR。