|
@@ -29,7 +29,7 @@
|
|
<!-- item.ext.title -->
|
|
<!-- item.ext.title -->
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
<!-- item.txt.txt -->
|
|
<!-- item.txt.txt -->
|
|
- <!-- <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col> -->
|
|
|
|
|
|
+ <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col>
|
|
<!-- item.ext.release_date -->
|
|
<!-- item.ext.release_date -->
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -54,7 +54,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="18" class="mess">
|
|
<el-col :span="18" class="mess">
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
- <!-- <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col> -->
|
|
|
|
|
|
+ <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col>
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -78,7 +78,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="18" class="mess">
|
|
<el-col :span="18" class="mess">
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
- <!-- <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col> -->
|
|
|
|
|
|
+ <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col>
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -102,7 +102,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="18" class="mess">
|
|
<el-col :span="18" class="mess">
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
<el-col :span="24" class="title textOver">{{ getProp(item, 'title') }}</el-col>
|
|
- <!-- <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col> -->
|
|
|
|
|
|
+ <el-col :span="24" class="brief" v-html="getProp(item, 'brief')"></el-col>
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
<el-col :span="24" class="date">{{ getProp(item, 'date') }}</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -251,13 +251,27 @@ const toDetail = (data: any) => {
|
|
font-size: 20px;
|
|
font-size: 20px;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
line-height: 29px;
|
|
line-height: 29px;
|
|
- letter-spacing: 0px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- -webkit-line-clamp: 2;
|
|
|
|
- word-break: break-all;
|
|
|
|
|
|
+ /* 设置为弹性盒模型 */
|
|
display: -webkit-box;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-orient: vertical;
|
|
|
|
+ /* 限制显示 2 行 */
|
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
|
+ /* 隐藏溢出内容 */
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ /* 溢出部分显示省略号 */
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ /* 标准的 box-orient 属性 */
|
|
|
|
+ box-orient: vertical;
|
|
|
|
+ /* 标准的 line-clamp 属性 */
|
|
|
|
+ line-clamp: 2;
|
|
|
|
+ img {
|
|
|
|
+ /* 确保图片不会超出容器宽度 */
|
|
|
|
+ max-width: 100%;
|
|
|
|
+ /* 图片高度自适应 */
|
|
|
|
+ height: auto;
|
|
|
|
+ /* 让图片与文本垂直对齐 */
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.date {
|
|
.date {
|