element
element copied to clipboard
inputNumber 精度问题
Is your feature request related to a problem? Please describe. 组件如此使用
<el-input-number
v-model="weight"
:min="0"
:max="999"
:step="0.00001"
step-stricky
:controls="false"
/>
Describe the solution you'd like
当输入 1 的时候,结果为1.0000000000000002
不要设置pricision,因为界面上不想显示:1.00000
:step="0.00001" step-stricky
是为了保证输入最多5位小数
Describe alternatives you've considered
Additional context 在blur 里面帮忙处理一下,但是还要考虑到科学计数法的情况:如 0.0000001 显示的是 1e-7