Files
dg-js-workspace/packages/ui-react/note/menuitem 宽度问题.md
T
2026-11-21 22:57:24 +08:00

13 lines
673 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
最大问题就是,checkbox,icon,indicator,这三者会拉长长度。
一个 20 条 item,要有一个具有 checkbox,剩下的全部都得加宽。
【blender】的方案是,有 checkbox 的,就不要 icon,并始终保留 indicator 的位置。
通常一个【3d viewport】需要做选择,【显示曲线】或【显示面】等。
有 icon 可以极其方便用户,一看便知道。
不过此处,不是用 checkbox 来选中状态,而是用【背景色】。
但是我希望,这个 viewport 的独立菜单中,也可以看到这个 checkbox。
这时候,checkbox 和 icon 是必须同时显示,才能让用户通过 icon 识别。