|
@@ -14,6 +14,7 @@ interface FeatureUpdateCardPropsData {
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
|
data: FeatureUpdateCardPropsData
|
|
data: FeatureUpdateCardPropsData
|
|
|
|
|
+ isDrawer?: boolean // 是否在抽屉中使用
|
|
|
}>()
|
|
}>()
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
const emit = defineEmits<{
|
|
@@ -30,6 +31,14 @@ const handleViewMore = () => {
|
|
|
})
|
|
})
|
|
|
emit('viewMore')
|
|
emit('viewMore')
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+const handleContent = (header) => {
|
|
|
|
|
+ if (header === 'New Feature: AI Smart Assistant') {
|
|
|
|
|
+ return 'Smart Assistant is live! Ask in natural language, get real-time shipment data with multi-language support.'
|
|
|
|
|
+ }else {
|
|
|
|
|
+ return 'Smart Notification is here! Four key event alerts with customizable rules and multi-channel delivery.'
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -46,10 +55,21 @@ const handleViewMore = () => {
|
|
|
<span class="gradient-text">{{ data.header }}</span>
|
|
<span class="gradient-text">{{ data.header }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="content-text">
|
|
<div class="content-text">
|
|
|
- <span>{{ data.content }}</span>
|
|
|
|
|
|
|
+ <pre style="white-space: pre-wrap; line-height: 21px" v-if="props.isDrawer">{{ handleContent(data.header) }}</pre>
|
|
|
|
|
+ <pre style="white-space: pre-wrap; line-height: 21px" v-else>{{ data.content }}</pre>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="feature-img">
|
|
|
|
|
- <el-image :src="data.imgSrc" fit="contain" alt="feature-img"></el-image>
|
|
|
|
|
|
|
+ <div class="feature-img" style="text-align: center">
|
|
|
|
|
+ <img
|
|
|
|
|
+ :src="data.imgSrc"
|
|
|
|
|
+ style="max-height: 400px; max-width: 100%;object-fit: contain"
|
|
|
|
|
+
|
|
|
|
|
+ alt="feature-img"
|
|
|
|
|
+ ></img>
|
|
|
|
|
+ <!-- <img
|
|
|
|
|
+ src="./img/testaa.png"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ style="max-height: 400px; max-width: 100%; object-fit: contain"
|
|
|
|
|
+ /> -->
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="change-btn" style="text-align: center">
|
|
<div class="change-btn" style="text-align: center">
|