Skip to content
New issue

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] border style bug #441

Open
shijiatongxue opened this issue Dec 20, 2021 · 0 comments
Open

[Table] border style bug #441

shijiatongxue opened this issue Dec 20, 2021 · 0 comments
Labels
bug Something isn't working PR Welcome Welcome pull request :)

Comments

@shijiatongxue
Copy link
Collaborator

shijiatongxue commented Dec 20, 2021

Which Component 出现bug的组件

  • Table

image

Table 表头最右侧 border需要滚动后才能显示

semi-ui version

  • latest

Reproducible code 复现代码

import React from 'react';
import { Table, Avatar } from '@douyinfe/semi-ui';
import { IconMore } from '@douyinfe/semi-icons';

function App() {
    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',
        },
        {
            title: '所有者',
            dataIndex: 'owner',
            render: (text, record, index) => {
                return (
                    <div>
                        <Avatar size="small" color={record.avatarBg} style={{ marginRight: 4 }}>
                            {typeof text === 'string' && text.slice(0, 1)}
                        </Avatar>
                        {text}
                    </div>
                );
            }

        },
        {
            title: '更新日期',
            dataIndex: 'updateTime',
        },
        {
            title: '',
            dataIndex: 'operate',
            render: () => {
                return <IconMore />;
            }
        },
    ];

    return <Table bordered columns={columns} scroll={{ x: '101%', y: 300 }} dataSource={[]} pagination={false} />;
}

Additional information 补充说明

  • 遇到这个bug的业务场景、上下文、或者你的需求场景
@shijiatongxue shijiatongxue added the bug Something isn't working label Dec 20, 2021
@shijiatongxue shijiatongxue added the PR Welcome Welcome pull request :) label Jan 7, 2022
@pointhalo pointhalo removed the PR Welcome Welcome pull request :) label Sep 14, 2023
@pointhalo pointhalo added the PR Welcome Welcome pull request :) label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR Welcome Welcome pull request :)
Projects
None yet
Development

No branches or pull requests

2 participants