efront 4.22.12 → 4.22.14

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.
@@ -30,6 +30,7 @@ function ybox(generator) {
30
30
  if (_box.$Height !== _box_Height) _box.$Height = _box_Height;
31
31
  if (_box.$height !== _box_height) _box.$height = _box_height;
32
32
  if (_box.$Top !== _box_Top) _box.$Top = _box_Top;
33
+ _box.parked = true;
33
34
  _box.$scrollY = function (deltay, useIncrease = _box.useIncrease !== false) {
34
35
  var _Top = _box.$Top();
35
36
  var top = _Top + deltay;
@@ -89,14 +90,17 @@ function ybox(generator) {
89
90
  remove(increaser);
90
91
  return 0;
91
92
  };
93
+ scrollY.park = function () {
94
+ _box.parked = true;
95
+ };
92
96
  var stop = _box.$stopY || _box.stopY;
93
97
  var stop2 = lazy(function () {
94
- scrollY.smooth(stop, 4);
98
+ scrollY.smooth(stop);
95
99
  }, 40);
96
100
  var decrease = function (t) {
97
101
  var res = _decrease(increaser_t, t) + _decrease(increaser_b, t);
98
102
  if (!res) {
99
- scrollY.smooth(stop, 4);
103
+ scrollY.smooth(stop);
100
104
  }
101
105
  return true;
102
106
  };
@@ -170,6 +174,7 @@ function ybox(generator) {
170
174
  bindtouch(_box, {
171
175
  start() {
172
176
  scrollY.reset();
177
+ _box.parked = false;
173
178
  },
174
179
  move(scrolled) {
175
180
  var y = -_box.$Top();
@@ -51,7 +51,7 @@ body>& {
51
51
  >.head,
52
52
  >[head] {
53
53
  top: 0;
54
- z-index: 2;
54
+ z-index: 3;
55
55
  background: inherit;
56
56
  position: relative;
57
57
  position: sticky;
@@ -68,9 +68,11 @@ var codecolor = function (c, encode) {
68
68
  }
69
69
  else endi++;
70
70
  var [name] = keys;
71
- if (!o.isprop && o.text !== name && isConstValue(name)) name = wrap(name, "strap");
72
- else name = wrap(name, label);
73
- keys[0] = name;
71
+ if (name && endi > 0) {
72
+ if (!o.isprop && o.text !== name && isConstValue(name)) name = wrap(name, "strap");
73
+ else name = wrap(name, label);
74
+ keys[0] = name;
75
+ }
74
76
  for (var cx = 1, dx = endi; cx < dx; cx++) {
75
77
  var k = keys[cx];
76
78
  keys[cx] = /^[\?]/.test(k) || !k ? k : wrap(k, 'express');
@@ -14,7 +14,6 @@
14
14
  border-top: 42px solid transparent;
15
15
  padding-top: 40px;
16
16
  overflow: auto;
17
- padding-bottom: 0 !important;
18
17
  }
19
18
 
20
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.22.12",
3
+ "version": "4.22.14",
4
4
  "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
5
  "main": "public/efront.js",
6
6
  "directories": {