From 06ee76d0a83854ad7a044689627e0f00a66e5ce5 Mon Sep 17 00:00:00 2001 From: lijh <lijh> Date: Wed, 19 Jan 2022 18:36:23 +0800 Subject: [PATCH] 表单校验 --- src/components/group/articleListScorll.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/group/articleListScorll.vue b/src/components/group/articleListScorll.vue index 06d363b..a0f173c 100644 --- a/src/components/group/articleListScorll.vue +++ b/src/components/group/articleListScorll.vue @@ -2,16 +2,19 @@ <div> <div v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" :infinite-scroll-distance="10"> <div v-for="temp in data"> + <newArticle></newArticle> <box5 v-bind="temp"></box5> </div> <div v-if="loading && !busy" class="demo-loading-container"> <a-spin /> </div> </div> - <div style="position:fixed;bottom: 10px;" id="dddadf"> - <a-pagination @change="onChange" :showQuickJumper="true" :size="size" v-model="current" - :defaultPageSize="pageSize" :total="total" /> - </div> + <a-row type="flex" justify="center"> + <div style="position:fixed;bottom: 10px;" id="dddadf"> + <a-pagination @change="onChange" :showQuickJumper="true" :size="size" v-model="current" + :defaultPageSize="pageSize" :total="total" /> + </div> + </a-row> <a-back-top> <a-icon type="up" />回到顶部 </a-back-top> @@ -21,6 +24,7 @@ import infiniteScroll from 'vue-infinite-scroll'; import box5 from "../mini/box5-article.vue" import babyActicle from '../../assets/baby.htm' + import newArticle from "../mini/box-new-article.vue" import shijie from '../../assets/shijie.htm' var obj1 = { @@ -50,7 +54,8 @@ export default { components: { - box5 + box5, + newArticle }, directives: { infiniteScroll @@ -68,7 +73,7 @@ }; }, beforeMount() { - this.data = [obj1, obj2,obj3]; + this.data = [obj1, obj2,obj3,obj2]; }, methods: { onChange(current) { -- Gitblit v1.9.1