提交 efb58c69 编写于 作者: DCloud-yyl's avatar DCloud-yyl

Merge branch 'dev' into alpha

# Conflicts:
#	pages.json
{
"name": "hello-uniapp x",
"appid": "__UNI__3584C99",
"description": "",
"versionName": "1.0.18",
"versionCode": "10018",
"uni-app-x": {},
/* 快应用特有相关 */
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin": {
"appid": "",
"setting": {
"urlCheck": false
},
"usingComponents": true
},
"mp-alipay": {
"usingComponents": true
},
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics": {
"enable": false
},
"app": {},
"vueVersion": "3",
"h5": {
"router": {
"base": "/web/"
}
}
{
"name" : "hello-uniapp x",
"appid" : "__UNI__3584C99",
"description" : "",
"versionName" : "1.0.21",
"versionCode" : 10021,
"uni-app-x" : {},
/* 快应用特有相关 */
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
},
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao" : {
"usingComponents" : true
},
"uniStatistics" : {
"enable" : false
},
"app" : {},
"vueVersion" : "3",
"h5" : {
"router" : {
"base" : "/web/"
}
}
}
{
"pages": [
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/tabBar/component",
"style": {
"navigationBarTitleText": "内置组件",
"backgroundColor": "#F8F8F8"
}
},
{
"path": "pages/component/view/view",
"style": {
"navigationBarTitleText": "view"
}
},
{
"path": "pages/component/scroll-view/scroll-view",
"style": {
"navigationBarTitleText": "scroll-view"
}
{
"pages": [
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/tabBar/component",
"style": {
"navigationBarTitleText": "内置组件",
"backgroundColor": "#F8F8F8"
}
},
{
"path": "pages/component/view/view",
"style": {
"navigationBarTitleText": "view"
}
},
{
"path": "pages/component/scroll-view/scroll-view",
"style": {
"navigationBarTitleText": "scroll-view"
}
},
{
"path": "pages/component/scroll-view/scroll-view-refresher",
"style": {
"navigationBarTitleText": "scroll-view-refresher"
}
},
},
{
"path": "pages/component/scroll-view/scroll-view-props",
"style": {
......@@ -97,18 +97,18 @@
}
},
//#endif
{
"path": "pages/component/text/text",
"style": {
"navigationBarTitleText": "text"
}
},
{
"path": "pages/component/text/text-props",
"style": {
"navigationBarTitleText": "text-props"
}
},
{
"path": "pages/component/text/text",
"style": {
"navigationBarTitleText": "text"
}
},
{
"path": "pages/component/text/text-props",
"style": {
"navigationBarTitleText": "text-props"
}
},
{
"path": "pages/component/rich-text/rich-text",
"style": {
......@@ -127,131 +127,137 @@
"navigationBarTitleText": "rich-text-complex"
}
},
{
"path": "pages/component/progress/progress",
"style": {
"navigationBarTitleText": "progress"
}
},
{
"path": "pages/component/form/form",
"style": {
"navigationBarTitleText": "form"
}
},
{
"path": "pages/component/button/button",
"style": {
"navigationBarTitleText": "button"
}
},
{
"path": "pages/component/radio/radio",
"style": {
"navigationBarTitleText": "radio"
}
},
{
"path": "pages/component/checkbox/checkbox",
"style": {
"navigationBarTitleText": "checkbox"
}
},
{
"path": "pages/component/input/input",
"style": {
"navigationBarTitleText": "input"
}
},
{
"path": "pages/component/textarea/textarea",
"style": {
"navigationBarTitleText": "textarea"
}
},
{
"path": "pages/component/slider/slider",
"style": {
"navigationBarTitleText": "slider"
}
},
{
"path": "pages/component/picker-view/picker-view",
"style": {
"navigationBarTitleText": "picker-view"
}
},
{
"path": "pages/component/slider-100/slider-100",
"style": {
"navigationBarTitleText": "slider x 100"
}
},
{
"path": "pages/component/switch/switch",
"style": {
"navigationBarTitleText": "switch"
}
},
{
"path": "pages/component/image/image",
"style": {
"navigationBarTitleText": "image"
}
},
{
"path": "pages/component/image/image-format",
"style": {
"navigationBarTitleText": "image-format"
}
},
{
"path": "pages/component/image/image-mode",
"style": {
"navigationBarTitleText": "image-mode"
}
},
{
"path": "pages/component/image/image-path",
"style": {
"navigationBarTitleText": "image-path"
}
},
{
"path": "pages/component/image/image-large",
"style": {
"navigationBarTitleText": "大图测试"
}
},
{
"path": "pages/component/video/video",
"style": {
"navigationBarTitleText": "video"
}
},
{
"path": "pages/component/video/video-format",
"style": {
"navigationBarTitleText": "video-format"
}
},
{
"path": "pages/component/navigator/navigator",
"style": {
"navigationBarTitleText": "navigator"
}
},
{
"path": "pages/component/navigator/navigate",
"style": {
"navigationBarTitleText": "navigatePage"
}
},
{
"path": "pages/component/navigator/redirect",
"style": {
"navigationBarTitleText": "redirectPage"
}
{
"path": "pages/component/progress/progress",
"style": {
"navigationBarTitleText": "progress"
}
},
{
"path": "pages/component/form/form",
"style": {
"navigationBarTitleText": "form"
}
},
{
"path": "pages/component/button/button",
"style": {
"navigationBarTitleText": "button"
}
},
{
"path": "pages/component/button/buttonstatus",
"style": {
"navigationBarTitleText": "buttonstatus"
}
},
{
"path": "pages/component/radio/radio",
"style": {
"navigationBarTitleText": "radio"
}
},
{
"path": "pages/component/checkbox/checkbox",
"style": {
"navigationBarTitleText": "checkbox"
}
},
{
"path": "pages/component/input/input",
"style": {
"navigationBarTitleText": "input"
}
},
{
"path": "pages/component/textarea/textarea",
"style": {
"navigationBarTitleText": "textarea"
}
},
{
"path": "pages/component/slider/slider",
"style": {
"navigationBarTitleText": "slider"
}
},
{
"path": "pages/component/picker-view/picker-view",
"style": {
"navigationBarTitleText": "picker-view"
}
},
{
"path": "pages/component/slider-100/slider-100",
"style": {
"navigationBarTitleText": "slider x 100"
}
},
{
"path": "pages/component/switch/switch",
"style": {
"navigationBarTitleText": "switch"
}
},
{
"path": "pages/component/image/image",
"style": {
"navigationBarTitleText": "image"
}
},
{
"path": "pages/component/image/image-format",
"style": {
"navigationBarTitleText": "image-format"
}
},
{
"path": "pages/component/image/image-mode",
"style": {
"navigationBarTitleText": "image-mode"
}
},
{
"path": "pages/component/image/image-path",
"style": {
"navigationBarTitleText": "image-path"
}
},
{
"path": "pages/component/image/image-large",
"style": {
"navigationBarTitleText": "大图测试"
}
},
{
"path": "pages/component/video/video",
"style": {
"navigationBarTitleText": "video"
}
},
{
"path": "pages/component/video/video-format",
"style": {
"navigationBarTitleText": "video-format"
}
},
{
"path": "pages/component/navigator/navigator",
"style": {
"navigationBarTitleText": "navigator"
}
},
{
"path": "pages/component/navigator/navigate",
"style": {
"navigationBarTitleText": "navigatePage"
}
},
{
"path": "pages/component/navigator/redirect",
"style": {
"navigationBarTitleText": "redirectPage"
}
},
{
"path": "pages/component/web-view/web-view",
......@@ -297,18 +303,18 @@
"navigationBarTitleText": "mixinDatacom"
}
},
// #endif
{
"path": "pages/component/general-attribute/general-attribute",
"style": {
"navigationBarTitleText": "general-attribute"
}
},
{
"path": "pages/component/general-event/general-event",
"style": {
"navigationBarTitleText": "general-event"
}
// #endif
{
"path": "pages/component/general-attribute/general-attribute",
"style": {
"navigationBarTitleText": "general-attribute"
}
},
{
"path": "pages/component/general-event/general-event",
"style": {
"navigationBarTitleText": "general-event"
}
},
{
"path": "pages/component/general-event/transition-event",
......@@ -322,31 +328,31 @@
"navigationBarTitleText": "touch-event"
}
},
{
"path": "pages/tabBar/API",
"style": {
"navigationBarTitleText": "接口",
"backgroundColor": "#F8F8F8"
}
},
// {
// "path": "pages/API/canvas/canvas",
// "style": {
// "navigationBarTitleText": "创建绘画"
// }
// },
{
"path": "pages/API/get-app/get-app",
"style": {
"navigationBarTitleText": "getApp"
}
},
// #ifdef APP-ANDROID
{
"path": "pages/API/exit/exit",
"style": {
"navigationBarTitleText": "exit"
}
{
"path": "pages/tabBar/API",
"style": {
"navigationBarTitleText": "接口",
"backgroundColor": "#F8F8F8"
}
},
// {
// "path": "pages/API/canvas/canvas",
// "style": {
// "navigationBarTitleText": "创建绘画"
// }
// },
{
"path": "pages/API/get-app/get-app",
"style": {
"navigationBarTitleText": "getApp"
}
},
// #ifdef APP-ANDROID
{
"path": "pages/API/exit/exit",
"style": {
"navigationBarTitleText": "exit"
}
},
{
"path": "pages/API/install-apk/install-apk",
......@@ -355,916 +361,916 @@
"enablePullDownRefresh": false
}
},
// #endif
{
"path": "pages/API/get-current-pages/get-current-pages",
"style": {
"navigationBarTitleText": "getCurrentPages"
}
},
{
"path": "pages/API/get-launch-options-sync/get-launch-options-sync",
"style": {
"navigationBarTitleText": "getLaunchOptionsSync"
}
},
{
"path": "pages/API/navigator/navigator",
"style": {
"navigationBarTitleText": "页面跳转"
}
},
{
"path": "pages/API/set-navigation-bar-color/set-navigation-bar-color",
"style": {
"navigationBarTitleText": "设置导航条颜色"
}
},
{
"path": "pages/API/set-navigation-bar-title/set-navigation-bar-title",
"style": {
"navigationBarTitleText": "设置导航条标题"
}
},
{
"path": "pages/API/navigator/new-page/new-page-1",
"style": {
"navigationBarTitleText": "新页面-1"
}
},
{
"path": "pages/API/navigator/new-page/new-page-3",
"style": {
"navigationBarTitleText": "新页面-3"
}
},
{
"path": "pages/API/navigator/new-page/onLoad",
"style": {
"navigationBarTitleText": "onLoad 生命周期测试"
}
},
{
"path": "pages/API/pull-down-refresh/pull-down-refresh",
"style": {
"navigationBarTitleText": "页面级下拉刷新",
"enablePullDownRefresh": true
}
},
{
"path": "pages/API/get-element-by-id/get-element-by-id",
"style": {
"navigationBarTitleText": "获取节点"
}
},
{
"path": "pages/API/get-element-by-id/get-element-by-id-multiple-root-node",
"style": {
"navigationBarTitleText": "获取节点-多根节点"
}
},
{
"path": "pages/API/nodes-info/nodes-info",
"style": {
"navigationBarTitleText": "查询节点信息的对象"
}
},
{
"path": "pages/API/storage/storage",
"style": {
"navigationBarTitleText": "数据存储"
}
},
// #ifndef WEB
{
"path": "pages/API/get-file-system-manager/get-file-system-manager",
"style": {
"navigationBarTitleText": "文件管理"
}
},
// #endif
{
"path": "pages/API/action-sheet/action-sheet",
"style": {
"navigationBarTitleText": "操作菜单"
}
},
{
"path": "pages/API/modal/modal",
"style": {
"navigationBarTitleText": "模态弹窗"
}
},
{
"path": "pages/API/loading/loading",
"style": {
"navigationBarTitleText": "加载提示框"
}
},
{
"path": "pages/API/toast/toast",
"style": {
"navigationBarTitleText": "消息提示框"
}
},
{
"path": "pages/API/load-font-face/load-font-face",
"style": {
"navigationBarTitleText": "动态加载字体"
}
},
{
"path": "pages/API/load-font-face/load-font-face-child",
"style": {
"navigationBarTitleText": "动态加载字体-子页面"
}
},
{
"path": "pages/API/get-location/get-location",
"style": {
"navigationBarTitleText": "获取定位"
}
},
{
"path": "pages/API/interceptor/interceptor",
"style": {
"navigationBarTitleText": "拦截器"
}
},
{
"path": "pages/API/interceptor/page1",
"style": {
"navigationBarTitleText": "拦截器测试页面 1"
}
},
{
"path": "pages/API/interceptor/page2",
"style": {
"navigationBarTitleText": "拦截器测试页面 2"
}
},
{
"path": "pages/API/request/request",
"style": {
"navigationBarTitleText": "request"
}
},
{
"path": "pages/API/upload-file/upload-file",
"style": {
"navigationBarTitleText": "upload-file"
}
},
{
"path": "pages/API/download-file/download-file",
"style": {
"navigationBarTitleText": "download-file"
}
},
{
"path": "pages/API/websocket-socketTask/websocket-socketTask",
"style": {
"navigationBarTitleText": "websocket-socketTask"
}
},
{
"path": "pages/API/websocket-global/websocket-global",
"style": {
"navigationBarTitleText": "websocket-global"
}
},
// #ifndef APP-IOS
{
"path": "pages/API/unicloud-call-function/unicloud-call-function",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/API/unicloud-import-object/unicloud-import-object",
"style": {
"navigationBarTitleText": ""
}
},
// #endif
{
"path": "pages/API/get-system-info/get-system-info",
"style": {
"navigationBarTitleText": "get-system-info"
}
},
{
"path": "pages/API/get-device-info/get-device-info",
"style": {
"navigationBarTitleText": "get-device-info"
}
},
{
"path": "pages/API/get-app-base-info/get-app-base-info",
"style": {
"navigationBarTitleText": "get-app-base-info"
}
},
// #ifdef APP
{
"path": "pages/API/get-system-setting/get-system-setting",
"style": {
"navigationBarTitleText": "get-system-setting"
}
},
// #endif
// #ifndef WEB
{
"path": "pages/API/get-app-authorize-setting/get-app-authorize-setting",
"style": {
"navigationBarTitleText": "get-app-authorize-setting"
}
},
{
"path": "pages/API/save-image-to-photos-album/save-image-to-photos-album",
"style": {
"navigationBarTitleText": "保存图片到相册"
}
},
// #endif
{
"path": "pages/API/preview-image/preview-image",
"style": {
"navigationBarTitleText": "图片预览"
}
},
{
"path": "pages/API/choose-image/choose-image",
"style": {
"navigationBarTitleText": "图片"
}
},
{
"path": "pages/API/get-network-type/get-network-type",
"style": {
"navigationBarTitleText": "get-network-type"
}
},
{
"path": "pages/API/page-scroll-to/page-scroll-to",
"style": {
"navigationBarTitleText": "pageScrollTo"
}
},
{
"path": "pages/API/event-bus/event-bus",
"style": {
"navigationBarTitleText": "event-bus"
}
},
// #ifndef APP-IOS
{
"path": "pages/API/unicloud-file-api/unicloud-file-api",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/API/unicloud-database/unicloud-database",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/API/get-battery-info/get-battery-info",
"style": {
"navigationBarTitleText": "电量"
}
},
// #endif
{
"path": "pages/API/get-window-info/get-window-info",
"style": {
"navigationBarTitleText": "get-window-info"
}
},
// #ifdef APP-ANDROID
{
"path": "pages/API/facial-recognition-verify/facial-recognition-verify",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/element-takesnapshot/element-takesnapshot",
"style": {
"navigationBarTitleText": "takeSnapshot",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/element-draw/element-draw",
"style": {
"navigationBarTitleText": "getDrawableContext",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/get-univerify-manager/get-univerify-manager",
"style": {
"navigationBarTitleText": "uni-verify",
"enablePullDownRefresh": false
}
},
// #endif
{
"path": "pages/API/rpx2px/rpx2px",
"path": "pages/API/get-current-pages/get-current-pages",
"style": {
"navigationBarTitleText": "rpx2px",
"enablePullDownRefresh": false
"navigationBarTitleText": "getCurrentPages"
}
},
{
"path": "pages/tabBar/CSS",
"style": {
"navigationBarTitleText": "CSS",
"backgroundColor": "#F8F8F8"
}
},
{
"path": "pages/CSS/background/background-color",
"style": {
"navigationBarTitleText": "background-color"
}
},
{
"path": "pages/CSS/background/background-image",
"style": {
"navigationBarTitleText": "background-image"
}
},
{
"path": "pages/CSS/border/border-bottom",
"style": {
"navigationBarTitleText": "border-bottom"
}
},
{
"path": "pages/CSS/border/border-color",
"style": {
"navigationBarTitleText": "border-color"
}
},
{
"path": "pages/CSS/border/border-left",
"style": {
"navigationBarTitleText": "border-left"
}
},
{
"path": "pages/CSS/border/border-radius",
"style": {
"navigationBarTitleText": "border-radius"
}
},
{
"path": "pages/CSS/border/border-right",
"style": {
"navigationBarTitleText": "border-right"
}
},
{
"path": "pages/CSS/border/border-style",
"style": {
"navigationBarTitleText": "border-style"
}
},
{
"path": "pages/CSS/border/border-top",
"style": {
"navigationBarTitleText": "border-top"
}
},
{
"path": "pages/CSS/border/border-width",
"style": {
"navigationBarTitleText": "border-width"
}
},
{
"path": "pages/CSS/border/border",
"style": {
"navigationBarTitleText": "border"
}
},
},
{
"path": "pages/CSS/border/complex-border/complex-border",
"path": "pages/API/get-launch-options-sync/get-launch-options-sync",
"style": {
"navigationBarTitleText": "border属性组合示例"
"navigationBarTitleText": "getLaunchOptionsSync"
}
},
{
"path": "pages/CSS/box-shadow/box-shadow",
"style": {
"navigationBarTitleText": "box-shadow"
}
},
{
"path": "pages/CSS/display/flex",
"style": {
"navigationBarTitleText": "display:flex"
}
},
{
"path": "pages/CSS/display/none",
"style": {
"navigationBarTitleText": "display:none"
}
},
{
"path": "pages/CSS/flex/align-content",
"style": {
"navigationBarTitleText": "align-content"
}
},
{
"path": "pages/CSS/flex/align-items",
"style": {
"navigationBarTitleText": "align-items"
}
},
{
"path": "pages/CSS/flex/flex-basis",
"style": {
"navigationBarTitleText": "flex-basis"
}
},
{
"path": "pages/CSS/flex/flex-direction",
"style": {
"navigationBarTitleText": "flex-direction"
}
},
{
"path": "pages/CSS/flex/flex-flow",
"style": {
"navigationBarTitleText": "flex-flow"
}
},
{
"path": "pages/CSS/flex/flex-grow",
"style": {
"navigationBarTitleText": "flex-grow"
}
},
{
"path": "pages/CSS/flex/flex-shrink",
"style": {
"navigationBarTitleText": "flex-shrink"
}
},
{
"path": "pages/CSS/flex/flex",
"style": {
"navigationBarTitleText": "flex"
}
},
{
"path": "pages/CSS/flex/justify-content",
"style": {
"navigationBarTitleText": "justify-content"
}
},
{
"path": "pages/CSS/layout/height",
"style": {
"navigationBarTitleText": "height"
}
},
{
"path": "pages/CSS/layout/max-height",
"style": {
"navigationBarTitleText": "max-height"
}
},
{
"path": "pages/CSS/layout/max-width",
"style": {
"navigationBarTitleText": "max-width"
}
},
{
"path": "pages/CSS/layout/min-height",
"style": {
"navigationBarTitleText": "min-height"
}
},
{
"path": "pages/CSS/layout/min-width",
"style": {
"navigationBarTitleText": "min-width"
}
},
{
"path": "pages/CSS/layout/position",
"style": {
"navigationBarTitleText": "position"
}
},
{
"path": "pages/CSS/layout/width",
"style": {
"navigationBarTitleText": "width"
}
},
{
"path": "pages/CSS/layout/z-index",
"style": {
"navigationBarTitleText": "z-index"
}
},
{
"path": "pages/CSS/layout/visibility",
"style": {
"navigationBarTitleText": "visibility"
}
},
{
"path": "pages/CSS/margin/margin-bottom",
"style": {
"navigationBarTitleText": "margin-bottom"
}
},
{
"path": "pages/CSS/margin/margin-left",
"style": {
"navigationBarTitleText": "margin-left"
}
},
{
"path": "pages/CSS/margin/margin-right",
"style": {
"navigationBarTitleText": "margin-right"
}
},
{
"path": "pages/CSS/margin/margin-top",
"style": {
"navigationBarTitleText": "margin-top"
}
},
{
"path": "pages/CSS/margin/margin",
"style": {
"navigationBarTitleText": "margin"
}
},
{
"path": "pages/CSS/overflow/overflow",
"path": "pages/API/navigator/navigator",
"style": {
"navigationBarTitleText": "overflow"
"navigationBarTitleText": "页面跳转"
}
},
{
"path": "pages/CSS/padding/padding-bottom",
"style": {
"navigationBarTitleText": "padding-bottom"
}
},
{
"path": "pages/CSS/padding/padding-left",
"style": {
"navigationBarTitleText": "padding-left"
}
},
{
"path": "pages/CSS/padding/padding-right",
"style": {
"navigationBarTitleText": "padding-right"
}
},
{
"path": "pages/CSS/padding/padding-top",
"style": {
"navigationBarTitleText": "padding-top"
}
},
{
"path": "pages/CSS/padding/padding",
"style": {
"navigationBarTitleText": "padding"
}
},
{
"path": "pages/CSS/text/color",
"style": {
"navigationBarTitleText": "color"
}
},
{
"path": "pages/CSS/text/font-family",
"style": {
"navigationBarTitleText": "font-family"
}
},
{
"path": "pages/CSS/text/font-size",
"style": {
"navigationBarTitleText": "font-size"
}
},
{
"path": "pages/CSS/text/font-style",
"style": {
"navigationBarTitleText": "font-style"
}
},
{
"path": "pages/CSS/text/font-weight",
"style": {
"navigationBarTitleText": "font-weight"
}
},
{
"path": "pages/CSS/text/letter-spacing",
"style": {
"navigationBarTitleText": "letter-spacing"
}
},
{
"path": "pages/CSS/text/line-height",
"style": {
"navigationBarTitleText": "line-height"
}
},
{
"path": "pages/CSS/text/text-align",
"style": {
"navigationBarTitleText": "text-align"
}
},
{
"path": "pages/CSS/text/text-overflow",
"style": {
"navigationBarTitleText": "text-overflow"
}
},
{
"path": "pages/CSS/text/text-decoration-line",
"style": {
"navigationBarTitleText": "text-decoration-line"
}
},
{
"path": "pages/CSS/transition/transition",
"style": {
"navigationBarTitleText": "Transition"
}
},
{
"path": "pages/CSS/transform/translate",
"style": {
"navigationBarTitleText": "Translate"
}
},
{
"path": "pages/CSS/transform/scale",
"style": {
"navigationBarTitleText": "Scale"
}
},
{
"path": "pages/CSS/transform/rotate",
"path": "pages/API/set-navigation-bar-color/set-navigation-bar-color",
"style": {
"navigationBarTitleText": "Rotate"
"navigationBarTitleText": "设置导航条颜色"
}
},
{
"path": "pages/CSS/variable/variable",
"path": "pages/API/set-navigation-bar-title/set-navigation-bar-title",
"style": {
"navigationBarTitleText": "css 变量"
"navigationBarTitleText": "设置导航条标题"
}
},
{
"path": "pages/tabBar/template",
"path": "pages/API/navigator/new-page/new-page-1",
"style": {
"navigationBarTitleText": "模板"
"navigationBarTitleText": "新页面-1"
}
},
{
"path": "pages/template/list-news/list-news",
"style": {
"navigationBarTitleText": "列表到详情示例"
}
},
{
"path": "pages/template/list-news/detail/detail",
"style": {
"navigationBarTitleText": "详情示例"
}
},
{
"path": "pages/template/drop-card/drop-card",
"style": {
"navigationBarTitleText": "drop-card"
}
},
{
"path": "pages/template/swiper-list/swiper-list",
"style": {
"navigationBarTitleText": "swiper-list"
}
},
{
"path": "pages/template/swiper-list2/swiper-list2",
"style": {
"navigationBarTitleText": "swiper-list2"
}
},
{
"path": "pages/template/swiper-vertical-video/swiper-vertical-video",
"style": {
"navigationStyle": "custom"
}
},
// #ifdef APP
{
"path": "pages/template/scroll-sticky/scroll-sticky",
"style": {
"navigationBarTitleText": "scroll-view自定义滚动吸顶"
}
},
// #endif
{
"path": "pages/template/scroll-fold-nav/scroll-fold-nav",
"style": {
"navigationStyle": "custom",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/template/custom-refresher/custom-refresher",
"style": {
"navigationBarTitleText": "自定义下拉刷新"
}
},
{
"path": "pages/template/half-screen/half-screen",
"style": {
"navigationBarTitleText": "半屏弹窗"
}
},
{
"path": "pages/template/long-list/long-list",
"style": {
"navigationBarTitleText": "顶部搜索框随时下移长列表",
"enablePullDownRefresh": true
}
},
{
"path": "pages/template/long-list2/long-list2",
"style": {
"navigationBarTitleText": "顶部banner长列表",
"enablePullDownRefresh": true
}
},
{
"path": "pages/template/pull-zoom-image/pull-zoom-image",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/template/navbar-lite/navbar-lite",
"style": {
"navigationBarTitleText": "自定义导航栏",
"navigationStyle": "custom"
}
},
{
"path": "pages/template/custom-tab-bar/custom-tab-bar",
"style": {
"navigationBarTitleText": "自定义TabBar"
}
},
// #ifdef WEB
{
"path": "pages/template/browser-canvas/browser-canvas",
"path": "pages/API/navigator/new-page/new-page-3",
"style": {
"navigationBarTitleText": "如何使用浏览器 canvas"
"navigationBarTitleText": "新页面-3"
}
},
{
"path": "pages/API/navigator/new-page/onLoad",
"style": {
"navigationBarTitleText": "onLoad 生命周期测试"
}
},
{
"path": "pages/API/pull-down-refresh/pull-down-refresh",
"style": {
"navigationBarTitleText": "页面级下拉刷新",
"enablePullDownRefresh": true
}
},
{
"path": "pages/API/get-element-by-id/get-element-by-id",
"style": {
"navigationBarTitleText": "获取节点"
}
},
{
"path": "pages/API/get-element-by-id/get-element-by-id-multiple-root-node",
"style": {
"navigationBarTitleText": "获取节点-多根节点"
}
},
{
"path": "pages/API/nodes-info/nodes-info",
"style": {
"navigationBarTitleText": "查询节点信息的对象"
}
},
{
"path": "pages/API/storage/storage",
"style": {
"navigationBarTitleText": "数据存储"
}
},
// #ifndef WEB
{
"path": "pages/API/get-file-system-manager/get-file-system-manager",
"style": {
"navigationBarTitleText": "文件管理"
}
},
// #endif
// #ifdef APP-ANDROID
{
"path": "pages/template/calendar/calendar",
"path": "pages/API/action-sheet/action-sheet",
"style": {
"navigationBarTitleText": "日历"
"navigationBarTitleText": "操作菜单"
}
},
{
"path": "pages/template/schema/schema",
"style": {
"navigationBarTitleText": "打开schema示例"
}
},
{
"path": "pages/template/share/share",
"style": {
"navigationBarTitleText": "分享",
"enablePullDownRefresh": false
}
},
// #endif
{
"path": "pages/webview-screenshot-comparison/webview-screenshot-comparison",
"path": "pages/API/modal/modal",
"style": {
"navigationBarTitleText": "截图对比测试",
"navigationStyle": "custom"
"navigationBarTitleText": "模态弹窗"
}
},
{
"path": "pages/webview-screenshot/webview-screenshot",
"path": "pages/API/loading/loading",
"style": {
"navigationBarTitleText": "webview 截图测试",
"navigationStyle": "custom"
"navigationBarTitleText": "加载提示框"
}
},
// #ifdef APP
{
"path": "pages/API/rewarded-video-ad/rewarded-video-ad",
"path": "pages/API/toast/toast",
"style": {
"navigationBarTitleText": "激励视频广告",
"enablePullDownRefresh": false
"navigationBarTitleText": "消息提示框"
}
},
{
"path": "pages/API/create-request-permission-listener/create-request-permission-listener",
"path": "pages/API/load-font-face/load-font-face",
"style": {
"navigationBarTitleText": "权限申请监听",
"enablePullDownRefresh": false
"navigationBarTitleText": "动态加载字体"
}
},
{
"path": "pages/API/request-payment/request-payment",
"path": "pages/API/load-font-face/load-font-face-child",
"style": {
"navigationBarTitleText": "支付",
"enablePullDownRefresh": false
"navigationBarTitleText": "动态加载字体-子页面"
}
},
{
"path": "pages/component/list-view/list-view-refresh",
"path": "pages/API/get-location/get-location",
"style": {
"navigationBarTitleText": "list-view-refresh",
"enablePullDownRefresh": false
"navigationBarTitleText": "获取定位"
}
}
// #endif
],
"globalStyle": {
"pageOrientation": "portrait",
"navigationBarTitleText": "Hello uniapp x",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#007AFF",
"backgroundColorContent": "#efeff4",
"backgroundColor": "#efeff4",
"backgroundColorTop": "#F4F5F6",
"backgroundColorBottom": "#F4F5F6"
},
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#007AFF",
"borderStyle": "black",
"backgroundColor": "#F8F8F8",
"list": [{
"pagePath": "pages/tabBar/component",
"iconPath": "static/component.png",
"selectedIconPath": "static/componentHL.png",
"text": "内置组件"
},
{
"pagePath": "pages/tabBar/API",
"iconPath": "static/api.png",
"selectedIconPath": "static/apiHL.png",
"text": "接口"
},
{
"pagePath": "pages/tabBar/CSS",
"iconPath": "static/css.png",
"selectedIconPath": "static/cssHL.png",
"text": "CSS"
},
{
"pagePath": "pages/tabBar/template",
"iconPath": "static/template.png",
"selectedIconPath": "static/templateHL.png",
"text": "模板"
}
]
},
"condition": {
//模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "", //模式名称
"path": "", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
}
},
{
"path": "pages/API/interceptor/interceptor",
"style": {
"navigationBarTitleText": "拦截器"
}
},
{
"path": "pages/API/interceptor/page1",
"style": {
"navigationBarTitleText": "拦截器测试页面 1"
}
},
{
"path": "pages/API/interceptor/page2",
"style": {
"navigationBarTitleText": "拦截器测试页面 2"
}
},
{
"path": "pages/API/request/request",
"style": {
"navigationBarTitleText": "request"
}
},
{
"path": "pages/API/upload-file/upload-file",
"style": {
"navigationBarTitleText": "upload-file"
}
},
{
"path": "pages/API/download-file/download-file",
"style": {
"navigationBarTitleText": "download-file"
}
},
{
"path": "pages/API/websocket-socketTask/websocket-socketTask",
"style": {
"navigationBarTitleText": "websocket-socketTask"
}
},
{
"path": "pages/API/websocket-global/websocket-global",
"style": {
"navigationBarTitleText": "websocket-global"
}
},
// #ifndef APP-IOS
{
"path": "pages/API/unicloud-call-function/unicloud-call-function",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/API/unicloud-import-object/unicloud-import-object",
"style": {
"navigationBarTitleText": ""
}
},
// #endif
{
"path": "pages/API/get-system-info/get-system-info",
"style": {
"navigationBarTitleText": "get-system-info"
}
},
{
"path": "pages/API/get-device-info/get-device-info",
"style": {
"navigationBarTitleText": "get-device-info"
}
},
{
"path": "pages/API/get-app-base-info/get-app-base-info",
"style": {
"navigationBarTitleText": "get-app-base-info"
}
},
// #ifdef APP
{
"path": "pages/API/get-system-setting/get-system-setting",
"style": {
"navigationBarTitleText": "get-system-setting"
}
},
// #endif
// #ifndef WEB
{
"path": "pages/API/get-app-authorize-setting/get-app-authorize-setting",
"style": {
"navigationBarTitleText": "get-app-authorize-setting"
}
},
{
"path": "pages/API/save-image-to-photos-album/save-image-to-photos-album",
"style": {
"navigationBarTitleText": "保存图片到相册"
}
},
// #endif
{
"path": "pages/API/preview-image/preview-image",
"style": {
"navigationBarTitleText": "图片预览"
}
},
{
"path": "pages/API/choose-image/choose-image",
"style": {
"navigationBarTitleText": "图片"
}
},
{
"path": "pages/API/get-network-type/get-network-type",
"style": {
"navigationBarTitleText": "get-network-type"
}
},
{
"path": "pages/API/page-scroll-to/page-scroll-to",
"style": {
"navigationBarTitleText": "pageScrollTo"
}
},
{
"path": "pages/API/event-bus/event-bus",
"style": {
"navigationBarTitleText": "event-bus"
}
},
// #ifndef APP-IOS
{
"path": "pages/API/unicloud-file-api/unicloud-file-api",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/API/unicloud-database/unicloud-database",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/API/get-battery-info/get-battery-info",
"style": {
"navigationBarTitleText": "电量"
}
},
// #endif
{
"path": "pages/API/get-window-info/get-window-info",
"style": {
"navigationBarTitleText": "get-window-info"
}
},
// #ifdef APP-ANDROID
{
"path": "pages/API/facial-recognition-verify/facial-recognition-verify",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/element-takesnapshot/element-takesnapshot",
"style": {
"navigationBarTitleText": "takeSnapshot",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/element-draw/element-draw",
"style": {
"navigationBarTitleText": "getDrawableContext",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/get-univerify-manager/get-univerify-manager",
"style": {
"navigationBarTitleText": "uni-verify",
"enablePullDownRefresh": false
}
},
// #endif
{
"path": "pages/API/rpx2px/rpx2px",
"style": {
"navigationBarTitleText": "rpx2px",
"enablePullDownRefresh": false
}
},
{
"path": "pages/tabBar/CSS",
"style": {
"navigationBarTitleText": "CSS",
"backgroundColor": "#F8F8F8"
}
},
{
"path": "pages/CSS/background/background-color",
"style": {
"navigationBarTitleText": "background-color"
}
},
{
"path": "pages/CSS/background/background-image",
"style": {
"navigationBarTitleText": "background-image"
}
},
{
"path": "pages/CSS/border/border-bottom",
"style": {
"navigationBarTitleText": "border-bottom"
}
},
{
"path": "pages/CSS/border/border-color",
"style": {
"navigationBarTitleText": "border-color"
}
},
{
"path": "pages/CSS/border/border-left",
"style": {
"navigationBarTitleText": "border-left"
}
},
{
"path": "pages/CSS/border/border-radius",
"style": {
"navigationBarTitleText": "border-radius"
}
},
{
"path": "pages/CSS/border/border-right",
"style": {
"navigationBarTitleText": "border-right"
}
},
{
"path": "pages/CSS/border/border-style",
"style": {
"navigationBarTitleText": "border-style"
}
},
{
"path": "pages/CSS/border/border-top",
"style": {
"navigationBarTitleText": "border-top"
}
},
{
"path": "pages/CSS/border/border-width",
"style": {
"navigationBarTitleText": "border-width"
}
},
{
"path": "pages/CSS/border/border",
"style": {
"navigationBarTitleText": "border"
}
},
{
"path": "pages/CSS/border/complex-border/complex-border",
"style": {
"navigationBarTitleText": "border属性组合示例"
}
},
{
"path": "pages/CSS/box-shadow/box-shadow",
"style": {
"navigationBarTitleText": "box-shadow"
}
},
{
"path": "pages/CSS/display/flex",
"style": {
"navigationBarTitleText": "display:flex"
}
},
{
"path": "pages/CSS/display/none",
"style": {
"navigationBarTitleText": "display:none"
}
},
{
"path": "pages/CSS/flex/align-content",
"style": {
"navigationBarTitleText": "align-content"
}
},
{
"path": "pages/CSS/flex/align-items",
"style": {
"navigationBarTitleText": "align-items"
}
},
{
"path": "pages/CSS/flex/flex-basis",
"style": {
"navigationBarTitleText": "flex-basis"
}
},
{
"path": "pages/CSS/flex/flex-direction",
"style": {
"navigationBarTitleText": "flex-direction"
}
},
{
"path": "pages/CSS/flex/flex-flow",
"style": {
"navigationBarTitleText": "flex-flow"
}
},
{
"path": "pages/CSS/flex/flex-grow",
"style": {
"navigationBarTitleText": "flex-grow"
}
},
{
"path": "pages/CSS/flex/flex-shrink",
"style": {
"navigationBarTitleText": "flex-shrink"
}
},
{
"path": "pages/CSS/flex/flex",
"style": {
"navigationBarTitleText": "flex"
}
},
{
"path": "pages/CSS/flex/justify-content",
"style": {
"navigationBarTitleText": "justify-content"
}
},
{
"path": "pages/CSS/layout/height",
"style": {
"navigationBarTitleText": "height"
}
},
{
"path": "pages/CSS/layout/max-height",
"style": {
"navigationBarTitleText": "max-height"
}
},
{
"path": "pages/CSS/layout/max-width",
"style": {
"navigationBarTitleText": "max-width"
}
},
{
"path": "pages/CSS/layout/min-height",
"style": {
"navigationBarTitleText": "min-height"
}
},
{
"path": "pages/CSS/layout/min-width",
"style": {
"navigationBarTitleText": "min-width"
}
},
{
"path": "pages/CSS/layout/position",
"style": {
"navigationBarTitleText": "position"
}
},
{
"path": "pages/CSS/layout/width",
"style": {
"navigationBarTitleText": "width"
}
},
{
"path": "pages/CSS/layout/z-index",
"style": {
"navigationBarTitleText": "z-index"
}
},
{
"path": "pages/CSS/layout/visibility",
"style": {
"navigationBarTitleText": "visibility"
}
},
{
"path": "pages/CSS/margin/margin-bottom",
"style": {
"navigationBarTitleText": "margin-bottom"
}
},
{
"path": "pages/CSS/margin/margin-left",
"style": {
"navigationBarTitleText": "margin-left"
}
},
{
"path": "pages/CSS/margin/margin-right",
"style": {
"navigationBarTitleText": "margin-right"
}
},
{
"path": "pages/CSS/margin/margin-top",
"style": {
"navigationBarTitleText": "margin-top"
}
},
{
"path": "pages/CSS/margin/margin",
"style": {
"navigationBarTitleText": "margin"
}
},
{
"path": "pages/CSS/overflow/overflow",
"style": {
"navigationBarTitleText": "overflow"
}
},
{
"path": "pages/CSS/padding/padding-bottom",
"style": {
"navigationBarTitleText": "padding-bottom"
}
},
{
"path": "pages/CSS/padding/padding-left",
"style": {
"navigationBarTitleText": "padding-left"
}
},
{
"path": "pages/CSS/padding/padding-right",
"style": {
"navigationBarTitleText": "padding-right"
}
},
{
"path": "pages/CSS/padding/padding-top",
"style": {
"navigationBarTitleText": "padding-top"
}
},
{
"path": "pages/CSS/padding/padding",
"style": {
"navigationBarTitleText": "padding"
}
},
{
"path": "pages/CSS/text/color",
"style": {
"navigationBarTitleText": "color"
}
},
{
"path": "pages/CSS/text/font-family",
"style": {
"navigationBarTitleText": "font-family"
}
},
{
"path": "pages/CSS/text/font-size",
"style": {
"navigationBarTitleText": "font-size"
}
},
{
"path": "pages/CSS/text/font-style",
"style": {
"navigationBarTitleText": "font-style"
}
},
{
"path": "pages/CSS/text/font-weight",
"style": {
"navigationBarTitleText": "font-weight"
}
},
{
"path": "pages/CSS/text/letter-spacing",
"style": {
"navigationBarTitleText": "letter-spacing"
}
},
{
"path": "pages/CSS/text/line-height",
"style": {
"navigationBarTitleText": "line-height"
}
},
{
"path": "pages/CSS/text/text-align",
"style": {
"navigationBarTitleText": "text-align"
}
},
{
"path": "pages/CSS/text/text-overflow",
"style": {
"navigationBarTitleText": "text-overflow"
}
},
{
"path": "pages/CSS/text/text-decoration-line",
"style": {
"navigationBarTitleText": "text-decoration-line"
}
},
{
"path": "pages/CSS/transition/transition",
"style": {
"navigationBarTitleText": "Transition"
}
},
{
"path": "pages/CSS/transform/translate",
"style": {
"navigationBarTitleText": "Translate"
}
},
{
"path": "pages/CSS/transform/scale",
"style": {
"navigationBarTitleText": "Scale"
}
},
{
"path": "pages/CSS/transform/rotate",
"style": {
"navigationBarTitleText": "Rotate"
}
},
{
"path": "pages/CSS/variable/variable",
"style": {
"navigationBarTitleText": "css 变量"
}
},
{
"path": "pages/tabBar/template",
"style": {
"navigationBarTitleText": "模板"
}
},
{
"path": "pages/template/list-news/list-news",
"style": {
"navigationBarTitleText": "列表到详情示例"
}
},
{
"path": "pages/template/list-news/detail/detail",
"style": {
"navigationBarTitleText": "详情示例"
}
},
{
"path": "pages/template/drop-card/drop-card",
"style": {
"navigationBarTitleText": "drop-card"
}
},
{
"path": "pages/template/swiper-list/swiper-list",
"style": {
"navigationBarTitleText": "swiper-list"
}
},
{
"path": "pages/template/swiper-list2/swiper-list2",
"style": {
"navigationBarTitleText": "swiper-list2"
}
},
{
"path": "pages/template/swiper-vertical-video/swiper-vertical-video",
"style": {
"navigationStyle": "custom"
}
},
// #ifdef APP
{
"path": "pages/template/scroll-sticky/scroll-sticky",
"style": {
"navigationBarTitleText": "scroll-view自定义滚动吸顶"
}
},
// #endif
{
"path": "pages/template/scroll-fold-nav/scroll-fold-nav",
"style": {
"navigationStyle": "custom",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/template/custom-refresher/custom-refresher",
"style": {
"navigationBarTitleText": "自定义下拉刷新"
}
},
{
"path": "pages/template/half-screen/half-screen",
"style": {
"navigationBarTitleText": "半屏弹窗"
}
},
{
"path": "pages/template/long-list/long-list",
"style": {
"navigationBarTitleText": "顶部搜索框随时下移长列表",
"enablePullDownRefresh": true
}
},
{
"path": "pages/template/long-list2/long-list2",
"style": {
"navigationBarTitleText": "顶部banner长列表",
"enablePullDownRefresh": true
}
},
{
"path": "pages/template/pull-zoom-image/pull-zoom-image",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/template/navbar-lite/navbar-lite",
"style": {
"navigationBarTitleText": "自定义导航栏",
"navigationStyle": "custom"
}
},
{
"path": "pages/template/custom-tab-bar/custom-tab-bar",
"style": {
"navigationBarTitleText": "自定义TabBar"
}
},
// #ifdef WEB
{
"path": "pages/template/browser-canvas/browser-canvas",
"style": {
"navigationBarTitleText": "如何使用浏览器 canvas"
}
},
// #endif
// #ifdef APP-ANDROID
{
"path": "pages/template/calendar/calendar",
"style": {
"navigationBarTitleText": "日历"
}
},
{
"path": "pages/template/schema/schema",
"style": {
"navigationBarTitleText": "打开schema示例"
}
},
{
"path": "pages/template/share/share",
"style": {
"navigationBarTitleText": "分享",
"enablePullDownRefresh": false
}
},
// #endif
{
"path": "pages/webview-screenshot-comparison/webview-screenshot-comparison",
"style": {
"navigationBarTitleText": "截图对比测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/webview-screenshot/webview-screenshot",
"style": {
"navigationBarTitleText": "webview 截图测试",
"navigationStyle": "custom"
}
},
// #ifdef APP
{
"path": "pages/API/rewarded-video-ad/rewarded-video-ad",
"style": {
"navigationBarTitleText": "激励视频广告",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/create-request-permission-listener/create-request-permission-listener",
"style": {
"navigationBarTitleText": "权限申请监听",
"enablePullDownRefresh": false
}
},
{
"path": "pages/API/request-payment/request-payment",
"style": {
"navigationBarTitleText": "支付",
"enablePullDownRefresh": false
}
},
{
"path": "pages/component/list-view/list-view-refresh",
"style": {
"navigationBarTitleText": "list-view-refresh",
"enablePullDownRefresh": false
}
}
// #endif
],
"globalStyle": {
"pageOrientation": "portrait",
"navigationBarTitleText": "Hello uniapp x",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#007AFF",
"backgroundColorContent": "#efeff4",
"backgroundColor": "#efeff4",
"backgroundColorTop": "#F4F5F6",
"backgroundColorBottom": "#F4F5F6"
},
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#007AFF",
"borderStyle": "black",
"backgroundColor": "#F8F8F8",
"list": [{
"pagePath": "pages/tabBar/component",
"iconPath": "static/component.png",
"selectedIconPath": "static/componentHL.png",
"text": "内置组件"
},
{
"pagePath": "pages/tabBar/API",
"iconPath": "static/api.png",
"selectedIconPath": "static/apiHL.png",
"text": "接口"
},
{
"pagePath": "pages/tabBar/CSS",
"iconPath": "static/css.png",
"selectedIconPath": "static/cssHL.png",
"text": "CSS"
},
{
"pagePath": "pages/tabBar/template",
"iconPath": "static/template.png",
"selectedIconPath": "static/templateHL.png",
"text": "模板"
}
]
},
"condition": {
//模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "", //模式名称
"path": "", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
}
}
......@@ -7,8 +7,7 @@ describe('API-loading', () => {
beforeAll(async () => {
page = await program.reLaunch('/pages/API/action-sheet/action-sheet')
await page.waitFor(200);
await page.waitFor(500);
});
......@@ -23,7 +22,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -64,7 +63,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -106,7 +105,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -147,7 +146,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -188,7 +187,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -229,7 +228,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -273,7 +272,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -314,7 +313,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -355,7 +354,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -396,7 +395,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -438,7 +437,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -479,7 +478,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......@@ -520,7 +519,7 @@ describe('API-loading', () => {
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 100,
width:windowWidth
},
});
......
......@@ -16,13 +16,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -54,13 +56,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -93,13 +97,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -132,13 +138,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -171,13 +179,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -210,13 +220,14 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -249,13 +260,14 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -288,13 +300,14 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -327,13 +340,14 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -366,13 +380,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -405,13 +421,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -444,13 +462,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -483,13 +503,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -522,13 +544,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -561,13 +585,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -601,13 +627,14 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -640,13 +667,15 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -679,13 +708,14 @@ describe('API-loading', () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......
......@@ -5,6 +5,7 @@ describe('API-toast', () => {
let page;
const isAndroid = process.env.UNI_OS_NAME === "android";
beforeAll(async () => {
page = await program.reLaunch('/pages/API/toast/toast')
await page.waitFor(600);
......@@ -13,12 +14,21 @@ describe('API-toast', () => {
it("onload-toast-test", async () => {
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -38,11 +48,18 @@ describe('API-toast', () => {
await btnToastDefaultButton.tap()
await page.waitFor(200)
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -62,11 +79,16 @@ describe('API-toast', () => {
await btnToastDurationButton.tap()
await page.waitFor(2000)
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -84,11 +106,16 @@ describe('API-toast', () => {
await btnToastErrorIconButton.tap()
await page.waitFor(200)
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......@@ -112,11 +139,16 @@ describe('API-toast', () => {
await page.waitFor(1000)
if (isAndroid) {
const res = await page.callMethod('jest_getWindowInfo')
const windowHeight = res.windowHeight * res.pixelRatio;
const windowWidth = res.windowWidth * res.pixelRatio;
const image = await program.screenshot({
adb: true,
area: {
x: 0,
y: 200,
height: windowHeight - 200,
width:windowWidth
},
});
expect(image).toMatchImageSnapshot();
......
......@@ -37,6 +37,10 @@
}, 2000);
},
methods: {
//自动化测试例专用
jest_getWindowInfo() : GetWindowInfoResult {
return uni.getWindowInfo();
},
toast1Tap: function () {
uni.showToast({
title: "默认",
......
<script>
import { ItemType } from '@/components/enum-data/enum-data'
export default {
data() {
return {
plain_boolean: false,
disabled_boolean: false,
default_style: false,
size_enum: [{ "value": 0, "name": "default" }, { "value": 1, "name": "mini" }] as ItemType[],
size_enum_current: 0,
type_enum: [{ "value": 0, "name": "default" }, { "value": 1, "name": "primary" }, { "value": 2, "name": "warn" }] as ItemType[],
type_enum_current: 0,
count: 0,
text: 'uni-app-x'
}
},
methods: {
button_click() {
console.log("组件被点击时触发")
this.count++
},
button_touchstart() { console.log("手指触摸动作开始") },
button_touchmove() { console.log("手指触摸后移动") },
button_touchcancel() { console.log("手指触摸动作被打断,如来电提醒,弹窗") },
button_touchend() { console.log("手指触摸动作结束") },
button_tap() { console.log("手指触摸后马上离开") },
button_longpress() { console.log("如果一个组件被绑定了 longpress 事件,那么当用户长按这个组件时,该事件将会被触发。") },
change_plain_boolean(checked : boolean) { this.plain_boolean = checked },
change_disabled_boolean(checked : boolean) { this.disabled_boolean = checked },
change_default_style(checked : boolean) { this.default_style = checked },
radio_change_size_enum(checked : number) { this.size_enum_current = checked },
radio_change_type_enum(checked : number) { this.type_enum_current = checked },
confirm_text_input(value : string) { this.text = value }
}
}
</script>
<template>
<view class="main">
<!--type-->
<view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[size_enum_current].name"
:type="type_enum[0].name" :plain="plain_boolean" @click="button_click" @touchstart="button_touchstart"
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[size_enum_current].name"
:type="type_enum[1].name" :plain="plain_boolean" @click="button_click" @touchstart="button_touchstart"
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[size_enum_current].name"
:type="type_enum[2].name" :plain="plain_boolean" @click="button_click" @touchstart="button_touchstart"
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<!--size-->
<view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[0].name"
:type="type_enum[type_enum_current].name" :plain="plain_boolean" @click="button_click"
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[1].name"
:type="type_enum[type_enum_current].name" :plain="plain_boolean" @click="button_click"
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<!--plain-->
<view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[size_enum_current].name"
:type="type_enum[type_enum_current].name" :plain="true" @click="button_click" @touchstart="button_touchstart"
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<view class="container">
<button style="margin: 10px;" :disabled="disabled_boolean" :size="size_enum[size_enum_current].name"
:type="type_enum[type_enum_current].name" :plain="false" @click="button_click" @touchstart="button_touchstart"
@touchmove="button_touchmove" @touchcancel="button_touchcancel" @touchend="button_touchend" @tap="button_tap"
@longpress="button_longpress" class="btn" :class="default_style ? 'custom-btn' : ''"
:hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<!--disable-->
<view class="container">
<button style="margin: 10px;" :disabled="false" :size="size_enum[size_enum_current].name"
:type="type_enum[type_enum_current].name" :plain="plain_boolean" @click="button_click"
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
<view class="container">
<button style="margin: 10px;" :disabled="true" :size="size_enum[size_enum_current].name"
:type="type_enum[type_enum_current].name" :plain="plain_boolean" @click="button_click"
@touchstart="button_touchstart" @touchmove="button_touchmove" @touchcancel="button_touchcancel"
@touchend="button_touchend" @tap="button_tap" @longpress="button_longpress" class="btn"
:class="default_style ? 'custom-btn' : ''" :hover-class="default_style ? 'is-hover' : 'button-hover'">
{{ text }}
</button>
</view>
</view>
</template>
<style>
.main {
padding: 5px 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
flex-direction: column;
justify-content: center;
}
.main .list-item {
width: 100%;
height: 100px;
border: 1px solid #666;
}
.custom-btn {
color: #ffffff;
background-color: #1AAD19;
border-color: #1AAD19;
border-radius: 5px;
border-width: 0.5px;
height: 53px;
}
.is-hover {
color: rgba(255, 255, 255, 0.6);
background-color: #179b16;
border-color: #179b16;
}
.container {
width: 100%;
height: 60px;
/* background-color: orange; */
}
</style>
<template>
<scroll-view class="page">
<page-head :title="title"></page-head>
<view class="flex-row">
<view class="flex-fill">
<slider ref="slider1" v-for="(_, index1) in 25" :key="index1" class="slider" @changing="sliderChanging"
@change="sliderChange" :value="sliderValue" :block-size="20" :show-value="true" />
</view>
<view class="flex-fill">
<slider ref="slider2" v-for="(_, index2) in 25" :key="index2" class="slider" @changing="sliderChanging"
@change="sliderChange" :value="sliderValue" :block-size="20" :show-value="true" />
</view>
<view class="flex-fill">
<slider ref="slider3" v-for="(_, index3) in 25" :key="index3" class="slider" @changing="sliderChanging"
@change="sliderChange" :value="sliderValue" :block-size="20" :show-value="true" />
</view>
<view class="flex-fill">
<slider ref="slider4" v-for="(_, index4) in 25" :key="index4" class="slider" @changing="sliderChanging"
@change="sliderChange" :value="sliderValue" :block-size="20" :show-value="true" />
</view>
<view class="grid-view">
<slider ref="slider" class="slider" v-for="(_, index) in 100" :key="index" @changing="sliderChanging"
@change="sliderChange" :value="sliderValue" :block-size="20" :show-value="true" />
</view>
</scroll-view>
</template>
......@@ -38,19 +24,8 @@
this.updateSliderValue(e.detail.value)
},
updateSliderValue(value : number) {
// this.sliderValue = value
// TODO 跳过vue框架,直接修改原生组件
(this.$refs["slider1"] as UniSliderElement[]).forEach((item) => {
item.value = value
});
(this.$refs["slider2"] as UniSliderElement[]).forEach((item) => {
item.value = value
});
(this.$refs["slider3"] as UniSliderElement[]).forEach((item) => {
item.value = value
});
(this.$refs["slider4"] as UniSliderElement[]).forEach((item) => {
(this.$refs["slider"] as UniSliderElement[]).forEach((item) => {
item.value = value
});
}
......@@ -63,15 +38,14 @@
flex: 1;
}
.flex-row {
.grid-view {
flex-direction: row;
}
.flex-fill {
flex: 1;
flex-wrap: wrap;
}
.slider {
margin: 1px 0.5px;
width: 25%;
margin-top: 1px;
margin-bottom: 1px;
}
</style>
......@@ -168,6 +168,10 @@
{
name: '动态加载字体',
url: 'load-font-face',
},
{
name: 'rpx2px',
url: 'rpx2px'
},
{
name: 'actionSheet操作菜单',
......@@ -467,16 +471,6 @@
}
] as Page[],
},
{
id: 'permission-listener',
name: '权限申请监听',
pages: [
{
name: '权限申请监听',
url: 'create-request-permission-listener',
}
] as Page[]
},
{
id: "payment",
name: "支付",
......@@ -486,15 +480,19 @@
url: "request-payment",
},
] as Page[],
}
// #endif
/* {
id: "rewarded-video-ad",
url: "rewarded-video-ad",
name: "激励视频广告",
enable: false,
pages: [] as Page[]
},
{
id: 'permission-listener',
name: '权限申请监听',
pages: [
{
name: '权限申请监听',
url: 'create-request-permission-listener',
}
] as Page[]
},
// #endif
/*
{
id: "full-screen-video-ad",
url: "full-screen-video-ad",
......@@ -526,16 +524,6 @@
},
] as Page[],
},
{
id: "payment",
name: "支付",
pages: [
{
name: "发起支付",
url: "request-payment",
},
] as Page[],
},
*/
] as ListItem[],
arrowUpIcon: '/static/icons/arrow-up.png',
......
// uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
describe('template-list-news', () => {
if (process.env.uniTestPlatformInfo.startsWith('web')) {
it('dummyTest', async () => {
expect(1).toBe(1)
})
return
}
let page;
beforeAll(async () => {
page = await program.reLaunch('/pages/template/list-news/list-news');
......
......@@ -8,7 +8,8 @@ const pages = [
"pages/component/text/text-props",
"pages/component/progress/progress",
"pages/component/form/form",
"pages/component/button/button",
"pages/component/button/button",
"pages/component/button/buttonstatus",
"pages/component/radio/radio",
"pages/component/rich-text/rich-text",
"pages/component/rich-text/rich-text-tags",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册