docs: ✏️ 修复Tabbar组件类型警告的问题并优化文档相关链接

This commit is contained in:
xuqingkai 2023-10-25 10:13:00 +08:00 committed by weisheng
parent e34c5cded1
commit 28c3cefdfc
9 changed files with 12 additions and 11 deletions

View File

@ -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/)
## 贡献指南

View File

@ -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/' }
],

View File

@ -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 | - |

View File

@ -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 | - |

View File

@ -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 协议。

View File

@ -28,7 +28,7 @@ features:
details: 支持 APP、H5、微信小程序 等平台。
- icon: 🚀
title: 60+ 组件
details: 超过50个高质量组件,覆盖移动端主流场景。
details: 超过 60 个高质量组件,覆盖移动端主流场景。
- icon: 💪
title: 支持 TypeScript
details: 使用 Typescript 构建,提供良好的组件类型系统。

View File

@ -1,7 +1,5 @@
import { ref, watch } from 'vue'
const LockScrollClass = 'wd-lock-scroll'
function useLockScroll(shouldLock: () => boolean) {
const scrollLockCount = ref(0)

View File

@ -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'

View File

@ -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/)
## 贡献指南