efront 3.4.5 → 3.5.1
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 +2 -1
- package/apps/pivot/home/welcome.js +4 -4
- package/apps/pivot/main.js +4 -1
- package/apps/pivot/main.less +3 -0
- package/apps/pivot/menu.yml +3 -1
- package/apps/pivot/share/edit.html +10 -0
- package/apps/pivot/share/edit.js +16 -0
- package/apps/pivot/share/list.html +1 -0
- package/apps/pivot/share/list.js +36 -0
- package/coms/layer/glance.js +2 -2
- package/coms/zimoli/alert.js +7 -6
- package/coms/zimoli/appendChild.js +1 -0
- package/coms/zimoli/button.js +5 -0
- package/coms/zimoli/button.less +6 -2
- package/coms/zimoli/checker.html +1 -1
- package/coms/zimoli/checker.less +8 -6
- package/coms/zimoli/color.js +128 -83
- package/coms/zimoli/colorpad.js +2 -4
- package/coms/zimoli/data.js +8 -4
- package/coms/zimoli/gallery.js +2 -12
- package/coms/zimoli/getGenerator.js +16 -10
- package/coms/zimoli/image.less +4 -0
- package/coms/zimoli/list.js +2 -12
- package/coms/zimoli/menu.js +4 -14
- package/coms/zimoli/menuList.js +4 -3
- package/coms/zimoli/on.js +18 -0
- package/coms/zimoli/radio.html +1 -1
- package/coms/zimoli/radio.less +25 -7
- package/coms/zimoli/render.js +97 -101
- package/coms/zimoli/table.html +16 -0
- package/coms/zimoli/table.js +15 -0
- package/coms/zimoli/table.less +57 -40
- package/coms/zimoli/view.less +11 -4
- package/coms/zimoli/zimoli.js +11 -5
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/table.less
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
& {
|
|
2
|
+
|
|
4
3
|
>thead,
|
|
5
4
|
>tbody,
|
|
6
5
|
& {
|
|
7
6
|
>tr {
|
|
8
|
-
|
|
7
|
+
|
|
9
8
|
>th,
|
|
10
|
-
>td {
|
|
9
|
+
>td {
|
|
10
|
+
box-shadow: 0 0 20px -6px #00000033;
|
|
11
|
+
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -17,10 +18,15 @@ tbody,
|
|
|
17
18
|
th,
|
|
18
19
|
td,
|
|
19
20
|
tr,
|
|
20
|
-
table
|
|
21
|
+
table,
|
|
22
|
+
& {
|
|
21
23
|
box-sizing: border-box;
|
|
22
24
|
}
|
|
23
25
|
|
|
26
|
+
& {
|
|
27
|
+
outline: 1px solid #0006;
|
|
28
|
+
}
|
|
29
|
+
|
|
24
30
|
.y-ing {
|
|
25
31
|
&:before {
|
|
26
32
|
content: "";
|
|
@@ -45,56 +51,67 @@ table {
|
|
|
45
51
|
table-layout: fixed;
|
|
46
52
|
white-space: nowrap;
|
|
47
53
|
|
|
48
|
-
|
|
49
|
-
user-select: none;
|
|
50
|
-
line-height: 36px;
|
|
54
|
+
}
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
>thead {
|
|
57
|
+
user-select: none;
|
|
58
|
+
line-height: 36px;
|
|
53
59
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
>tr {
|
|
61
|
+
|
|
62
|
+
>td,
|
|
63
|
+
>th {
|
|
64
|
+
padding: @cell-padding;
|
|
65
|
+
position: relative;
|
|
66
|
+
color: #fff;
|
|
67
|
+
background-color: #999;
|
|
61
68
|
}
|
|
62
69
|
}
|
|
70
|
+
}
|
|
63
71
|
|
|
64
|
-
|
|
65
|
-
|
|
72
|
+
>tbody {
|
|
73
|
+
line-height: 32px;
|
|
74
|
+
height: 100%;
|
|
75
|
+
min-height: 30px;
|
|
66
76
|
|
|
67
|
-
|
|
77
|
+
display: table-row-group;
|
|
68
78
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
>tr {
|
|
80
|
+
|
|
81
|
+
>td,
|
|
82
|
+
>th {
|
|
83
|
+
padding: @cell-padding;
|
|
84
|
+
position: relative;
|
|
85
|
+
}
|
|
74
86
|
|
|
75
|
-
|
|
87
|
+
&:nth-of-type(even) {
|
|
76
88
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
89
|
+
>td,
|
|
90
|
+
>th {
|
|
91
|
+
background-color: #eee;
|
|
81
92
|
}
|
|
93
|
+
}
|
|
82
94
|
|
|
83
|
-
|
|
95
|
+
&:nth-of-type(odd) {
|
|
84
96
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
97
|
+
>td,
|
|
98
|
+
>th {
|
|
99
|
+
background-color: #fff;
|
|
89
100
|
}
|
|
101
|
+
}
|
|
90
102
|
|
|
91
|
-
|
|
103
|
+
&:hover {
|
|
92
104
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
105
|
+
>td,
|
|
106
|
+
>th {
|
|
107
|
+
background: #dddddd;
|
|
97
108
|
}
|
|
98
109
|
}
|
|
99
110
|
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.button {
|
|
114
|
+
margin-right: 10px;
|
|
115
|
+
vertical-align: middle;
|
|
116
|
+
display: inline-block;
|
|
100
117
|
}
|
package/coms/zimoli/view.less
CHANGED
|
@@ -22,7 +22,8 @@ body>& {
|
|
|
22
22
|
|
|
23
23
|
&>.body,
|
|
24
24
|
>[body] {
|
|
25
|
-
padding: 6px
|
|
25
|
+
padding: 6px 20px 6px 6px;
|
|
26
|
+
margin-right: -20px;
|
|
26
27
|
background: #f2f4f6;
|
|
27
28
|
display: block;
|
|
28
29
|
width: auto;
|
|
@@ -109,8 +110,14 @@ body>& {
|
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
.button {
|
|
112
|
-
padding: 0 20px;
|
|
113
|
-
min-width: 60px;
|
|
114
113
|
vertical-align: middle;
|
|
115
|
-
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
>.foot,
|
|
117
|
+
>[foot] {
|
|
118
|
+
.button {
|
|
119
|
+
min-width: 60px;
|
|
120
|
+
padding: 0 20px;
|
|
121
|
+
margin-right: 10px;
|
|
122
|
+
}
|
|
116
123
|
}
|
package/coms/zimoli/zimoli.js
CHANGED
|
@@ -576,11 +576,17 @@ function addGlobal(element, name = null, isDestroy) {
|
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
var _switch = zimoli.switch = function (history_name = default_history, target_body = document.body, emptyState) {
|
|
579
|
-
if (
|
|
580
|
-
current_history =
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
579
|
+
if (!arguments.length) {
|
|
580
|
+
current_history = default_history;
|
|
581
|
+
body = document.body;
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
if (isString(history_name)) {
|
|
585
|
+
current_history = history_name = history_name.replace(/\/$/, '') + "/";
|
|
586
|
+
}
|
|
587
|
+
if (target_body) body = target_body;
|
|
588
|
+
}
|
|
589
|
+
if (emptyState !== false && !history[current_history]) root_path = (history[current_history] = [].concat(emptyState || ":empty"))[0];
|
|
584
590
|
};
|
|
585
591
|
popup.global = zimoli.global = addGlobal;
|
|
586
592
|
popup.go = zimoli.go = go;
|