Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
a847f5f0
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6007
Star
91
Fork
164
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a847f5f0
编写于
2月 28, 2024
作者:
W
WOSHIMAHAIFENG
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://gitcode.net/dcloud/hello-uni-app-x
into dev-payment
上级
62e46961
0bf5470b
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
1391 addition
and
1369 deletion
+1391
-1369
pages.json
pages.json
+1274
-1265
pages/component/list-view/list-view-refresh.test.js
pages/component/list-view/list-view-refresh.test.js
+24
-0
pages/component/list-view/list-view-refresh.uvue
pages/component/list-view/list-view-refresh.uvue
+49
-0
pages/component/list-view/list-view.uvue
pages/component/list-view/list-view.uvue
+5
-1
pages/component/text/text-props.test.js
pages/component/text/text-props.test.js
+8
-0
pages/component/text/text-props.uvue
pages/component/text/text-props.uvue
+7
-2
pages/tabBar/template.uvue
pages/tabBar/template.uvue
+2
-4
pages/template/long-list/long-list.uvue
pages/template/long-list/long-list.uvue
+6
-2
pages/template/long-list2/long-list2.uvue
pages/template/long-list2/long-list2.uvue
+7
-1
pages/template/swiper-list/swiper-list.uvue
pages/template/swiper-list/swiper-list.uvue
+1
-0
pages/template/swiper-list2/swiper-list2.uvue
pages/template/swiper-list2/swiper-list2.uvue
+1
-0
uni_modules/uni-loading/changelog.md
uni_modules/uni-loading/changelog.md
+2
-0
uni_modules/uni-loading/components/uni-loading/loading-circle.uvue
...es/uni-loading/components/uni-loading/loading-circle.uvue
+0
-0
uni_modules/uni-loading/components/uni-loading/snow.uvue
uni_modules/uni-loading/components/uni-loading/snow.uvue
+0
-89
uni_modules/uni-loading/components/uni-loading/uni-loading.uvue
...dules/uni-loading/components/uni-loading/uni-loading.uvue
+4
-4
uni_modules/uni-loading/package.json
uni_modules/uni-loading/package.json
+1
-1
未找到文件。
pages.json
浏览文件 @
a847f5f0
{
{
"pages"
:
[
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
{
"path"
:
"pages/tabBar/component"
,
"path"
:
"pages/tabBar/component"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"内置组件"
,
"navigationBarTitleText"
:
"内置组件"
,
"backgroundColor"
:
"#F8F8F8"
"backgroundColor"
:
"#F8F8F8"
}
}
},
},
{
{
"path"
:
"pages/component/view/view"
,
"path"
:
"pages/component/view/view"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"view"
"navigationBarTitleText"
:
"view"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view"
,
"path"
:
"pages/component/scroll-view/scroll-view"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"scroll-view"
"navigationBarTitleText"
:
"scroll-view"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher"
,
"path"
:
"pages/component/scroll-view/scroll-view-refresher"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"scroll-view-refresher"
"navigationBarTitleText"
:
"scroll-view-refresher"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
}
}
},
},
{
{
"path"
:
"pages/component/swiper/swiper"
,
"path"
:
"pages/component/swiper/swiper"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"swiper"
"navigationBarTitleText"
:
"swiper"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view"
,
"path"
:
"pages/component/list-view/list-view"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view"
"navigationBarTitleText"
:
"list-view"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex"
"navigationBarTitleText"
:
"list-view-multiplex"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view复用input"
,
"navigationBarTitleText"
:
"list-view复用input"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex-video"
"navigationBarTitleText"
:
"list-view-multiplex-video"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view-children-in-slot"
"navigationBarTitleText"
:
"list-view-children-in-slot"
}
}
},
},
//
#ifdef
APP
//
#ifdef
APP
{
{
"path"
:
"pages/component/sticky-section/sticky-section"
,
"path"
:
"pages/component/sticky-section/sticky-section"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"sticky-section"
"navigationBarTitleText"
:
"sticky-section"
}
}
},
},
{
{
"path"
:
"pages/component/sticky-header/sticky-header"
,
"path"
:
"pages/component/sticky-header/sticky-header"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"sticky-header"
,
"navigationBarTitleText"
:
"sticky-header"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
//#endif
//#endif
{
{
"path"
:
"pages/component/text/text"
,
"path"
:
"pages/component/text/text"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"text"
"navigationBarTitleText"
:
"text"
}
}
},
},
{
{
"path"
:
"pages/component/text/text-props"
,
"path"
:
"pages/component/text/text-props"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"text-props"
"navigationBarTitleText"
:
"text-props"
}
}
},
},
{
{
"path"
:
"pages/component/rich-text/rich-text"
,
"path"
:
"pages/component/rich-text/rich-text"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"rich-text"
"navigationBarTitleText"
:
"rich-text"
}
}
},
},
{
{
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"rich-text-tags"
"navigationBarTitleText"
:
"rich-text-tags"
}
}
},
},
{
{
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"rich-text-complex"
"navigationBarTitleText"
:
"rich-text-complex"
}
}
},
},
{
{
"path"
:
"pages/component/progress/progress"
,
"path"
:
"pages/component/progress/progress"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"progress"
"navigationBarTitleText"
:
"progress"
}
}
},
},
{
{
"path"
:
"pages/component/form/form"
,
"path"
:
"pages/component/form/form"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"form"
"navigationBarTitleText"
:
"form"
}
}
},
},
{
{
"path"
:
"pages/component/button/button"
,
"path"
:
"pages/component/button/button"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"button"
"navigationBarTitleText"
:
"button"
}
}
},
},
{
{
"path"
:
"pages/component/radio/radio"
,
"path"
:
"pages/component/radio/radio"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"radio"
"navigationBarTitleText"
:
"radio"
}
}
},
},
{
{
"path"
:
"pages/component/checkbox/checkbox"
,
"path"
:
"pages/component/checkbox/checkbox"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"checkbox"
"navigationBarTitleText"
:
"checkbox"
}
}
},
},
{
{
"path"
:
"pages/component/input/input"
,
"path"
:
"pages/component/input/input"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"input"
"navigationBarTitleText"
:
"input"
}
}
},
},
{
{
"path"
:
"pages/component/textarea/textarea"
,
"path"
:
"pages/component/textarea/textarea"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"textarea"
"navigationBarTitleText"
:
"textarea"
}
}
},
},
{
{
"path"
:
"pages/component/slider/slider"
,
"path"
:
"pages/component/slider/slider"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"slider"
"navigationBarTitleText"
:
"slider"
}
}
},
},
{
{
"path"
:
"pages/component/picker-view/picker-view"
,
"path"
:
"pages/component/picker-view/picker-view"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"picker-view"
"navigationBarTitleText"
:
"picker-view"
}
}
},
},
{
{
"path"
:
"pages/component/slider-100/slider-100"
,
"path"
:
"pages/component/slider-100/slider-100"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"slider x 100"
"navigationBarTitleText"
:
"slider x 100"
}
}
},
},
{
{
"path"
:
"pages/component/switch/switch"
,
"path"
:
"pages/component/switch/switch"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"switch"
"navigationBarTitleText"
:
"switch"
}
}
},
},
{
{
"path"
:
"pages/component/image/image"
,
"path"
:
"pages/component/image/image"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"image"
"navigationBarTitleText"
:
"image"
}
}
},
},
{
{
"path"
:
"pages/component/image/image-format"
,
"path"
:
"pages/component/image/image-format"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"image-format"
"navigationBarTitleText"
:
"image-format"
}
}
},
},
{
{
"path"
:
"pages/component/image/image-mode"
,
"path"
:
"pages/component/image/image-mode"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"image-mode"
"navigationBarTitleText"
:
"image-mode"
}
}
},
},
{
{
"path"
:
"pages/component/image/image-path"
,
"path"
:
"pages/component/image/image-path"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"image-path"
"navigationBarTitleText"
:
"image-path"
}
}
},
},
{
{
"path"
:
"pages/component/image/image-large"
,
"path"
:
"pages/component/image/image-large"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"大图测试"
"navigationBarTitleText"
:
"大图测试"
}
}
},
},
{
{
"path"
:
"pages/component/video/video"
,
"path"
:
"pages/component/video/video"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"video"
"navigationBarTitleText"
:
"video"
}
}
},
},
{
{
"path"
:
"pages/component/video/video-format"
,
"path"
:
"pages/component/video/video-format"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"video-format"
"navigationBarTitleText"
:
"video-format"
}
}
},
},
{
{
"path"
:
"pages/component/navigator/navigator"
,
"path"
:
"pages/component/navigator/navigator"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"navigator"
"navigationBarTitleText"
:
"navigator"
}
}
},
},
{
{
"path"
:
"pages/component/navigator/navigate"
,
"path"
:
"pages/component/navigator/navigate"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"navigatePage"
"navigationBarTitleText"
:
"navigatePage"
}
}
},
},
{
{
"path"
:
"pages/component/navigator/redirect"
,
"path"
:
"pages/component/navigator/redirect"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"redirectPage"
"navigationBarTitleText"
:
"redirectPage"
}
}
},
},
{
{
"path"
:
"pages/component/web-view/web-view"
,
"path"
:
"pages/component/web-view/web-view"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"web-view"
"navigationBarTitleText"
:
"web-view"
}
}
},
},
{
{
"path"
:
"pages/component/web-view-local/web-view-local"
,
"path"
:
"pages/component/web-view-local/web-view-local"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"web-view-local"
"navigationBarTitleText"
:
"web-view-local"
}
}
},
},
//
#ifndef
APP-IOS
//
#ifndef
APP-IOS
{
{
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"联系人"
,
"navigationBarTitleText"
:
"联系人"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
}
}
},
},
{
{
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"新增联系人"
"navigationBarTitleText"
:
"新增联系人"
}
}
},
},
{
{
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"编辑联系人"
"navigationBarTitleText"
:
"编辑联系人"
}
}
},
},
{
{
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"mixinDatacom"
"navigationBarTitleText"
:
"mixinDatacom"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/component/general-attribute/general-attribute"
,
"path"
:
"pages/component/general-attribute/general-attribute"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"general-attribute"
"navigationBarTitleText"
:
"general-attribute"
}
}
},
},
{
{
"path"
:
"pages/component/general-event/general-event"
,
"path"
:
"pages/component/general-event/general-event"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"general-event"
"navigationBarTitleText"
:
"general-event"
}
}
},
},
{
{
"path"
:
"pages/component/general-event/transition-event"
,
"path"
:
"pages/component/general-event/transition-event"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"transitionend事件"
"navigationBarTitleText"
:
"transitionend事件"
}
}
},
},
{
{
"path"
:
"pages/component/general-event/touch-event"
,
"path"
:
"pages/component/general-event/touch-event"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"touch-event"
"navigationBarTitleText"
:
"touch-event"
}
}
},
},
{
{
"path"
:
"pages/tabBar/API"
,
"path"
:
"pages/tabBar/API"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"接口"
,
"navigationBarTitleText"
:
"接口"
,
"backgroundColor"
:
"#F8F8F8"
"backgroundColor"
:
"#F8F8F8"
}
}
},
},
//
{
//
{
//
"path"
:
"pages/API/canvas/canvas"
,
//
"path"
:
"pages/API/canvas/canvas"
,
//
"style"
:
{
//
"style"
:
{
//
"navigationBarTitleText"
:
"创建绘画"
//
"navigationBarTitleText"
:
"创建绘画"
//
}
//
}
//
},
//
},
{
{
"path"
:
"pages/API/get-app/get-app"
,
"path"
:
"pages/API/get-app/get-app"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"getApp"
"navigationBarTitleText"
:
"getApp"
}
}
},
},
//
#ifdef
APP-ANDROID
//
#ifdef
APP-ANDROID
{
{
"path"
:
"pages/API/exit/exit"
,
"path"
:
"pages/API/exit/exit"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"exit"
"navigationBarTitleText"
:
"exit"
}
}
},
},
{
{
"path"
:
"pages/API/install-apk/install-apk"
,
"path"
:
"pages/API/install-apk/install-apk"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"install-apk"
,
"navigationBarTitleText"
:
"install-apk"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"getCurrentPages"
"navigationBarTitleText"
:
"getCurrentPages"
}
}
},
},
{
{
"path"
:
"pages/API/get-launch-options-sync/get-launch-options-sync"
,
"path"
:
"pages/API/get-launch-options-sync/get-launch-options-sync"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"getLaunchOptionsSync"
"navigationBarTitleText"
:
"getLaunchOptionsSync"
}
}
},
},
{
{
"path"
:
"pages/API/navigator/navigator"
,
"path"
:
"pages/API/navigator/navigator"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"页面跳转"
"navigationBarTitleText"
:
"页面跳转"
}
}
},
},
{
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color"
,
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"设置导航条颜色"
"navigationBarTitleText"
:
"设置导航条颜色"
}
}
},
},
{
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation"
,
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"设置状态栏颜色"
"navigationBarTitleText"
:
"设置状态栏颜色"
}
}
},
},
{
{
"path"
:
"pages/API/set-navigation-bar-title/set-navigation-bar-title"
,
"path"
:
"pages/API/set-navigation-bar-title/set-navigation-bar-title"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"设置导航条标题"
"navigationBarTitleText"
:
"设置导航条标题"
}
}
},
},
{
{
"path"
:
"pages/API/navigator/new-page/new-page-1"
,
"path"
:
"pages/API/navigator/new-page/new-page-1"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"新页面-1"
"navigationBarTitleText"
:
"新页面-1"
}
}
},
},
{
{
"path"
:
"pages/API/navigator/new-page/new-page-3"
,
"path"
:
"pages/API/navigator/new-page/new-page-3"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"新页面-3"
"navigationBarTitleText"
:
"新页面-3"
}
}
},
},
{
{
"path"
:
"pages/API/navigator/new-page/onLoad"
,
"path"
:
"pages/API/navigator/new-page/onLoad"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"onLoad 生命周期测试"
"navigationBarTitleText"
:
"onLoad 生命周期测试"
}
}
},
},
{
{
"path"
:
"pages/API/pull-down-refresh/pull-down-refresh"
,
"path"
:
"pages/API/pull-down-refresh/pull-down-refresh"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"页面级下拉刷新"
,
"navigationBarTitleText"
:
"页面级下拉刷新"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
}
}
},
},
{
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id"
,
"path"
:
"pages/API/get-element-by-id/get-element-by-id"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"获取节点"
"navigationBarTitleText"
:
"获取节点"
}
}
},
},
{
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id-multiple-root-node"
,
"path"
:
"pages/API/get-element-by-id/get-element-by-id-multiple-root-node"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"获取节点-多根节点"
"navigationBarTitleText"
:
"获取节点-多根节点"
}
}
},
},
{
{
"path"
:
"pages/API/nodes-info/nodes-info"
,
"path"
:
"pages/API/nodes-info/nodes-info"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"查询节点信息的对象"
"navigationBarTitleText"
:
"查询节点信息的对象"
}
}
},
},
{
{
"path"
:
"pages/API/storage/storage"
,
"path"
:
"pages/API/storage/storage"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"数据存储"
"navigationBarTitleText"
:
"数据存储"
}
}
},
},
//
#ifndef
WEB
//
#ifndef
WEB
{
{
"path"
:
"pages/API/get-file-system-manager/get-file-system-manager"
,
"path"
:
"pages/API/get-file-system-manager/get-file-system-manager"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"文件管理"
"navigationBarTitleText"
:
"文件管理"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/action-sheet/action-sheet"
,
"path"
:
"pages/API/action-sheet/action-sheet"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"操作菜单"
"navigationBarTitleText"
:
"操作菜单"
}
}
},
},
{
{
"path"
:
"pages/API/modal/modal"
,
"path"
:
"pages/API/modal/modal"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"模态弹窗"
"navigationBarTitleText"
:
"模态弹窗"
}
}
},
},
{
{
"path"
:
"pages/API/loading/loading"
,
"path"
:
"pages/API/loading/loading"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"加载提示框"
"navigationBarTitleText"
:
"加载提示框"
}
}
},
},
{
{
"path"
:
"pages/API/toast/toast"
,
"path"
:
"pages/API/toast/toast"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"消息提示框"
"navigationBarTitleText"
:
"消息提示框"
}
}
},
},
{
{
"path"
:
"pages/API/load-font-face/load-font-face"
,
"path"
:
"pages/API/load-font-face/load-font-face"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"动态加载字体"
"navigationBarTitleText"
:
"动态加载字体"
}
}
},
},
{
{
"path"
:
"pages/API/load-font-face/load-font-face-child"
,
"path"
:
"pages/API/load-font-face/load-font-face-child"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"动态加载字体-子页面"
"navigationBarTitleText"
:
"动态加载字体-子页面"
}
}
},
},
{
{
"path"
:
"pages/API/get-location/get-location"
,
"path"
:
"pages/API/get-location/get-location"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"获取定位"
"navigationBarTitleText"
:
"获取定位"
}
}
},
},
{
{
"path"
:
"pages/API/interceptor/interceptor"
,
"path"
:
"pages/API/interceptor/interceptor"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"拦截器"
"navigationBarTitleText"
:
"拦截器"
}
}
},
},
{
{
"path"
:
"pages/API/interceptor/page1"
,
"path"
:
"pages/API/interceptor/page1"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 1"
"navigationBarTitleText"
:
"拦截器测试页面 1"
}
}
},
},
{
{
"path"
:
"pages/API/interceptor/page2"
,
"path"
:
"pages/API/interceptor/page2"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 2"
"navigationBarTitleText"
:
"拦截器测试页面 2"
}
}
},
},
{
{
"path"
:
"pages/API/request/request"
,
"path"
:
"pages/API/request/request"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"request"
"navigationBarTitleText"
:
"request"
}
}
},
},
{
{
"path"
:
"pages/API/upload-file/upload-file"
,
"path"
:
"pages/API/upload-file/upload-file"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"upload-file"
"navigationBarTitleText"
:
"upload-file"
}
}
},
},
{
{
"path"
:
"pages/API/download-file/download-file"
,
"path"
:
"pages/API/download-file/download-file"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"download-file"
"navigationBarTitleText"
:
"download-file"
}
}
},
},
{
{
"path"
:
"pages/API/websocket-socketTask/websocket-socketTask"
,
"path"
:
"pages/API/websocket-socketTask/websocket-socketTask"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"websocket-socketTask"
"navigationBarTitleText"
:
"websocket-socketTask"
}
}
},
},
{
{
"path"
:
"pages/API/websocket-global/websocket-global"
,
"path"
:
"pages/API/websocket-global/websocket-global"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"websocket-global"
"navigationBarTitleText"
:
"websocket-global"
}
}
},
},
//
#ifndef
APP-IOS
//
#ifndef
APP-IOS
{
{
"path"
:
"pages/API/unicloud-call-function/unicloud-call-function"
,
"path"
:
"pages/API/unicloud-call-function/unicloud-call-function"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/API/unicloud-import-object/unicloud-import-object"
,
"path"
:
"pages/API/unicloud-import-object/unicloud-import-object"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/get-system-info/get-system-info"
,
"path"
:
"pages/API/get-system-info/get-system-info"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-system-info"
"navigationBarTitleText"
:
"get-system-info"
}
}
},
},
{
{
"path"
:
"pages/API/get-device-info/get-device-info"
,
"path"
:
"pages/API/get-device-info/get-device-info"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-device-info"
"navigationBarTitleText"
:
"get-device-info"
}
}
},
},
{
{
"path"
:
"pages/API/get-app-base-info/get-app-base-info"
,
"path"
:
"pages/API/get-app-base-info/get-app-base-info"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-app-base-info"
"navigationBarTitleText"
:
"get-app-base-info"
}
}
},
},
//
#ifdef
APP
//
#ifdef
APP
{
{
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-system-setting"
"navigationBarTitleText"
:
"get-system-setting"
}
}
},
},
//
#endif
//
#endif
//
#ifndef
WEB
//
#ifndef
WEB
{
{
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-app-authorize-setting"
"navigationBarTitleText"
:
"get-app-authorize-setting"
}
}
},
},
{
{
"path"
:
"pages/API/save-image-to-photos-album/save-image-to-photos-album"
,
"path"
:
"pages/API/save-image-to-photos-album/save-image-to-photos-album"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"保存图片到相册"
"navigationBarTitleText"
:
"保存图片到相册"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/preview-image/preview-image"
,
"path"
:
"pages/API/preview-image/preview-image"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"图片预览"
"navigationBarTitleText"
:
"图片预览"
}
}
},
},
{
{
"path"
:
"pages/API/choose-image/choose-image"
,
"path"
:
"pages/API/choose-image/choose-image"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"图片"
"navigationBarTitleText"
:
"图片"
}
}
},
},
{
{
"path"
:
"pages/API/get-network-type/get-network-type"
,
"path"
:
"pages/API/get-network-type/get-network-type"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-network-type"
"navigationBarTitleText"
:
"get-network-type"
}
}
},
},
{
{
"path"
:
"pages/API/page-scroll-to/page-scroll-to"
,
"path"
:
"pages/API/page-scroll-to/page-scroll-to"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"pageScrollTo"
"navigationBarTitleText"
:
"pageScrollTo"
}
}
},
},
{
{
"path"
:
"pages/API/event-bus/event-bus"
,
"path"
:
"pages/API/event-bus/event-bus"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"event-bus"
"navigationBarTitleText"
:
"event-bus"
}
}
},
},
//
#ifndef
APP-IOS
//
#ifndef
APP-IOS
{
{
"path"
:
"pages/API/unicloud-file-api/unicloud-file-api"
,
"path"
:
"pages/API/unicloud-file-api/unicloud-file-api"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/API/unicloud-database/unicloud-database"
,
"path"
:
"pages/API/unicloud-database/unicloud-database"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/API/get-battery-info/get-battery-info"
,
"path"
:
"pages/API/get-battery-info/get-battery-info"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"电量"
"navigationBarTitleText"
:
"电量"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/get-window-info/get-window-info"
,
"path"
:
"pages/API/get-window-info/get-window-info"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-window-info"
"navigationBarTitleText"
:
"get-window-info"
}
}
},
},
//
#ifdef
APP-ANDROID
//
#ifdef
APP-ANDROID
{
{
"path"
:
"pages/API/facial-recognition-verify/facial-recognition-verify"
,
"path"
:
"pages/API/facial-recognition-verify/facial-recognition-verify"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
{
"path"
:
"pages/API/element-takesnapshot/element-takesnapshot"
,
"path"
:
"pages/API/element-takesnapshot/element-takesnapshot"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"takeSnapshot"
,
"navigationBarTitleText"
:
"takeSnapshot"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
{
"path"
:
"pages/API/element-draw/element-draw"
,
"path"
:
"pages/API/element-draw/element-draw"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"getDrawableContext"
,
"navigationBarTitleText"
:
"getDrawableContext"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
{
"path"
:
"pages/API/get-univerify-manager/get-univerify-manager"
,
"path"
:
"pages/API/get-univerify-manager/get-univerify-manager"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"uni-verify"
,
"navigationBarTitleText"
:
"uni-verify"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/tabBar/CSS"
,
"path"
:
"pages/tabBar/CSS"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"CSS"
,
"navigationBarTitleText"
:
"CSS"
,
"backgroundColor"
:
"#F8F8F8"
"backgroundColor"
:
"#F8F8F8"
}
}
},
},
{
{
"path"
:
"pages/CSS/background/background-color"
,
"path"
:
"pages/CSS/background/background-color"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"background-color"
"navigationBarTitleText"
:
"background-color"
}
}
},
},
{
{
"path"
:
"pages/CSS/background/background-image"
,
"path"
:
"pages/CSS/background/background-image"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"background-image"
"navigationBarTitleText"
:
"background-image"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-bottom"
,
"path"
:
"pages/CSS/border/border-bottom"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-bottom"
"navigationBarTitleText"
:
"border-bottom"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-color"
,
"path"
:
"pages/CSS/border/border-color"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-color"
"navigationBarTitleText"
:
"border-color"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-left"
,
"path"
:
"pages/CSS/border/border-left"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-left"
"navigationBarTitleText"
:
"border-left"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-radius"
,
"path"
:
"pages/CSS/border/border-radius"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-radius"
"navigationBarTitleText"
:
"border-radius"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-right"
,
"path"
:
"pages/CSS/border/border-right"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-right"
"navigationBarTitleText"
:
"border-right"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-style"
,
"path"
:
"pages/CSS/border/border-style"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-style"
"navigationBarTitleText"
:
"border-style"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-top"
,
"path"
:
"pages/CSS/border/border-top"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-top"
"navigationBarTitleText"
:
"border-top"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border-width"
,
"path"
:
"pages/CSS/border/border-width"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border-width"
"navigationBarTitleText"
:
"border-width"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/border"
,
"path"
:
"pages/CSS/border/border"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border"
"navigationBarTitleText"
:
"border"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border属性组合示例"
"navigationBarTitleText"
:
"border属性组合示例"
}
}
},
},
{
{
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"box-shadow"
"navigationBarTitleText"
:
"box-shadow"
}
}
},
},
{
{
"path"
:
"pages/CSS/display/flex"
,
"path"
:
"pages/CSS/display/flex"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"display:flex"
"navigationBarTitleText"
:
"display:flex"
}
}
},
},
{
{
"path"
:
"pages/CSS/display/none"
,
"path"
:
"pages/CSS/display/none"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"display:none"
"navigationBarTitleText"
:
"display:none"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/align-content"
,
"path"
:
"pages/CSS/flex/align-content"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"align-content"
"navigationBarTitleText"
:
"align-content"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/align-items"
,
"path"
:
"pages/CSS/flex/align-items"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"align-items"
"navigationBarTitleText"
:
"align-items"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/flex-basis"
,
"path"
:
"pages/CSS/flex/flex-basis"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"flex-basis"
"navigationBarTitleText"
:
"flex-basis"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/flex-direction"
,
"path"
:
"pages/CSS/flex/flex-direction"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"flex-direction"
"navigationBarTitleText"
:
"flex-direction"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/flex-flow"
,
"path"
:
"pages/CSS/flex/flex-flow"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"flex-flow"
"navigationBarTitleText"
:
"flex-flow"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/flex-grow"
,
"path"
:
"pages/CSS/flex/flex-grow"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"flex-grow"
"navigationBarTitleText"
:
"flex-grow"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/flex-shrink"
,
"path"
:
"pages/CSS/flex/flex-shrink"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"flex-shrink"
"navigationBarTitleText"
:
"flex-shrink"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/flex"
,
"path"
:
"pages/CSS/flex/flex"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"flex"
"navigationBarTitleText"
:
"flex"
}
}
},
},
{
{
"path"
:
"pages/CSS/flex/justify-content"
,
"path"
:
"pages/CSS/flex/justify-content"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"justify-content"
"navigationBarTitleText"
:
"justify-content"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/height"
,
"path"
:
"pages/CSS/layout/height"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"height"
"navigationBarTitleText"
:
"height"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/max-height"
,
"path"
:
"pages/CSS/layout/max-height"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"max-height"
"navigationBarTitleText"
:
"max-height"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/max-width"
,
"path"
:
"pages/CSS/layout/max-width"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"max-width"
"navigationBarTitleText"
:
"max-width"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/min-height"
,
"path"
:
"pages/CSS/layout/min-height"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"min-height"
"navigationBarTitleText"
:
"min-height"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/min-width"
,
"path"
:
"pages/CSS/layout/min-width"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"min-width"
"navigationBarTitleText"
:
"min-width"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/position"
,
"path"
:
"pages/CSS/layout/position"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"position"
"navigationBarTitleText"
:
"position"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/width"
,
"path"
:
"pages/CSS/layout/width"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"width"
"navigationBarTitleText"
:
"width"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/z-index"
,
"path"
:
"pages/CSS/layout/z-index"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"z-index"
"navigationBarTitleText"
:
"z-index"
}
}
},
},
{
{
"path"
:
"pages/CSS/layout/visibility"
,
"path"
:
"pages/CSS/layout/visibility"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"visibility"
"navigationBarTitleText"
:
"visibility"
}
}
},
},
{
{
"path"
:
"pages/CSS/margin/margin-bottom"
,
"path"
:
"pages/CSS/margin/margin-bottom"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"margin-bottom"
"navigationBarTitleText"
:
"margin-bottom"
}
}
},
},
{
{
"path"
:
"pages/CSS/margin/margin-left"
,
"path"
:
"pages/CSS/margin/margin-left"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"margin-left"
"navigationBarTitleText"
:
"margin-left"
}
}
},
},
{
{
"path"
:
"pages/CSS/margin/margin-right"
,
"path"
:
"pages/CSS/margin/margin-right"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"margin-right"
"navigationBarTitleText"
:
"margin-right"
}
}
},
},
{
{
"path"
:
"pages/CSS/margin/margin-top"
,
"path"
:
"pages/CSS/margin/margin-top"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"margin-top"
"navigationBarTitleText"
:
"margin-top"
}
}
},
},
{
{
"path"
:
"pages/CSS/margin/margin"
,
"path"
:
"pages/CSS/margin/margin"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"margin"
"navigationBarTitleText"
:
"margin"
}
}
},
},
{
{
"path"
:
"pages/CSS/overflow/overflow"
,
"path"
:
"pages/CSS/overflow/overflow"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"overflow"
"navigationBarTitleText"
:
"overflow"
}
}
},
},
{
{
"path"
:
"pages/CSS/padding/padding-bottom"
,
"path"
:
"pages/CSS/padding/padding-bottom"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"padding-bottom"
"navigationBarTitleText"
:
"padding-bottom"
}
}
},
},
{
{
"path"
:
"pages/CSS/padding/padding-left"
,
"path"
:
"pages/CSS/padding/padding-left"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"padding-left"
"navigationBarTitleText"
:
"padding-left"
}
}
},
},
{
{
"path"
:
"pages/CSS/padding/padding-right"
,
"path"
:
"pages/CSS/padding/padding-right"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"padding-right"
"navigationBarTitleText"
:
"padding-right"
}
}
},
},
{
{
"path"
:
"pages/CSS/padding/padding-top"
,
"path"
:
"pages/CSS/padding/padding-top"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"padding-top"
"navigationBarTitleText"
:
"padding-top"
}
}
},
},
{
{
"path"
:
"pages/CSS/padding/padding"
,
"path"
:
"pages/CSS/padding/padding"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"padding"
"navigationBarTitleText"
:
"padding"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/color"
,
"path"
:
"pages/CSS/text/color"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"color"
"navigationBarTitleText"
:
"color"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/font-family"
,
"path"
:
"pages/CSS/text/font-family"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"font-family"
"navigationBarTitleText"
:
"font-family"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/font-size"
,
"path"
:
"pages/CSS/text/font-size"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"font-size"
"navigationBarTitleText"
:
"font-size"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/font-style"
,
"path"
:
"pages/CSS/text/font-style"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"font-style"
"navigationBarTitleText"
:
"font-style"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/font-weight"
,
"path"
:
"pages/CSS/text/font-weight"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"font-weight"
"navigationBarTitleText"
:
"font-weight"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/letter-spacing"
,
"path"
:
"pages/CSS/text/letter-spacing"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"letter-spacing"
"navigationBarTitleText"
:
"letter-spacing"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/line-height"
,
"path"
:
"pages/CSS/text/line-height"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"line-height"
"navigationBarTitleText"
:
"line-height"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/text-align"
,
"path"
:
"pages/CSS/text/text-align"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"text-align"
"navigationBarTitleText"
:
"text-align"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/text-overflow"
,
"path"
:
"pages/CSS/text/text-overflow"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"text-overflow"
"navigationBarTitleText"
:
"text-overflow"
}
}
},
},
{
{
"path"
:
"pages/CSS/text/text-decoration-line"
,
"path"
:
"pages/CSS/text/text-decoration-line"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"text-decoration-line"
"navigationBarTitleText"
:
"text-decoration-line"
}
}
},
},
{
{
"path"
:
"pages/CSS/transition/transition"
,
"path"
:
"pages/CSS/transition/transition"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"Transition"
"navigationBarTitleText"
:
"Transition"
}
}
},
},
{
{
"path"
:
"pages/CSS/transform/translate"
,
"path"
:
"pages/CSS/transform/translate"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"Translate"
"navigationBarTitleText"
:
"Translate"
}
}
},
},
{
{
"path"
:
"pages/CSS/transform/scale"
,
"path"
:
"pages/CSS/transform/scale"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"Scale"
"navigationBarTitleText"
:
"Scale"
}
}
},
},
{
{
"path"
:
"pages/CSS/transform/rotate"
,
"path"
:
"pages/CSS/transform/rotate"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"Rotate"
"navigationBarTitleText"
:
"Rotate"
}
}
},
},
{
{
"path"
:
"pages/CSS/variable/variable"
,
"path"
:
"pages/CSS/variable/variable"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"css 变量"
"navigationBarTitleText"
:
"css 变量"
}
}
},
},
{
{
"path"
:
"pages/tabBar/template"
,
"path"
:
"pages/tabBar/template"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"模板"
"navigationBarTitleText"
:
"模板"
}
}
},
},
{
{
"path"
:
"pages/template/list-news/list-news"
,
"path"
:
"pages/template/list-news/list-news"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"列表到详情示例"
"navigationBarTitleText"
:
"列表到详情示例"
}
}
},
},
{
{
"path"
:
"pages/template/list-news/detail/detail"
,
"path"
:
"pages/template/list-news/detail/detail"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"详情示例"
"navigationBarTitleText"
:
"详情示例"
}
}
},
},
{
{
"path"
:
"pages/template/drop-card/drop-card"
,
"path"
:
"pages/template/drop-card/drop-card"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"drop-card"
"navigationBarTitleText"
:
"drop-card"
}
}
},
},
{
{
"path"
:
"pages/template/swiper-list/swiper-list"
,
"path"
:
"pages/template/swiper-list/swiper-list"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"swiper-list"
"navigationBarTitleText"
:
"swiper-list"
}
}
},
},
{
{
"path"
:
"pages/template/swiper-list2/swiper-list2"
,
"path"
:
"pages/template/swiper-list2/swiper-list2"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"swiper-list2"
"navigationBarTitleText"
:
"swiper-list2"
}
}
},
},
{
{
"path"
:
"pages/template/swiper-vertical-video/swiper-vertical-video"
,
"path"
:
"pages/template/swiper-vertical-video/swiper-vertical-video"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
,
}
"navigationBarBackgroundColor"
:
"transparent"
},
}
//
#ifdef
APP
},
{
//
#ifdef
APP
"path"
:
"pages/template/scroll-sticky/scroll-sticky"
,
{
"style"
:
{
"path"
:
"pages/template/scroll-sticky/scroll-sticky"
,
"navigationBarTitleText"
:
"scroll-view自定义滚动吸顶"
"style"
:
{
}
"navigationBarTitleText"
:
"scroll-view自定义滚动吸顶"
},
}
//
#endif
},
{
//
#endif
"path"
:
"pages/template/scroll-fold-nav/scroll-fold-nav"
,
{
"style"
:
{
"path"
:
"pages/template/scroll-fold-nav/scroll-fold-nav"
,
"navigationStyle"
:
"custom"
,
"style"
:
{
"navigationBarTextStyle"
:
"black"
"navigationStyle"
:
"custom"
,
}
"navigationBarTextStyle"
:
"black"
,
},
"navigationBarBackgroundColor"
:
"transparent"
{
}
"path"
:
"pages/template/custom-refresher/custom-refresher"
,
},
"style"
:
{
{
"navigationBarTitleText"
:
"自定义下拉刷新"
"path"
:
"pages/template/custom-refresher/custom-refresher"
,
}
"style"
:
{
},
"navigationBarTitleText"
:
"自定义下拉刷新"
{
}
"path"
:
"pages/template/half-screen/half-screen"
,
},
"style"
:
{
{
"navigationBarTitleText"
:
"半屏弹窗"
"path"
:
"pages/template/half-screen/half-screen"
,
}
"style"
:
{
},
"navigationBarTitleText"
:
"半屏弹窗"
//
#ifdef
APP
}
{
},
"path"
:
"pages/template/long-list/long-list"
,
{
"style"
:
{
"path"
:
"pages/template/long-list/long-list"
,
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
,
"style"
:
{
"enablePullDownRefresh"
:
true
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
,
}
"enablePullDownRefresh"
:
true
},
}
{
},
"path"
:
"pages/template/long-list2/long-list2"
,
{
"style"
:
{
"path"
:
"pages/template/long-list2/long-list2"
,
"navigationBarTitleText"
:
"顶部banner长列表"
,
"style"
:
{
"enablePullDownRefresh"
:
true
"navigationBarTitleText"
:
"顶部banner长列表"
,
}
"enablePullDownRefresh"
:
true
},
}
//
#endif
},
{
{
"path"
:
"pages/template/pull-zoom-image/pull-zoom-image"
,
"path"
:
"pages/template/pull-zoom-image/pull-zoom-image"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
,
}
"navigationBarBackgroundColor"
:
"transparent"
},
}
{
},
"path"
:
"pages/template/navbar-lite/navbar-lite"
,
{
"style"
:
{
"path"
:
"pages/template/navbar-lite/navbar-lite"
,
"navigationBarTitleText"
:
"自定义导航栏"
,
"style"
:
{
"navigationStyle"
:
"custom"
"navigationBarTitleText"
:
"自定义导航栏"
,
}
"navigationStyle"
:
"custom"
},
}
{
},
"path"
:
"pages/template/custom-tab-bar/custom-tab-bar"
,
{
"style"
:
{
"path"
:
"pages/template/custom-tab-bar/custom-tab-bar"
,
"navigationBarTitleText"
:
"自定义TabBar"
"style"
:
{
}
"navigationBarTitleText"
:
"自定义TabBar"
},
}
//
#ifdef
WEB
},
{
//
#ifdef
WEB
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
{
"style"
:
{
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
"style"
:
{
}
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
},
}
//
#endif
},
//
#ifdef
APP-ANDROID
//
#endif
{
//
#ifdef
APP-ANDROID
"path"
:
"pages/template/calendar/calendar"
,
{
"style"
:
{
"path"
:
"pages/template/calendar/calendar"
,
"navigationBarTitleText"
:
"日历"
"style"
:
{
}
"navigationBarTitleText"
:
"日历"
},
}
{
},
"path"
:
"pages/template/schema/schema"
,
{
"style"
:
{
"path"
:
"pages/template/schema/schema"
,
"navigationBarTitleText"
:
"打开schema示例"
"style"
:
{
}
"navigationBarTitleText"
:
"打开schema示例"
},
}
{
},
"path"
:
"pages/template/share/share"
,
{
"style"
:
{
"path"
:
"pages/template/share/share"
,
"navigationBarTitleText"
:
"分享"
,
"style"
:
{
"enablePullDownRefresh"
:
false
"navigationBarTitleText"
:
"分享"
,
}
"enablePullDownRefresh"
:
false
},
}
//
#endif
},
{
//
#endif
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
{
"style"
:
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"navigationBarTitleText"
:
"截图对比测试"
,
"style"
:
{
"navigationStyle"
:
"custom"
"navigationBarTitleText"
:
"截图对比测试"
,
}
"navigationStyle"
:
"custom"
,
},
"navigationBarBackgroundColor"
:
"transparent"
{
}
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
},
"style"
:
{
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"navigationStyle"
:
"custom"
"style"
:
{
}
"navigationBarTitleText"
:
"webview 截图测试"
,
},
"navigationStyle"
:
"custom"
,
//
#ifdef
APP
"navigationBarBackgroundColor"
:
"transparent"
{
}
"path"
:
"pages/API/rewarded-video-ad/rewarded-video-ad"
,
},
"style"
:
{
//
#ifdef
APP
"navigationBarTitleText"
:
"激励视频广告"
,
{
"enablePullDownRefresh"
:
false
"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/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/API/request-payment/request-payment"
,
}
"style"
:
{
}
"navigationBarTitleText"
:
"支付"
,
"enablePullDownRefresh"
:
false
//
#endif
}
],
},
"globalStyle"
:
{
{
"pageOrientation"
:
"portrait"
,
"path"
:
"pages/component/list-view/list-view-refresh"
,
"navigationBarTitleText"
:
"Hello uniapp x"
,
"style"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
"list-view-refresh"
,
"navigationBarBackgroundColor"
:
"#007AFF"
,
"enablePullDownRefresh"
:
false
"backgroundColorContent"
:
"#efeff4"
,
}
"backgroundColor"
:
"#efeff4"
,
}
"backgroundColorTop"
:
"#F4F5F6"
,
//
#endif
"backgroundColorBottom"
:
"#F4F5F6"
],
},
"globalStyle"
:
{
"tabBar"
:
{
"pageOrientation"
:
"portrait"
,
"color"
:
"#7A7E83"
,
"navigationBarTitleText"
:
"Hello uniapp x"
,
"selectedColor"
:
"#007AFF"
,
"navigationBarTextStyle"
:
"white"
,
"borderStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"#007AFF"
,
"backgroundColor"
:
"#F8F8F8"
,
"backgroundColorContent"
:
"#efeff4"
,
"list"
:
[{
"backgroundColor"
:
"#efeff4"
,
"pagePath"
:
"pages/tabBar/component"
,
"backgroundColorTop"
:
"#F4F5F6"
,
"iconPath"
:
"static/component.png"
,
"backgroundColorBottom"
:
"#F4F5F6"
"selectedIconPath"
:
"static/componentHL.png"
,
},
"text"
:
"内置组件"
"tabBar"
:
{
},
"color"
:
"#7A7E83"
,
{
"selectedColor"
:
"#007AFF"
,
"pagePath"
:
"pages/tabBar/API"
,
"borderStyle"
:
"black"
,
"iconPath"
:
"static/api.png"
,
"backgroundColor"
:
"#F8F8F8"
,
"selectedIconPath"
:
"static/apiHL.png"
,
"list"
:
[{
"text"
:
"接口"
"pagePath"
:
"pages/tabBar/component"
,
},
"iconPath"
:
"static/component.png"
,
{
"selectedIconPath"
:
"static/componentHL.png"
,
"pagePath"
:
"pages/tabBar/CSS"
,
"text"
:
"内置组件"
"iconPath"
:
"static/css.png"
,
},
"selectedIconPath"
:
"static/cssHL.png"
,
{
"text"
:
"CSS"
"pagePath"
:
"pages/tabBar/API"
,
},
"iconPath"
:
"static/api.png"
,
{
"selectedIconPath"
:
"static/apiHL.png"
,
"pagePath"
:
"pages/tabBar/template"
,
"text"
:
"接口"
"iconPath"
:
"static/template.png"
,
},
"selectedIconPath"
:
"static/templateHL.png"
,
{
"text"
:
"模板"
"pagePath"
:
"pages/tabBar/CSS"
,
}
"iconPath"
:
"static/css.png"
,
]
"selectedIconPath"
:
"static/cssHL.png"
,
},
"text"
:
"CSS"
"condition"
:
{
},
//模式配置,仅开发期间生效
{
"current"
:
0
,
//当前激活的模式(list
的索引项)
"pagePath"
:
"pages/tabBar/template"
,
"list"
:
[{
"iconPath"
:
"static/template.png"
,
"name"
:
""
,
//模式名称
"selectedIconPath"
:
"static/templateHL.png"
,
"path"
:
""
,
//启动页面,必选
"text"
:
"模板"
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}
}]
]
}
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"name"
:
""
,
//模式名称
"path"
:
""
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
}
}
}
pages/component/list-view/list-view-refresh.test.js
0 → 100644
浏览文件 @
a847f5f0
describe
(
'
component-native-list-view-refresh
'
,
()
=>
{
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
web
'
))
{
it
(
'
dummyTest
'
,
async
()
=>
{
expect
(
1
).
toBe
(
1
)
})
return
}
let
page
beforeAll
(
async
()
=>
{
//打开list-view测试页
page
=
await
program
.
reLaunch
(
'
/pages/component/list-view/list-view-refresh
'
)
await
page
.
waitFor
(
600
)
})
it
(
'
check_list_view_refresh
'
,
async
()
=>
{
await
page
.
waitFor
(
async
()
=>
{
return
await
page
.
data
(
'
refresherTriggered
'
)
===
false
;
});
//等待下拉刷新结束
await
page
.
waitFor
(
500
)
const
image
=
await
program
.
screenshot
();
expect
(
image
).
toMatchImageSnapshot
();
})
})
pages/component/list-view/list-view-refresh.uvue
0 → 100644
浏览文件 @
a847f5f0
<template>
<list-view v-if="list_show" id="listview" style="flex: 1;" show-scrollbar=false :refresher-enabled="true"
:refresher-triggered="refresherTriggered" @refresherrefresh="onRefresherrefresh">
<list-item class="item">
<text>向下滑动触发下拉刷新</text>
</list-item>
<list-item v-for="index in item_count" class="item">
<text>item-------{{index}}</text>
</list-item>
</list-view>
</template>
<script>
export default {
data() {
return {
item_count: 20,
list_show: false,
refresherTriggered: true
}
},
onLoad() {
//延迟显示list-view
setTimeout(() => {
this.list_show = true;
}, 500)
},
methods: {
onRefresherrefresh() {
this.refresherTriggered = true;
setTimeout(() => {
this.refresherTriggered = false;
}, 1000)
}
}
}
</script>
<style>
.item {
padding: 15px;
margin: 0 0 5px 0;
background-color: #fff;
border-radius: 5px;
}
.button_item {
width: 200px;
}
</style>
pages/component/list-view/list-view.uvue
浏览文件 @
a847f5f0
...
@@ -182,7 +182,11 @@
...
@@ -182,7 +182,11 @@
@confirm="confirm_refresher_background_input"></input-data>
@confirm="confirm_refresher_background_input"></input-data>
<enum-data :items="size_enum" title="通过id位置跳转" @change="item_change_size_enum"></enum-data>
<enum-data :items="size_enum" title="通过id位置跳转" @change="item_change_size_enum"></enum-data>
<navigator url="/pages/component/list-view/list-view-refresh" hover-class="none">
<button type="primary" class="button">
list-view 下拉刷新
</button>
</navigator>
<navigator url="/pages/component/list-view/list-view-multiplex" hover-class="none">
<navigator url="/pages/component/list-view/list-view-multiplex" hover-class="none">
<button type="primary" class="button">
<button type="primary" class="button">
list-view 对list-item复用测试
list-view 对list-item复用测试
...
...
pages/component/text/text-props.test.js
浏览文件 @
a847f5f0
...
@@ -20,4 +20,12 @@ describe('text-props', () => {
...
@@ -20,4 +20,12 @@ describe('text-props', () => {
expect
(
height
).
toBe
(
0
)
expect
(
height
).
toBe
(
0
)
}
}
})
})
it
(
'
text nested
'
,
async
()
=>
{
page
.
callMethod
(
"
setTextNested
"
)
const
element
=
await
page
.
$
(
'
#text-nested
'
)
if
(
element
!=
null
)
{
expect
(
await
element
.
text
()).
toBe
(
"
二级节点文字红色且背景色黄色
"
)
}
})
})
})
pages/component/text/text-props.uvue
浏览文件 @
a847f5f0
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<view class="text-box">
<view class="text-box">
<text
<text
>一级节点黑色
>一级节点黑色
<text style="color: red;background-color: yellow;"
<text
id="text-nested" ref="text-nested"
style="color: red;background-color: yellow;"
>二级节点红色且背景色黄色
>二级节点红色且背景色黄色
<text>三级节点不继承二级的颜色</text>
<text>三级节点不继承二级的颜色</text>
</text>
</text>
...
@@ -114,7 +114,12 @@ export default {
...
@@ -114,7 +114,12 @@ export default {
singleLineText: 'uni-app x,终极跨平台方案',
singleLineText: 'uni-app x,终极跨平台方案',
}
}
},
},
methods: {},
methods: {
// 自动化测试
setTextNested() {
(this.$refs["text-nested"] as UniTextElement).value = "二级节点文字红色且背景色黄色";
}
}
}
}
</script>
</script>
...
...
pages/tabBar/template.uvue
浏览文件 @
a847f5f0
...
@@ -54,8 +54,7 @@
...
@@ -54,8 +54,7 @@
export default {
export default {
data() {
data() {
return {
return {
list: [
list: [
// #ifdef APP
{
{
id: 'long-list',
id: 'long-list',
url: 'long-list',
url: 'long-list',
...
@@ -72,8 +71,7 @@
...
@@ -72,8 +71,7 @@
url: 'long-list2'
url: 'long-list2'
},
},
] as Page[],
] as Page[],
},
},
// #endif
{
{
id: 'list-news',
id: 'list-news',
url: 'list-news',
url: 'list-news',
...
...
pages/template/long-list/long-list.uvue
浏览文件 @
a847f5f0
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<view class="swiper-list">
<view class="swiper-list">
<scroll-view ref="tabScroll" class="swiper-tabs" direction="horizontal" :show-scrollbar="false">
<scroll-view ref="tabScroll" class="swiper-tabs" direction="horizontal" :show-scrollbar="false">
<view class="flex-row" style="align-self: flex-start;">
<view class="flex-row" style="align-self: flex-start;">
<text ref="swipertab" class="swiper-tabs-item" :class="swiperIndex==index ? 'swiper-tabs-item-active' : ''"
<text ref="swipertab"
space="nbsp"
class="swiper-tabs-item" :class="swiperIndex==index ? 'swiper-tabs-item-active' : ''"
v-for="(item, index) in swiperList" :key="index" @click="onTabClick(index)">
v-for="(item, index) in swiperList" :key="index" @click="onTabClick(index)">
{{item.name}}
{{item.name}}
</text>
</text>
...
@@ -209,7 +209,7 @@
...
@@ -209,7 +209,7 @@
// 滚动到水平中心位置
// 滚动到水平中心位置
const scroll_x = x - this.swiperWidth / 2
const scroll_x = x - this.swiperWidth / 2
if(this.tabScrollView !=
=
null){
if(this.tabScrollView != null){
this.tabScrollView!.scrollLeft = scroll_x
this.tabScrollView!.scrollLeft = scroll_x
}
}
},
},
...
@@ -238,6 +238,9 @@
...
@@ -238,6 +238,9 @@
.swiper-list {
.swiper-list {
height: 100%;
height: 100%;
/* #ifdef WEB */
flex: 1;
/* #endif */
}
}
.swiper-tabs {
.swiper-tabs {
...
@@ -249,6 +252,7 @@
...
@@ -249,6 +252,7 @@
color: #555;
color: #555;
font-size: 16px;
font-size: 16px;
padding: 12px 25px;
padding: 12px 25px;
white-space: nowrap;
}
}
.swiper-tabs-item-active {
.swiper-tabs-item-active {
...
...
pages/template/long-list2/long-list2.uvue
浏览文件 @
a847f5f0
...
@@ -165,7 +165,9 @@
...
@@ -165,7 +165,9 @@
const percentage = Math.abs(current_offset_x) / this.swiperWidth
const percentage = Math.abs(current_offset_x) / this.swiperWidth
// 通知更新指示线
// 通知更新指示线
this.updateTabIndicator(current_index, move_to_index, percentage)
if (current_index != move_to_index) {
this.updateTabIndicator(current_index, move_to_index, percentage)
}
// 首次可见时初始化数据
// 首次可见时初始化数据
this.initSwiperItemData(move_to_index)
this.initSwiperItemData(move_to_index)
...
@@ -242,6 +244,9 @@
...
@@ -242,6 +244,9 @@
.swiper-list {
.swiper-list {
height: 100%;
height: 100%;
/* #ifdef WEB */
flex: 1;
/* #endif */
}
}
.swiper-tabs {
.swiper-tabs {
...
@@ -253,6 +258,7 @@
...
@@ -253,6 +258,7 @@
color: #555;
color: #555;
font-size: 16px;
font-size: 16px;
padding: 12px 25px;
padding: 12px 25px;
white-space: nowrap;
}
}
.swiper-tabs-item-active {
.swiper-tabs-item-active {
...
...
pages/template/swiper-list/swiper-list.uvue
浏览文件 @
a847f5f0
...
@@ -191,6 +191,7 @@
...
@@ -191,6 +191,7 @@
color: #555;
color: #555;
font-size: 16px;
font-size: 16px;
padding: 12px 25px;
padding: 12px 25px;
white-space: nowrap;
}
}
.swiper-tabs-item-active {
.swiper-tabs-item-active {
...
...
pages/template/swiper-list2/swiper-list2.uvue
浏览文件 @
a847f5f0
...
@@ -143,6 +143,7 @@
...
@@ -143,6 +143,7 @@
color: #555;
color: #555;
font-size: 16px;
font-size: 16px;
margin: 15px 25px 5px 25px;
margin: 15px 25px 5px 25px;
white-space: nowrap;
}
}
.swiper-tabs-item-active {
.swiper-tabs-item-active {
...
...
uni_modules/uni-loading/changelog.md
浏览文件 @
a847f5f0
## 1.0.6(2024-02-28)
-
更新 Circle 组件名称,防止与内置组件名冲突
## 1.0.5(2024-01-12)
## 1.0.5(2024-01-12)
-
优化 删除组件内无用日志输出
-
优化 删除组件内无用日志输出
## 1.0.4(2024-01-10)
## 1.0.4(2024-01-10)
...
...
uni_modules/uni-loading/components/uni-loading/circle.uvue
→
uni_modules/uni-loading/components/uni-loading/
loading-
circle.uvue
浏览文件 @
a847f5f0
文件已移动
uni_modules/uni-loading/components/uni-loading/snow.uvue
已删除
100644 → 0
浏览文件 @
62e46961
<template>
<view :ref="elId" class="block" :style="{width:size+'px',height:size+'px'}"></view>
</template>
<script>
import { hexToRgba } from './util'
export default {
name: "uni-snow",
props: {
speed: {
type: Number,
default: 16,
},
size: {
type: Number,
default: 20,
},
color: {
type: String,
default: '',
}
},
data() {
const elId = `Uni_${(Math.random() * 10e5).toInt().toString(36)}`
return {
elId: elId,
timer: 0,
};
},
mounted() {
const refs = this.$refs[this.elId] as UniElement
let ctx = refs.getDrawableContext()!
this.spinner(ctx)
},
unmounted() {
clearInterval(this.timer)
},
methods: {
spinner(ctx : DrawableContext) {
const steps = 12;
let step = 0;
const width = this.size;
const lineWidth = width / 12;
// 线长度和距离圆心距离
const length = width / 4 - lineWidth;
const offset = width / 4;
function draw() {
ctx.reset();
for (let i = 0; i < steps; i++) {
const stepAngle = 360 / steps;
const angle = stepAngle * i;
// 计算透明度
const opacity = ((steps - (step % steps)) * stepAngle + angle) % 360 + 30;
// 计算正余弦值
const sin = Math.sin((angle / 180) * Math.PI);
const cos = Math.cos((angle / 180) * Math.PI);
// 开始绘制线条
ctx.lineWidth = lineWidth;
ctx.lineCap = 'round';
ctx.beginPath();
ctx.moveTo(width / 2 + offset * cos, width / 2 + offset * sin);
ctx.lineTo(
width / 2 + (offset + length) * cos,
width / 2 + (offset + length) * sin
);
// 获取填充颜色
const fillColor = this.color !== '' ? this.color : '#333333';
// 转换透明度并设置颜色
ctx.strokeStyle = hexToRgba(fillColor, Math.round((opacity / 360) * 255));
ctx.stroke();
}
step += 1;
ctx.update();
}
draw()
// 每隔一段时间执行绘制函数
this.timer = setInterval(() => draw(), this.speed + 76);
}
}
}
</script>
<style scoped>
.block {
width: 50px;
height: 50px;
}
</style>
uni_modules/uni-loading/components/uni-loading/uni-loading.uvue
浏览文件 @
a847f5f0
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
<template v-if="loading">
<template v-if="loading">
<slot></slot>
<slot></slot>
<template v-if="$slots['default'] == null">
<template v-if="$slots['default'] == null">
<
Circle :speed="16" :size="loadWidth" :color="color"></
Circle>
<
LoadingCircle :speed="16" :size="loadWidth" :color="color"></Loading
Circle>
<text v-if="text" class="inline-text" :style=" { color: color }">{{text}}</text>
<text v-if="text" class="inline-text" :style=" { color: color }">{{text}}</text>
</template>
</template>
<template v-else>
<template v-else>
<view class="uni-loading-mask" :style="{backgroundColor:background}">
<view class="uni-loading-mask" :style="{backgroundColor:background}">
<
Circle :speed="16" :size="loadWidth" :color="color"></
Circle>
<
LoadingCircle :speed="16" :size="loadWidth" :color="color"></Loading
Circle>
<text v-if="text" class="block-text" :style=" { color: color }">{{text}}</text>
<text v-if="text" class="block-text" :style=" { color: color }">{{text}}</text>
</view>
</view>
</template>
</template>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</view>
</view>
</template>
</template>
<script>
<script>
import
Circle from './
circle.uvue'
import
LoadingCircle from './loading-
circle.uvue'
// TODO 性能问题,其他类型暂时不对外开放
// TODO 性能问题,其他类型暂时不对外开放
// import Icon from './icon.uvue'
// import Icon from './icon.uvue'
// import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue'
// import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue'
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
export default {
export default {
name: "uni-loading",
name: "uni-loading",
components: { Circle },
components: {
Loading
Circle },
props: {
props: {
loading: {
loading: {
type: Boolean,
type: Boolean,
...
...
uni_modules/uni-loading/package.json
浏览文件 @
a847f5f0
{
{
"id"
:
"uni-loading"
,
"id"
:
"uni-loading"
,
"displayName"
:
"uni-loading"
,
"displayName"
:
"uni-loading"
,
"version"
:
"1.0.
5
"
,
"version"
:
"1.0.
6
"
,
"description"
:
"加载动画组件多用在页面内数据加载时,提供一个loading动画,列表的上拉加载,下拉刷新等都需要加载动画"
,
"description"
:
"加载动画组件多用在页面内数据加载时,提供一个loading动画,列表的上拉加载,下拉刷新等都需要加载动画"
,
"keywords"
:
[
"keywords"
:
[
"loading"
,
"loading"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录