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.
@@ -7,12 +7,11 @@
7
7
 
8
8
  >th,
9
9
  >td {
10
- box-shadow: 1px 0 0 0 #00000033, -1px 0 0 0 #00000033;
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
- border: 1px solid transparent;
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, 30, 69, .06);
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: #f2f4f6;
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[insert] {
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>&nbsp;</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 = `<thead><tr><td colspan=2><span>1</span></td><td rowspan=2><span>th1</span></td><td>th3</td><td>th4</td></tr><tr><td>th3</td><td>th4</td></tr></thead><tbody><tr><td rowspan=2>td1</td><td>td2</td><td>td3</td><td>td4</td></tr><tr><td rowspan=2>td1</td><td>td2</td></tr></tbody>`;
10
- console.log(datatable);
3
+ datatable.innerHTML = template;
11
4
  return datatable;
12
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.22.3",
3
+ "version": "3.22.4",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {