菜单页面Icon列直接显示图标并居中

This commit is contained in:
Argo-Lenovo 2016-12-11 14:00:37 +08:00
parent 87154584a7
commit b587661b75
2 changed files with 14 additions and 1 deletions

View File

@ -26,6 +26,12 @@
font-weight: 600;
}
.bs-icon {
color: #2e6da4;
width: 100%;
text-align: center;
}
.hidden-tb {
margin-left: 6px;
}

View File

@ -108,7 +108,14 @@
{ title: "父级菜单", field: "ParentName", sortable: true },
{ title: "菜单名称", field: "Name", sortable: true },
{ title: "菜单序号", field: "Order", sortable: true },
{ title: "菜单图标", field: "Icon", sortable: false },
{
title: "菜单图标", field: "Icon", sortable: false, formatter: function (value, row, index) {
if (value) {
return $.format('<i class="bs-icon {0}"></i>', value);
}
return "";
}
},
{ title: "菜单路径", field: "Url", sortable: false },
{ title: "菜单类别", field: "CategoryName", sortable: true },
{