File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 2727 "@babel/plugin-transform-modules-commonjs" : " ^7.25.7" ,
2828 "@babel/preset-env" : " ^7.25.8" ,
2929 "@crowdin/crowdin-api-client" : " ^1.37.1" ,
30- "@types/chrome" : " 0.0.277 " ,
30+ "@types/chrome" : " 0.0.278 " ,
3131 "@types/copy-webpack-plugin" : " ^10.1.0" ,
3232 "@types/decompress" : " ^4.2.7" ,
3333 "@types/echarts" : " ^4.9.22" ,
6060 "ts-loader" : " ^9.5.1" ,
6161 "ts-node" : " ^10.9.2" ,
6262 "tsconfig-paths" : " ^4.2.0" ,
63- "tslib" : " ^2.7 .0" ,
63+ "tslib" : " ^2.8 .0" ,
6464 "typescript" : " 5.6.3" ,
6565 "url-loader" : " ^4.1.1" ,
6666 "webpack" : " ^5.95.0" ,
Original file line number Diff line number Diff line change 55 * https://opensource.org/licenses/MIT
66 */
77
8+ import { getPaginationIconProps } from "@src/element-ui/rtl"
89import { ElPagination } from "element-plus"
910import { PropType , defineComponent } from "vue"
1011
@@ -20,6 +21,7 @@ const _default = defineComponent({
2021 return ( ) => (
2122 < div class = "pagination-container" >
2223 < ElPagination
24+ { ...getPaginationIconProps ( ) || { } }
2325 pageSizes = { [ 10 , 20 , 50 ] }
2426 defaultCurrentPage = { ( props . defaultValue as timer . common . PageQuery ) ?. num }
2527 defaultPageSize = { ( props . defaultValue as timer . common . PageQuery ) ?. size }
Original file line number Diff line number Diff line change @@ -11,4 +11,15 @@ export const getDatePickerIconSlots = () => {
1111 "next-month" : ( ) => < ElIcon > < ArrowLeft /> </ ElIcon > ,
1212 "next-year" : ( ) => < ElIcon > < DArrowLeft /> </ ElIcon > ,
1313 }
14+ }
15+
16+ export const getPaginationIconProps = ( ) : {
17+ prevIcon ?: unknown
18+ nextIcon ?: unknown
19+ } => {
20+ if ( ! isRtl ( ) ) return { }
21+ return {
22+ prevIcon : < ElIcon > < ArrowRight /> </ ElIcon > ,
23+ nextIcon : < ElIcon > < ArrowLeft /> </ ElIcon > ,
24+ }
1425}
You can’t perform that action at this time.
0 commit comments