1.效果图
2.代码示例
<field name="state" decoration-info="state == 'draft'" decoration-success="state in ['reported', 'approved', 'done']" decoration-danger="state in 'refused'" widget="badge"/>
decoration-warning="status == '休息'"
四种颜色
1.效果图
2.代码示例
<field name="state" decoration-info="state == 'draft'" decoration-success="state in ['reported', 'approved', 'done']" decoration-danger="state in 'refused'" widget="badge"/>
decoration-warning="status == '休息'"
四种颜色