efront 4.11.8 → 4.12.1

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.
@@ -323,13 +323,24 @@ function tree() {
323
323
  var limit = useLimit && top + h > limitHeight;
324
324
  css(p, {
325
325
  position: 'sticky',
326
+ zIndex: 2,
326
327
  top: limit ? limitHeight - h : top, zIndex: 3 - limit
327
328
  });
328
329
  top += h;
329
330
  });
330
331
  stickys.top = top;
331
332
  }
333
+ var unSticky = function () {
334
+ stickys.forEach(s => {
335
+ css(s, {
336
+ position: '',
337
+ top: '',
338
+ zIndex: 1
339
+ })
340
+ })
341
+ }
332
342
  var refresh = function () {
343
+ unSticky();
333
344
  var index = banner.index();
334
345
  var needremoves = dom.map(d => d.$target).filter(d => !!d);
335
346
  dom = getArrayFromTree(root, banner.joined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.11.8",
3
+ "version": "4.12.1",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {