- 增加单元格align及nowrap属性

This commit is contained in:
Julyp
2020-02-11 19:59:24 +08:00
parent 96122fdaa1
commit 96bbd42f6a
5 changed files with 22 additions and 6 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## [1.2.1](https://github.com/peng92055/smart-table/tree/1.2.1) (2020-02-08)
[Full Changelog](https://github.com/peng92055/smart-table/compare/1.2.0...1.2.1)
- 增加单元格align及nowrap属性
## [1.2.0](https://github.com/peng92055/smart-table/tree/1.2.0) (2020-02-08)
[Full Changelog](https://github.com/peng92055/smart-table/compare/1.1.2...1.2.0)

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 colspan="1" width="200" fixed>日期</th>
<th align="left" 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>2020-01-03</td>
<td align="left">2020-01-03</td>
<td>1王小虎</td>
<td>1上海</td>
<td>2长宁区</td>
<td>3上海市长宁区淞虹路888号</td>
<td nowrap>3上海市长宁区淞虹路888号</td>
<td>200331</td>
</tr>
<tr>

View File

@@ -150,6 +150,16 @@
text-align: right;
}
}
th[align="left"],
td[align="left"] {
text-align: left;
}
th[nowrap],
td[nowrap] {
.stb_cell {
white-space: nowrap;
}
}
.std-checkbox_inner {
display: inline-block;
position: relative;

View File

@@ -1,6 +1,6 @@
{
"name": "smart-table",
"version": "1.2.0",
"version": "1.2.1",
"description": "smart table for static html",
"main": "index.js",
"scripts": {
@@ -33,4 +33,4 @@
},
"dependencies": {},
"keywords": []
}
}