diff --git a/src/tmui/components/tm-comment/tm-comment.vue b/src/tmui/components/tm-comment/tm-comment.vue index 7540385ce03ba648abce53cd7dac37a44b11031b..72180299f348c91da0accdb3f34c2de8d904f844 100644 --- a/src/tmui/components/tm-comment/tm-comment.vue +++ b/src/tmui/components/tm-comment/tm-comment.vue @@ -139,12 +139,21 @@ align:{ type:String, default:"right" //right,left - } + }, + // 自动格式化时间 + autoFormatTime: { + type: Boolean, + default: true, + } }) - //距离当前时间段。 - const _time = computed(()=>uni.$tm.u.getDateToNewData(props.time)) + // 距离当前时间段。 + const _time = computed(() => { + if (!props.autoFormatTime) + return props.time + return uni.$tm.u.getDateToNewData(props.time) + }) const _align = computed(()=>{ let agn = {