2025-12-16 12:33:02 +08:00
|
|
|
<template>
|
|
|
|
|
<div class=" m-4">
|
|
|
|
|
<div class="flex items-center">
|
2025-12-19 19:00:55 +08:00
|
|
|
<img src="@/assets/images/report/wxts_icon.png" :alt="title" class="tips-icon" />
|
|
|
|
|
<span class="tips-title">{{ title }}</span>
|
2025-12-16 12:33:02 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="mt-1 ml-4">
|
2025-12-19 19:00:55 +08:00
|
|
|
<van-text-ellipsis v-if="!defaultExpanded" :rows="2" :content="content" expand-text="展开"
|
|
|
|
|
collapse-text="收起" />
|
|
|
|
|
<div v-else class="tips-content">
|
|
|
|
|
{{ content }}
|
|
|
|
|
</div>
|
2025-12-16 12:33:02 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ref, defineProps } from 'vue';
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
content: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: true
|
2025-12-19 19:00:55 +08:00
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '温馨提示!'
|
|
|
|
|
},
|
|
|
|
|
defaultExpanded: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false
|
2025-12-16 12:33:02 +08:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const isExpanded = ref(false);
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.tips-card {
|
|
|
|
|
background: var(--van-theme-primary-light);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tips-icon {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tips-title {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tips-content {
|
2025-12-19 19:00:55 +08:00
|
|
|
font-size: 16px;
|
2025-12-16 12:33:02 +08:00
|
|
|
color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 连接链条样式 */
|
|
|
|
|
.connection-line {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -40px;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
height: 60px;
|
|
|
|
|
z-index: 20;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.connection-chain {
|
|
|
|
|
height: 60px;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.connection-chain.left {
|
|
|
|
|
width: 80px;
|
|
|
|
|
margin-left: -10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.connection-chain.right {
|
|
|
|
|
width: 80px;
|
|
|
|
|
margin-right: -10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:deep(.van-text-ellipsis) {
|
2025-12-19 19:00:55 +08:00
|
|
|
font-size: 14px;
|
2025-12-16 12:33:02 +08:00
|
|
|
color: #999999;
|
|
|
|
|
}
|
|
|
|
|
</style>
|