初始化项目, 添加TDesign等包
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
function shouldLoadImage(index, currentIndex, loadedIndexes) {
|
||||
return Math.abs(index - currentIndex) <= 1 || (loadedIndexes && loadedIndexes.indexOf(index) !== -1);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
shouldLoadImage: shouldLoadImage,
|
||||
};
|
||||
Reference in New Issue
Block a user