efront 4.0.34 → 4.0.37
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.
- package/coms/basic/#loader.js +52 -42
- package/coms/basic_/nullish_.js +3 -0
- package/coms/basic_/power_.js +14 -0
- package/coms/basic_/readme-en.md +10 -1
- package/coms/basic_/readme.md +15 -7
- package/coms/basic_/restIter_.js +7 -0
- package/coms/compile/Javascript.js +9 -4
- package/coms/compile/Javascript_test.js +3 -0
- package/coms/compile/common.js +22 -2
- package/coms/compile/downLevel.js +103 -14
- package/coms/compile/downLevel_test.js +12 -0
- package/coms/compile/powermap.js +25 -2
- package/coms/compile/scanner2.js +1 -1
- package/coms/compile/unstruct.js +4 -19
- package/docs/main.xht +29 -0
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/docs/main.xht
CHANGED
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
menu {
|
|
46
|
+
margin: 0;
|
|
46
47
|
width: var(--leftwidth);
|
|
47
48
|
margin-left: -var(--leftwidth);
|
|
48
49
|
height: 100%;
|
|
@@ -51,6 +52,20 @@
|
|
|
51
52
|
max-width: 600px;
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
titlebar {
|
|
56
|
+
background: #2c2c2c;
|
|
57
|
+
-webkit-app-region: drag;
|
|
58
|
+
|
|
59
|
+
>.drop {
|
|
60
|
+
-webkit-app-region: no-drag;
|
|
61
|
+
vertical-align: top;
|
|
62
|
+
right: 20px;
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
padding: 0 7px;
|
|
65
|
+
line-height: 44px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
54
69
|
div1 {
|
|
55
70
|
display: inline-block;
|
|
56
71
|
width: 100%;
|
|
@@ -204,6 +219,20 @@
|
|
|
204
219
|
};
|
|
205
220
|
var page = document.createElement('grid');
|
|
206
221
|
page.innerHTML = template;
|
|
222
|
+
if (window.require) {
|
|
223
|
+
var title = document.createElement('titlebar');
|
|
224
|
+
title.innerHTML = document.title;
|
|
225
|
+
css(page, { paddingTop: "44px" })
|
|
226
|
+
css(title, { height: '44px', lineHeight: '44px' });
|
|
227
|
+
page.insertBefore(title, page.firstChild);
|
|
228
|
+
var close = drop();
|
|
229
|
+
title.appendChild(close);
|
|
230
|
+
onclick(close, function () {
|
|
231
|
+
window.close();
|
|
232
|
+
})
|
|
233
|
+
titlebar(title, false);
|
|
234
|
+
drag.on(close, window);
|
|
235
|
+
}
|
|
207
236
|
render(page, scope);
|
|
208
237
|
var s = scrollbar();
|
|
209
238
|
on("mounted")(page, initMenus);
|