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