This commit is contained in:
Julyp
2020-02-12 11:18:28 +08:00
parent 96bbd42f6a
commit 1e4b581771
4 changed files with 16 additions and 6 deletions

View File

@@ -47,8 +47,8 @@
<th fixed>价格</th> <!-- 右边固定列 -->
<tbody>
<tr>
<td>DD001</td>
<td>2020-01-31</td>
<td align="right">DD001</td>
<td nowrap>2020-01-31</td>
...
<td>889.00</td>
<tr unsort>
@@ -80,6 +80,8 @@
| stripe | table | 表格是否需要斑马间隔色 |
| fixed | thead -> tr -> th | 是否固定该列 |
| sort | thead -> tr -> th | 是否对该列有排序功能默认按照string排序可指定为sort="number" |
| align | th or td | 对某一单元格指定水平排列方式 |
| nowrap | th or td | 对某一单元格指定内容是否允许换行 |
| unsort | tbody -> tr | 可指定body中的某一行不参与排序 |
| expand | tbody -> tr | 可指定body中的某一行是否需要展开 指定expand="001" 001为当前行的ID |
| expand-parent | tbody -> tr | 可指定body中的某一行是子项 指定expand-parent="001" 001为父级ID |

File diff suppressed because one or more lines are too long

View File

@@ -90,7 +90,7 @@
<tr>
<th colspan="1" fixed sort>Id</th>
<th colspan="1" fixed sort>Logo</th>
<th align="left" colspan="1" width="200" fixed>日期</th>
<th colspan="1" width="200" fixed>日期</th>
<th colspan="1" width="100" sort>姓名</th>
<th colspan="1">省份(包含自治区)</th>
<th colspan="1" sort>市区</th>
@@ -102,11 +102,11 @@
<tr>
<td>10</td>
<td><img src="./assets/js-table.png" /></td>
<td align="left">2020-01-03</td>
<td>2020-01-03</td>
<td>1王小虎</td>
<td>1上海</td>
<td>2长宁区</td>
<td nowrap>3上海市长宁区淞虹路888号</td>
<td>3上海市长宁区淞虹路888号</td>
<td>200331</td>
</tr>
<tr>

View File

@@ -154,6 +154,14 @@
td[align="left"] {
text-align: left;
}
th[align="center"],
td[align="center"] {
text-align: center;
}
th[align="right"],
td[align="right"] {
text-align: right;
}
th[nowrap],
td[nowrap] {
.stb_cell {