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'
9
9
import PropTypes from 'prop-types'
10
10
11
11
import { makeDebugger } from 'utils'
12
- import { PagiWrapper , BottomMsg } from './styles'
12
+ import { PagiWrapper , CustomText , BottomMsg } from './styles'
13
13
14
14
/* eslint-disable-next-line */
15
15
const debug = makeDebugger ( 'c:Pagi:index' )
@@ -19,9 +19,9 @@ const hasExtraPage = (totalCount, pageSize) => totalCount > pageSize
19
19
export const PagiCustomRender = ( current , type , originalElement ) => {
20
20
/* eslint-disable */
21
21
if ( type === 'prev' ) {
22
- return < a > 上一页</ a >
22
+ return < CustomText > 上一页</ CustomText >
23
23
} else if ( type === 'next' ) {
24
- return < a > 下一页</ a >
24
+ return < CustomText > 下一页</ CustomText >
25
25
}
26
26
/* eslint-enable */
27
27
return originalElement
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components'
2
- import { theme } from 'utils'
2
+ import { theme , cs } from 'utils'
3
3
4
4
export const PagiWrapper = styled . div `
5
5
text-align: center;
@@ -8,6 +8,10 @@ export const PagiWrapper = styled.div`
8
8
margin-left: ${ ( { left } ) => left } ;
9
9
`
10
10
11
+ export const CustomText = styled . a `
12
+ ${ cs . media . tablet `display: none` } ;
13
+ `
14
+
11
15
export const BottomMsg = styled . div `
12
16
font-size: 1.1rem;
13
17
color: ${ theme ( 'thread.articleDigest' ) } ;
You can’t perform that action at this time.
0 commit comments