From 11d3afa6e9d0378ce6ddd1ae8cb76cd512f3d96a Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Sat, 6 Jul 2024 20:32:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20pages.json=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabBar/generateMenu.uts | 39 +- target-pages.json | 2903 ++++++++++++--------------------- 2 files changed, 1058 insertions(+), 1884 deletions(-) diff --git a/pages/tabBar/generateMenu.uts b/pages/tabBar/generateMenu.uts index 70b1c5e7..b67d77b4 100644 --- a/pages/tabBar/generateMenu.uts +++ b/pages/tabBar/generateMenu.uts @@ -1,15 +1,21 @@ -import { pages } from '@/target-pages.json' +import { pages, groups } from '@/target-pages.json' + +type Group = { + id : string, + name : string, + children : (Group | null)[] | null +} type PageGroup = { id : string, name : string, - index : number | null + index : number } type Page = { path : string, style : UTSJSONObject, - group ?: PageGroup[] | null + group ?: string | null } export type MenuItem = { @@ -22,22 +28,31 @@ export type MenuItem = { export function generateMenu(tabBarType : string) : (MenuItem | null)[] { let res : (MenuItem | null)[] = [] - const tabBarPages = JSON.parse(JSON.stringify(pages))!.filter((page : Page) : boolean => page.path.startsWith(tabBarType) && hasPageGroup(page.group)) + const groupTree = JSON.parse<(Group | null)[]>(JSON.stringify(groups)) tabBarPages.forEach(page => { let menuItemArr : (MenuItem | null)[] = res let currentMenu : MenuItem | null = null - const lastGroup = page.group![page.group!.length - 1] + const groupIndexList = page.group!.split(',').map((index : string) : number => parseInt(index)) + let currentGroups : (Group | null)[] | null = groupTree + const pageGroups : PageGroup[] = [] + groupIndexList.forEach((groupIndex, index) => { + if (index > 0) { + pageGroups.push({ id: currentGroups![groupIndex]!.id, name: currentGroups![groupIndex]!.name, index: groupIndex } as PageGroup) + } + currentGroups = currentGroups![groupIndex]!.children + }) + const lastGroup = pageGroups[pageGroups.length - 1] let hasPageGroup = false - if (page.path.endsWith(camelToDash(lastGroup.name)) && page.group!.length > 1) { + if (page.path.endsWith(camelToDash(lastGroup.name)) && pageGroups.length > 1) { hasPageGroup = true - page.group!.pop() + pageGroups.pop() } - const groupLength = page.group!.length - page.group!.forEach((group, groupIndex) => { + const groupLength = pageGroups.length + pageGroups.forEach((group, groupIndex) => { const { index, id, name } = group - const validIndex = isNumber(index) ? index! : menuItemArr.length + const validIndex = index fillMenuArrayWithNull(menuItemArr, validIndex) if (menuItemArr[validIndex] == null) { @@ -57,7 +72,7 @@ export function generateMenu(tabBarType : string) : (MenuItem | null)[] { } }) if (hasPageGroup) { - const pageIndex = isNumber(lastGroup.index) ? lastGroup.index! : currentMenu!.pages.length + const pageIndex = lastGroup.index fillPageArrayWithNull(currentMenu!.pages, pageIndex) if (currentMenu!.pages[pageIndex] == null) { currentMenu!.pages[pageIndex] = page @@ -72,7 +87,7 @@ export function generateMenu(tabBarType : string) : (MenuItem | null)[] { return removeNullItem(res) } -function hasPageGroup(value : PageGroup[] | null) : boolean { +function hasPageGroup(value : string | null) : boolean { // #ifdef APP-ANDROID return value !== null // #endif diff --git a/target-pages.json b/target-pages.json index 6b75b939..d7f7ef43 100644 --- a/target-pages.json +++ b/target-pages.json @@ -9,36 +9,14 @@ }, { "path": "pages/component/view/view", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.view", - "name": "view", - "index": 0 - } - ], + "group": "0,1,0", "style": { "navigationBarTitleText": "view | 基本视图容器" } }, { "path": "pages/component/scroll-view/scroll-view", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.scroll-view", - "name": "scroll-view", - "index": 1 - } - ], + "group": "0,1,1", "style": { "navigationBarTitleText": "scroll-view | 可滚动视图容器" } @@ -69,36 +47,14 @@ }, { "path": "pages/component/swiper/swiper", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.swiper", - "name": "swiper", - "index": 2 - } - ], + "group": "0,1,2", "style": { "navigationBarTitleText": "swiper | 滑块视图容器" } }, { "path": "pages/component/list-view/list-view", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.list-view", - "name": "list-view", - "index": 8 - } - ], + "group": "0,1,8", "style": { "navigationBarTitleText": "list-view | 列表组件" } @@ -137,46 +93,14 @@ }, { "path": "pages/component/sticky-section/sticky-section", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.sticky", - "name": "sticky", - "index": 9 - }, - { - "id": "component.view-container.sticky.sticky-section", - "name": "sticky-section", - "index": 1 - } - ], + "group": "0,1,9,1", "style": { "navigationBarTitleText": "sticky-section | 吸顶布局容器" } }, { "path": "pages/component/sticky-header/sticky-header", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.sticky", - "name": "sticky", - "index": 9 - }, - { - "id": "component.view-container.sticky.sticky-header", - "name": "sticky-header", - "index": 0 - } - ], + "group": "0,1,9,0", "style": { "navigationBarTitleText": "sticky-header | 吸顶布局容器", "enablePullDownRefresh": false @@ -184,18 +108,7 @@ }, { "path": "pages/component/text/text", - "group": [ - { - "id": "component.basic-content", - "name": "基础内容", - "index": 2 - }, - { - "id": "component.basic-content.text", - "name": "text", - "index": 1 - } - ], + "group": "0,2,1", "style": { "navigationBarTitleText": "text | 文本" } @@ -208,18 +121,7 @@ }, { "path": "pages/component/rich-text/rich-text", - "group": [ - { - "id": "component.basic-content", - "name": "基础内容", - "index": 2 - }, - { - "id": "component.basic-content.rich-text", - "name": "rich-text", - "index": 2 - } - ], + "group": "0,2,2", "style": { "navigationBarTitleText": "rich-text | 富图标" } @@ -238,54 +140,21 @@ }, { "path": "pages/component/progress/progress", - "group": [ - { - "id": "component.basic-content", - "name": "基础内容", - "index": 2 - }, - { - "id": "component.basic-content.progress", - "name": "progress", - "index": 3 - } - ], + "group": "0,2,3", "style": { "navigationBarTitleText": "progress | 进度条" } }, { "path": "pages/component/form/form", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.form", - "name": "form", - "index": 2 - } - ], + "group": "0,3,2", "style": { "navigationBarTitleText": "form | 表单" } }, { "path": "pages/component/button/button", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.button", - "name": "button", - "index": 0 - } - ], + "group": "0,3,0", "style": { "navigationBarTitleText": "button | 按钮" } @@ -298,90 +167,35 @@ }, { "path": "pages/component/radio/radio", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.radio", - "name": "radio", - "index": 8 - } - ], + "group": "0,3,8", "style": { "navigationBarTitleText": "radio | 单选项" } }, { "path": "pages/component/checkbox/checkbox", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.checkbox", - "name": "checkbox", - "index": 1 - } - ], + "group": "0,3,1", "style": { "navigationBarTitleText": "checkbox | 多选框" } }, { "path": "pages/component/input/input", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.input", - "name": "input", - "index": 3 - } - ], + "group": "0,3,3", "style": { "navigationBarTitleText": "input | 输入框" } }, { "path": "pages/component/textarea/textarea", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.textarea", - "name": "textarea", - "index": 11 - } - ], + "group": "0,3,11", "style": { "navigationBarTitleText": "textarea | 多行输入框" } }, { "path": "pages/component/slider/slider", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.slider", - "name": "slider", - "index": 9 - } - ], + "group": "0,3,9", "style": { "navigationBarTitleText": "slider | 滑动选择器" } @@ -394,54 +208,21 @@ }, { "path": "pages/component/picker-view/picker-view", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.picker-view", - "name": "picker-view", - "index": 7 - } - ], + "group": "0,3,7", "style": { "navigationBarTitleText": "picker-view | 嵌入页面的滚动选择器" } }, { "path": "pages/component/switch/switch", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.switch", - "name": "switch", - "index": 10 - } - ], + "group": "0,3,10", "style": { "navigationBarTitleText": "switch | 开关选择器" } }, { "path": "pages/component/image/image", - "group": [ - { - "id": "component.media", - "name": "媒体组件", - "index": 5 - }, - { - "id": "component.media.image", - "name": "image", - "index": 1 - } - ], + "group": "0,5,1", "style": { "navigationBarTitleText": "image | 图片" } @@ -472,18 +253,7 @@ }, { "path": "pages/component/video/video", - "group": [ - { - "id": "component.media", - "name": "媒体组件", - "index": 5 - }, - { - "id": "component.media.video", - "name": "video", - "index": 2 - } - ], + "group": "0,5,2", "style": { "navigationBarTitleText": "video | 视频" } @@ -496,18 +266,7 @@ }, { "path": "pages/component/navigator/navigator", - "group": [ - { - "id": "component.navigation", - "name": "导航", - "index": 4 - }, - { - "id": "component.navigation.navigator", - "name": "navigator", - "index": 0 - } - ], + "group": "0,4,0", "style": { "navigationBarTitleText": "navigator | 页面链接" } @@ -526,39 +285,21 @@ }, { "path": "pages/component/web-view/web-view", - "group": [ - { - "id": "component.web-view", - "name": "网页", - "index": 8 - } - ], + "group": "0,8", "style": { "navigationBarTitleText": "web-view" } }, { "path": "pages/component/web-view/web-view/web-view-local", - "group": [ - { - "id": "component.web-view", - "name": "网页", - "index": 8 - } - ], + "group": "0,8", "style": { "navigationBarTitleText": "本地网页" } }, { "path": "pages/component/unicloud-db/unicloud-db/contacts/list", - "group": [ - { - "id": "component.unicloud", - "name": "unicloud", - "index": 10 - } - ], + "group": "0,10", "style": { "navigationBarTitleText": "联系人", "enablePullDownRefresh": true @@ -584,65 +325,35 @@ }, { "path": "pages/component/unicloud-db/unicloud-db/mixin-datacom/mixin-datacom", - "group": [ - { - "id": "component.unicloud", - "name": "unicloud", - "index": 10 - } - ], + "group": "0,10", "style": { "navigationBarTitleText": "mixinDatacom" } }, { "path": "pages/component/public-properties/public-properties", - "group": [ - { - "id": "component.public-properties-events", - "name": "公共属性和事件", - "index": 0 - } - ], + "group": "0,0", "style": { "navigationBarTitleText": "公共属性" } }, { "path": "pages/component/public-events/public-events", - "group": [ - { - "id": "component.public-properties-events", - "name": "公共属性和事件", - "index": 0 - } - ], + "group": "0,0", "style": { "navigationBarTitleText": "公共事件" } }, { "path": "pages/component/public-events/transition-events", - "group": [ - { - "id": "component.public-properties-events", - "name": "公共属性和事件", - "index": 0 - } - ], + "group": "0,0", "style": { "navigationBarTitleText": "Transition Events" } }, { "path": "pages/component/public-events/touch-events", - "group": [ - { - "id": "component.public-properties-events", - "name": "公共属性和事件", - "index": 0 - } - ], + "group": "0,0", "style": { "navigationBarTitleText": "Touch Events" } @@ -650,23 +361,7 @@ // #ifndef WEB { "path": "pages/component/nested-scroll-header/nested-scroll-header", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.nested-scroll", - "name": "nested-scroll", - "index": 10 - }, - { - "id": "component.view-container.nested-scroll.nested-scroll-header", - "name": "nested-scroll-header", - "index": 0 - } - ], + "group": "0,1,10,0", "style": { "navigationBarTitleText": "nested-scroll-header" } @@ -675,23 +370,7 @@ // #ifndef WEB { "path": "pages/component/nested-scroll-body/nested-scroll-body", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.nested-scroll", - "name": "nested-scroll", - "index": 10 - }, - { - "id": "component.view-container.nested-scroll.nested-scroll-body", - "name": "nested-scroll-body", - "index": 1 - } - ], + "group": "0,1,10,1", "style": { "navigationBarTitleText": "nested-scroll-body" } @@ -707,18 +386,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/movable-view/movable-view", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.movable-view", - "name": "movable-view", - "index": 5 - } - ], + "group": "0,1,5", "style": { "navigationBarTitleText": "movable-view | 可移动的视图容器" } @@ -727,18 +395,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/label/label", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.label", - "name": "label", - "index": 5 - } - ], + "group": "0,3,5", "style": { "navigationBarTitleText": "label" } @@ -747,18 +404,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/picker/picker", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.picker", - "name": "picker", - "index": 6 - } - ], + "group": "0,3,6", "style": { "navigationBarTitleText": "picker | 底部弹出的滚动选择器" } @@ -767,13 +413,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/map/map", - "group": [ - { - "id": "component.map", - "name": "地图", - "index": 6 - } - ], + "group": "0,6", "style": { "navigationBarTitleText": "map | 地图" } @@ -782,18 +422,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/cover-view/cover-view", - "group": [ - { - "id": "component.view-container", - "name": "视图容器", - "index": 1 - }, - { - "id": "component.view-container.cover-view", - "name": "cover-view", - "index": 6 - } - ], + "group": "0,1,6", "style": { "navigationBarTitleText": "cover-view" } @@ -802,18 +431,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/editor/editor", - "group": [ - { - "id": "component.form-component", - "name": "表单组件", - "index": 3 - }, - { - "id": "component.form-component.editor", - "name": "editor", - "index": 4 - } - ], + "group": "0,3,4", "style": { "navigationBarTitleText": "editor | 富文本编辑器" } @@ -822,18 +440,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/API/open-location/open-location", - "group": [ - { - "id": "api.location", - "name": "位置", - "index": 8 - }, - { - "id": "api.location.openLocation", - "name": "openLocation", - "index": 1 - } - ], + "group": "1,8,1", "style": { "navigationBarTitleText": "openLocation | 使用地图查看位置" } @@ -842,18 +449,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/API/choose-location/choose-location", - "group": [ - { - "id": "api.location", - "name": "位置", - "index": 8 - }, - { - "id": "api.location.chooseLocation", - "name": "chooseLocation", - "index": 2 - } - ], + "group": "1,8,2", "style": { "navigationBarTitleText": "chooseLocation | 使用地图选择位置" } @@ -866,36 +462,20 @@ "enablePullDownRefresh": false } }, - // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/canvas/canvas", - "group": [ - { - "id": "component.canvas", - "name": "画布", - "index": 7 - } - ], + "group": "0,7", "style": { "navigationBarTitleText": "canvas | 画布" } }, - // #endif - // #ifndef APP-ANDROID || APP-IOS { "path": "pages/component/canvas/canvas/ball", - "group": [ - { - "id": "component.canvas", - "name": "画布", - "index": 7 - } - ], + "group": "0,7", "style": { "navigationBarTitleText": "ball" } }, - // #endif { "path": "pages/tabBar/API", "style": { @@ -905,18 +485,7 @@ }, { "path": "pages/API/get-app/get-app", - "group": [ - { - "id": "api.global", - "name": "全局", - "index": 0 - }, - { - "id": "api.global.getApp", - "name": "getApp", - "index": 0 - } - ], + "group": "1,0,0", "style": { "navigationBarTitleText": "getApp | 获取当前应用实例" } @@ -924,18 +493,7 @@ // #ifndef APP-IOS || WEB { "path": "pages/API/exit/exit", - "group": [ - { - "id": "api.base", - "name": "基础", - "index": 1 - }, - { - "id": "api.base.exit", - "name": "exit", - "index": 5 - } - ], + "group": "1,1,5", "style": { "navigationBarTitleText": "exit | 退出应用" } @@ -944,18 +502,7 @@ // #ifndef APP-IOS || WEB { "path": "pages/API/install-apk/install-apk", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.installApk", - "name": "installApk", - "index": 6 - } - ], + "group": "1,6,6", "style": { "navigationBarTitleText": "installApk | 安装 APK", "enablePullDownRefresh": false @@ -964,18 +511,7 @@ // #endif { "path": "pages/API/get-current-pages/get-current-pages", - "group": [ - { - "id": "api.global", - "name": "全局", - "index": 0 - }, - { - "id": "api.global.getCurrentPages", - "name": "getCurrentPages", - "index": 1 - } - ], + "group": "1,0,1", "style": { "navigationBarTitleText": "getCurrentPages | 获取当前页面栈", "enablePullDownRefresh": true @@ -990,85 +526,35 @@ }, { "path": "pages/API/get-launch-options-sync/get-launch-options-sync", - "group": [ - { - "id": "api.base", - "name": "基础", - "index": 1 - }, - { - "id": "api.base.getLaunchOptionsSync", - "name": "getLaunchOptionsSync", - "index": 4 - } - ], + "group": "1,1,4", "style": { "navigationBarTitleText": "getLaunchOptionsSync | 获取启动参数" } }, { "path": "pages/API/navigator/navigator", - "group": [ - { - "id": "api.page", - "name": "页面和路由", - "index": 2 - }, - { - "id": "api.page.navigator", - "name": "navigator", - "index": 0 - } - ], + "group": "1,2,0", "style": { "navigationBarTitleText": "navigator | 页面跳转" } }, { "path": "pages/API/set-navigation-bar-color/set-navigation-bar-color", - "group": [ - { - "id": "api.page", - "name": "页面和路由", - "index": 2 - }, - { - "id": "api.page.setNavigationBarColor", - "name": "setNavigationBarColor", - "index": 1 - } - ], + "group": "1,2,1", "style": { "navigationBarTitleText": "setNavigationBarColor | 设置导航条颜色" } }, { "path": "pages/API/set-navigation-bar-title/set-navigation-bar-title", - "group": [ - { - "id": "api.page", - "name": "页面和路由", - "index": 2 - }, - { - "id": "api.page.setNavigationBarTitle", - "name": "setNavigationBarTitle", - "index": 2 - } - ], + "group": "1,2,2", "style": { "navigationBarTitleText": "setNavigationBarTitle | 设置导航条标题" } }, { "path": "pages/API/set-page-backgroundColorContent/set-page-backgroundColorContent", - "group": [ - { - "id": "api.page", - "name": "页面和路由", - "index": 2 - } - ], + "group": "1,2", "style": { "navigationBarTitleText": "设置页面容器背景色" } @@ -1093,18 +579,7 @@ }, { "path": "pages/API/pull-down-refresh/pull-down-refresh", - "group": [ - { - "id": "api.page", - "name": "页面和路由", - "index": 2 - }, - { - "id": "api.page.pullDownRefresh", - "name": "pullDownRefresh", - "index": 4 - } - ], + "group": "1,2,4", "style": { "navigationBarTitleText": "pullDownRefresh | 页面下拉刷新", "enablePullDownRefresh": true @@ -1112,13 +587,7 @@ }, { "path": "pages/API/storage/storage", - "group": [ - { - "id": "api.storage", - "name": "数据存储", - "index": 9 - } - ], + "group": "1,9", "style": { "navigationBarTitleText": "storage | key-value本地数据存储" } @@ -1126,18 +595,7 @@ // #ifndef WEB { "path": "pages/API/get-file-system-manager/get-file-system-manager", - "group": [ - { - "id": "api.file", - "name": "文件", - "index": 10 - }, - { - "id": "api.file.getFileSystemManager", - "name": "getFileSystemManager", - "index": 0 - } - ], + "group": "1,10,0", "style": { "navigationBarTitleText": "getFileSystemManager | 获取文件管理器" } @@ -1146,18 +604,7 @@ // #ifndef WEB { "path": "pages/API/env/env", - "group": [ - { - "id": "api.base", - "name": "基础", - "index": 1 - }, - { - "id": "api.base.env", - "name": "env", - "index": 0 - } - ], + "group": "1,1,0", "style": { "navigationBarTitleText": "env | 环境变量" } @@ -1165,90 +612,35 @@ // #endif { "path": "pages/API/show-action-sheet/show-action-sheet", - "group": [ - { - "id": "api.ui", - "name": "界面", - "index": 4 - }, - { - "id": "api.ui.showActionSheet", - "name": "showActionSheet", - "index": 1 - } - ], + "group": "1,4,1", "style": { "navigationBarTitleText": "showActionSheet | 弹出操作菜单" } }, { "path": "pages/API/show-modal/show-modal", - "group": [ - { - "id": "api.ui", - "name": "界面", - "index": 4 - }, - { - "id": "api.ui.showModal", - "name": "showModal", - "index": 2 - } - ], + "group": "1,4,2", "style": { "navigationBarTitleText": "showModal | 显示模态弹窗" } }, { "path": "pages/API/show-loading/show-loading", - "group": [ - { - "id": "api.ui", - "name": "界面", - "index": 4 - }, - { - "id": "api.ui.showLoading", - "name": "showLoading", - "index": 3 - } - ], + "group": "1,4,3", "style": { "navigationBarTitleText": "showLoading | 显示 loading 提示框" } }, { "path": "pages/API/show-toast/show-toast", - "group": [ - { - "id": "api.ui", - "name": "界面", - "index": 4 - }, - { - "id": "api.ui.showToast", - "name": "showToast", - "index": 4 - } - ], + "group": "1,4,4", "style": { "navigationBarTitleText": "showToast | 显示消息提示框" } }, { "path": "pages/API/load-font-face/load-font-face", - "group": [ - { - "id": "api.ui", - "name": "界面", - "index": 4 - }, - { - "id": "api.ui.loadFontFace", - "name": "loadFontFace", - "index": 5 - } - ], + "group": "1,4,5", "style": { "navigationBarTitleText": "loadFontFace | 动态加载字体" } @@ -1261,36 +653,14 @@ }, { "path": "pages/API/get-location/get-location", - "group": [ - { - "id": "api.location", - "name": "位置", - "index": 8 - }, - { - "id": "api.location.getLocation", - "name": "getLocation", - "index": 0 - } - ], + "group": "1,8,0", "style": { "navigationBarTitleText": "getLocation | 获取当前位置" } }, { "path": "pages/API/interceptor/interceptor", - "group": [ - { - "id": "api.base", - "name": "基础", - "index": 1 - }, - { - "id": "api.base.interceptor", - "name": "interceptor", - "index": 3 - } - ], + "group": "1,1,3", "style": { "navigationBarTitleText": "interceptor | 拦截器" } @@ -1309,54 +679,21 @@ }, { "path": "pages/API/request/request", - "group": [ - { - "id": "api.network", - "name": "网络", - "index": 5 - }, - { - "id": "api.network.request", - "name": "request", - "index": 0 - } - ], + "group": "1,5,0", "style": { "navigationBarTitleText": "request | 发起网络请求" } }, { "path": "pages/API/upload-file/upload-file", - "group": [ - { - "id": "api.network", - "name": "网络", - "index": 5 - }, - { - "id": "api.network.uploadFile", - "name": "uploadFile", - "index": 1 - } - ], + "group": "1,5,1", "style": { "navigationBarTitleText": "uploadFile | 上传文件" } }, { "path": "pages/API/download-file/download-file", - "group": [ - { - "id": "api.network", - "name": "网络", - "index": 5 - }, - { - "id": "api.network.downloadFile", - "name": "downloadFile", - "index": 2 - } - ], + "group": "1,5,2", "style": { "navigationBarTitleText": "downloadFile | 下载文件" } @@ -1369,108 +706,42 @@ }, { "path": "pages/API/websocket/websocket", - "group": [ - { - "id": "api.network", - "name": "网络", - "index": 5 - }, - { - "id": "api.network.websocket", - "name": "websocket", - "index": 4 - } - ], + "group": "1,5,4", "style": { "navigationBarTitleText": "websocket" } }, { "path": "pages/API/unicloud/unicloud/cloud-function", - "group": [ - { - "id": "api.unicloud", - "name": "uniCloud客户端API", - "index": 17 - }, - { - "id": "api.unicloud.cloudFunction", - "name": "cloudFunction", - "index": 0 - } - ], + "group": "1,17,0", "style": { "navigationBarTitleText": "cloud function | 云函数" } }, { "path": "pages/API/unicloud/unicloud/cloud-object", - "group": [ - { - "id": "api.unicloud", - "name": "uniCloud客户端API", - "index": 17 - }, - { - "id": "api.unicloud.cloudObject", - "name": "cloudObject", - "index": 1 - } - ], + "group": "1,17,1", "style": { "navigationBarTitleText": "cloud object | 云对象" } }, { "path": "pages/API/get-system-info/get-system-info", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.getSystemInfo", - "name": "getSystemInfo", - "index": 0 - } - ], + "group": "1,6,0", "style": { "navigationBarTitleText": "getSystemInfo | 获取系统信息" } }, { "path": "pages/API/get-device-info/get-device-info", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.getDeviceInfo", - "name": "getDeviceInfo", - "index": 1 - } - ], + "group": "1,6,1", "style": { "navigationBarTitleText": "getDeviceInfo | 获取设备信息" } }, { "path": "pages/API/get-app-base-info/get-app-base-info", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.getAppBaseInfo", - "name": "getAppBaseInfo", - "index": 3 - } - ], + "group": "1,6,3", "style": { "navigationBarTitleText": "getAppBaseInfo | 获取APP基础信息" } @@ -1478,18 +749,7 @@ // #ifndef WEB { "path": "pages/API/get-system-setting/get-system-setting", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.getSystemSetting", - "name": "getSystemSetting", - "index": 5 - } - ], + "group": "1,6,5", "style": { "navigationBarTitleText": "getSystemSetting | 获取系统设置" } @@ -1498,13 +758,7 @@ // #ifndef WEB { "path": "pages/API/element-takesnapshot/element-takesnapshot", - "group": [ - { - "id": "api.elementInstance", - "name": "Element 实例", - "index": 30 - } - ], + "group": "1,30", "style": { "navigationBarTitleText": "takeSnapshot", "enablePullDownRefresh": false @@ -1514,18 +768,7 @@ // #ifndef WEB { "path": "pages/API/get-app-authorize-setting/get-app-authorize-setting", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.getAppAuthorizeSetting", - "name": "getAppAuthorizeSetting", - "index": 4 - } - ], + "group": "1,6,4", "style": { "navigationBarTitleText": "getAppAuthorizeSetting | 获取APP授权设置" } @@ -1533,90 +776,35 @@ // #endif { "path": "pages/API/preview-image/preview-image", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.previewImage", - "name": "previewImage", - "index": 1 - } - ], + "group": "1,7,1", "style": { "navigationBarTitleText": "previewImage | 图片预览" } }, { "path": "pages/API/choose-image/choose-image", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.chooseImage", - "name": "chooseImage", - "index": 0 - } - ], + "group": "1,7,0", "style": { "navigationBarTitleText": "chooseImage | 拍照和相册选择" } }, { "path": "pages/API/get-image-info/get-image-info", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.getImageInfo", - "name": "getImageInfo", - "index": 3 - } - ], + "group": "1,7,3", "style": { "navigationBarTitleText": "getImageInfo | 获取图片信息" } }, { "path": "pages/API/compress-image/compress-image", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.compressImage", - "name": "compressImage", - "index": 4 - } - ], + "group": "1,7,4", "style": { "navigationBarTitleText": "compressImage | 压缩图片" } }, { "path": "pages/API/choose-video/choose-video", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.chooseVideo", - "name": "chooseVideo", - "index": 5 - } - ], + "group": "1,7,5", "style": { "navigationBarTitleText": "chooseVideo | 拍摄视频或从相册中选择视频" } @@ -1624,18 +812,7 @@ // #ifndef WEB { "path": "pages/API/save-image-to-photos-album/save-image-to-photos-album", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.saveImageToPhotosAlbum", - "name": "saveImageToPhotosAlbum", - "index": 2 - } - ], + "group": "1,7,2", "style": { "navigationBarTitleText": "saveImageToPhotosAlbum | 保存图片到相册" } @@ -1644,18 +821,7 @@ // #ifndef WEB { "path": "pages/API/save-video-to-photos-album/save-video-to-photos-album", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.saveVideoToPhotosAlbum", - "name": "saveVideoToPhotosAlbum", - "index": 6 - } - ], + "group": "1,7,6", "style": { "navigationBarTitleText": "saveVideoToPhotosAlbum | 保存视频到相册" } @@ -1663,162 +829,63 @@ // #endif { "path": "pages/API/get-video-info/get-video-info", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.getVideoInfo", - "name": "getVideoInfo", - "index": 7 - } - ], + "group": "1,7,7", "style": { "navigationBarTitleText": "getVideoInfo | 获取视频信息" } }, { "path": "pages/API/compress-video/compress-video", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.compressVideo", - "name": "compressVideo", - "index": 8 - } - ], + "group": "1,7,8", "style": { "navigationBarTitleText": "compressVideo | 压缩视频" } }, { "path": "pages/API/get-network-type/get-network-type", - "group": [ - { - "id": "api.network", - "name": "网络", - "index": 5 - }, - { - "id": "api.network.getNetworkType", - "name": "getNetworkType", - "index": 3 - } - ], + "group": "1,5,3", "style": { "navigationBarTitleText": "getNetworkType | 获取网络类型" } }, { "path": "pages/API/page-scroll-to/page-scroll-to", - "group": [ - { - "id": "api.page", - "name": "页面和路由", - "index": 2 - }, - { - "id": "api.page.pageScrollTo", - "name": "pageScrollTo", - "index": 5 - } - ], + "group": "1,2,5", "style": { "navigationBarTitleText": "pageScrollTo | 将页面滚动到指定位置" } }, { "path": "pages/API/event-bus/event-bus", - "group": [ - { - "id": "api.base", - "name": "基础", - "index": 1 - }, - { - "id": "api.base.eventBus", - "name": "eventBus", - "index": 1 - } - ], + "group": "1,1,1", "style": { "navigationBarTitleText": "eventBus | 事件总线" } }, { "path": "pages/API/unicloud/unicloud/cloud-storage", - "group": [ - { - "id": "api.unicloud", - "name": "uniCloud客户端API", - "index": 17 - }, - { - "id": "api.unicloud.cloudStorage", - "name": "cloudStorage", - "index": 2 - } - ], + "group": "1,17,2", "style": { "navigationBarTitleText": "cloud storage | 云存储" } }, { "path": "pages/API/unicloud/unicloud/database", - "group": [ - { - "id": "api.unicloud", - "name": "uniCloud客户端API", - "index": 17 - }, - { - "id": "api.unicloud.database", - "name": "database", - "index": 3 - } - ], + "group": "1,17,3", "style": { "navigationBarTitleText": "database | 数据库" } }, { "path": "pages/API/get-battery-info/get-battery-info", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.getBatteryInfo", - "name": "getBatteryInfo", - "index": 8 - } - ], + "group": "1,6,8", "style": { "navigationBarTitleText": "getBatteryInfo | 获取电池电量信息" } }, { "path": "pages/API/get-window-info/get-window-info", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.getWindowInfo", - "name": "getWindowInfo", - "index": 2 - } - ], + "group": "1,6,2", "style": { "navigationBarTitleText": "getWindowInfo | 获取窗口信息" } @@ -1826,13 +893,7 @@ // #ifndef WEB { "path": "pages/API/element-draw/element-draw", - "group": [ - { - "id": "api.elementInstance", - "name": "Element 实例", - "index": 30 - } - ], + "group": "1,30", "style": { "navigationBarTitleText": "getDrawableContext", "enablePullDownRefresh": false @@ -1842,18 +903,7 @@ // #ifndef WEB { "path": "pages/API/facial-recognition-meta-info/facial-recognition-meta-info", - "group": [ - { - "id": "api.loginVerify", - "name": "登录与认证", - "index": 11 - }, - { - "id": "api.loginVerify.facialRecognitionMetaInfo", - "name": "facialRecognitionMetaInfo", - "index": 1 - } - ], + "group": "1,11,1", "style": { "navigationBarTitleText": "facialRecognitionMetaInfo | 金融级实人认证", "enablePullDownRefresh": false @@ -1863,18 +913,7 @@ // #ifndef WEB { "path": "pages/API/get-univerify-manager/get-univerify-manager", - "group": [ - { - "id": "api.loginVerify", - "name": "登录与认证", - "index": 11 - }, - { - "id": "api.loginVerify.getUniverifyManager", - "name": "getUniverifyManager", - "index": 0 - } - ], + "group": "1,11,0", "style": { "navigationBarTitleText": "getUniverifyManager | App一键登录", "enablePullDownRefresh": false @@ -1883,18 +922,7 @@ // #endif { "path": "pages/API/rpx2px/rpx2px", - "group": [ - { - "id": "api.ui", - "name": "界面", - "index": 4 - }, - { - "id": "api.ui.rpx2px", - "name": "rpx2px", - "index": 6 - } - ], + "group": "1,4,6", "style": { "navigationBarTitleText": "rpx2px | 将rpx单位值转换成px", "enablePullDownRefresh": false @@ -1903,18 +931,7 @@ // #ifndef APP-IOS || WEB { "path": "pages/API/create-request-permission-listener/create-request-permission-listener", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.createRequestPermissionListener", - "name": "createRequestPermissionListener", - "index": 16 - } - ], + "group": "1,6,16", "style": { "navigationBarTitleText": "createRequestPermissionListener | 监听权限申请", "enablePullDownRefresh": false @@ -1924,18 +941,7 @@ // #ifndef WEB { "path": "pages/API/request-payment/request-payment", - "group": [ - { - "id": "api.payment", - "name": "支付", - "index": 14 - }, - { - "id": "api.payment.requestPayment", - "name": "requestPayment", - "index": 0 - } - ], + "group": "1,14,0", "style": { "navigationBarTitleText": "requestPayment | 发起支付", "enablePullDownRefresh": false @@ -1945,18 +951,7 @@ // #ifndef WEB { "path": "pages/API/create-rewarded-video-ad/create-rewarded-video-ad", - "group": [ - { - "id": "api.ad", - "name": "广告", - "index": 12 - }, - { - "id": "api.ad.createRewardedVideoAd", - "name": "createRewardedVideoAd", - "index": 0 - } - ], + "group": "1,12,0", "style": { "navigationBarTitleText": "createRewardedVideoAd | 激励视频广告", "enablePullDownRefresh": false @@ -1965,13 +960,7 @@ // #endif { "path": "pages/API/request-payment/request-payment/request-payment-uni-pay", - "group": [ - { - "id": "api.payment", - "name": "支付", - "index": 14 - } - ], + "group": "1,14", "style": { "navigationBarTitleText": "uni-pay示例", "enablePullDownRefresh": false @@ -1989,18 +978,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/API/make-phone-call/make-phone-call", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.makePhoneCall", - "name": "makePhoneCall", - "index": 9 - } - ], + "group": "1,6,9", "style": { "navigationBarTitleText": "makePhoneCall | 打电话" } @@ -2009,18 +987,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/API/create-inner-audio-context/create-inner-audio-context", - "group": [ - { - "id": "api.media", - "name": "媒体", - "index": 7 - }, - { - "id": "api.media.createInnerAudioContext", - "name": "createInnerAudioContext", - "index": 9 - } - ], + "group": "1,7,9", "style": { "navigationBarTitleText": "createInnerAudioContext | 音频" } @@ -2041,18 +1008,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/API/clipboard/clipboard", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.clipboard", - "name": "clipboard", - "index": 10 - } - ], + "group": "1,6,10", "style": { "navigationBarTitleText": "clipboard | 剪切板" } @@ -2061,18 +1017,7 @@ // #ifndef APP-ANDROID || APP-IOS { "path": "pages/API/compass/compass", - "group": [ - { - "id": "api.device", - "name": "设备", - "index": 6 - }, - { - "id": "api.device.compass", - "name": "compass", - "index": 11 - } - ], + "group": "1,6,11", "style": { "navigationBarTitleText": "compass | 罗盘" } @@ -2081,18 +1026,7 @@ // #ifndef WEB { "path": "pages/API/theme-change/theme-change", - "group": [ - { - "id": "api.ui", - "name": "界面", - "index": 4 - }, - { - "id": "api.ui.themeChange", - "name": "themeChange", - "index": 7 - } - ], + "group": "1,4,7", "style": { "navigationBarTitleText": "themeChange | 主题切换", "enablePullDownRefresh": false @@ -2101,18 +1035,7 @@ // #endif { "path": "pages/API/get-element-by-id/get-element-by-id", - "group": [ - { - "id": "api.dom", - "name": "Dom 节点", - "index": 3 - }, - { - "id": "api.dom.getElementById", - "name": "getElementById", - "index": 0 - } - ], + "group": "1,3,0", "style": { "navigationBarTitleText": "getElementById | 通过 id 获取 element" } @@ -2125,31 +1048,14 @@ }, { "path": "pages/API/create-selector-query/create-selector-query", - "group": [ - { - "id": "api.dom", - "name": "Dom 节点", - "index": 3 - }, - { - "id": "api.dom.createSelectorQuery", - "name": "createSelectorQuery", - "index": 1 - } - ], + "group": "1,3,1", "style": { "navigationBarTitleText": "createSelectorQuery | 创建 SelectorQuery 实例" } }, { "path": "pages/API/resize-observer/resize-observer", - "group": [ - { - "id": "api.elementInstance", - "name": "Element 实例", - "index": 30 - } - ], + "group": "1,30", "style": { "navigationBarTitleText": "UniResizeObserver" } @@ -2163,1041 +1069,434 @@ }, { "path": "pages/CSS/background/background-color", - "group": [ - { - "id": "css.properties.background", - "name": "background", - "index": 8 - }, - { - "id": "css.properties.background.background-color", - "name": "background-color", - "index": 1 - } - ], + "group": "2,8,1", "style": { "navigationBarTitleText": "background-color" } }, { "path": "pages/CSS/background/background-image", - "group": [ - { - "id": "css.properties.background", - "name": "background", - "index": 8 - }, - { - "id": "css.properties.background.background-image", - "name": "background-image", - "index": 2 - } - ], + "group": "2,8,2", "style": { "navigationBarTitleText": "background-image" } }, { "path": "pages/CSS/border/border-bottom", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-bottom", - "name": "border-bottom", - "index": 22 - } - ], + "group": "2,13,22", "style": { "navigationBarTitleText": "border-bottom" } }, { "path": "pages/CSS/border/border-color", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-color", - "name": "border-color", - "index": 11 - } - ], + "group": "2,13,11", "style": { "navigationBarTitleText": "border-color" } }, { "path": "pages/CSS/border/border-left", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-left", - "name": "border-left", - "index": 23 - } - ], + "group": "2,13,23", "style": { "navigationBarTitleText": "border-left" } }, { "path": "pages/CSS/border/border-radius", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-radius", - "name": "border-radius", - "index": 16 - } - ], + "group": "2,13,16", "style": { "navigationBarTitleText": "border-radius" } }, { "path": "pages/CSS/border/border-right", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-right", - "name": "border-right", - "index": 24 - } - ], + "group": "2,13,24", "style": { "navigationBarTitleText": "border-right" } }, { "path": "pages/CSS/border/border-style", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-style", - "name": "border-style", - "index": 1 - } - ], + "group": "2,13,1", "style": { "navigationBarTitleText": "border-style" } }, { "path": "pages/CSS/border/border-top", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-top", - "name": "border-top", - "index": 21 - } - ], + "group": "2,13,21", "style": { "navigationBarTitleText": "border-top" } }, { "path": "pages/CSS/border/border-width", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border-width", - "name": "border-width", - "index": 6 - } - ], + "group": "2,13,6", "style": { "navigationBarTitleText": "border-width" } }, { "path": "pages/CSS/border/border", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - }, - { - "id": "css.properties.border.border", - "name": "border", - "index": 0 - } - ], + "group": "2,13,0", "style": { "navigationBarTitleText": "border" } }, { "path": "pages/CSS/border/complex-border/complex-border", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - } - ], + "group": "2,13", "style": { "navigationBarTitleText": "border属性组合示例" } }, { "path": "pages/CSS/border/dynamic-border", - "group": [ - { - "id": "css.properties.border", - "name": "border", - "index": 13 - } - ], + "group": "2,13", "style": { "navigationBarTitleText": "border动态修改" } }, { "path": "pages/CSS/box-shadow/box-shadow", - "group": [ - { - "id": "css.properties.box-shadow", - "name": "box-shadow", - "index": 15 - } - ], + "group": "2,15", "style": { "navigationBarTitleText": "box-shadow" } }, { "path": "pages/CSS/display/flex", - "group": [ - { - "id": "display", - "name": "display", - "index": 5 - } - ], + "group": "2,5", "style": { "navigationBarTitleText": "flex" } }, { "path": "pages/CSS/display/none", - "group": [ - { - "id": "display", - "name": "display", - "index": 5 - } - ], + "group": "2,5", "style": { "navigationBarTitleText": "none" } }, { "path": "pages/CSS/flex/align-content", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.align-content", - "name": "align-content", - "index": 6 - } - ], + "group": "2,7,6", "style": { "navigationBarTitleText": "align-content" } }, { "path": "pages/CSS/flex/align-items", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.align-items", - "name": "align-items", - "index": 4 - } - ], + "group": "2,7,4", "style": { "navigationBarTitleText": "align-items" } }, { "path": "pages/CSS/flex/flex-basis", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.flex-basis", - "name": "flex-basis", - "index": 9 - } - ], + "group": "2,7,9", "style": { "navigationBarTitleText": "flex-basis" } }, { "path": "pages/CSS/flex/flex-direction", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.flex-direction", - "name": "flex-direction", - "index": 1 - } - ], + "group": "2,7,1", "style": { "navigationBarTitleText": "flex-direction" } - }, - { - "path": "pages/CSS/flex/flex-flow", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.flex-flow", - "name": "flex-flow", - "index": 10 - } - ], + }, + { + "path": "pages/CSS/flex/flex-flow", + "group": "2,7,10", "style": { "navigationBarTitleText": "flex-flow" } }, { "path": "pages/CSS/flex/flex-grow", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.flex-grow", - "name": "flex-grow", - "index": 7 - } - ], + "group": "2,7,7", "style": { "navigationBarTitleText": "flex-grow" } }, { "path": "pages/CSS/flex/flex-shrink", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.flex-shrink", - "name": "flex-shrink", - "index": 8 - } - ], + "group": "2,7,8", "style": { "navigationBarTitleText": "flex-shrink" } }, { "path": "pages/CSS/flex/flex", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.flex", - "name": "flex", - "index": 0 - } - ], + "group": "2,7,0", "style": { "navigationBarTitleText": "flex" } }, { "path": "pages/CSS/flex/justify-content", - "group": [ - { - "id": "css.properties.flex", - "name": "flex", - "index": 7 - }, - { - "id": "css.properties.flex.justify-content", - "name": "justify-content", - "index": 2 - } - ], + "group": "2,7,2", "style": { "navigationBarTitleText": "justify-content" } }, { "path": "pages/CSS/layout/height", - "group": [ - { - "id": "css.properties.height", - "name": "height", - "index": 1 - }, - { - "id": "css.properties.height.height", - "name": "height", - "index": 0 - } - ], + "group": "2,1,0", "style": { "navigationBarTitleText": "height" } }, { "path": "pages/CSS/layout/max-height", - "group": [ - { - "id": "css.properties.height", - "name": "height", - "index": 1 - }, - { - "id": "css.properties.height.max-height", - "name": "max-height", - "index": 2 - } - ], + "group": "2,1,2", "style": { "navigationBarTitleText": "max-height" } }, { "path": "pages/CSS/layout/max-width", - "group": [ - { - "id": "css.properties.width", - "name": "width", - "index": 0 - }, - { - "id": "css.properties.width.max-width", - "name": "max-width", - "index": 2 - } - ], + "group": "2,0,2", "style": { "navigationBarTitleText": "max-width" } }, { "path": "pages/CSS/layout/min-height", - "group": [ - { - "id": "css.properties.height", - "name": "height", - "index": 1 - }, - { - "id": "css.properties.height.min-height", - "name": "min-height", - "index": 1 - } - ], + "group": "2,1,1", "style": { "navigationBarTitleText": "min-height" } }, { "path": "pages/CSS/layout/min-width", - "group": [ - { - "id": "css.properties.width", - "name": "width", - "index": 0 - }, - { - "id": "css.properties.width.min-width", - "name": "min-width", - "index": 1 - } - ], + "group": "2,0,1", "style": { "navigationBarTitleText": "min-width" } }, { "path": "pages/CSS/layout/position", - "group": [ - { - "id": "css.properties.position", - "name": "position", - "index": 9 - }, - { - "id": "css.properties.position.position", - "name": "position", - "index": 0 - } - ], + "group": "2,9,0", "style": { "navigationBarTitleText": "position" } }, { "path": "pages/CSS/layout/width", - "group": [ - { - "id": "css.properties.width", - "name": "width", - "index": 0 - }, - { - "id": "css.properties.width.width", - "name": "width", - "index": 0 - } - ], + "group": "2,0,0", "style": { "navigationBarTitleText": "width" } }, { "path": "pages/CSS/layout/z-index", - "group": [ - { - "id": "css.properties.z-index", - "name": "z-index", - "index": 10 - } - ], + "group": "2,10", "style": { "navigationBarTitleText": "z-index" } }, { "path": "pages/CSS/layout/visibility", - "group": [ - { - "id": "css.properties.visibility", - "name": "visibility", - "index": 6 - } - ], + "group": "2,6", "style": { "navigationBarTitleText": "visibility" } }, { "path": "pages/CSS/margin/margin-bottom", - "group": [ - { - "id": "css.properties.margin", - "name": "margin", - "index": 2 - }, - { - "id": "css.properties.margin.margin-bottom", - "name": "margin-bottom", - "index": 2 - } - ], + "group": "2,2,2", "style": { "navigationBarTitleText": "margin-bottom" } }, { "path": "pages/CSS/margin/margin-left", - "group": [ - { - "id": "css.properties.margin", - "name": "margin", - "index": 2 - }, - { - "id": "css.properties.margin.margin-left", - "name": "margin-left", - "index": 3 - } - ], + "group": "2,2,3", "style": { "navigationBarTitleText": "margin-left" } }, { "path": "pages/CSS/margin/margin-right", - "group": [ - { - "id": "css.properties.margin", - "name": "margin", - "index": 2 - }, - { - "id": "css.properties.margin.margin-right", - "name": "margin-right", - "index": 4 - } - ], + "group": "2,2,4", "style": { "navigationBarTitleText": "margin-right" } }, { "path": "pages/CSS/margin/margin-top", - "group": [ - { - "id": "css.properties.margin", - "name": "margin", - "index": 2 - }, - { - "id": "css.properties.margin.margin-top", - "name": "margin-top", - "index": 1 - } - ], + "group": "2,2,1", "style": { "navigationBarTitleText": "margin-top" } }, { "path": "pages/CSS/margin/margin", - "group": [ - { - "id": "css.properties.margin", - "name": "margin", - "index": 2 - }, - { - "id": "css.properties.margin.margin", - "name": "margin", - "index": 0 - } - ], + "group": "2,2,0", "style": { "navigationBarTitleText": "margin" } }, { "path": "pages/CSS/overflow/overflow", - "group": [ - { - "id": "css.properties.overflow", - "name": "overflow", - "index": 11 - } - ], + "group": "2,11", "style": { "navigationBarTitleText": "overflow" } }, { "path": "pages/CSS/padding/padding-bottom", - "group": [ - { - "id": "css.properties.padding", - "name": "padding", - "index": 3 - }, - { - "id": "css.properties.padding.padding-bottom", - "name": "padding-bottom", - "index": 2 - } - ], + "group": "2,3,2", "style": { "navigationBarTitleText": "padding-bottom" } }, { "path": "pages/CSS/padding/padding-left", - "group": [ - { - "id": "css.properties.padding", - "name": "padding", - "index": 3 - }, - { - "id": "css.properties.padding.padding-left", - "name": "padding-left", - "index": 3 - } - ], + "group": "2,3,3", "style": { "navigationBarTitleText": "padding-left" } }, { "path": "pages/CSS/padding/padding-right", - "group": [ - { - "id": "css.properties.padding", - "name": "padding", - "index": 3 - }, - { - "id": "css.properties.padding.padding-right", - "name": "padding-right", - "index": 4 - } - ], + "group": "2,3,4", "style": { "navigationBarTitleText": "padding-right" } }, { "path": "pages/CSS/padding/padding-top", - "group": [ - { - "id": "css.properties.padding", - "name": "padding", - "index": 3 - }, - { - "id": "css.properties.padding.padding-top", - "name": "padding-top", - "index": 1 - } - ], + "group": "2,3,1", "style": { "navigationBarTitleText": "padding-top" } }, { "path": "pages/CSS/padding/padding", - "group": [ - { - "id": "css.properties.padding", - "name": "padding", - "index": 3 - }, - { - "id": "css.properties.padding.padding", - "name": "padding", - "index": 0 - } - ], + "group": "2,3,0", "style": { "navigationBarTitleText": "padding" } }, { "path": "pages/CSS/text/color", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.color", - "name": "color", - "index": 0 - } - ], + "group": "2,14,0", "style": { "navigationBarTitleText": "color" } }, { "path": "pages/CSS/text/font-family", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.font-family", - "name": "font-family", - "index": 2 - } - ], + "group": "2,14,2", "style": { "navigationBarTitleText": "font-family" } }, { "path": "pages/CSS/text/font-size", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.font-size", - "name": "font-size", - "index": 1 - } - ], + "group": "2,14,1", "style": { "navigationBarTitleText": "font-size" } }, { "path": "pages/CSS/text/font-style", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.font-style", - "name": "font-style", - "index": 3 - } - ], + "group": "2,14,3", "style": { "navigationBarTitleText": "font-style" } }, { "path": "pages/CSS/text/font-weight", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.font-weight", - "name": "font-weight", - "index": 4 - } - ], + "group": "2,14,4", "style": { "navigationBarTitleText": "font-weight" } }, { "path": "pages/CSS/text/letter-spacing", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.letter-spacing", - "name": "letter-spacing", - "index": 14 - } - ], + "group": "2,14,14", "style": { "navigationBarTitleText": "letter-spacing" } }, { "path": "pages/CSS/text/line-height", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.line-height", - "name": "line-height", - "index": 12 - } - ], + "group": "2,14,12", "style": { "navigationBarTitleText": "line-height" } }, { "path": "pages/CSS/text/text-align", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.text-align", - "name": "text-align", - "index": 10 - } - ], + "group": "2,14,10", "style": { "navigationBarTitleText": "text-align" } }, { "path": "pages/CSS/text/text-overflow", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.text-overflow", - "name": "text-overflow", - "index": 11 - } - ], + "group": "2,14,11", "style": { "navigationBarTitleText": "text-overflow" } }, { "path": "pages/CSS/text/text-decoration-line", - "group": [ - { - "id": "css.properties.text", - "name": "text", - "index": 14 - }, - { - "id": "css.properties.text.text-decoration-line", - "name": "text-decoration-line", - "index": 6 - } - ], + "group": "2,14,6", "style": { "navigationBarTitleText": "text-decoration-line" } }, { "path": "pages/CSS/transition/transition", - "group": [ - { - "id": "css.properties.transition", - "name": "transition", - "index": 16 - } - ], + "group": "2,16", "style": { "navigationBarTitleText": "transition" } }, { "path": "pages/CSS/pointer-events/pointer-events", - "group": [ - { - "id": "css.properties.pointer-events", - "name": "pointer-events", - "index": 18 - } - ], + "group": "2,18", "style": { "navigationBarTitleText": "pointer-events" } }, { "path": "pages/CSS/transform/translate", - "group": [ - { - "id": "css.properties.transform", - "name": "transform", - "index": 17 - } - ], + "group": "2,17", "style": { "navigationBarTitleText": "translate" } }, { "path": "pages/CSS/transform/scale", - "group": [ - { - "id": "css.properties.transform", - "name": "transform", - "index": 17 - } - ], + "group": "2,17", "style": { "navigationBarTitleText": "scale" } }, { "path": "pages/CSS/transform/rotate", - "group": [ - { - "id": "css.properties.transform", - "name": "transform", - "index": 17 - } - ], + "group": "2,17", "style": { "navigationBarTitleText": "rotate" } }, { "path": "pages/CSS/variable/variable", - "group": [ - { - "id": "variable", - "name": "variable", - "index": 30 - } - ], + "group": "2,20", "style": { "navigationBarTitleText": "css 变量" } }, { "path": "pages/CSS/overflow/overflow-visible-event", - "group": [ - { - "id": "overflow", - "name": "overflow", - "index": 11 - } - ], + "group": "2,11", "style": { "navigationBarTitleText": "overflow-visible-event" } @@ -3448,5 +1747,865 @@ "query": "" //启动参数,在页面的onLoad函数里面得到 } ] - } + }, + "groups": [ + { + "id": "component", + "name": "组件", + "children": [ + { + "id": "公共属性和事件", + "name": "公共属性和事件" + }, + { + "id": "视图容器", + "name": "视图容器", + "children": [ + { + "id": "view", + "name": "view" + }, + { + "id": "scroll-view", + "name": "scroll-view" + }, + { + "id": "swiper", + "name": "swiper" + }, + null, + null, + { + "id": "movable-view", + "name": "movable-view" + }, + { + "id": "cover-view", + "name": "cover-view" + }, + null, + { + "id": "list-view", + "name": "list-view" + }, + { + "id": "sticky", + "name": "sticky", + "children": [ + { + "id": "sticky-header", + "name": "sticky-header" + }, + { + "id": "sticky-section", + "name": "sticky-section" + } + ] + }, + { + "id": "nested-scroll", + "name": "nested-scroll", + "children": [ + { + "id": "nested-scroll-header", + "name": "nested-scroll-header" + }, + { + "id": "nested-scroll-body", + "name": "nested-scroll-body" + } + ] + } + ] + }, + { + "id": "基础内容", + "name": "基础内容", + "children": [ + null, + { + "id": "text", + "name": "text" + }, + { + "id": "rich-text", + "name": "rich-text" + }, + { + "id": "progress", + "name": "progress" + } + ] + }, + { + "id": "表单组件", + "name": "表单组件", + "children": [ + { + "id": "button", + "name": "button" + }, + { + "id": "checkbox", + "name": "checkbox" + }, + { + "id": "form", + "name": "form" + }, + { + "id": "input", + "name": "input" + }, + { + "id": "editor", + "name": "editor" + }, + { + "id": "label", + "name": "label" + }, + { + "id": "picker", + "name": "picker" + }, + { + "id": "picker-view", + "name": "picker-view" + }, + { + "id": "radio", + "name": "radio" + }, + { + "id": "slider", + "name": "slider" + }, + { + "id": "switch", + "name": "switch" + }, + { + "id": "textarea", + "name": "textarea" + } + ] + }, + { + "id": "导航", + "name": "导航", + "children": [ + { + "id": "navigator", + "name": "navigator" + } + ] + }, + { + "id": "媒体组件", + "name": "媒体组件", + "children": [ + null, + { + "id": "image", + "name": "image" + }, + { + "id": "video", + "name": "video" + } + ] + }, + { + "id": "地图", + "name": "地图" + }, + { + "id": "画布", + "name": "画布" + }, + { + "id": "网页", + "name": "网页" + }, + null, + { + "id": "unicloud", + "name": "unicloud" + } + ] + }, + { + "id": "API", + "name": "API", + "children": [ + { + "id": "全局", + "name": "全局", + "children": [ + { + "id": "getApp", + "name": "getApp" + }, + { + "id": "getCurrentPages", + "name": "getCurrentPages" + } + ] + }, + { + "id": "基础", + "name": "基础", + "children": [ + { + "id": "env", + "name": "env" + }, + { + "id": "eventBus", + "name": "eventBus" + }, + null, + { + "id": "interceptor", + "name": "interceptor" + }, + { + "id": "getLaunchOptionsSync", + "name": "getLaunchOptionsSync" + }, + { + "id": "exit", + "name": "exit" + } + ] + }, + { + "id": "页面和路由", + "name": "页面和路由", + "children": [ + { + "id": "navigator", + "name": "navigator" + }, + { + "id": "setNavigationBarColor", + "name": "setNavigationBarColor" + }, + { + "id": "setNavigationBarTitle", + "name": "setNavigationBarTitle" + }, + null, + { + "id": "pullDownRefresh", + "name": "pullDownRefresh" + }, + { + "id": "pageScrollTo", + "name": "pageScrollTo" + } + ] + }, + { + "id": "Dom 节点", + "name": "Dom 节点", + "children": [ + { + "id": "getElementById", + "name": "getElementById" + }, + { + "id": "createSelectorQuery", + "name": "createSelectorQuery" + } + ] + }, + { + "id": "界面", + "name": "界面", + "children": [ + null, + { + "id": "showActionSheet", + "name": "showActionSheet" + }, + { + "id": "showModal", + "name": "showModal" + }, + { + "id": "showLoading", + "name": "showLoading" + }, + { + "id": "showToast", + "name": "showToast" + }, + { + "id": "loadFontFace", + "name": "loadFontFace" + }, + { + "id": "rpx2px", + "name": "rpx2px" + }, + { + "id": "themeChange", + "name": "themeChange" + } + ] + }, + { + "id": "网络", + "name": "网络", + "children": [ + { + "id": "request", + "name": "request" + }, + { + "id": "uploadFile", + "name": "uploadFile" + }, + { + "id": "downloadFile", + "name": "downloadFile" + }, + { + "id": "getNetworkType", + "name": "getNetworkType" + }, + { + "id": "websocket", + "name": "websocket" + } + ] + }, + { + "id": "设备", + "name": "设备", + "children": [ + { + "id": "getSystemInfo", + "name": "getSystemInfo" + }, + { + "id": "getDeviceInfo", + "name": "getDeviceInfo" + }, + { + "id": "getWindowInfo", + "name": "getWindowInfo" + }, + { + "id": "getAppBaseInfo", + "name": "getAppBaseInfo" + }, + { + "id": "getAppAuthorizeSetting", + "name": "getAppAuthorizeSetting" + }, + { + "id": "getSystemSetting", + "name": "getSystemSetting" + }, + { + "id": "installApk", + "name": "installApk" + }, + null, + { + "id": "getBatteryInfo", + "name": "getBatteryInfo" + }, + { + "id": "makePhoneCall", + "name": "makePhoneCall" + }, + { + "id": "clipboard", + "name": "clipboard" + }, + { + "id": "compass", + "name": "compass" + }, + null, + null, + null, + null, + { + "id": "createRequestPermissionListener", + "name": "createRequestPermissionListener" + } + ] + }, + { + "id": "媒体", + "name": "媒体", + "children": [ + { + "id": "chooseImage", + "name": "chooseImage" + }, + { + "id": "previewImage", + "name": "previewImage" + }, + { + "id": "saveImageToPhotosAlbum", + "name": "saveImageToPhotosAlbum" + }, + { + "id": "getImageInfo", + "name": "getImageInfo" + }, + { + "id": "compressImage", + "name": "compressImage" + }, + { + "id": "chooseVideo", + "name": "chooseVideo" + }, + { + "id": "saveVideoToPhotosAlbum", + "name": "saveVideoToPhotosAlbum" + }, + { + "id": "getVideoInfo", + "name": "getVideoInfo" + }, + { + "id": "compressVideo", + "name": "compressVideo" + }, + { + "id": "createInnerAudioContext", + "name": "createInnerAudioContext" + } + ] + }, + { + "id": "位置", + "name": "位置", + "children": [ + { + "id": "getLocation", + "name": "getLocation" + }, + { + "id": "openLocation", + "name": "openLocation" + }, + { + "id": "chooseLocation", + "name": "chooseLocation" + } + ] + }, + { + "id": "数据存储", + "name": "数据存储" + }, + { + "id": "文件", + "name": "文件", + "children": [ + { + "id": "getFileSystemManager", + "name": "getFileSystemManager" + } + ] + }, + { + "id": "登录与认证", + "name": "登录与认证", + "children": [ + { + "id": "getUniverifyManager", + "name": "getUniverifyManager" + }, + { + "id": "facialRecognitionMetaInfo", + "name": "facialRecognitionMetaInfo" + } + ] + }, + { + "id": "广告", + "name": "广告", + "children": [ + { + "id": "createRewardedVideoAd", + "name": "createRewardedVideoAd" + } + ] + }, + null, + { + "id": "支付", + "name": "支付", + "children": [ + { + "id": "requestPayment", + "name": "requestPayment" + } + ] + }, + null, + null, + { + "id": "uniCloud客户端API", + "name": "uniCloud客户端API", + "children": [ + { + "id": "cloudFunction", + "name": "cloudFunction" + }, + { + "id": "cloudObject", + "name": "cloudObject" + }, + { + "id": "cloudStorage", + "name": "cloudStorage" + }, + { + "id": "database", + "name": "database" + } + ] + }, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + { + "id": "Element 实例", + "name": "Element 实例" + } + ] + }, + { + "id": "CSS", + "name": "组件", + "children": [ + { + "id": "width", + "name": "width", + "children": [ + { + "id": "width", + "name": "width" + }, + { + "id": "min-width", + "name": "min-width" + }, + { + "id": "max-width", + "name": "max-width" + } + ] + }, + { + "id": "height", + "name": "height", + "children": [ + { + "id": "height", + "name": "height" + }, + { + "id": "min-height", + "name": "min-height" + }, + { + "id": "max-height", + "name": "max-height" + } + ] + }, + { + "id": "margin", + "name": "margin", + "children": [ + { + "id": "margin", + "name": "margin" + }, + { + "id": "margin-top", + "name": "margin-top" + }, + { + "id": "margin-bottom", + "name": "margin-bottom" + }, + { + "id": "margin-left", + "name": "margin-left" + }, + { + "id": "margin-right", + "name": "margin-right" + } + ] + }, + { + "id": "padding", + "name": "padding", + "children": [ + { + "id": "padding", + "name": "padding" + }, + { + "id": "padding-top", + "name": "padding-top" + }, + { + "id": "padding-bottom", + "name": "padding-bottom" + }, + { + "id": "padding-left", + "name": "padding-left" + }, + { + "id": "padding-right", + "name": "padding-right" + } + ] + }, + null, + { + "id": "display", + "name": "display" + }, + { + "id": "visibility", + "name": "visibility" + }, + { + "id": "flex", + "name": "flex", + "children": [ + { + "id": "flex", + "name": "flex" + }, + { + "id": "flex-direction", + "name": "flex-direction" + }, + { + "id": "justify-content", + "name": "justify-content" + }, + null, + { + "id": "align-items", + "name": "align-items" + }, + null, + { + "id": "align-content", + "name": "align-content" + }, + { + "id": "flex-grow", + "name": "flex-grow" + }, + { + "id": "flex-shrink", + "name": "flex-shrink" + }, + { + "id": "flex-basis", + "name": "flex-basis" + }, + { + "id": "flex-flow", + "name": "flex-flow" + } + ] + }, + { + "id": "background", + "name": "background", + "children": [ + null, + { + "id": "background-color", + "name": "background-color" + }, + { + "id": "background-image", + "name": "background-image" + } + ] + }, + { + "id": "position", + "name": "position", + "children": [ + { + "id": "position", + "name": "position" + } + ] + }, + { + "id": "z-index", + "name": "z-index" + }, + { + "id": "overflow", + "name": "overflow" + }, + null, + { + "id": "border", + "name": "border", + "children": [ + { + "id": "border", + "name": "border" + }, + { + "id": "border-style", + "name": "border-style" + }, + null, + null, + null, + null, + { + "id": "border-width", + "name": "border-width" + }, + null, + null, + null, + null, + { + "id": "border-color", + "name": "border-color" + }, + null, + null, + null, + null, + { + "id": "border-radius", + "name": "border-radius" + }, + null, + null, + null, + null, + { + "id": "border-top", + "name": "border-top" + }, + { + "id": "border-bottom", + "name": "border-bottom" + }, + { + "id": "border-left", + "name": "border-left" + }, + { + "id": "border-right", + "name": "border-right" + } + ] + }, + { + "id": "text", + "name": "text", + "children": [ + { + "id": "color", + "name": "color" + }, + { + "id": "font-size", + "name": "font-size" + }, + { + "id": "font-family", + "name": "font-family" + }, + { + "id": "font-style", + "name": "font-style" + }, + { + "id": "font-weight", + "name": "font-weight" + }, + null, + { + "id": "text-decoration-line", + "name": "text-decoration-line" + }, + null, + null, + null, + { + "id": "text-align", + "name": "text-align" + }, + { + "id": "text-overflow", + "name": "text-overflow" + }, + { + "id": "line-height", + "name": "line-height" + }, + null, + { + "id": "letter-spacing", + "name": "letter-spacing" + } + ] + }, + { + "id": "box-shadow", + "name": "box-shadow" + }, + { + "id": "transition", + "name": "transition" + }, + { + "id": "transform", + "name": "transform" + }, + { + "id": "pointer-events", + "name": "pointer-events" + }, + null, + { + "id": "variable", + "name": "variable" + } + ] + } + ] } \ No newline at end of file -- GitLab