-
Notifications
You must be signed in to change notification settings - Fork 263
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(Infiniteloading): 多端适配 #2670
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -94,7 +94,7 @@ export const InfiniteLoading: FunctionComponent< | |||||
|
||||||
const getStyle = () => { | ||||||
return { | ||||||
height: topDisScoll < 0 ? `0px` : `${topDisScoll}px`, | ||||||
height: topDisScoll < 0 ? px : `${topDisScoll}px`, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 修复未定义变量的使用问题 代码中使用了未定义的变量 建议修改为: - height: topDisScoll < 0 ? px : `${topDisScoll}px`,
+ height: topDisScoll < 0 ? '0px' : `${topDisScoll}px`, 📝 Committable suggestion
Suggested change
|
||||||
transition: `height 0.2s cubic-bezier(0.25,0.1,0.25,1)`, | ||||||
} | ||||||
} | ||||||
|
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.
🛠️ Refactor suggestion
建议增强无障碍访问支持
将 HTML 列表元素(ul/li)替换为 View 组件虽然提升了跨平台兼容性,但可能会影响页面的无障碍访问支持。
建议添加适当的 ARIA 属性来保持无障碍支持:
Also applies to: 99-105