This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { Pagination } from 'antd'
99import PropTypes from 'prop-types'
1010
1111import { makeDebugger } from 'utils'
12- import { PagiWrapper , BottomMsg } from './styles'
12+ import { PagiWrapper , CustomText , BottomMsg } from './styles'
1313
1414/* eslint-disable-next-line */
1515const debug = makeDebugger ( 'c:Pagi:index' )
@@ -19,9 +19,9 @@ const hasExtraPage = (totalCount, pageSize) => totalCount > pageSize
1919export const PagiCustomRender = ( current , type , originalElement ) => {
2020 /* eslint-disable */
2121 if ( type === 'prev' ) {
22- return < a > 上一页</ a >
22+ return < CustomText > 上一页</ CustomText >
2323 } else if ( type === 'next' ) {
24- return < a > 下一页</ a >
24+ return < CustomText > 下一页</ CustomText >
2525 }
2626 /* eslint-enable */
2727 return originalElement
Original file line number Diff line number Diff line change 11import styled from 'styled-components'
2- import { theme } from 'utils'
2+ import { theme , cs } from 'utils'
33
44export const PagiWrapper = styled . div `
55 text-align: center;
@@ -8,6 +8,10 @@ export const PagiWrapper = styled.div`
88 margin-left: ${ ( { left } ) => left } ;
99`
1010
11+ export const CustomText = styled . a `
12+ ${ cs . media . tablet `display: none` } ;
13+ `
14+
1115export const BottomMsg = styled . div `
1216 font-size: 1.1rem;
1317 color: ${ theme ( 'thread.articleDigest' ) } ;
You can’t perform that action at this time.
0 commit comments