tencent.jquery.pix.component 1.0.60 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,6 +151,9 @@ Banner.prototype.startAutoPlay = function() {
151
151
  }
152
152
 
153
153
  Banner.prototype.pauseAutoPlay = function() {
154
+ if (this.timer == null) {
155
+ return;
156
+ }
154
157
  clearInterval(this.timer);
155
158
  this.timer = null;
156
159
  }
@@ -445,6 +448,7 @@ Banner.prototype.loadBackground = function (pos) {
445
448
  }
446
449
 
447
450
  Banner.prototype.remove = function () {
451
+ this.pauseAutoPlay();
448
452
  $(this.options.container).empty();
449
453
  removeResizeFunc({
450
454
  obj: this,
@@ -1,6 +1,8 @@
1
- import { $, windowEnv } from "../config.js";
1
+ import { getEnv } from "../config.js";
2
2
  import { remToPx } from "../../utils/utils.js";
3
3
 
4
+ let $ = null;
5
+
4
6
  // 默认配置
5
7
  const DEFAULTS = {
6
8
  columns: 2, // 列数
@@ -20,6 +22,8 @@ const DEFAULTS = {
20
22
  };
21
23
 
22
24
  export function Waterfall(optionsInput = {}) {
25
+ $ = getEnv();
26
+
23
27
  this.options = Object.assign({}, DEFAULTS, optionsInput);
24
28
  const options = this.options;
25
29
  const $container = $(options.container);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencent.jquery.pix.component",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [