From 81f4d2c0708e73e2787ce31c777676d09984cf4f Mon Sep 17 00:00:00 2001 From: XieZongChen <46394163+amadeus711@users.noreply.github.com> Date: Tue, 8 Jun 2021 15:53:04 +0800 Subject: [PATCH] docs: Fix document errors in jsx (#19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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: 谢宗辰 Co-authored-by: 07akioni <07akioni2@gmail.com> --- demo/pages/docs/jsx/enUS/index.md | 2 +- demo/pages/docs/jsx/zhCN/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/pages/docs/jsx/enUS/index.md b/demo/pages/docs/jsx/enUS/index.md index 9c3641525..58f59b80a 100644 --- a/demo/pages/docs/jsx/enUS/index.md +++ b/demo/pages/docs/jsx/enUS/index.md @@ -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. diff --git a/demo/pages/docs/jsx/zhCN/index.md b/demo/pages/docs/jsx/zhCN/index.md index 760a793b5..1096a1689 100644 --- a/demo/pages/docs/jsx/zhCN/index.md +++ b/demo/pages/docs/jsx/zhCN/index.md @@ -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。