locale of Conformance page

This commit is contained in:
Cindy Chang
2024-06-05 09:46:20 +08:00
parent e2d420b4bd
commit 499ad33d57
3 changed files with 61 additions and 23 deletions

View File

@@ -106,7 +106,9 @@ export default {
};
},
set(newValues) {
// 大於最大值時要等於最大值
// When the input value exceeds the acceptable maximum value, the front end
// should set the value to be equal to the maximum value.
// 當輸入的數值大於可接受的最大值時,前端要將數值設定成等同於最大值
for (const unit in newValues) {
this[unit] = newValues[unit].val;
const input = document.querySelector(`[data-tunit="${unit}"]`);