We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table
latest
title align is not same with table cell
No response
import React, { useState } from 'react'; import { ConfigProvider, ButtonGroup, Button, Row, Col, Notification, DatePicker, TimePicker, Timeline, Popover, Tag, Tooltip, Badge, Avatar, Steps, Pagination, Modal, Breadcrumb, Rating, Nav, Spin, Cascader, Radio, Select, Input, Typography, TextArea, Checkbox, Switch } from '@douyinfe/semi-ui'; function Demo(props = {}) { const [direction, setDirection] = useState(); const columns = [ { title: '标题', dataIndex: 'name', render: (text, record, index) => { return ( <div> <Avatar size="small" shape="square" src={record.nameIconSrc} style={{ marginRight: 12 }} ></Avatar> {text} </div> ); }, }, { title: '大小', dataIndex: 'size', sorter: true, align: 'right' }, { title: '更新日期', dataIndex: 'updateTime', sorter: true, align: 'left' }, { title: '', dataIndex: 'operate', render: () => { return <IconMore />; }, }, ]; const data = [ { key: '1', name: 'Semi Design 设计稿.fig', nameIconSrc: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/figma-icon.png', size: '2M', owner: '姜鹏志', updateTime: '2020-02-02 05:13', avatarBg: 'grey', }, { key: '2', name: 'Semi Design 分享演示文稿', nameIconSrc: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/docs-icon.png', size: '2M', owner: '郝宣', updateTime: '2020-01-17 05:31', avatarBg: 'red', }, { key: '3', name: '设计文档', nameIconSrc: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/docs-icon.png', size: '34KB', owner: 'Zoey Edwards', updateTime: '2020-01-26 11:01', avatarBg: 'light-blue', }, ]; return ( <div> <div style={{ marginBottom: 20 }}> <ButtonGroup> <Button onClick={() => setDirection('ltr')}>LTR</Button> <Button onClick={() => setDirection('rtl')}>RTL</Button> </ButtonGroup> </div> <ConfigProvider direction={direction}> <Table columns={columns} dataSource={data} pagination={false} /> </ConfigProvider> </div> ); }
- OS: - browser:
The text was updated successfully, but these errors were encountered:
fix: fixed Table text-align bug in RTL mode #2172
536dbdd
fix: fixed Table text-align bug in RTL mode #2172 (#2214)
74998fd
Co-authored-by: shijia.me <shijia.me@bytedance.com>
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Which Component
Table
Semi Version
latest
Current Behavior
title align is not same with table cell
Expected Behavior
No response
Steps To Reproduce
No response
ReproducibleCode
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: