decoration-样式名
样式可为 bf加粗, it斜体 或 其他bootstrap样式如:danger红色, info, muted, primary, success绿色,warning橙色等等,值为python表达式,对每条记录执行相应表达式判断,当结果为true的时候将对应的样式应用。
其中,判断条件可以使用如下几种
<tree decoration-danger="cellListLength!=11" decoration-success="cellListLength==11">
<tree decoration-muted="state in ['done', 'cancel']"
decoration-bf="state=='open'">
<tree decoration-danger="cellListLength>11">
其中,最后一条>可以替换为其它:
< | < | < | 小于号 |
> | > | > | 大于号 |
≤ | ≤ | ≤ | 小于等于号 |
≥ | ≥ | ≥ | 大于等于号 |
参见:
https://www.cnblogs.com/ygj0930/p/10826414.html