diff --git a/examples/table-test.html b/examples/table-test.html
index ca2a8955..9cf2342a 100644
--- a/examples/table-test.html
+++ b/examples/table-test.html
@@ -171,7 +171,7 @@ layui.use(['table', 'dropdown'], function(){
]]
//,autoSort: false // 禁用前端自动排序,由服务的完成排序
- ,initSort11111: { // 初始排序状态
+ ,initSort111: { // 初始排序状态
field: 'experience' //排序字段,对应 cols 设定的各字段名
,type: 'desc' //排序方式 asc: 升序、desc: 降序、null: 默认排序
}
@@ -263,7 +263,7 @@ layui.use(['table', 'dropdown'], function(){
//,url: '404'
//,elem: null
//,page: {curr: 5, limit: 20}
- //,scrollPos: 'fixed' // 保持滚动条位置不变
+ ,scrollPos: 'fixed' // 保持滚动条位置不变
});
break;
case 'reloadData-deep':
diff --git a/examples/table.html b/examples/table.html
index e890b28d..f1ab71cc 100644
--- a/examples/table.html
+++ b/examples/table.html
@@ -61,7 +61,7 @@
-
+
-
+
联系人 |
diff --git a/src/modules/laydate.js b/src/modules/laydate.js
index 97a7be64..9bdb387a 100644
--- a/src/modules/laydate.js
+++ b/src/modules/laydate.js
@@ -816,7 +816,7 @@
});
return that;
- }
+ };
//无效日期范围的标记
Class.prototype.limit = function(elem, date, index, time){
diff --git a/src/modules/table.js b/src/modules/table.js
index f90fd8e9..97acb8ad 100644
--- a/src/modules/table.js
+++ b/src/modules/table.js
@@ -124,6 +124,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
,ELEM_SORT = '.layui-table-sort'
,ELEM_EDIT = 'layui-table-edit'
,ELEM_HOVER = 'layui-table-hover'
+ ,ELEM_COL_SPECIAL = 'layui-table-col-special'
,DATA_MOVE_NAME = 'LAY_TABLE_MOVE_DICT'
@@ -976,7 +977,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
}() +' class="'+ function(){ //追加样式
var classNames = [];
if(item3.hide) classNames.push(HIDE); //插入隐藏列样式
- if(!item3.field) classNames.push('layui-table-col-special'); //插入特殊列样式
+ if(!item3.field) classNames.push(ELEM_COL_SPECIAL); //插入特殊列样式
return classNames.join(' ');
}() +'">'
,'