-
Notifications
You must be signed in to change notification settings - Fork 209
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
feat: Menu component #333
feat: Menu component #333
Conversation
第二个demo展开收起,标题和内容注明是横向的展开收缩,明确一些。 |
已改 |
collapsed是用户自己控制 [collapsed]的 不用再暴露事件 |
都改完 菜单宽度还是让用户设置,避免滚动条 |
@@ -0,0 +1,32 @@ | |||
<div class="demo-menu" style="width: 388px; overflow-x: auto"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我试了各种title长度和层级深度,没找到一种比较兼容的样式😭
所以全放开了,外围容器宽度,title换行还是省略号啥的 就让用户根据具体菜单自行调整吧😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我试了各种title长度和层级深度,没找到一种比较兼容的样式😭 所以全放开了,外围容器宽度,title换行还是省略号啥的 就让用户根据具体菜单自行调整吧😂
这样感觉用户使用成本很高,菜单文本不同宽度就要去适配外层容器宽度和省略方案
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
给title加了省略号
@@ -84,7 +84,7 @@ export class DevuiOnlineIdeService { | |||
} | |||
|
|||
getFiles(sourceData: DevuiSourceData[], ide: 'StackBlitz' | 'CodeSandbox' = 'StackBlitz'): any { | |||
console.log(sourceData); | |||
// console.log(sourceData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 还有对其它地方代码的修改,请恢复
- 还有很多console.log()没有删除,请全面排查
新增 menu component