fix: 修改tablecol显示bug

This commit is contained in:
lilinyuan
2024-03-29 15:34:17 +08:00
parent 0fc918b576
commit 19822a539c

View File

@@ -49,7 +49,7 @@ import { isVNode } from 'vue'
if(column && column?.formatter) {
return column.formatter(row, column, value, $index) || '--'
}
return value ? value.toString() : '--'
return value !== null && value !== undefined ? value.toString() : '--'
}
</script>