新增表格参数(通过自定义函数设置页脚样式footerStyle)

This commit is contained in:
RuoYi
2020-08-29 11:44:24 +08:00
parent ae7c436730
commit 947120d136
2 changed files with 13 additions and 0 deletions

View File

@ -24,6 +24,7 @@
showRefresh: false,
showToggle: false,
showColumns: false,
footerStyle: footerStyle,
columns: [{
checkbox: true
},
@ -78,6 +79,17 @@
};
$.table.init(options);
});
function footerStyle(column) {
return {
// userBalance: {
// classes: 'class'
// },
userBalance: {
css: { color: 'red', 'font-weight': 'normal' }
}
}[column.field]
}
</script>
</body>
</html>