File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
< input class ="we " key ="total " id ="id2 " value ="13 " />
16
16
<!--<input id="id3" value="14"><br><br><br>-->
17
17
18
- < input id ="te " calculate ="{#id1} + {#id2} " />
18
+ < input id ="te " calculate ="{( #id1) } + {( #id2) } " />
19
19
<!--<input calculate="1 + 3 * 5">-->
20
20
< input calculate ="{[key='total']} + 1 " />
21
- < h1 calculate ="{[key='total']} + {#te} "> sum</ h1 >
21
+ < h1 calculate ="{[key='total']} + {( #te) } "> sum</ h1 >
22
22
23
23
<!--<h1 calculate="sum[.we]">sum</h1>-->
24
- <!--<h1 calculate="1 + {#id1} * 5 + {#id3}/{#id2} + {#id2}"></h1>-->
24
+ <!--<h1 calculate="1 + {( #id1) } * 5 + {( #id3) }/{( #id2) } + {( #id2) }"></h1>-->
25
25
<!--<h1 calculate="(({#id1} + {#id2})) * {#id3}"></h1>-->
26
26
27
27
<!--<script src="../dist/CoCreate-calculate.js"></script>-->
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ async function getValues(calculate) {
83
83
}
84
84
85
85
if ( value != null && ! Number . isNaN ( value ) ) {
86
- calculate = calculate . replaceAll ( '{' + selector + '}' , value ) ;
86
+ calculate = calculate . replaceAll ( '{( ' + selector + ') }' , value ) ;
87
87
}
88
88
}
89
89
You can’t perform that action at this time.
0 commit comments