在ElementUi表格中使用
<el-table-column prop="testValue" label="信息" align="center"> <template slot-scope="scope"> {{ fun(scope.row.testValue) }} </template> </el-table-column>
methods: { fun(val){ return Number(val).toFixed(2); }, }
在ElementUi表格中使用
<el-table-column prop="testValue" label="信息" align="center"> <template slot-scope="scope"> {{ fun(scope.row.testValue) }} </template> </el-table-column>
methods: { fun(val){ return Number(val).toFixed(2); }, }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。