mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-05 13:00:47 +08:00
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:
parent
fa44d02b14
commit
81f4d2c070
@ -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.
|
||||
|
||||
|
@ -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。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user