vue3 element中input精确小数点后六位
在Vue3 Element中,可以通过设置step属性来控制输入框精确小数点后的位数。例如:
<el-input v-model="value" type="number" :step="0.000001"></el-input>
这样设置后,输入框的数值会精确到小数点后六位。需要注意的是,type属性必须为number,否则step属性不起作用。
原文地址: https://www.cveoy.top/t/topic/ZNy 著作权归作者所有。请勿转载和采集!