-
Notifications
You must be signed in to change notification settings - Fork 266
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
Skeleton 骨架屏代码提交 #96
Skeleton 骨架屏代码提交 #96
Conversation
) | ||
} | ||
export default App; | ||
``` |
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.
这里需要加 ::: 来结束 demo 块,每个 demo 块都是如此,目前 React 库采用的包和 Vue 的有区别,Vue 的对未结束的识别不出来
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.
其他组件已检查修复~
src/packages/skeleton/skeleton.tsx
Outdated
></div> | ||
) : ( | ||
<div className="content-line"> | ||
{title && <div className="title"></div>} |
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.
className="title" 存在全局样式污染的可能,遵守 BEM 规范
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.
已修改
src/packages/skeleton/skeleton.tsx
Outdated
for (let i = 0; i < num; i++) { | ||
items.push(i) | ||
} | ||
return items |
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.
66-70,可修改为
return Array.from({ length: num-1 }, (v, i) => i)
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.
Got it~已采纳
已自测
文档已开发