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

✨ [Feature]: git-graph 组件显示不全,无法自适应内容宽度 #1853

Open
aolinpk opened this issue May 24, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@aolinpk
Copy link
Contributor

aolinpk commented May 24, 2024

What problem does this feature solve

组件初始化svg 的width为100%,未根据内容自适应宽度,导致显示不全。需要增加一个width属性,支持传入宽度指定容器宽度,支持参数 'default' | 'auto' | number。默认为100% 如果传入auto则在遍历每一项取上一次和这一次其中的较大宽度。结束将宽度赋予给容器绘制。传入number则设置为具体数值。
image

What does the proposed API look like

width: 'default' | 'auto' | number

@fu050409 fu050409 added the bug Something isn't working label Jun 19, 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
Projects
None yet
Development

No branches or pull requests

2 participants