Skip to content
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

用户配置深拷贝 #15

Merged
merged 1 commit into from
Jan 12, 2016
Merged

用户配置深拷贝 #15

merged 1 commit into from
Jan 12, 2016

Conversation

dreamstu
Copy link

当用户自定义配置时,进行深拷贝,用户只需重写自己想重写的配置
例如:用户想自定义domNoData为<div class="dropload-noData">没有更多数据了</div>.
当前做法:

domDown : {
                domClass   : 'dropload-down',
                domRefresh : '<div class="dropload-refresh">↑上拉加载更多</div>',
                domLoad    : '<div class="dropload-load"><span class="loading"></span>加载中...</div>',
                domNoData  : '<div class="dropload-noData">没有更多数据了</div>'
}

现在可以:

domDown : {
                domNoData  : '<div class="dropload-noData">没有更多数据了</div>'
}

ximan added a commit that referenced this pull request Jan 12, 2016
@ximan ximan merged commit 21b793e into ximan:gh-pages Jan 12, 2016
@ximan
Copy link
Owner

ximan commented Jan 12, 2016

非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants