From 415138328727076cac7dc39f420736247e20bcf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=B1=E5=AE=A2?= <944457105@qq.com> Date: Fri, 10 Jun 2022 17:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=92=8C?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/waterfall.vue | 954 +++++++++++++++++--------------- src/App.vue | 4 + src/components/HelloWorld.vue | 21 +- src/components/evaluateList.vue | 20 +- src/main.js | 4 +- 5 files changed, 535 insertions(+), 468 deletions(-) diff --git a/lib/waterfall.vue b/lib/waterfall.vue index ed60a8b..cdc298e 100644 --- a/lib/waterfall.vue +++ b/lib/waterfall.vue @@ -1,446 +1,508 @@ - - - - \ No newline at end of file + + + + diff --git a/src/App.vue b/src/App.vue index 0cce42c..05ff090 100644 --- a/src/App.vue +++ b/src/App.vue @@ -22,4 +22,8 @@ export default { color: #2c3e50; /*margin-top: 60px;*/ } +html,body{ + padding: 0; + margin: 0; +} diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 1ca8171..7516de1 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -34,7 +34,7 @@ button:hover{ background-image: linear-gradient(-180deg,#fafbfc,#ccc 90%); } - + .cell-item{ width: 100%; margin-bottom: 10px; @@ -87,11 +87,11 @@ .like-total{ color:#FF4479; } - } + } i{ width: 28px; display: block; - + } .like-total{ margin-left: 10px; @@ -99,7 +99,7 @@ color: #999999; } } - + } } } @@ -117,9 +117,9 @@
GITHUB 滚动至底部可触发loadmore - +
- + + - +
@@ -169,7 +170,7 @@ import json from './data.json' } }, computed:{ - itemWidth(){ + itemWidth(){ return (133*0.5*(document.documentElement.clientWidth/375)) }, gutterWidth(){ @@ -220,4 +221,4 @@ import json from './data.json' // this.data = [] } } - \ No newline at end of file + diff --git a/src/components/evaluateList.vue b/src/components/evaluateList.vue index 501d454..63bde4f 100644 --- a/src/components/evaluateList.vue +++ b/src/components/evaluateList.vue @@ -34,7 +34,7 @@ button:hover{ background-image: linear-gradient(-180deg,#fafbfc,#ccc 90%); } - + .cell-item{ width: 100%; // margin-bottom: 18px; @@ -87,11 +87,11 @@ .like-total{ color:#FF4479; } - } + } i{ width: 28px; display: block; - + } .like-total{ margin-left: 10px; @@ -99,7 +99,7 @@ color: #999999; } } - + } } } @@ -117,9 +117,9 @@
GITHUB 滚动至底部可触发loadmore - +
- + - +
@@ -169,7 +169,7 @@ import json from './data.json' } }, computed:{ - itemWidth(){ + itemWidth(){ return (133*0.5*(document.documentElement.clientWidth/375)) }, gutterWidth(){ @@ -213,4 +213,4 @@ import json from './data.json' this.getGitHub() } } - \ No newline at end of file + diff --git a/src/main.js b/src/main.js index 4e9ebe7..947867b 100644 --- a/src/main.js +++ b/src/main.js @@ -5,8 +5,8 @@ import App from './App' import router from './router' Vue.config.productionTip = false -import waterfall from 'vue-waterfall2' -// import waterfall from '../lib' +// import waterfall from 'vue-waterfall2' +import waterfall from '../lib' Vue.use(waterfall) /* eslint-disable no-new */