docs: Fix document errors in jsx (#19)

* docs: Fix document errors for jsx

* Update demo/pages/docs/jsx/enUS/index.md

* Update demo/pages/docs/jsx/zhCN/index.md

* docs: Optimization and modification scheme

Co-authored-by: 谢宗辰 <xiezongchen@xiezongchendeMacBook-Pro.local>
Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
XieZongChen 2021-06-08 15:53:04 +08:00 committed by GitHub
parent fa44d02b14
commit 81f4d2c070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ export default defineComponent({
## Props look like @update:\*
In naive-ui, all props look like `on-update:*` has a corresponding `onUpdate*` prop (since in JSX `onUpdate:*` is not a valid prop name).
In naive-ui, all props look like `on-update:*` has a corresponding `onUpdate*` prop (since in JSX `on-update:*` and `onUpdate:*` are not valid prop names).
If you find it doesn't exist, I must forget to make it. Please create an issue or PR.

View File

@ -23,7 +23,7 @@ export default defineComponent({
## 形如 @update:\* 的 prop
naive-ui 中,所有形如 `on-update:*` 的 prop 都有一个对应的 `onUpdate*` 属性可供使用(由于 JSX 自身的规定,`onUpdate:*` 不是一个合法的 prop
naive-ui 中,所有形如 `on-update:*` 的 prop 都有一个对应的 `onUpdate*` 属性可供使用(由于 JSX 自身的规定,`on-update:*` 和 `onUpdate:*` 不是合法的 prop 名称)。
如果你发现没有,那一定是我忘了写了,请提交一个 Issue 或者 PR。