iview中的列表使用进度条,需要使用render函数:
代码:
{ title: "进度", key: "progress", align: "left", minWidth: 100, render: (h, params) => { return h( "Progress", { props: { type: "Progress", size: "small", percent: parseFloat( params.row.progress == null ? 0 : params.row.progress ), }, }, params.row.progress == null ? "0%" : params.row.progress + "%" ); }, },