|
@@ -1,8 +1,9 @@
|
|
|
<script setup lang="ts">
|
|
|
import dayjs from 'dayjs'
|
|
|
import mpHtml from 'mp-html/dist/uni-app/components/mp-html/mp-html.vue'
|
|
|
+import view from '@designer-hub/assets/src/libs/assets/view'
|
|
|
|
|
|
-defineProps({
|
|
|
+const props = defineProps({
|
|
|
title: {
|
|
|
type: String,
|
|
|
default: '',
|
|
@@ -43,10 +44,12 @@ defineProps({
|
|
|
{{ dayjs(createdAt).format('YYYY/MM/DD') }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="flex items-center">
|
|
|
+ <div class="flex items-center gap-1">
|
|
|
<slot name="viewLeft"></slot>
|
|
|
+ <!-- <wd-icon name="view" size="18" color="rgba(0,0,0,.45)"></wd-icon> -->
|
|
|
+ <wd-img :src="view" width="18" height="18"></wd-img>
|
|
|
<div class="text-black/40 text-xs font-normal font-['PingFang_SC'] leading-normal">
|
|
|
- {{ viewNum }}
|
|
|
+ {{ viewNum || 0 }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|