Skip to content

Commit d748414

Browse files
committed
Semi
1 parent 8d6afe6 commit d748414

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
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",
@@ -60,7 +60,7 @@
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",

src/app/components/common/Pagination.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* https://opensource.org/licenses/MIT
66
*/
77

8+
import { getPaginationIconProps } from "@src/element-ui/rtl"
89
import { ElPagination } from "element-plus"
910
import { 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}

src/element-ui/rtl.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)