<template>
<view>{{unitPrice(items)}}</view>
</template>
computed:{
unitPrice()=>{
return(items)=>{
var unitPrice = parseFloat(items.shouldAmt)
return unitPrice.toFixed(1)
}
}
}
vue computed计算属性传参数
最新推荐文章于 2024-08-19 10:12:25 发布