增加功能:屏幕宽度小于768px时,表格自动呈现为CardView模式

This commit is contained in:
Argo-Lenovo 2017-03-29 13:32:03 +08:00
parent 4ff81b3857
commit d48e4f05c9
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@
idField: "Id",
uniqueId: "Id", //每一行的唯一标识,一般为主键列
showToggle: true, //是否显示详细视图和列表视图的切换按钮
cardView: false, //是否显示详细视图
cardView: $(window).width() < 768, //是否显示详细视图
detailView: false //是否显示父子表
}, options);
$(this).bootstrapTable(settings);