fix(data-table): rtl

This commit is contained in:
07akioni 2024-01-02 04:59:37 +08:00
parent 4f1312d36e
commit 04b29c42ca
3 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
import { cB, cE, cM, c } from '../../../_utils/cssr'
import { cB, cM, c } from '../../../_utils/cssr'
export default c([
cB('data-table', [
@ -23,10 +23,7 @@ export default c([
right: unset;
left: 0;
`)
]),
cE('pagination', `
direction: ltr;
`)
])
])
]),
cB('data-table-filter-menu', [

View File

@ -1,9 +1,10 @@
import { scrollbarRtl } from '../../_internal/scrollbar/styles'
import type { RtlItem } from '../../config-provider/src/internal-interface'
import { paginationRtl } from '../../pagination/styles'
import rtlStyle from '../src/styles/rtl.cssr'
export const DataTableRtl: RtlItem = {
name: 'DataTable',
style: rtlStyle,
peers: [scrollbarRtl]
peers: [scrollbarRtl, paginationRtl]
}

View File

@ -1,9 +1,10 @@
import type { RtlItem } from '../../config-provider/src/internal-interface'
import rtlStyle from '../src/styles/rtl.cssr'
import { inputRtl } from '../../input/styles/rtl'
import { selectRtl } from '../../select/styles'
export const paginationRtl: RtlItem = {
name: 'Pagination',
style: rtlStyle,
peers: [inputRtl]
peers: [inputRtl, selectRtl]
}