mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
docs(common-issues): add an explanation in common-issues (#129)
* feat(doc): adds an explanation in common-issues * Update demo/pages/docs/common-issues/zhCN/index.md Co-authored-by: 07akioni <07akioni2@gmail.com> * Update demo/pages/docs/common-issues/zhCN/index.md Co-authored-by: 07akioni <07akioni2@gmail.com> * Update demo/pages/docs/common-issues/enUS/index.md Co-authored-by: 07akioni <07akioni2@gmail.com> * feat: add english common issue Co-authored-by: 07akioni <07akioni2@gmail.com> Co-authored-by: haiyan-zhu <haiyan.zhu@tusimple.ai>
This commit is contained in:
parent
450b093fd9
commit
84a5022c95
@ -1,5 +1,13 @@
|
||||
# Common Issues
|
||||
|
||||
Currently there is no content.
|
||||
## 1. The difference between @update:xxx and on-update:xxx
|
||||
|
||||
There is no difference between `@update:xxx` and `on-update:xxx` when used in templates.
|
||||
|
||||
In Naive UI, all API documents use the `on-update:xxx` format, because `@` is just a shorthand provided by Vue.
|
||||
|
||||
If you prefer camelCase, you can use `onUpdate:xxx`.
|
||||
|
||||
If you are using JSX, you can use `onUpdateXxx` (all `onUpdate:xxx` have an equivalent implementation of `onUpdateXxx`).
|
||||
|
||||
If you have any problem, feel free to create a PR or issue on GitHub.
|
||||
|
@ -1,5 +1,13 @@
|
||||
# 常见问题
|
||||
|
||||
暂时还没有内容。
|
||||
## 1. @update:xxx 和 on-update:xxx 的区别
|
||||
|
||||
`@update:xxx` 和 `on-update:xxx` 在模版中使用时没有任何区别。
|
||||
|
||||
在 Naive UI 中,全部的 API 文档使用 `on-update:xxx` 格式,因为 `@` 只是 Vue 提供的一种简写。
|
||||
|
||||
如果你偏爱 camelCase,可以使用 `onUpdate:xxx`。
|
||||
|
||||
如果你在使用 JSX,可以使用 `onUpdateXxx`(所有的 `onUpdate:xxx` 都有一个 `onUpdateXxx` 的对等实现)。
|
||||
|
||||
如果你发现任何问题,欢迎在 GitHub 上提交 issue 和 PR。
|
||||
|
Loading…
Reference in New Issue
Block a user