提交 eb92c88c 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

wip: 基于 modules.json 生成 tabBar 页面目录

上级 ef200a1a
......@@ -29,19 +29,19 @@
<uni-collapse>
<uni-collapse-item v-for="menuItem in menu" :key="menuItem!.id" :title="menuItem!.name"
class="item">
<view v-for="page in menuItem!.pages" :key="page.path" class="uni-navigate-item" hover-class="is--active"
@click="goPage(`/${page.path}`)">
<view v-for="page in menuItem!.pages" :key="page!.path" class="uni-navigate-item" hover-class="is--active"
@click="goPage(`/${page!.path}`)">
<text class="uni-navigate-text">{{
page.style["navigationBarTitleText"]
page!.style["navigationBarTitleText"]
}}</text>
<image :src="arrowRightIcon" class="uni-icon-size"></image>
</view>
<uni-collapse style="width: 100%" v-for="childMenu in menuItem!.children" :key="childMenu!.id">
<uni-collapse-item :title="childMenu!.name" class="item" style="margin-bottom: 0">
<view class="uni-navigate-item" hover-class="is--active" v-for="childPage in childMenu!.pages"
:key="childPage.path" @click="goPage(`/${childPage.path}`)">
:key="childPage!.path" @click="goPage(`/${childPage!.path}`)">
<text class="uni-navigate-text">{{
childPage.style["navigationBarTitleText"]
childPage!.style["navigationBarTitleText"]
}}</text>
<image :src="arrowRightIcon" class="uni-icon-size"></image>
</view>
......
......@@ -28,19 +28,19 @@
<uni-collapse>
<uni-collapse-item v-for="menuItem in menu" :key="menuItem!.id" :title="menuItem!.name"
class="item">
<view v-for="page in menuItem!.pages" :key="page.path" class="uni-navigate-item" hover-class="is--active"
@click="goPage(`/${page.path}`)">
<view v-for="page in menuItem!.pages" :key="page!.path" class="uni-navigate-item" hover-class="is--active"
@click="goPage(`/${page!.path}`)">
<text class="uni-navigate-text">{{
page.style["navigationBarTitleText"]
page!.style["navigationBarTitleText"]
}}</text>
<image :src="arrowRightIcon" class="uni-icon-size"></image>
</view>
<uni-collapse style="width: 100%" v-for="childMenu in menuItem!.children" :key="childMenu!.id">
<uni-collapse-item :title="childMenu!.name" class="item" style="margin-bottom: 0">
<view class="uni-navigate-item" hover-class="is--active" v-for="childPage in childMenu!.pages"
:key="childPage.path" @click="goPage(`/${childPage.path}`)">
:key="childPage!.path" @click="goPage(`/${childPage!.path}`)">
<text class="uni-navigate-text">{{
childPage.style["navigationBarTitleText"]
childPage!.style["navigationBarTitleText"]
}}</text>
<image :src="arrowRightIcon" class="uni-icon-size"></image>
</view>
......
......@@ -28,19 +28,19 @@
<uni-collapse>
<uni-collapse-item v-for="menuItem in menu" :key="menuItem!.id" :title="menuItem!.name"
class="item">
<view v-for="page in menuItem!.pages" :key="page.path" class="uni-navigate-item" hover-class="is--active"
@click="goPage(`/${page.path}`)">
<view v-for="page in menuItem!.pages" :key="page!.path" class="uni-navigate-item" hover-class="is--active"
@click="goPage(`/${page!.path}`)">
<text class="uni-navigate-text">{{
page.style["navigationBarTitleText"]
page!.style["navigationBarTitleText"]
}}</text>
<image :src="arrowRightIcon" class="uni-icon-size"></image>
</view>
<uni-collapse style="width: 100%" v-for="childMenu in menuItem!.children" :key="childMenu!.id">
<uni-collapse-item :title="childMenu!.name" class="item" style="margin-bottom: 0">
<view class="uni-navigate-item" hover-class="is--active" v-for="childPage in childMenu!.pages"
:key="childPage.path" @click="goPage(`/${childPage.path}`)">
:key="childPage!.path" @click="goPage(`/${childPage!.path}`)">
<text class="uni-navigate-text">{{
childPage.style["navigationBarTitleText"]
childPage!.style["navigationBarTitleText"]
}}</text>
<image :src="arrowRightIcon" class="uni-icon-size"></image>
</view>
......
......@@ -17,22 +17,28 @@ export type MenuItem = {
name: string,
index: number,
children: (MenuItem | null)[],
pages: Page[]
pages: (Page | null)[]
}
export function generateMenu(tabBarType: string): (MenuItem | null)[] {
const res: (MenuItem | null)[] = []
let res: (MenuItem | null)[] = []
const tabBarPages = JSON.parse<Page[]>(JSON.stringify(pages))!.filter((page: Page): boolean => page.path.startsWith(tabBarType) && hasPageGroup(page.group))
tabBarPages.forEach(page => {
let menuItemArr: (MenuItem | null)[] = res
let currentMenu: MenuItem | null = null
const lastGroup = page.group![page.group!.length - 1]
let hasPageGroup = false
if (page.path.endsWith(camelToDash(lastGroup.name)) && page.group!.length > 1) {
hasPageGroup = true
page.group!.pop()
}
const groupLength = page.group!.length
page.group!.forEach((group, groupIndex) => {
const { index, id, name } = group
const validIndex = isNumber(index) ? index! : menuItemArr.length
fillArrayWithNull(menuItemArr, validIndex)
fillMenuArrayWithNull(menuItemArr, validIndex)
if (menuItemArr[validIndex] == null) {
menuItemArr[validIndex] = {
......@@ -40,7 +46,7 @@ export function generateMenu(tabBarType: string): (MenuItem | null)[] {
name,
index: validIndex,
children: [] as (MenuItem | null)[],
pages: [] as Page[]
pages: [] as (Page | null)[]
} as MenuItem
}
......@@ -50,9 +56,19 @@ export function generateMenu(tabBarType: string): (MenuItem | null)[] {
menuItemArr = menuItemArr[validIndex]!.children as (MenuItem | null)[]
}
})
if (hasPageGroup) {
const pageIndex = isNumber(lastGroup.index) ? lastGroup.index! : currentMenu!.pages.length
fillPageArrayWithNull(currentMenu!.pages, pageIndex)
if (currentMenu!.pages[pageIndex] == null) {
currentMenu!.pages[pageIndex] = page
}else{
currentMenu!.pages.push(page)
}
} else {
currentMenu!.pages.push(page)
}
})
return removeNullItem(res)
}
......@@ -74,7 +90,18 @@ function isNumber(value: number | null): boolean {
// #endif
}
function fillArrayWithNull(arr: (MenuItem | null)[], index: number): void {
function camelToDash(camelStr: string): string {
return camelStr.replace(/([A-Z])/g, '-$1').toLowerCase()
}
function fillMenuArrayWithNull(arr: (MenuItem | null)[], index: number): void {
const len = arr.length
for (let i = 0;i <= index - (len - 1);i++) {
arr.push(null)
}
}
function fillPageArrayWithNull(arr: (Page | null)[], index: number): void {
const len = arr.length
for (let i = 0;i <= index - (len - 1);i++) {
arr.push(null)
......@@ -86,10 +113,12 @@ function removeNullItem(arr: (MenuItem | null)[]): (MenuItem | null)[] {
res.forEach(menuItem => {
addSetTabBarPage(menuItem!)
// #ifdef APP-ANDROID
menuItem!.children = removeNullItem(menuItem.children)
menuItem.children = removeNullItem(menuItem.children)
menuItem.pages = menuItem.pages.filter((item: Page | null): boolean => item !== null)
// #endif
// #ifndef APP-ANDROID
menuItem!.children = removeNullItem(menuItem!.children)
menuItem!.pages = menuItem!.pages.filter((item: Page | null): boolean => item !== null)
// #endif
})
return res
......
......@@ -14,6 +14,11 @@
"id": "component.view-container",
"name": "视图容器",
"index": 1
},
{
"id": "component.view-container.view",
"name": "view",
"index": 0
}
],
"style": {
......@@ -27,6 +32,11 @@
"id": "component.view-container",
"name": "视图容器",
"index": 1
},
{
"id": "component.view-container.scroll-view",
"name": "scroll-view",
"index": 1
}
],
"style": {
......@@ -64,6 +74,11 @@
"id": "component.view-container",
"name": "视图容器",
"index": 1
},
{
"id": "component.view-container.swiper",
"name": "swiper",
"index": 2
}
],
"style": {
......@@ -77,6 +92,11 @@
"id": "component.view-container",
"name": "视图容器",
"index": 1
},
{
"id": "component.view-container.list-view",
"name": "list-view",
"index": 8
}
],
"style": {
......@@ -127,6 +147,11 @@
"id": "component.view-container.sticky",
"name": "sticky",
"index": 9
},
{
"id": "component.view-container.sticky.sticky-section",
"name": "sticky-section",
"index": 1
}
],
"style": {
......@@ -145,6 +170,11 @@
"id": "component.view-container.sticky",
"name": "sticky",
"index": 9
},
{
"id": "component.view-container.sticky.sticky-header",
"name": "sticky-header",
"index": 0
}
],
"style": {
......@@ -159,6 +189,11 @@
"id": "component.basic-content",
"name": "基础内容",
"index": 2
},
{
"id": "component.basic-content.text",
"name": "text",
"index": 1
}
],
"style": {
......@@ -178,6 +213,11 @@
"id": "component.basic-content",
"name": "基础内容",
"index": 2
},
{
"id": "component.basic-content.rich-text",
"name": "rich-text",
"index": 2
}
],
"style": {
......@@ -203,6 +243,11 @@
"id": "component.basic-content",
"name": "基础内容",
"index": 2
},
{
"id": "component.basic-content.progress",
"name": "progress",
"index": 3
}
],
"style": {
......@@ -216,6 +261,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.form",
"name": "form",
"index": 2
}
],
"style": {
......@@ -229,6 +279,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.button",
"name": "button",
"index": 0
}
],
"style": {
......@@ -248,6 +303,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.radio",
"name": "radio",
"index": 8
}
],
"style": {
......@@ -261,6 +321,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.checkbox",
"name": "checkbox",
"index": 1
}
],
"style": {
......@@ -274,6 +339,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.input",
"name": "input",
"index": 3
}
],
"style": {
......@@ -287,6 +357,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.textarea",
"name": "textarea",
"index": 11
}
],
"style": {
......@@ -300,6 +375,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.slider",
"name": "slider",
"index": 9
}
],
"style": {
......@@ -319,6 +399,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.picker-view",
"name": "picker-view",
"index": 7
}
],
"style": {
......@@ -332,6 +417,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.switch",
"name": "switch",
"index": 10
}
],
"style": {
......@@ -345,6 +435,11 @@
"id": "component.media",
"name": "媒体组件",
"index": 5
},
{
"id": "component.media.image",
"name": "image",
"index": 1
}
],
"style": {
......@@ -382,6 +477,11 @@
"id": "component.media",
"name": "媒体组件",
"index": 5
},
{
"id": "component.media.video",
"name": "video",
"index": 2
}
],
"style": {
......@@ -401,6 +501,11 @@
"id": "component.navigation",
"name": "navigation",
"index": 4
},
{
"id": "component.navigation.navigator",
"name": "navigator",
"index": 0
}
],
"style": {
......@@ -451,7 +556,7 @@
{
"id": "component.unicloud",
"name": "unicloud",
"index": 9
"index": 10
}
],
"style": {
......@@ -483,7 +588,7 @@
{
"id": "component.unicloud",
"name": "unicloud",
"index": 9
"index": 10
}
],
"style": {
......@@ -555,6 +660,11 @@
"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
}
],
"style": {
......@@ -575,6 +685,11 @@
"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
}
],
"style": {
......@@ -597,10 +712,15 @@
"id": "component.view-container",
"name": "视图容器",
"index": 1
},
{
"id": "component.view-container.movable-view",
"name": "movable-view",
"index": 5
}
],
"style": {
"navigationBarTitleText": "movable-area"
"navigationBarTitleText": "movable-view"
}
},
// #endif
......@@ -612,6 +732,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.label",
"name": "label",
"index": 5
}
],
"style": {
......@@ -627,6 +752,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.picker",
"name": "picker",
"index": 6
}
],
"style": {
......@@ -657,6 +787,11 @@
"id": "component.view-container",
"name": "视图容器",
"index": 1
},
{
"id": "component.view-container.cover-view",
"name": "cover-view",
"index": 6
}
],
"style": {
......@@ -672,6 +807,11 @@
"id": "component.form-component",
"name": "表单组件",
"index": 3
},
{
"id": "component.form-component.editor",
"name": "editor",
"index": 4
}
],
"style": {
......@@ -687,6 +827,11 @@
"id": "api.location",
"name": "位置",
"index": 8
},
{
"id": "api.location.openLocation",
"name": "openLocation",
"index": 1
}
],
"style": {
......@@ -702,6 +847,11 @@
"id": "api.location",
"name": "位置",
"index": 8
},
{
"id": "api.location.chooseLocation",
"name": "chooseLocation",
"index": 2
}
],
"style": {
......@@ -760,6 +910,11 @@
"id": "api.global",
"name": "全局",
"index": 0
},
{
"id": "api.global.getApp",
"name": "getApp",
"index": 0
}
],
"style": {
......@@ -774,6 +929,11 @@
"id": "api.base",
"name": "基础",
"index": 1
},
{
"id": "api.base.exit",
"name": "exit",
"index": 5
}
],
"style": {
......@@ -789,6 +949,11 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.installApk",
"name": "installApk",
"index": 6
}
],
"style": {
......@@ -804,6 +969,11 @@
"id": "api.global",
"name": "全局",
"index": 0
},
{
"id": "api.global.getCurrentPages",
"name": "getCurrentPages",
"index": 1
}
],
"style": {
......@@ -825,10 +995,15 @@
"id": "api.base",
"name": "基础",
"index": 1
},
{
"id": "api.base.getLaunchOptionsSync",
"name": "getLaunchOptionsSync",
"index": 4
}
],
"style": {
"navigationBarTitleText": "获取启动参数"
"navigationBarTitleText": "getLaunchOptionsSync | 获取启动参数"
}
},
{
......@@ -838,10 +1013,15 @@
"id": "api.page",
"name": "页面和路由",
"index": 2
},
{
"id": "api.page.navigator",
"name": "navigator",
"index": 0
}
],
"style": {
"navigationBarTitleText": "页面跳转"
"navigationBarTitleText": "navigator | 页面跳转"
}
},
{
......@@ -851,10 +1031,15 @@
"id": "api.page",
"name": "页面和路由",
"index": 2
},
{
"id": "api.page.setNavigationBarColor",
"name": "setNavigationBarColor",
"index": 1
}
],
"style": {
"navigationBarTitleText": "设置导航条颜色"
"navigationBarTitleText": "setNavigationBarColor | 设置导航条颜色"
}
},
{
......@@ -864,10 +1049,15 @@
"id": "api.page",
"name": "页面和路由",
"index": 2
},
{
"id": "api.page.setNavigationBarTitle",
"name": "setNavigationBarTitle",
"index": 2
}
],
"style": {
"navigationBarTitleText": "设置导航条标题"
"navigationBarTitleText": "setNavigationBarTitle | 设置导航条标题"
}
},
{
......@@ -908,10 +1098,15 @@
"id": "api.page",
"name": "页面和路由",
"index": 2
},
{
"id": "api.page.pullDownRefresh",
"name": "pullDownRefresh",
"index": 4
}
],
"style": {
"navigationBarTitleText": "页面下拉刷新",
"navigationBarTitleText": "pullDownRefresh | 页面下拉刷新",
"enablePullDownRefresh": true
}
},
......@@ -936,6 +1131,11 @@
"id": "api.file",
"name": "文件",
"index": 10
},
{
"id": "api.file.getFileSystemManager",
"name": "getFileSystemManager",
"index": 0
}
],
"style": {
......@@ -951,10 +1151,15 @@
"id": "api.base",
"name": "基础",
"index": 1
},
{
"id": "api.base.env",
"name": "env",
"index": 0
}
],
"style": {
"navigationBarTitleText": "uni.env | 环境变量"
"navigationBarTitleText": "env | 环境变量"
}
},
// #endif
......@@ -965,6 +1170,11 @@
"id": "api.ui",
"name": "界面",
"index": 4
},
{
"id": "api.ui.showActionSheet",
"name": "showActionSheet",
"index": 1
}
],
"style": {
......@@ -978,6 +1188,11 @@
"id": "api.ui",
"name": "界面",
"index": 4
},
{
"id": "api.ui.showModal",
"name": "showModal",
"index": 2
}
],
"style": {
......@@ -991,6 +1206,11 @@
"id": "api.ui",
"name": "界面",
"index": 4
},
{
"id": "api.ui.showLoading",
"name": "showLoading",
"index": 3
}
],
"style": {
......@@ -1004,6 +1224,11 @@
"id": "api.ui",
"name": "界面",
"index": 4
},
{
"id": "api.ui.showToast",
"name": "showToast",
"index": 4
}
],
"style": {
......@@ -1017,10 +1242,15 @@
"id": "api.ui",
"name": "界面",
"index": 4
},
{
"id": "api.ui.loadFontFace",
"name": "loadFontFace",
"index": 5
}
],
"style": {
"navigationBarTitleText": "动态加载字体"
"navigationBarTitleText": "loadFontFace | 动态加载字体"
}
},
{
......@@ -1036,6 +1266,11 @@
"id": "api.location",
"name": "位置",
"index": 8
},
{
"id": "api.location.getLocation",
"name": "getLocation",
"index": 0
}
],
"style": {
......@@ -1049,10 +1284,15 @@
"id": "api.base",
"name": "基础",
"index": 1
},
{
"id": "api.base.interceptor",
"name": "interceptor",
"index": 3
}
],
"style": {
"navigationBarTitleText": "拦截器"
"navigationBarTitleText": "interceptor | 拦截器"
}
},
{
......@@ -1074,6 +1314,11 @@
"id": "api.network",
"name": "网络",
"index": 5
},
{
"id": "api.network.request",
"name": "request",
"index": 0
}
],
"style": {
......@@ -1087,6 +1332,11 @@
"id": "api.network",
"name": "网络",
"index": 5
},
{
"id": "api.network.uploadFile",
"name": "uploadFile",
"index": 1
}
],
"style": {
......@@ -1100,6 +1350,11 @@
"id": "api.network",
"name": "网络",
"index": 5
},
{
"id": "api.network.downloadFile",
"name": "downloadFile",
"index": 2
}
],
"style": {
......@@ -1119,6 +1374,11 @@
"id": "api.network",
"name": "网络",
"index": 5
},
{
"id": "api.network.websocket",
"name": "websocket",
"index": 4
}
],
"style": {
......@@ -1132,6 +1392,11 @@
"id": "api.unicloud",
"name": "uniCloud客户端API",
"index": 17
},
{
"id": "api.unicloud.cloudFunction",
"name": "cloudFunction",
"index": 0
}
],
"style": {
......@@ -1145,6 +1410,11 @@
"id": "api.unicloud",
"name": "uniCloud客户端API",
"index": 17
},
{
"id": "api.unicloud.cloudObject",
"name": "cloudObject",
"index": 1
}
],
"style": {
......@@ -1158,6 +1428,11 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.getSystemInfo",
"name": "getSystemInfo",
"index": 0
}
],
"style": {
......@@ -1171,10 +1446,15 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.getDeviceInfo",
"name": "getDeviceInfo",
"index": 1
}
],
"style": {
"navigationBarTitleText": "获取设备信息"
"navigationBarTitleText": "getDeviceInfo | 获取设备信息"
}
},
{
......@@ -1184,10 +1464,15 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.getAppBaseInfo",
"name": "getAppBaseInfo",
"index": 3
}
],
"style": {
"navigationBarTitleText": "获取APP基础信息"
"navigationBarTitleText": "getAppBaseInfo | 获取APP基础信息"
}
},
// #ifndef WEB
......@@ -1198,10 +1483,15 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.getSystemSetting",
"name": "getSystemSetting",
"index": 5
}
],
"style": {
"navigationBarTitleText": "获取系统设置"
"navigationBarTitleText": "getSystemSetting | 获取系统设置"
}
},
// #endif
......@@ -1229,10 +1519,15 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.getAppAuthorizeSetting",
"name": "getAppAuthorizeSetting",
"index": 4
}
],
"style": {
"navigationBarTitleText": "获取APP授权设置"
"navigationBarTitleText": "getAppAuthorizeSetting | 获取APP授权设置"
}
},
// #endif
......@@ -1243,6 +1538,11 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.previewImage",
"name": "previewImage",
"index": 1
}
],
"style": {
......@@ -1256,10 +1556,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.chooseImage",
"name": "chooseImage",
"index": 0
}
],
"style": {
"navigationBarTitleText": "拍照和相册选择"
"navigationBarTitleText": "chooseImage | 拍照和相册选择"
}
},
{
......@@ -1269,10 +1574,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.getImageInfo",
"name": "getImageInfo",
"index": 3
}
],
"style": {
"navigationBarTitleText": "获取图片信息"
"navigationBarTitleText": "getImageInfo | 获取图片信息"
}
},
{
......@@ -1282,10 +1592,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.compressImage",
"name": "compressImage",
"index": 4
}
],
"style": {
"navigationBarTitleText": "压缩图片"
"navigationBarTitleText": "compressImage | 压缩图片"
}
},
{
......@@ -1295,10 +1610,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.chooseVideo",
"name": "chooseVideo",
"index": 5
}
],
"style": {
"navigationBarTitleText": "拍摄视频或从相册中选择视频"
"navigationBarTitleText": "chooseVideo | 拍摄视频或从相册中选择视频"
}
},
// #ifndef WEB
......@@ -1309,10 +1629,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.saveImageToPhotosAlbum",
"name": "saveImageToPhotosAlbum",
"index": 2
}
],
"style": {
"navigationBarTitleText": "保存图片到相册"
"navigationBarTitleText": "saveImageToPhotosAlbum | 保存图片到相册"
}
},
// #endif
......@@ -1324,10 +1649,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.saveVideoToPhotosAlbum",
"name": "saveVideoToPhotosAlbum",
"index": 6
}
],
"style": {
"navigationBarTitleText": "保存视频到相册"
"navigationBarTitleText": "saveVideoToPhotosAlbum | 保存视频到相册"
}
},
// #endif
......@@ -1338,10 +1668,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.getVideoInfo",
"name": "getVideoInfo",
"index": 7
}
],
"style": {
"navigationBarTitleText": "获取视频信息"
"navigationBarTitleText": "getVideoInfo | 获取视频信息"
}
},
{
......@@ -1351,10 +1686,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.compressVideo",
"name": "compressVideo",
"index": 8
}
],
"style": {
"navigationBarTitleText": "压缩视频"
"navigationBarTitleText": "compressVideo | 压缩视频"
}
},
{
......@@ -1364,6 +1704,11 @@
"id": "api.network",
"name": "网络",
"index": 5
},
{
"id": "api.network.getNetworkType",
"name": "获取设备网络状态",
"index": 3
}
],
"style": {
......@@ -1377,10 +1722,15 @@
"id": "api.page",
"name": "页面和路由",
"index": 2
},
{
"id": "api.page.pageScrollTo",
"name": "pageScrollTo",
"index": 5
}
],
"style": {
"navigationBarTitleText": "将页面滚动到指定位置"
"navigationBarTitleText": "pageScrollTo | 将页面滚动到指定位置"
}
},
{
......@@ -1390,10 +1740,15 @@
"id": "api.base",
"name": "基础",
"index": 1
},
{
"id": "api.base.eventBus",
"name": "eventBus",
"index": 1
}
],
"style": {
"navigationBarTitleText": "事件总线eventBus"
"navigationBarTitleText": "eventBus | 事件总线"
}
},
{
......@@ -1403,6 +1758,11 @@
"id": "api.unicloud",
"name": "uniCloud客户端API",
"index": 17
},
{
"id": "api.unicloud.cloudStorage",
"name": "cloudStorage",
"index": 2
}
],
"style": {
......@@ -1416,6 +1776,11 @@
"id": "api.unicloud",
"name": "uniCloud客户端API",
"index": 17
},
{
"id": "api.unicloud.database",
"name": "database",
"index": 3
}
],
"style": {
......@@ -1429,6 +1794,11 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.getBatteryInfo",
"name": "getBatteryInfo",
"index": 8
}
],
"style": {
......@@ -1442,10 +1812,15 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.getWindowInfo",
"name": "getWindowInfo",
"index": 2
}
],
"style": {
"navigationBarTitleText": "获取窗口信息"
"navigationBarTitleText": "getWindowInfo | 获取窗口信息"
}
},
// #ifndef WEB
......@@ -1470,12 +1845,17 @@
"group": [
{
"id": "api.loginVerify",
"name": "登录和验证",
"name": "loginVerify",
"index": 11
},
{
"id": "api.loginVerify.facialRecognitionMetaInfo",
"name": "facialRecognitionMetaInfo",
"index": 1
}
],
"style": {
"navigationBarTitleText": "金融级实人认证",
"navigationBarTitleText": "facialRecognitionMetaInfo | 金融级实人认证",
"enablePullDownRefresh": false
}
},
......@@ -1486,8 +1866,13 @@
"group": [
{
"id": "api.loginVerify",
"name": "登录和验证",
"name": "loginVerify",
"index": 11
},
{
"id": "api.loginVerify.getUniverifyManager",
"name": "getUniverifyManager",
"index": 0
}
],
"style": {
......@@ -1503,6 +1888,11 @@
"id": "api.ui",
"name": "界面",
"index": 4
},
{
"id": "api.ui.rpx2px",
"name": "rpx2px",
"index": 6
}
],
"style": {
......@@ -1518,10 +1908,15 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.createRequestPermissionListener",
"name": "createRequestPermissionListener",
"index": 16
}
],
"style": {
"navigationBarTitleText": "监听权限申请",
"navigationBarTitleText": "createRequestPermissionListener | 监听权限申请",
"enablePullDownRefresh": false
}
},
......@@ -1532,12 +1927,17 @@
"group": [
{
"id": "api.payment",
"name": "支付",
"name": "payment",
"index": 14
},
{
"id": "api.payment.requestPayment",
"name": "requestPayment",
"index": 0
}
],
"style": {
"navigationBarTitleText": "发起支付",
"navigationBarTitleText": "requestPayment | 发起支付",
"enablePullDownRefresh": false
}
},
......@@ -1550,21 +1950,25 @@
"id": "api.ad",
"name": "广告",
"index": 12
},
{
"id": "api.ad.createRewardedVideoAd",
"name": "createRewardedVideoAd",
"index": 0
}
],
"style": {
"navigationBarTitleText": "激励视频广告",
"navigationBarTitleText": "createRewardedVideoAd | 激励视频广告",
"enablePullDownRefresh": false
}
},
// #endif
// #ifndef WEB
{
"path": "pages/API/request-payment/request-payment/request-payment-uni-pay",
"group": [
{
"id": "api.payment",
"name": "支付",
"name": "payment",
"index": 14
}
],
......@@ -1573,7 +1977,6 @@
"enablePullDownRefresh": false
}
},
// #endif
// #ifndef WEB
{
"path": "pages/API/request-payment/request-payment/order-detail",
......@@ -1591,10 +1994,15 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.makePhoneCall",
"name": "makePhoneCall",
"index": 9
}
],
"style": {
"navigationBarTitleText": "打电话"
"navigationBarTitleText": "makePhoneCall | 打电话"
}
},
// #endif
......@@ -1606,10 +2014,15 @@
"id": "api.media",
"name": "媒体",
"index": 7
},
{
"id": "api.media.createInnerAudioContext",
"name": "createInnerAudioContext",
"index": 9
}
],
"style": {
"navigationBarTitleText": "音频"
"navigationBarTitleText": "createInnerAudioContext | 音频"
}
},
// #endif
......@@ -1633,6 +2046,11 @@
"id": "api.device",
"name": "设备",
"index": 6
},
{
"id": "api.device.clipboard",
"name": "clipboard",
"index": 10
}
],
"style": {
......@@ -1642,7 +2060,7 @@
// #endif
// #ifndef APP-ANDROID || APP-IOS
{
"path": "pages/API/on-compass-change/on-compass-change",
"path": "pages/API/compass/compass",
"group": [
{
"id": "api.device",
......@@ -1651,12 +2069,12 @@
},
{
"id": "api.device.compass",
"name": "Compass",
"name": "compass",
"index": 11
}
],
"style": {
"navigationBarTitleText": "onCompassChange | 监听罗盘数据"
"navigationBarTitleText": "compass | 罗盘"
}
},
// #endif
......@@ -1668,10 +2086,15 @@
"id": "api.ui",
"name": "界面",
"index": 4
},
{
"id": "api.ui.themeChange",
"name": "themeChange",
"index": 7
}
],
"style": {
"navigationBarTitleText": "主题",
"navigationBarTitleText": "themeChange | 主题切换",
"enablePullDownRefresh": false
}
},
......@@ -1683,10 +2106,15 @@
"id": "api.dom",
"name": "Dom 节点",
"index": 3
},
{
"id": "api.dom.getElementById",
"name": "getElementById",
"index": 0
}
],
"style": {
"navigationBarTitleText": "通过 id 获取 element"
"navigationBarTitleText": "getElementById | 通过 id 获取 element"
}
},
{
......@@ -1702,10 +2130,15 @@
"id": "api.dom",
"name": "Dom 节点",
"index": 3
},
{
"id": "api.dom.createSelectorQuery",
"name": "createSelectorQuery",
"index": 1
}
],
"style": {
"navigationBarTitleText": "创建 SelectorQuery 实例"
"navigationBarTitleText": "createSelectorQuery | 创建 SelectorQuery 实例"
}
},
{
......@@ -1735,6 +2168,11 @@
"id": "css.properties.background",
"name": "background",
"index": 8
},
{
"id": "css.properties.background.background-color",
"name": "background-color",
"index": 1
}
],
"style": {
......@@ -1748,6 +2186,11 @@
"id": "css.properties.background",
"name": "background",
"index": 8
},
{
"id": "css.properties.background.background-image",
"name": "background-image",
"index": 2
}
],
"style": {
......@@ -1761,6 +2204,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-bottom",
"name": "border-bottom",
"index": 22
}
],
"style": {
......@@ -1774,6 +2222,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-color",
"name": "border-color",
"index": 11
}
],
"style": {
......@@ -1787,6 +2240,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-left",
"name": "border-left",
"index": 23
}
],
"style": {
......@@ -1800,6 +2258,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-radius",
"name": "border-radius",
"index": 16
}
],
"style": {
......@@ -1813,6 +2276,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-right",
"name": "border-right",
"index": 24
}
],
"style": {
......@@ -1826,6 +2294,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-style",
"name": "border-style",
"index": 1
}
],
"style": {
......@@ -1839,6 +2312,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-top",
"name": "border-top",
"index": 21
}
],
"style": {
......@@ -1852,6 +2330,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border-width",
"name": "border-width",
"index": 6
}
],
"style": {
......@@ -1865,6 +2348,11 @@
"id": "css.properties.border",
"name": "border",
"index": 13
},
{
"id": "css.properties.border.border",
"name": "border",
"index": 0
}
],
"style": {
......@@ -1901,7 +2389,7 @@
"path": "pages/CSS/box-shadow/box-shadow",
"group": [
{
"id": "box-shadow",
"id": "css.properties.box-shadow",
"name": "box-shadow",
"index": 15
}
......@@ -1943,6 +2431,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.align-content",
"name": "align-content",
"index": 6
}
],
"style": {
......@@ -1956,6 +2449,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.align-items",
"name": "align-items",
"index": 4
}
],
"style": {
......@@ -1969,6 +2467,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.flex-basis",
"name": "flex-basis",
"index": 9
}
],
"style": {
......@@ -1982,6 +2485,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.flex-direction",
"name": "flex-direction",
"index": 1
}
],
"style": {
......@@ -1995,6 +2503,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.flex-flow",
"name": "flex-flow",
"index": 10
}
],
"style": {
......@@ -2008,6 +2521,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.flex-grow",
"name": "flex-grow",
"index": 7
}
],
"style": {
......@@ -2021,6 +2539,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.flex-shrink",
"name": "flex-shrink",
"index": 8
}
],
"style": {
......@@ -2034,6 +2557,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.flex",
"name": "flex",
"index": 0
}
],
"style": {
......@@ -2047,6 +2575,11 @@
"id": "css.properties.flex",
"name": "flex",
"index": 7
},
{
"id": "css.properties.flex.justify-content",
"name": "justify-content",
"index": 2
}
],
"style": {
......@@ -2060,6 +2593,11 @@
"id": "css.properties.height",
"name": "height",
"index": 1
},
{
"id": "css.properties.height.height",
"name": "height",
"index": 0
}
],
"style": {
......@@ -2073,6 +2611,11 @@
"id": "css.properties.height",
"name": "height",
"index": 1
},
{
"id": "css.properties.height.max-height",
"name": "max-height",
"index": 2
}
],
"style": {
......@@ -2086,6 +2629,11 @@
"id": "css.properties.width",
"name": "width",
"index": 0
},
{
"id": "css.properties.width.max-width",
"name": "max-width",
"index": 2
}
],
"style": {
......@@ -2099,6 +2647,11 @@
"id": "css.properties.height",
"name": "height",
"index": 1
},
{
"id": "css.properties.height.min-height",
"name": "min-height",
"index": 1
}
],
"style": {
......@@ -2112,6 +2665,11 @@
"id": "css.properties.width",
"name": "width",
"index": 0
},
{
"id": "css.properties.width.min-width",
"name": "min-width",
"index": 1
}
],
"style": {
......@@ -2125,6 +2683,11 @@
"id": "css.properties.position",
"name": "position",
"index": 9
},
{
"id": "css.properties.position.position",
"name": "position",
"index": 0
}
],
"style": {
......@@ -2138,6 +2701,11 @@
"id": "css.properties.width",
"name": "width",
"index": 0
},
{
"id": "css.properties.width.width",
"name": "width",
"index": 0
}
],
"style": {
......@@ -2148,7 +2716,7 @@
"path": "pages/CSS/layout/z-index",
"group": [
{
"id": "z-index",
"id": "css.properties.z-index",
"name": "z-index",
"index": 10
}
......@@ -2161,7 +2729,7 @@
"path": "pages/CSS/layout/visibility",
"group": [
{
"id": "visibility",
"id": "css.properties.visibility",
"name": "visibility",
"index": 6
}
......@@ -2177,6 +2745,11 @@
"id": "css.properties.margin",
"name": "margin",
"index": 2
},
{
"id": "css.properties.margin.margin-bottom",
"name": "margin-bottom",
"index": 2
}
],
"style": {
......@@ -2190,6 +2763,11 @@
"id": "css.properties.margin",
"name": "margin",
"index": 2
},
{
"id": "css.properties.margin.margin-left",
"name": "margin-left",
"index": 3
}
],
"style": {
......@@ -2203,6 +2781,11 @@
"id": "css.properties.margin",
"name": "margin",
"index": 2
},
{
"id": "css.properties.margin.margin-right",
"name": "margin-right",
"index": 4
}
],
"style": {
......@@ -2216,6 +2799,11 @@
"id": "css.properties.margin",
"name": "margin",
"index": 2
},
{
"id": "css.properties.margin.margin-top",
"name": "margin-top",
"index": 1
}
],
"style": {
......@@ -2229,6 +2817,11 @@
"id": "css.properties.margin",
"name": "margin",
"index": 2
},
{
"id": "css.properties.margin.margin",
"name": "margin",
"index": 0
}
],
"style": {
......@@ -2239,7 +2832,7 @@
"path": "pages/CSS/overflow/overflow",
"group": [
{
"id": "overflow",
"id": "css.properties.overflow",
"name": "overflow",
"index": 11
}
......@@ -2255,6 +2848,11 @@
"id": "css.properties.padding",
"name": "padding",
"index": 3
},
{
"id": "css.properties.padding.padding-bottom",
"name": "padding-bottom",
"index": 2
}
],
"style": {
......@@ -2268,6 +2866,11 @@
"id": "css.properties.padding",
"name": "padding",
"index": 3
},
{
"id": "css.properties.padding.padding-left",
"name": "padding-left",
"index": 3
}
],
"style": {
......@@ -2281,6 +2884,11 @@
"id": "css.properties.padding",
"name": "padding",
"index": 3
},
{
"id": "css.properties.padding.padding-right",
"name": "padding-right",
"index": 4
}
],
"style": {
......@@ -2294,6 +2902,11 @@
"id": "css.properties.padding",
"name": "padding",
"index": 3
},
{
"id": "css.properties.padding.padding-top",
"name": "padding-top",
"index": 1
}
],
"style": {
......@@ -2307,6 +2920,11 @@
"id": "css.properties.padding",
"name": "padding",
"index": 3
},
{
"id": "css.properties.padding.padding",
"name": "padding",
"index": 0
}
],
"style": {
......@@ -2320,6 +2938,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.color",
"name": "color",
"index": 0
}
],
"style": {
......@@ -2333,6 +2956,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.font-family",
"name": "font-family",
"index": 2
}
],
"style": {
......@@ -2346,6 +2974,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.font-size",
"name": "font-size",
"index": 1
}
],
"style": {
......@@ -2359,6 +2992,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.font-style",
"name": "font-style",
"index": 3
}
],
"style": {
......@@ -2372,6 +3010,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.font-weight",
"name": "font-weight",
"index": 4
}
],
"style": {
......@@ -2385,6 +3028,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.letter-spacing",
"name": "letter-spacing",
"index": 14
}
],
"style": {
......@@ -2398,6 +3046,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.line-height",
"name": "line-height",
"index": 12
}
],
"style": {
......@@ -2411,6 +3064,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.text-align",
"name": "text-align",
"index": 10
}
],
"style": {
......@@ -2424,6 +3082,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.text-overflow",
"name": "text-overflow",
"index": 11
}
],
"style": {
......@@ -2437,6 +3100,11 @@
"id": "css.properties.text",
"name": "text",
"index": 14
},
{
"id": "css.properties.text.text-decoration-line",
"name": "text-decoration-line",
"index": 6
}
],
"style": {
......@@ -2453,14 +3121,14 @@
}
],
"style": {
"navigationBarTitleText": "Transition"
"navigationBarTitleText": "transition"
}
},
{
"path": "pages/CSS/pointer-events/pointer-events",
"group": [
{
"id": "pointer-events",
"id": "css.properties.pointer-events",
"name": "pointer-events",
"index": 18
}
......@@ -2479,7 +3147,7 @@
}
],
"style": {
"navigationBarTitleText": "Translate"
"navigationBarTitleText": "translate"
}
},
{
......@@ -2492,7 +3160,7 @@
}
],
"style": {
"navigationBarTitleText": "Scale"
"navigationBarTitleText": "scale"
}
},
{
......@@ -2505,7 +3173,7 @@
}
],
"style": {
"navigationBarTitleText": "Rotate"
"navigationBarTitleText": "rotate"
}
},
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册