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:
zhypower1997 2021-06-24 19:52:37 +08:00 committed by GitHub
parent 450b093fd9
commit 84a5022c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View File

@ -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.

View File

@ -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。