feat: support subtext for title

This commit is contained in:
vicanso 2022-02-04 10:05:58 +08:00
parent dfba1ceafc
commit 126244ba52
5 changed files with 81 additions and 30 deletions

View file

@ -106,3 +106,10 @@ func convertPercent(value string) float64 {
}
return float64(v) / 100
}
func isFalse(flag *bool) bool {
if flag != nil && !*flag {
return true
}
return false
}