diff --git a/pages.json b/pages.json
index 57f490a7f658e0c8529ceb21ffae7dfe5f40a3d4..fffd7632b5b623404d8fca3076ae94b99777a13d 100644
--- a/pages.json
+++ b/pages.json
@@ -592,12 +592,24 @@
"navigationBarTitleText": "详情示例"
}
},
- {
- "path": "pages/template/swiper-vertical-video/swiper-vertical-video",
- "style": {
- "navigationBarTitleText": ""
- }
- },
+ {
+ "path": "pages/template/swiper-vertical-video/swiper-vertical-video",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/template/custom-pull-page/custom-pull-page",
+ "style": {
+ "navigationBarTitleText": "自定义下拉上拉效果"
+ }
+ },
+ {
+ "path": "pages/template/scroll-fold-nav/scroll-fold-nav",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/API/get-battery-info/get-battery-info",
"style": {
diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue
index 32b9392c741a31451f7f3f751a2a30c639deb2c4..13e6eb0beb5b86d0d81de6118bbd58b63c1ae517 100644
--- a/pages/tabBar/template.uvue
+++ b/pages/tabBar/template.uvue
@@ -56,6 +56,19 @@
name: "划走式卡片",
open: false,
pages: [] as Page[]
+ },{
+ id: "scroll-fold-nav",
+ url: "scroll-fold-nav",
+ name: "随滚动折叠的导航栏",
+ open: false,
+ pages: [] as Page[]
+ },
+ {
+ id: "custom-pull-page",
+ url: "custom-pull-page",
+ name: "自定义上拉下拉效果",
+ open: false,
+ pages: [] as Page[]
},
{
id: "swiper-vertical-video",
diff --git a/pages/template/custom-pull-page/custom-pull-page.uvue b/pages/template/custom-pull-page/custom-pull-page.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..e5caf274cc79b1c640ad3a0a940800743aea9100
--- /dev/null
+++ b/pages/template/custom-pull-page/custom-pull-page.uvue
@@ -0,0 +1,115 @@
+
+
+
+ 可通过slot自定义,上拉加载下来刷新效果示例
+ 已知问题:因不支持通过ref 调用组件内的方法,本示例在下拉触发刷新方法时,1秒后“组件内”直接调用刷新完成接口,上拉加载同理。后续会修复
+
+
+
+
+
+
+
+ 继续下拉执行刷新(slot)
+ 释放立即刷新
+ 刷新中
+ 刷新完成
+
+
+
+
+
+
+
+ item-{{i}}
+
+
+
+
+ 继续上拉加载更多(slot)
+ 释放立即加载更多
+ 加载中...
+ 加载完成
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/template/custom-pull-page/custom-pull/custom-pull.uvue b/pages/template/custom-pull-page/custom-pull/custom-pull.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..5aac964eb8354c376af845127e920e0e2733e765
--- /dev/null
+++ b/pages/template/custom-pull-page/custom-pull/custom-pull.uvue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/template/drop-card/drop-card.uvue b/pages/template/drop-card/drop-card.uvue
index e15182235f5ce41db8f59f4c590f2606741b7e2f..cb4b8c07f3dd38ad70ba5ae8c4de81ab7ececa4b 100644
--- a/pages/template/drop-card/drop-card.uvue
+++ b/pages/template/drop-card/drop-card.uvue
@@ -2,15 +2,15 @@
-
+
-
+
-
+
diff --git a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..d19eb2acd467fe36c24a66741f99b0aa4bd5b2f4
--- /dev/null
+++ b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+ content-{{item}}
+
+
+
+
+
+
+ DCloud 为开发者而生
+
+
+
+
+
+
+
+ 请输入你要搜索的内容
+
+ 搜索
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/template/scroll-fold-nav/back.png b/static/template/scroll-fold-nav/back.png
new file mode 100644
index 0000000000000000000000000000000000000000..b10373991bc1b31ca5e7cdf6aa06551efff34809
Binary files /dev/null and b/static/template/scroll-fold-nav/back.png differ
diff --git a/static/template/scroll-fold-nav/search.png b/static/template/scroll-fold-nav/search.png
new file mode 100644
index 0000000000000000000000000000000000000000..aa2231c5f62f87cf5d98cafc707a692f92fb6b72
Binary files /dev/null and b/static/template/scroll-fold-nav/search.png differ