From 85063864a06b772c13b3c7f44dd6bfc81f74286c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?= <188633308@qq.com> Date: Thu, 27 May 2021 21:17:26 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E5=99=A8=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/assets/style/lib/list.less | 3 +++ Web/src/assets/style/lib/table.less | 4 ++++ Web/src/components/yoList/index.js | 21 +++++++++++++++------ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/Web/src/assets/style/lib/list.less b/Web/src/assets/style/lib/list.less index 324a1ce..89e4a38 100644 --- a/Web/src/assets/style/lib/list.less +++ b/Web/src/assets/style/lib/list.less @@ -25,4 +25,7 @@ } } } + >.ant-pagination { + margin: @padding-md 0; + } } diff --git a/Web/src/assets/style/lib/table.less b/Web/src/assets/style/lib/table.less index 48ca825..335fbf5 100644 --- a/Web/src/assets/style/lib/table.less +++ b/Web/src/assets/style/lib/table.less @@ -125,6 +125,10 @@ } } } + + .ant-table-pagination { + float: none; + } } .yo-table-actions { diff --git a/Web/src/components/yoList/index.js b/Web/src/components/yoList/index.js index b532d75..68dd3d1 100644 --- a/Web/src/components/yoList/index.js +++ b/Web/src/components/yoList/index.js @@ -99,12 +99,21 @@ export default { - - {Object.keys(this.$slots).map((name) => ( - - ))} - - +
+ + {Object.keys(this.$slots).map((name) => ( + + ))} + + { + !!this.data && !!this.data.length && + } +
) },