fix(swaptrade): 修复债券价格输入绑定和事件处理问题
- 绑定三个债券价格字段到当前Vue方法,确保正确的v-model和事件监听器 - 修复精度输入组件的事件契约,保留keydown、input、enter事件处理逻辑 - 解决格式刷新时不覆盖未提交输入的问题,维护用户输入状态一致性 - 将模板中的@change事件替换为@blur事件,改进输入焦点处理逻辑
This commit is contained in:
@@ -242,7 +242,7 @@ var swapPricePrecision = (function (global) {
|
||||
}
|
||||
}
|
||||
},
|
||||
template: '<input type="text" :disabled="disabled" :value="text" @input="onInput" @paste="onPaste" @keydown="onKeydown" @change="onChange">'
|
||||
template: '<input type="text" :disabled="disabled" :value="text" @input="onInput" @paste="onPaste" @keydown="onKeydown" @blur="onChange">'
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user