fix: 修复日期时间数据为空时展示 NaN 的bug
This commit is contained in:
@@ -255,10 +255,12 @@
|
||||
<template v-else-if="col.templet === 'date'">
|
||||
<template v-if="col.prop">
|
||||
{{
|
||||
useDateFormat(
|
||||
scope.row[col.prop],
|
||||
col.dateFormat ?? "YYYY-MM-DD HH:mm:ss"
|
||||
).value
|
||||
scope.row[col.prop]
|
||||
? useDateFormat(
|
||||
scope.row[col.prop],
|
||||
col.dateFormat ?? "YYYY-MM-DD HH:mm:ss"
|
||||
).value
|
||||
: ""
|
||||
}}
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user