<el-table-column label="" min-width="120" prop="estAmount"> <template slot="header"> <span>預計保額(元)</span> <el-tooltip class="item" effect="dark" content="預估數,以實際簽單為准。機動車輛保險為車輛價值,責任保險為累計賠償限額,貨物運輸保險為貨物價值,企業財產保險為標的價值,工程保險為工程造價,意外傷害保險為意外傷害賠償限額,其他根據實際情況填寫。"> <i class="el-icon-question interpretation" /> </el-tooltip> </template> <template slot-scope="scope"> <el-input v-if="scope.row.edit" v-model="scope.row.estAmount" v-only-number="{min:0,precision:2}" maxlength="15" /> <span v-else>{{ scope.row.estAmount }}</span> </template> </el-table-column>
效果:

