diff --git a/frontend/input/h5-react/README.md b/frontend/input/h5-react/README.md index 9c2757d27fa7026d512d82de653927582a8d8c0f..34fb1c0488789f874b2ffe2825eefa5a2dfbfac0 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 339ad51215809b4bbb70fc56cb9229ab54467d7e..67ac46cf07387e0e9539fe9aab0c8f55acf07ddf 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 ## 开发 diff --git a/frontend/input/pc-react/README.md b/frontend/input/pc-react/README.md index 0ab9fe548f56ee8f13c276e21e67260187b7fbdb..a9440bf2098f37281963fef2510b841e75d52ff0 100644 --- a/frontend/input/pc-react/README.md +++ b/frontend/input/pc-react/README.md @@ -83,7 +83,7 @@ const Page = () => {