mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
docs: fix typo (#4900)
This commit is contained in:
parent
5cb5881fce
commit
9deb0399df
@ -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。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user