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

Checkbox 多选框 css示例代码 #3090

Closed
herohql521 opened this issue Aug 22, 2024 · 4 comments · Fixed by #3129
Closed

Checkbox 多选框 css示例代码 #3090

herohql521 opened this issue Aug 22, 2024 · 4 comments · Fixed by #3129
Labels
demo 示例

Comments

@herohql521
Copy link

herohql521 commented Aug 22, 2024

tdesign-miniprogram 版本

重现链接

No response

重现步骤

父元素flex,子元素flex1而且是靠margin-left设置间距的,示例只循环了3个不会有问题。当数量一多 只想一行三个,示例的css代码几乎需要删了重写

期望结果

父元素可以justify-content: flex-start;flex-wrap: wrap; 子元素通过宽度自动换行

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

👋 @herohql521,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Aug 22, 2024

@herohql521 先不讨论示例代码样式问题。 你意思就是,直接cv到业务代码中,100%符合你的场景需求,才能不被你叫做"一塌糊涂",是这个意思吗?

@anlyyao anlyyao added the demo 示例 label Aug 22, 2024
@herohql521
Copy link
Author

好吧你说的有道理,感觉选项根据自己的宽度和个数 换行比较好,flex1挤在一行 适用选项数量较少的情况,通常都会超过3个以上

@herohql521 herohql521 changed the title Checkbox 多选框 css示例代码写的一塌糊涂 Checkbox 多选框 css示例代码 Aug 23, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Aug 26, 2024

好吧你说的有道理,感觉选项根据自己的宽度和个数 换行比较好,flex1挤在一行 适用选项数量较少的情况,通常都会超过3个以上

👌 我们会尽快做出调整以适应更多的使用场景。这是一个开源项目,欢迎直接提 pr 到仓库,欢迎 🏹~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo 示例
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants