-
Notifications
You must be signed in to change notification settings - Fork 89
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
Verion/0.4.32 #296
Verion/0.4.32 #296
Conversation
onPrevYearTap() { | ||
const { selectedMonth, selectedYear } = this.data; | ||
let year = selectedYear; | ||
const month = selectedMonth; |
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.
month看起来没什么用,refreshdates中可以直接用 selectdMonth?
@@ -5,6 +5,8 @@ | |||
<view class="am-list-body"> | |||
<slot /> | |||
</view> | |||
<view class="am-list-load-more" a:if="{{loadMore === 'load'}}"><icon type="loading" size="16"/><text class="am-list-load-more-txt">{{loadContent[0]?loadContent[0]:''}}</text></view> | |||
<view class="am-list-load-over" a:if="{{loadMore === 'over'}}">{{loadContent[1]?loadContent[1]:''}}</view> |
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.
这里只能定义文字形式的加载更多,如果支持slot会更灵活点。antd貌似可以引入组件的。
const overTxt = this.props.loadContent[1] ? this.props.loadContent[1] : this.data.loadContent[1]; | ||
this.setData({ | ||
loadContent: [loadTxt, overTxt], | ||
}); |
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.
如果loadMore默认是false的话,大部分情况下,这里会出现 setData to unmount component
0.4.32 中对部分组件做了功能优化以及 bug 修复
组件功能
disable
字样文档内容
disableScroll
描述说明优化