From 28c3cefdfc24f3f6f2669de5f93456a0db281f72 Mon Sep 17 00:00:00 2001 From: xuqingkai Date: Wed, 25 Oct 2023 10:13:00 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8DTabbar=E7=BB=84=E4=BB=B6=E7=B1=BB=E5=9E=8B=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E7=9A=84=E9=97=AE=E9=A2=98=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9B=B8=E5=85=B3=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ docs/.vitepress/config.ts | 5 ++--- docs/component/input.md | 2 +- docs/component/message-box.md | 1 - docs/guide/introduction.md | 4 +++- docs/index.md | 2 +- .../wot-design-uni/components/composables/useLockScroll.ts | 2 -- .../wot-design-uni/components/wd-tabbar/wd-tabbar.vue | 2 +- src/uni_modules/wot-design-uni/readme.md | 3 ++- 9 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b14329396..9dea31d97 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,8 @@ * [常见问题](https://wot-design-uni.cn/guide/common-problems.html) * [Discussions 讨论区](https://github.com/Moonofweisheng/wot-design-uni/discussions) * [QQ 群](https://qm.qq.com/cgi-bin/qm/qr?k=O1Z3pal6StL39qHtABqR54Tb56igr90O&jump_from=webapi&authKey=MtVWfi/EQbT03wW7tKXv4bmyKYHBHtzI8VewlzSsOdxFjN0wbgNy17np9Z9yC4Z8) +* [快速上手项目](https://github.com/Moonofweisheng/wot-starter) +* [Vue3路由库](https://moonofweisheng.gitee.io/uni-mini-router/) ## 贡献指南 diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 93ec45c63..ed69eb11d 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -103,13 +103,12 @@ export default defineConfig({ ] }, { text: '捐赠作者', link: '/reward/reward', activeMatch: '/reward/' }, - { text: '相关链接', items: [ - { text: 'uni-mini-router', link: 'https://gitee.com/fant-mini/uni-mini-router' }, + { text: 'Vue3路由库', link: 'https://moonofweisheng.gitee.io/uni-mini-router/' }, + { text: '快速上手项目', link: 'https://github.com/Moonofweisheng/wot-starter' }, { text: 'uni-mini-ci', link: 'https://gitee.com/fant-mini/uni-mini-ci' }, - { text: 'fant-mini-plus', link: 'https://fant-mini-plus.top/fant-mini-plus/' }, { text: 'wot-design', link: 'https://ftf.jd.com/wot-design/' }, { text: 'wot-design-mini', link: 'https://ftf.jd.com/wot-design-mini/' } ], diff --git a/docs/component/input.md b/docs/component/input.md index c6ca18ac2..9ca95cee1 100644 --- a/docs/component/input.md +++ b/docs/component/input.md @@ -165,7 +165,7 @@ function handleChange(event) { | selectionStart | 原生属性,光标起始位置,自动聚集时有效,需与selection-end搭配使用 | number | - | -1 | - | | selectionEnd | 原生属性,光标结束位置,自动聚集时有效,需与selection-start搭配使用 | number | - | -1 | - | | adjustPosition | 原生属性,键盘弹起时,是否自动上推页面 | boolean | - | true | - | -| autoHeight | textarea原生属性,textarea 行数自适应,从1行开始显示 | string | - | - | - | +| autoHeight | textarea原生属性,textarea 行数自适应,从1行开始显示 | boolean | - | false | - | | label | 设置左侧标题 | string | - | - | - | | size | 设置输入框大小 | string | - | - | - | | error | 设置输入框错误状态,错误状态时为红色 | boolean | - | false | - | diff --git a/docs/component/message-box.md b/docs/component/message-box.md index 97b13426c..e72d43b15 100644 --- a/docs/component/message-box.md +++ b/docs/component/message-box.md @@ -194,7 +194,6 @@ MessageBox.prompt(options) | confirmButtonText | 确定按钮文案 | string | - | 确定 | - | | cancelButtonText | 取消按钮文案 | string | - | 取消 | - | | selector | 组件的 id | string | - | #wd-message-box | - | -| context | 引用 `wd-message-box` 的页面实例或自定义组件实例 | object | - | 当前页面实例 | - | | zIndex | 弹窗层级 | number | - | 99 | - | | lazyRender | 弹层内容懒渲染,触发展示时才渲染内容 | boolean | - | true | - | diff --git a/docs/guide/introduction.md b/docs/guide/introduction.md index c3d9c0f91..4a65a69b7 100644 --- a/docs/guide/introduction.md +++ b/docs/guide/introduction.md @@ -37,7 +37,9 @@ * [常见问题](/guide/common-problems) * [Discussions 讨论区](https://github.com/Moonofweisheng/wot-design-uni/discussions) * [QQ 群](https://qm.qq.com/cgi-bin/qm/qr?k=O1Z3pal6StL39qHtABqR54Tb56igr90O&jump_from=webapi&authKey=MtVWfi/EQbT03wW7tKXv4bmyKYHBHtzI8VewlzSsOdxFjN0wbgNy17np9Z9yC4Z8) - +* [快速上手项目](https://github.com/Moonofweisheng/wot-starter) +* [Vue3路由库](https://moonofweisheng.gitee.io/uni-mini-router/) + ## 开源协议 本项目遵循 MIT 协议。 diff --git a/docs/index.md b/docs/index.md index 34a3274cb..6e5995f35 100644 --- a/docs/index.md +++ b/docs/index.md @@ -28,7 +28,7 @@ features: details: 支持 APP、H5、微信小程序 等平台。 - icon: 🚀 title: 60+ 组件 - details: 超过50个高质量组件,覆盖移动端主流场景。 + details: 超过 60 个高质量组件,覆盖移动端主流场景。 - icon: 💪 title: 支持 TypeScript details: 使用 Typescript 构建,提供良好的组件类型系统。 diff --git a/src/uni_modules/wot-design-uni/components/composables/useLockScroll.ts b/src/uni_modules/wot-design-uni/components/composables/useLockScroll.ts index d7cbc0a5b..ae1c002fd 100644 --- a/src/uni_modules/wot-design-uni/components/composables/useLockScroll.ts +++ b/src/uni_modules/wot-design-uni/components/composables/useLockScroll.ts @@ -1,7 +1,5 @@ import { ref, watch } from 'vue' -const LockScrollClass = 'wd-lock-scroll' - function useLockScroll(shouldLock: () => boolean) { const scrollLockCount = ref(0) diff --git a/src/uni_modules/wot-design-uni/components/wd-tabbar/wd-tabbar.vue b/src/uni_modules/wot-design-uni/components/wd-tabbar/wd-tabbar.vue index ae16be4a5..53124a389 100644 --- a/src/uni_modules/wot-design-uni/components/wd-tabbar/wd-tabbar.vue +++ b/src/uni_modules/wot-design-uni/components/wd-tabbar/wd-tabbar.vue @@ -22,7 +22,7 @@ export default {