From c76c162694dd2cd1f280701aa9d88ff6569ce661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=AA=E5=BA=B7?= Date: Sat, 30 Dec 2023 22:46:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Ddemo=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=B7=91=E8=B5=B7=E6=9D=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/input/h5-react/README.md | 16 ++++------------ frontend/input/h5-svelte/README.md | 10 +++++----- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/frontend/input/h5-react/README.md b/frontend/input/h5-react/README.md index 9c2757d..34fb1c0 100644 --- a/frontend/input/h5-react/README.md +++ b/frontend/input/h5-react/README.md @@ -86,19 +86,13 @@ const Page = () => { !!!这里注意的是此键盘组件基于 React 运行的,并且没有内置 React 库,如果你的系统也没有引入 React 相关的 script,请记得在此之前先引入: ```html - - + + ``` 示例代码: -```xml +```html @@ -109,7 +103,7 @@ const Page = () => { @@ -126,8 +120,6 @@ const Page = () => { ``` -> 如果 unpkg.com 被墙了,可以替换成 npm.elemecdn.com 的国内镜像,使用地址 https://npm.elemecdn.com/ant-rare-words-input-react/dist/ant-rare-words-input-react.min.js -> > 如果不希望跟随版本更新,可以限制引入 cdn 时的版本,使用地址 https://unpkg.com/ant-rare-words-input-react@0.0.1/dist/ant-rare-words-input-react.min.js ## 开发 diff --git a/frontend/input/h5-svelte/README.md b/frontend/input/h5-svelte/README.md index 339ad51..67ac46c 100644 --- a/frontend/input/h5-svelte/README.md +++ b/frontend/input/h5-svelte/README.md @@ -148,7 +148,10 @@ export default { + + +
@@ -159,8 +162,8 @@ export default { const inputBtnEle = document.getElementById('open-input-btn'); const inputEle = document.getElementById('input'); inputBtnEle.addEventListener('click', function () { - const { Input } = window.RareWordsSvelte; - const input = new Input({ + const { RareWordsInput } = window.RareWordsSvelte; + const input = new RareWordsInput({ target: document.body, props: { visible: true, @@ -184,9 +187,6 @@ export default { ``` - -> 如果 unpkg.com 被墙了,可以替换成 npm.elemecdn.com 的国内镜像,使用地址 https://npm.elemecdn.com/ant-rare-words-svelte/dist/index.umd.js -> > 如果不希望跟随版本更新,可以限制引入 cdn 时的版本,使用地址 https://unpkg.com/ant-rare-words-svelte@0.0.1/dist/ant-rare-words-svelte.min.js ## 开发 -- Gitee From cd3ece5112c1bfa308dc8698ccea7e99d28e47a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=AA=E5=BA=B7?= Date: Sun, 31 Dec 2023 00:00:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4=E9=81=97?= =?UTF-8?q?=E6=BC=8F=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/input/pc-react/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/input/pc-react/README.md b/frontend/input/pc-react/README.md index 0ab9fe5..a9440bf 100644 --- a/frontend/input/pc-react/README.md +++ b/frontend/input/pc-react/README.md @@ -83,7 +83,7 @@ const Page = () => { -- Gitee