2023-07-29 17:27:08 +08:00

277 lines
8.1 KiB
TypeScript

/*
* @Author: weisheng
* @Date: 2023-07-27 10:26:09
* @LastEditTime: 2023-07-29 17:26:43
* @LastEditors: weisheng
* @Description:
* @FilePath: \wot-design-uni\docs\.vitepress\config.ts
* 记得注释
*/
import { defineConfig } from 'vitepress';
export default defineConfig({
title: `Wot Design Uni`,
description: '一个基于Vue3构建的uni-app组件库',
head: [
['link', { rel: 'icon', href: '/favicon.ico' }],
['script', {}, `
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?18377b8bd73d88647503887f67ccf27f";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`]
],
themeConfig: {
logo: '/wot-design.png',
editLink: {
pattern: 'https://github.com/Moonofweisheng/wot-design-uni/edit/main/docs/:path',
text: '为此页提供修改建议',
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/Moonofweisheng/wot-design-uni' },
],
algolia: {
appId: '9CEEWI3F01',
apiKey: '3438300c571ea1bc2948444ef8ace807',
indexName: 'wot-design-uni',
searchParameters: {
facetFilters: ['tags:en'],
},
},
// carbonAds: {
// code: 'CEBIEK3N',
// placement: 'vitejsdev',
// },
footer: {
message: `Released under the MIT License.`,
copyright: 'Copyright © 2023-present weisheng',
},
nav: [
{ text: '指南', link: '/guide/quickUse', activeMatch: '/guide/' },
{ text: '组件', link: '/component/button', activeMatch: '/component/' },
{ text: '打赏作者', link: '/reward/reward', activeMatch: '/reward/' },
{
text: '相关链接',
items: [
{ text: 'uni-mini-router', link: 'https://gitee.com/fant-mini/uni-mini-router' },
{ 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/' },
],
},
],
sidebar:{
'/guide/': [
{
text: '介绍',
link: '/guide/introduction',
},
{
text: '快速上手',
link: '/guide/quickUse',
},
{
text: '定制主题',
link: '/guide/customTheme',
},
{
text: '字体',
link: '/guide/typography',
},
{
text: '更新日志',
link: '/guide/changelog',
},
{
text: '常见问题',
link: '/guide/commonProblems',
}
],
'/component/': [
{
text: '基础',
items: [
{
link: "/component/button",
text: "Button 按钮"
}, {
link: "/component/icon",
text: "Icon 图标"
}, {
link: "/component/layout",
text: "Layout 布局"
}, {
link: "/component/popup",
text: "Popup 弹出层"
}, {
link: "/component/resize",
text: "Resize 监听元素尺寸变化"
}, {
link: "/component/transition",
text: "Transition 动画"
}
]
},
{
text: "导航",
items: [{
link: "/component/pagination",
text: "Pagination 分页"
}, {
link: "/component/popover",
text: "Popover 气泡"
}, {
link: "/component/tabs",
text: "Tabs 标签页"
}]
}, {
text: "数据输入",
items: [{
link: "/component/calendar",
text: "Calendar 日历选择器"
}, {
link: "/component/calendarView",
text: "CalendarView 日历面板"
}, {
link: "/component/checkbox",
text: "Checkbox 复选框"
}, {
link: "/component/colPicker",
text: "ColPicker 多列选择器"
}, {
link: "/component/datetimePicker",
text: "DatetimePicker 时间选择器"
}, {
link: "/component/datetimePickerView",
text: "DatetimePickerView 时间选择器视图"
}, {
link: "/component/form",
text: "Form 表单组合"
}, {
link: "/component/input",
text: "Input 输入框"
}, {
link: "/component/inputNumber",
text: "InputNumber 计数器"
}, {
link: "/component/picker",
text: "Picker 选择器"
}, {
link: "/component/pickerView",
text: "PickerView 选择器视图"
}, {
link: "/component/radio",
text: "Radio 单选框"
}, {
link: "/component/rate",
text: "Rate 评分"
}, {
link: "/component/search",
text: "Search 搜索框"
}, {
link: "/component/selectPicker",
text: "SelectPicker 单复选选择器"
}, {
link: "/component/slider",
text: "Slider 滑块"
}, {
link: "/component/switch",
text: "Switch 开关"
}, {
link: "/component/upload",
text: "Upload 上传"
}]
}, {
text: "反馈",
items: [{
link: "/component/actionSheet",
text: "ActionSheet 动作面板"
}, {
link: "/component/dropMenu",
text: "DropMenu 下拉菜单"
}, {
link: "/component/loading",
text: "Loading 加载"
}, {
link: "/component/messageBox",
text: "MessageBox 弹框"
}, {
link: "/component/noticeBar",
text: "NoticeBar 通知栏"
}, {
link: "/component/progress",
text: "Progress 进度条"
}, {
link: "/component/sortButton",
text: "SortButton 排序按钮"
}, {
link: "/component/statusTip",
text: "StatusTip 缺省提示"
}, {
link: "/component/swipeAction",
text: "SwipeAction 滑动操作"
}, {
link: "/component/toast",
text: "Toast 轻提示"
}, {
link: "/component/tooltip",
text: "Tooltip 文字提示"
}]
}, {
text: "数据展示",
items: [{
link: "/component/badge",
text: "Badge 角标"
}, {
link: "/component/card",
text: "Card 卡片"
}, {
link: "/component/cell",
text: "Cell 单元格"
}, {
link: "/component/collapse",
text: "Collapse 折叠面板"
}, {
link: "/component/curtain",
text: "Curtain 幕帘"
}, {
link: "/component/divider",
text: "Divider 分割线"
}, {
link: "/component/img",
text: "Img 图片"
}, {
link: "/component/imgCropper",
text: "ImgCropper 图片裁剪"
}, {
link: "/component/grid",
text: "Grid 宫格"
}, {
link: "/component/loadmore",
text: "Loadmore 加载更多"
}, {
link: "/component/steps",
text: "Steps 步骤条"
}, {
link: "/component/sticky",
text: "Sticky 粘性布局"
}, {
link: "/component/tag",
text: "Tag 标签"
}]
}
]
}
},
})