增加功能:屏幕宽度小于768px时,表格自动呈现为CardView模式
This commit is contained in:
parent
4ff81b3857
commit
d48e4f05c9
|
@ -318,7 +318,7 @@
|
|||
idField: "Id",
|
||||
uniqueId: "Id", //每一行的唯一标识,一般为主键列
|
||||
showToggle: true, //是否显示详细视图和列表视图的切换按钮
|
||||
cardView: false, //是否显示详细视图
|
||||
cardView: $(window).width() < 768, //是否显示详细视图
|
||||
detailView: false //是否显示父子表
|
||||
}, options);
|
||||
$(this).bootstrapTable(settings);
|
||||
|
|
Loading…
Reference in New Issue