优化input带来的性能问题

This commit is contained in:
tcy
2025-08-20 15:15:46 +08:00
parent c68bbc7717
commit 18b5df1133

View File

@ -31,6 +31,7 @@
border
lazy
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
default-expand-all
>
<el-table-column prop="num" label="编号" />
<el-table-column prop="name" label="工程或费用名称" />
@ -39,7 +40,8 @@
<el-table-column prop="remark" label="单价" align="center">
<template #default="scope">
<el-input-number
v-model="scope.row.unitPrice"
:model-value="scope.row.unitPrice"
@change="(val) => (scope.row.unitPrice = val)"
:precision="2"
:step="0.1"
:controls="false"