bianjiang 1 ano atrás
pai
commit
6ebc47b01c
1 arquivos alterados com 44 adições e 6 exclusões
  1. 44 6
      src/views/website/detail/DownloadPage.tsx

+ 44 - 6
src/views/website/detail/DownloadPage.tsx

@@ -72,6 +72,7 @@ export default defineComponent({
                 );
               }}
               pagination={{
+                responsive: true,
                 showSizeChanger: false,
                 hideOnSinglePage: true,
                 current: artStore.listController.state.page * 1,
@@ -91,13 +92,50 @@ export default defineComponent({
 
 const page = css`
   .list_content {
-    .ant-list-pagination {
+    .ant-pagination {
       text-align: center;
-      .ant-pagination-item-active {
-        background: var(--vt-c-primary);
-        border-color: var(--vt-c-primary);
-        a {
-          color: #fff;
+
+      .ant-pagination-item {
+        &:hover {
+          border-color: var(--vt-c-primary);
+          color: var(--vt-c-primary);
+          a {
+            color: var(--vt-c-primary);
+          }
+        }
+        &.ant-pagination-item-active {
+          background: var(--vt-c-primary);
+          border-color: var(--vt-c-primary);
+          a {
+            color: #fff;
+          }
+        }
+      }
+      &.mini {
+        .ant-pagination-item {
+          &:hover {
+            border-color: transparent;
+          }
+        }
+        .ant-pagination-prev,
+        .ant-pagination-next {
+          .ant-pagination-item-link {
+            border-color: transparent;
+          }
+          &:hover {
+            .ant-pagination-item-link {
+              border-color: transparent;
+            }
+          }
+        }
+      }
+      .ant-pagination-prev,
+      .ant-pagination-next {
+        &:hover {
+          .ant-pagination-item-link {
+            border-color: var(--vt-c-primary);
+            color: var(--vt-c-primary);
+          }
         }
       }
     }