refactor: 健康状态增加图标

This commit is contained in:
Argo Zhang 2019-08-24 22:04:21 +08:00
parent 3df6d54905
commit f7408115b9
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
$(function () {
var healthStatus = ['<button class="btn btn-danger">不健康</button>', '<button class="btn btn-warning">亚健康</button>', '<button class="btn btn-success">健康</button>'];
var healthStatus = ['<button class="btn btn-danger"><i class="fa fa-times-circle"></i><span>不健康</span></button>', '<button class="btn btn-warning"><i class="fa fa-exclamation-circle"></i><span>亚健康</span></button>', '<button class="btn btn-success"><i class="fa fa-check-circle"></i><span>健康</span></button>'];
var StatusFormatter = function (value) {
return healthStatus[value];
};