pass-time-label to time-label
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<header class="header" v-entrance-transition>
|
||||
<h1 v-text="article.title || '未命名日记'" />
|
||||
<div v-if="article.description" class="description" v-text="article.description" />
|
||||
<pass-time-label
|
||||
<time-label
|
||||
class="time gray"
|
||||
v-if="article.createdAt"
|
||||
:timestamp="article.createdAt"
|
||||
@@ -91,7 +91,7 @@
|
||||
</div>
|
||||
<div class="updated-at">
|
||||
<span>最近更新时间:</span>
|
||||
<pass-time-label v-if="article.updatedAt" :timestamp="article.updatedAt" />
|
||||
<time-label v-if="article.updatedAt" :timestamp="article.updatedAt" />
|
||||
<span v-else v-text="'未知时间'" />
|
||||
</div>
|
||||
</footer>
|
||||
@@ -113,7 +113,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ArticleView } from "timi-tdesign-mobile";
|
||||
import { DialogPlugin } from "tdesign-mobile-vue";
|
||||
import { PassTimeLabel } from "timi-web";
|
||||
import { TimeLabel } from "timi-web";
|
||||
import { UserAPI, type Attachment, useUserStore } from "timi-web-api";
|
||||
import StoreDiaryAPI from "@/api/StoreDiaryAPI";
|
||||
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
|
||||
|
||||
Reference in New Issue
Block a user