修复了一些问题
This commit is contained in:
1 parent
c484ee6ef3
commit
e877ceb560
28 files changed
+565
-535
No files matched your search
@@ -1,4 +1,4 @@
|
||||
$.fn.waterfall = function (options) {
|
||||
jQuery.fn.waterfall = function (options) {
|
||||
var defaults = {
|
||||
hGap: null,
|
||||
vGap: null,
|
||||
@@ -6,17 +6,17 @@ $.fn.waterfall = function (options) {
|
||||
containerSelector: '.waterfall-container',
|
||||
};
|
||||
|
||||
var settings = $.extend(defaults, options);
|
||||
var settings = jQuery.extend(defaults, options);
|
||||
|
||||
this.each(function () {
|
||||
var $this = $(this);
|
||||
var $this = jQuery(this);
|
||||
initWaterfall($this);
|
||||
|
||||
if ($this.data('waterfall-init')) return;
|
||||
|
||||
$this.data('waterfall-init', true);
|
||||
|
||||
$(window).on(
|
||||
jQuery(window).on(
|
||||
'resize',
|
||||
debounce(function () {
|
||||
initWaterfall($this);
|
||||
@@ -78,7 +78,7 @@ $.fn.waterfall = function (options) {
|
||||
|
||||
//遍历所有子项目
|
||||
items.each(function () {
|
||||
const $item = $(this);
|
||||
const $item = jQuery(this);
|
||||
|
||||
//找到最短的列
|
||||
const minHeight = Math.min(...colHeights);
|
||||
|
||||
Reference in new issue
Block a user