efront 3.5.7 → 3.5.11
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/apps/pivot/api.yml +1 -0
- package/apps/pivot/main.js +2 -2
- package/apps/pivot/menu.yml +1 -0
- package/apps/pivot/wow/edit.html +10 -0
- package/apps/pivot/wow/edit.js +33 -0
- package/apps/pivot/wow/root.html +10 -0
- package/apps/pivot/wow/root.js +100 -0
- package/apps/pivot/wow/root.less +63 -0
- package/coms/basic/JSAM.js +1 -1
- package/coms/basic/refilm_decode.js +32 -11
- package/coms/basic/sortname.js +119 -0
- package/coms/frame/left.js +3 -1
- package/coms/frame/route.js +8 -6
- package/coms/frame/top.html +5 -5
- package/coms/frame/top.less +22 -0
- package/coms/layer/glance.js +2 -2
- package/coms/zimoli/action.js +1 -2
- package/coms/zimoli/autodragchildren.js +1 -1
- package/coms/zimoli/button.less +1 -2
- package/coms/zimoli/contextmenu.js +13 -8
- package/coms/zimoli/cross.js +3 -3
- package/coms/zimoli/field.js +1 -1
- package/coms/zimoli/menuList.html +3 -2
- package/coms/zimoli/menuList.less +29 -25
- package/coms/zimoli/model.js +1 -1
- package/coms/zimoli/render.js +4 -4
- package/coms/zimoli/zimoli.js +10 -4
- package/package.json +1 -1
- package/public/efront.js +1 -1
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
& {
|
|
2
|
-
display
|
|
3
|
-
width
|
|
4
|
-
height
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: auto;
|
|
4
|
+
height: auto;
|
|
5
5
|
background-color: #fff;
|
|
6
|
-
box-shadow
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
box-shadow: 0 0 20px -6px rgba(0, 0, 0, .1);
|
|
7
|
+
border: 1px solid #0003;
|
|
8
|
+
line-height: 28px;
|
|
9
|
+
padding: 6px 0;
|
|
9
10
|
|
|
10
11
|
>menu-item {
|
|
11
|
-
display
|
|
12
|
-
position
|
|
13
|
-
padding
|
|
14
|
-
border-radius
|
|
12
|
+
display: block;
|
|
13
|
+
position: relative;
|
|
14
|
+
padding: 0 16px;
|
|
15
|
+
border-radius: 0;
|
|
15
16
|
background-color: inherit;
|
|
16
|
-
color
|
|
17
|
-
box-shadow
|
|
18
|
-
text-align
|
|
17
|
+
color: inherit;
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
text-align: inherit;
|
|
20
|
+
&.warn{
|
|
21
|
+
color: #c28;
|
|
22
|
+
}
|
|
19
23
|
|
|
20
24
|
&.has-children {
|
|
21
25
|
padding: 0 24px 0 16px;
|
|
22
26
|
|
|
23
27
|
&:after {
|
|
24
|
-
content
|
|
25
|
-
display
|
|
26
|
-
width
|
|
27
|
-
height
|
|
28
|
+
content: ">";
|
|
29
|
+
display: block;
|
|
30
|
+
width: 20px;
|
|
31
|
+
height: 20px;
|
|
28
32
|
line-height: 20px;
|
|
29
|
-
font-size
|
|
30
|
-
transform
|
|
31
|
-
position
|
|
32
|
-
right
|
|
33
|
-
top
|
|
34
|
-
margin-top
|
|
35
|
-
text-align
|
|
33
|
+
font-size: 18px;
|
|
34
|
+
transform: scaleX(.56);
|
|
35
|
+
position: absolute;
|
|
36
|
+
right: 6px;
|
|
37
|
+
top: 50%;
|
|
38
|
+
margin-top: -10px;
|
|
39
|
+
text-align: right;
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -41,5 +45,5 @@
|
|
|
41
45
|
|
|
42
46
|
i {
|
|
43
47
|
display: inline-block;
|
|
44
|
-
width
|
|
48
|
+
width: 20px;
|
|
45
49
|
}
|
package/coms/zimoli/model.js
CHANGED
package/coms/zimoli/render.js
CHANGED
|
@@ -51,7 +51,7 @@ function rebuild(element) {
|
|
|
51
51
|
dispatch(event, element);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
var variableReg = /([^\:\,\+\=\-\!%\^\|\/\&\*\!\;\?\>\<~\{\}\s]|\?\s*\.(?=[^\d])|\s*\.\s*)+/g;
|
|
54
|
+
var variableReg = /([^\:\,\+\=\-\!%\^\|\/\&\*\!\;\?\>\<~\{\}\s\[\]\(\)]|\?\s*\.(?=[^\d])|\s*\.\s*)+/g;
|
|
55
55
|
var createGetter = function (search, isprop = true) {
|
|
56
56
|
var [withContext, searchContext] = search;
|
|
57
57
|
if (!searchContext) return function () { };
|
|
@@ -62,12 +62,12 @@ var createGetter = function (search, isprop = true) {
|
|
|
62
62
|
context.split(/\?\s*\.(?=[^\d])/).forEach(function (search) {
|
|
63
63
|
if (dist) {
|
|
64
64
|
if (/[\=]/.test(dist)) dist = `(${dist})`;
|
|
65
|
-
dist = `${dist}!==void 0&&${dist}!==null?${dist}.${search}:
|
|
65
|
+
dist = `${dist}!==void 0&&${dist}!==null?${dist}.${search}:''`
|
|
66
66
|
} else {
|
|
67
67
|
dist = search;
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
return
|
|
70
|
+
return dist.length > 1 ? `(${dist})` : context;
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
if (isprop) {
|
|
@@ -723,7 +723,7 @@ function renderStructure(element, scope, parentScopes = []) {
|
|
|
723
723
|
}
|
|
724
724
|
if (!element.renderid) element.renderid = -1;
|
|
725
725
|
else element.renderid = -2;
|
|
726
|
-
|
|
726
|
+
continue;
|
|
727
727
|
}
|
|
728
728
|
if (element.$struct) continue;
|
|
729
729
|
var key = name.replace(/^(ng|v|.*?)\-|^[\:\_\.]|^v\-bind\:/i, "").toLowerCase();
|
package/coms/zimoli/zimoli.js
CHANGED
|
@@ -337,11 +337,17 @@ function prepare(pgpath, ok) {
|
|
|
337
337
|
}, state);
|
|
338
338
|
}
|
|
339
339
|
function create(pagepath, args, from, needroles) {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
if (typeof pagepath === 'string') {
|
|
341
|
+
var page_object = isObject(pagepath) ? pagepath : page_generators[getpgpath(pagepath)];
|
|
342
|
+
if (!page_object) {
|
|
343
|
+
throw new Error(`调用create前请确保prepare执行完毕:${pagepath}`);
|
|
344
|
+
}
|
|
345
|
+
var { pg, "with": _with_elements, state, onback: _pageback_listener, roles } = page_object;
|
|
346
|
+
}
|
|
347
|
+
else if (isFunction(pagepath)) {
|
|
348
|
+
var pg = pagepath;
|
|
349
|
+
var { with: _with_elements, state = {}, onback: _pageback_listener, roles } = pg;
|
|
343
350
|
}
|
|
344
|
-
var { pg, "with": _with_elements, state, onback: _pageback_listener, roles } = page_object;
|
|
345
351
|
if (!checkroles(user.roles, roles) || !checkroles(user.roles, needroles)) {
|
|
346
352
|
// 检查权限
|
|
347
353
|
if (!user.isLogin && user.loginPath) {
|