Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(components): 修复下拉刷新字样位置
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jul 13, 2018
1 parent 597aabb commit 7e5e751
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions jsconfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
}
}
}
9 changes: 5 additions & 4 deletions src/components/JoLoadMore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function getScrollTarget(el) {
}
return document.documentElement;
}
export default {
name: "JoLoadMore",
props: {
Expand Down Expand Up @@ -263,17 +264,17 @@ export default {
}
};
</script>
<style lang="less">
@prefix: jo-loadmore;
.@{prefix} {

<style lang="less" scoped>
.jo-loadmore {
position: relative;
&-head,
&-foot {
width: 100%;
}
&-head {
position: fixed;
top: 0;
z-index: 0;
&-box {
Expand Down
5 changes: 2 additions & 3 deletions src/page/feed/FeedList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
</nav>
<jo-load-more
ref="loadmore"
:auto-load="true"
class="p-feed-main"
@onRefresh="onRefresh"
@onLoadMore="onLoadMore" >
Expand Down Expand Up @@ -163,10 +164,8 @@ export default {
.p-feed {
.p-feed-main {
padding-top: 90px;
.jo-loadmore-head {
top: 90px;
}
}
.p-feed-list > li + li {
margin-top: 20px;
}
Expand Down

0 comments on commit 7e5e751

Please sign in to comment.