提交 21e2a5ed 编写于 作者: 雪洛's avatar 雪洛

feat: web端启用sticky-header、sticky-section页面

上级 27112766
...@@ -81,7 +81,6 @@ ...@@ -81,7 +81,6 @@
"navigationBarTitleText": "list-view-children-in-slot" "navigationBarTitleText": "list-view-children-in-slot"
} }
}, },
// #ifdef APP
{ {
"path": "pages/component/sticky-section/sticky-section", "path": "pages/component/sticky-section/sticky-section",
"style": { "style": {
...@@ -96,7 +95,6 @@ ...@@ -96,7 +95,6 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
//#endif
{ {
"path": "pages/component/text/text", "path": "pages/component/text/text",
"style": { "style": {
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
.content-item { .content-item {
padding: 15px; padding: 15px;
margin: 5px 0; margin-bottom: 10px;
background-color: #fff; background-color: #fff;
} }
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
.content-item { .content-item {
padding: 15px; padding: 15px;
margin: 5px 0; margin-bottom: 10px;
background-color: #fff; background-color: #fff;
} }
</style> </style>
...@@ -80,14 +80,12 @@ ...@@ -80,14 +80,12 @@
{ {
name: 'list-view', name: 'list-view',
}, },
// #ifdef APP
{ {
name: 'sticky-header', name: 'sticky-header',
}, },
{ {
name: 'sticky-section', name: 'sticky-section',
}, },
// #endif
] as Page[], ] as Page[],
}, },
{ {
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
<list-item class="banner" @click="bannerClick(banner)" type=1> <list-item class="banner" @click="bannerClick(banner)" type=1>
<image class="banner-img" :src="banner.cover"></image> <image class="banner-img" :src="banner.cover"></image>
<text class="banner-title">{{ banner.title }}</text> <text class="banner-title">{{ banner.title }}</text>
</list-item> </list-item>
<!-- #ifdef APP -->
<sticky-header> <sticky-header>
<view <view
style="width: 100%;height:44px;background-color: #f5f5f5;flex-direction: row;justify-content:center;align-items:center;"> style="width: 100%;height:44px;background-color: #f5f5f5;flex-direction: row;justify-content:center;align-items:center;">
...@@ -13,8 +12,7 @@ ...@@ -13,8 +12,7 @@
{{name}} {{name}}
</text> </text>
</view> </view>
</sticky-header> </sticky-header>
<!-- #endif -->
<list-item v-for="(value, index) in listData" :key="index" type=2> <list-item v-for="(value, index) in listData" :key="index" type=2>
<view class="uni-list-cell" hover-class="uni-list-cell-hover" @click="goDetail(value)"> <view class="uni-list-cell" hover-class="uni-list-cell-hover" @click="goDetail(value)">
<view class="uni-media-list"> <view class="uni-media-list">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册