efront 3.20.3 → 3.20.4

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.
@@ -5,15 +5,11 @@ WEB:
5
5
  文件管理: /wow/root
6
6
  长连接管理: /link/index
7
7
  字典: /dict/list
8
- 接口: /api/list
9
8
  任务:
10
9
  密钥管理: /token/list
11
10
  任务建立: /task/list
12
11
  定期执行: /tick/list
13
12
  # 服务器: /api/host
14
- 用户:
15
- 账号列表: /user/list
16
- 标签管理: /user/tag/list
17
13
  服务器日志:
18
14
  访问计数: /log/count
19
15
  启动记录: /log/boot
@@ -42,7 +42,8 @@ function queue(list, count = 1, context = null) {
42
42
  if (!(count >= 1)) {
43
43
  count = 1;
44
44
  }
45
- while (cx < count) {
45
+ if (list.length === 0) run();
46
+ else while (cx < count) {
46
47
  run();
47
48
  }
48
49
  });
@@ -312,6 +312,10 @@ function main(page, items, active, direction = 'y') {
312
312
  }`;
313
313
  var notHidden = `!${itemName}.hidden`;
314
314
  var generator = getGenerator(page, 'menu-item');
315
+ var fire0 = function () {
316
+ fire.apply(this, arguments);
317
+ dispatch(window, 'render');
318
+ };
315
319
  list(page, function (index) {
316
320
  var item = items[index];
317
321
  if (!item) return;
@@ -325,7 +329,7 @@ function main(page, items, active, direction = 'y') {
325
329
  on("mouseenter")(a, open);
326
330
  on("pointermove")(a, open);
327
331
  if (istoolbar) on("pointerdown")(a, open1);
328
- on("click")(a, fire);
332
+ on("click")(a, fire0);
329
333
  return a;
330
334
  });
331
335
  on("append")(page, function () {
@@ -358,7 +362,7 @@ function main(page, items, active, direction = 'y') {
358
362
  on("mouseenter")(elem, open);
359
363
  on("pointermove")(elem, cancel);
360
364
  if (istoolbar) on("pointerdown")(elem, open1);
361
- on("click")(elem, fire);
365
+ on("click")(elem, fire0);
362
366
  return elem;
363
367
  }, direction);
364
368
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.20.3",
3
+ "version": "3.20.4",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {