efront 3.29.2 → 3.30.0

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.
@@ -1,5 +1,5 @@
1
1
  第三方代码来源及日期,后续版本请自行更新
2
-
2
+ 2022-11-12 https://github.com/kazuhikoarase/qrcode-generator 逻辑有修改 qrcode.js
3
3
  2022-09-29 https://github.com/richtr/NoSleep.js
4
4
  2021-06-15 https://www.npmjs.com/package/html2canvas
5
5
  2019-08-03 https://github.com/gorhill/Javascript-Voronoi
@@ -218,12 +218,15 @@ function ylist(container, generator, $Y) {
218
218
  var rebuild = function () {
219
219
  runbuild();
220
220
  };
221
+ var topinsert = null;
221
222
  oncemount(list, function () {
222
223
  if (!/^(?:auto|scroll)$/i.test(getComputedStyle(list).overflowY)) return;
223
224
  on("scroll")(list, rebuild);
225
+ if (!topinsert) {
226
+ topinsert = document.createElement('insertY');
227
+ list.insertBefore(topinsert, list.firstChild);
228
+ }
224
229
  });
225
- var topinsert = document.createElement('ylist-insert');
226
- list.insertBefore(topinsert, list.firstChild);
227
230
  //计算当前高度
228
231
  var currentY = function () {
229
232
  var firstElement = getFirstElement();
@@ -8,10 +8,10 @@
8
8
  white-space: nowrap;
9
9
  }
10
10
 
11
- >ylist-insert {
11
+ >inserty {
12
12
  display: block;
13
13
  }
14
14
 
15
- >xlist-insert {
15
+ >insertx {
16
16
  display: inline-block;
17
17
  }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use ./forceUpdate.js";
3
- "use ../basic/loader.js";
3
+ "use ../basic/#loader.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.29.2",
3
+ "version": "3.30.0",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {