mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-26 22:25:51 +08:00
Deal with style= single valued parameter
This commit is contained in:
@@ -100,6 +100,9 @@ class MainController {
|
||||
if (style==null || style.size()==0) {
|
||||
style = [""]
|
||||
}
|
||||
if (!style.class.isArray() && !(style instanceof Collection)) {
|
||||
style = [style]
|
||||
}
|
||||
model["styles"] = style.collect{ it=="" ? "" : "-" + it }
|
||||
|
||||
log.info("Model: " + model)
|
||||
|
||||
Reference in New Issue
Block a user