diff --git a/README.md b/README.md index 3961f4d..e0f94b2 100644 --- a/README.md +++ b/README.md @@ -40,18 +40,20 @@ npm run build ``` 使用 ``` - new SmartUI.Table({ - selector: '#smartTable1', - tableHeight: 300 - }) - new SmartUI.Table({ - selector: '#smartTable2', - tableHeight: function () { - return 300 - } - }) - new SmartUI.Table({ - selector: '#smartTable3' + window.addEventListener('load', function () { + new SmartUI.Table({ + selector: '#smartTable1', + tableHeight: 300 + }) + new SmartUI.Table({ + selector: '#smartTable2', + tableHeight: function () { + return 300 + } + }) + new SmartUI.Table({ + selector: '#smartTable3' + }) }) ``` API Demo diff --git a/public/index.html b/public/index.html index 60aabda..cfb614e 100644 --- a/public/index.html +++ b/public/index.html @@ -11,25 +11,25 @@ body { padding: 10px 20px; } - + .repo-link { font-size: 16px; color: #409eff; text-decoration: none; margin-right: 15px; } - + .smart-table a { color: #409eff; } - + .title { text-align: center; padding: 10px 0; color: #4acccc; margin: 0; } - + .smart-table { margin: 20px 0px; } @@ -37,8 +37,7 @@ -

Smart Table Example +

Smart Table Example GitHub

@@ -64,7 +63,7 @@
日期
- +
姓名
@@ -269,106 +268,6 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
Id
-
-
日期
-
-
姓名
-
-
省份
-
-
市区
-
-
地址
-
-
邮编
-
-
12
-
-
2016-01-03
-
-
1王小虎
-
-
1上海
-
-
2普陀区
-
-
3上海市普陀区金沙江路 1518 弄
-
-
200331
-
-
13
-
-
2016-02-03
-
-
2王小虎
-
-
3上海
-
-
4普陀区
-
-
2上海市普陀区金沙江路 1518 弄
-
-
200331
-
-
14
-
-
2016-03-03
-
-
3王小虎
-
-
4上海
-
-
1普陀区
-
-
6上海市普陀区金沙江路 1518 弄
-
-
200331
-
-
@@ -802,139 +701,17 @@
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
Id
-
-
详细
-
-
配送信息
-
-
日期
-
-
姓名
-
-
地址
-
-
省份
-
-
市区
-
-
地址
-
-
邮编
-
-
12
-
-
2016-01-03
-
-
1王小虎
-
-
1上海
-
-
2普陀区
-
-
3上海市普陀区金沙江路 1518 弄
-
-
200331
-
-
2016-02-03
-
-
3上海
-
-
4普陀区
-
-
2上海市普陀区金沙江路 1518 弄
-
-
200331
-
-
14
-
-
2016-03-03
-
-
3王小虎
-
-
4上海
-
-
1普陀区
-
-
6上海市普陀区金沙江路 1518 弄
-
-
200331
-
-
合计
-
-
888888
-
-
999999
-
-