efront 3.22.3 → 3.22.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.
- package/apps/pivot/auth/login.html +3 -0
- package/apps/pivot/auth/login.js +1 -1
- package/apps/pivot/auth/login.less +16 -3
- package/apps/pivot/log/boot.js +3 -2
- package/coms/layer/glance.js +4 -2
- package/coms/zimoli/autodragchildren.js +21 -26
- package/coms/zimoli/drag.js +1 -1
- package/coms/zimoli/pagination.html +1 -1
- package/coms/zimoli/pagination.js +9 -24
- package/coms/zimoli/pagination.less +34 -19
- package/coms/zimoli/table.html +9 -1
- package/coms/zimoli/table.js +99 -47
- package/coms/zimoli/table.less +32 -17
- package/coms/zimoli/table_test.html +32 -0
- package/coms/zimoli/table_test.js +1 -8
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/table.less
CHANGED
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
>th,
|
|
9
9
|
>td {
|
|
10
|
-
|
|
10
|
+
&:not(.y-ing) {
|
|
11
|
+
box-shadow: 1px 0 0 0 #00000033, -1px 0 0 0 #00000033;
|
|
12
|
+
}
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
&:insert {
|
|
14
|
-
background: #999;
|
|
15
|
-
}
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -43,11 +42,11 @@ th,
|
|
|
43
42
|
td {
|
|
44
43
|
white-space: normal;
|
|
45
44
|
height: 100%;
|
|
46
|
-
|
|
47
|
-
padding: 1px 10px;
|
|
45
|
+
padding: 2px 10px;
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
.y-ing
|
|
48
|
+
.y-ing,
|
|
49
|
+
.x-ing {
|
|
51
50
|
&:before {
|
|
52
51
|
content: "";
|
|
53
52
|
position: absolute;
|
|
@@ -55,7 +54,7 @@ td {
|
|
|
55
54
|
top: 0;
|
|
56
55
|
bottom: 0;
|
|
57
56
|
right: 0;
|
|
58
|
-
background-color: rgba(0,
|
|
57
|
+
background-color: rgba(0, 60, 69, .06);
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
>* {
|
|
@@ -90,6 +89,29 @@ td {
|
|
|
90
89
|
|
|
91
90
|
[fixed] {
|
|
92
91
|
z-index: 2;
|
|
92
|
+
border-left: 1px solid transparent;
|
|
93
|
+
border-right: 1px solid transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
>tfoot {
|
|
97
|
+
width: 100%;
|
|
98
|
+
display: block;
|
|
99
|
+
position: relative;
|
|
100
|
+
color: #bbb;
|
|
101
|
+
|
|
102
|
+
>tr {
|
|
103
|
+
width: 100%;
|
|
104
|
+
display: block;
|
|
105
|
+
|
|
106
|
+
>td {
|
|
107
|
+
display: block;
|
|
108
|
+
width: 100%;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
pagination {
|
|
113
|
+
width: 100%;
|
|
114
|
+
}
|
|
93
115
|
}
|
|
94
116
|
|
|
95
117
|
>thead {
|
|
@@ -134,21 +156,14 @@ td {
|
|
|
134
156
|
|
|
135
157
|
>td,
|
|
136
158
|
th {
|
|
137
|
-
background-color: #
|
|
159
|
+
background-color: #f8fbfd;
|
|
138
160
|
}
|
|
139
161
|
}
|
|
140
162
|
|
|
141
163
|
|
|
142
|
-
&:hover {
|
|
143
|
-
|
|
144
|
-
>td,
|
|
145
|
-
>th {
|
|
146
|
-
background: #e9edf2;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
164
|
}
|
|
150
165
|
|
|
151
|
-
>tr[
|
|
166
|
+
>tr[thead] {
|
|
152
167
|
position: sticky;
|
|
153
168
|
top: 0;
|
|
154
169
|
z-index: 1;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<thead>
|
|
2
|
+
<tr>
|
|
3
|
+
<td colspan=2><span>1</span></td>
|
|
4
|
+
<td rowspan=2><span>th1</span></td>
|
|
5
|
+
<td>th3</td>
|
|
6
|
+
<td>th4</td>
|
|
7
|
+
</tr>
|
|
8
|
+
<tr>
|
|
9
|
+
<td>th3</td>
|
|
10
|
+
<td>th4</td>
|
|
11
|
+
</tr>
|
|
12
|
+
</thead>
|
|
13
|
+
<tbody>
|
|
14
|
+
<tr>
|
|
15
|
+
<td rowspan=2>td1</td>
|
|
16
|
+
<td>td2</td>
|
|
17
|
+
<td>td3</td>
|
|
18
|
+
<td>td4</td>
|
|
19
|
+
</tr>
|
|
20
|
+
<tr>
|
|
21
|
+
<td>td2</td>
|
|
22
|
+
<td>td3</td>
|
|
23
|
+
<td>td4</td>
|
|
24
|
+
</tr>
|
|
25
|
+
<tr>
|
|
26
|
+
<td rowspan=2>td1</td>
|
|
27
|
+
<td>td2</td>
|
|
28
|
+
</tr>
|
|
29
|
+
<tr>
|
|
30
|
+
<td> </td>
|
|
31
|
+
</tr>
|
|
32
|
+
</tbody>
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
function table_test() {
|
|
2
|
-
var data = new Array(100).fill(0).map(function () {
|
|
3
|
-
return {
|
|
4
|
-
name: random(random$name),
|
|
5
|
-
tel: random(random$phone)
|
|
6
|
-
};
|
|
7
|
-
});
|
|
8
2
|
var datatable = table();
|
|
9
|
-
datatable.innerHTML =
|
|
10
|
-
console.log(datatable);
|
|
3
|
+
datatable.innerHTML = template;
|
|
11
4
|
return datatable;
|
|
12
5
|
}
|