const ItemPercent = computed(() => {
return (item: any) => {
const num = item.polishTaskList.filter((row: any) => row.carryOutState == 1).length
return (num / item.polishTaskList.length) * 100
}
})
我现在有一个列表
列表中有每一项 根据每一项的数据 计算 或显示其他的内容
使用computed
以上就是用法