From 8ea1f28c743df491acffbb008c33944de4520512 Mon Sep 17 00:00:00 2001 From: zhangtianli2006 <49156174+zhangtianli2006@users.noreply.github.com> Date: Fri, 14 Aug 2020 15:19:58 +0800 Subject: [PATCH 1/7] improved problem list style Signed-off-by: zhangtianli2006 <49156174+zhangtianli2006@users.noreply.github.com> --- src/assets/css/basic.css | 13 +++++ src/components/lib/AjaxTable.vue | 26 +++++---- src/components/lib/jumpToProblem.vue | 9 +-- src/components/problem/list.vue | 85 ++++++++++++---------------- 4 files changed, 68 insertions(+), 65 deletions(-) diff --git a/src/assets/css/basic.css b/src/assets/css/basic.css index f32b6d2f..bd0bc407 100644 --- a/src/assets/css/basic.css +++ b/src/assets/css/basic.css @@ -191,6 +191,19 @@ h3::before { margin-top: 0; } +.problem-list-pagination { + border: 1px solid #ebeef5; + background: #ffffff; + margin-left: -20px; + padding: 10px; + height: 36px; + max-width: 100vw; + width: 827px; + text-align: center; + bottom: 0px; + position: fixed; +} + * { border-radius: 0 !important; } diff --git a/src/components/lib/AjaxTable.vue b/src/components/lib/AjaxTable.vue index 08cf3905..cc197a1b 100644 --- a/src/components/lib/AjaxTable.vue +++ b/src/components/lib/AjaxTable.vue @@ -1,5 +1,5 @@ @@ -111,6 +112,10 @@ export default { default_sort: { type: Object, default: null + }, + pagination_class: { + type: String, + default: 'pagination' } }, }; @@ -118,8 +123,5 @@ export default { diff --git a/src/components/lib/jumpToProblem.vue b/src/components/lib/jumpToProblem.vue index b3e30afe..6dc60a4c 100644 --- a/src/components/lib/jumpToProblem.vue +++ b/src/components/lib/jumpToProblem.vue @@ -1,13 +1,14 @@