Skip to content

Commit

Permalink
docs: ✏️ 修复Tabbar组件类型警告的问题并优化文档相关链接
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingkai authored and Moonofweisheng committed Oct 25, 2023
1 parent e34c5cd commit 28c3cef
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)


## 贡献指南
Expand Down
5 changes: 2 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/' }
],
Expand Down
2 changes: 1 addition & 1 deletion docs/component/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | - |
Expand Down
1 change: 0 additions & 1 deletion docs/component/message-box.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | - |

Expand Down
4 changes: 3 additions & 1 deletion docs/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 协议。
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ features:
details: 支持 APP、H5、微信小程序 等平台。
- icon: 🚀
title: 60+ 组件
details: 超过50个高质量组件,覆盖移动端主流场景。
details: 超过 60 个高质量组件,覆盖移动端主流场景。
- icon: 💪
title: 支持 TypeScript
details: 使用 Typescript 构建,提供良好的组件类型系统。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { ref, watch } from 'vue'

const LockScrollClass = 'wd-lock-scroll'

function useLockScroll(shouldLock: () => boolean) {
const scrollLockCount = ref(0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
</script>
<script lang="ts" setup>
import { getCurrentInstance, onMounted, provide, reactive, ref, watch, nextTick, computed, type CSSProperties } from 'vue'
import { TabbarItem } from '../wd-tabbar-item/types'
import type { TabbarItem } from '../wd-tabbar-item/types'
import { addUnit, getRect, isDef, objToStyle } from '../common/util'
type TabbarShape = 'default' | 'round'
Expand Down
3 changes: 2 additions & 1 deletion src/uni_modules/wot-design-uni/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +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/)

## 贡献指南

Expand Down

0 comments on commit 28c3cef

Please sign in to comment.