feat:财务和合同
This commit is contained in:
@@ -115,3 +115,14 @@
|
||||
color: $color-text-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.chat-message__read-status {
|
||||
margin-top: 8rpx;
|
||||
font-size: 20rpx;
|
||||
line-height: 1;
|
||||
color: $color-text-secondary;
|
||||
|
||||
&--read {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ const props = defineProps<{
|
||||
}>()
|
||||
|
||||
const messageType = computed(() => props.message.type || 'text')
|
||||
const showReadStatus = computed(() => props.message.role === 'user' && props.message.read !== undefined)
|
||||
const readStatusText = computed(() => (props.message.read ? '已读' : '未读'))
|
||||
|
||||
function handlePreviewImage() {
|
||||
if (!props.message.imageUrl)
|
||||
@@ -88,6 +90,14 @@ function handleOpenFile() {
|
||||
{{ message.content }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<text
|
||||
v-if="showReadStatus"
|
||||
class="chat-message__read-status"
|
||||
:class="{ 'chat-message__read-status--read': message.read }"
|
||||
>
|
||||
{{ readStatusText }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user