github.com/easysoft/zendata@v0.0.0-20240513203326-705bd5a7fd67/demo/13_value.yaml (about) 1 fields: 2 - field: first 3 range: [1-9]{9} 4 prefix: ' ' 5 postfix: ' x ' 6 7 - field: second 8 range: 1-9 9 postfix: ' = ' 10 11 - field: result # 数值格式的值表达式 12 value: "$first * $second" 13 postfix: ' ' 14 15 - field: third 16 range: [one,two,three] 17 postfix: ' ' 18 19 - field: result_str # 字符串格式的值表达式 20 value: "$first + '_' + $third" 21 22 - field: subs 23 fields: 24 - field: sub_first 25 range: [1-9] 26 prefix: ' ' 27 postfix: ' x ' 28 29 - field: sub_second 30 range: 1-9 31 postfix: ' = ' 32 33 - field: sub_result 34 value: "$sub_first * $sub_second" 35 postfix: ' '