fix: 修复表格在 ios 异常显示的问题
This commit is contained in:
@@ -156,12 +156,9 @@ const RenderSlot = {
|
||||
>
|
||||
<template #default="scope">
|
||||
<slot name="column-default" :scope="scope">
|
||||
<div
|
||||
v-if="!item.render"
|
||||
class="table-view-html"
|
||||
@click.stop="handleImageClick"
|
||||
v-html="scope.row[item.prop]"
|
||||
></div>
|
||||
<div v-if="!item.render" @click.stop="handleImageClick">
|
||||
<span>{{ scope.row[item.prop] }}</span>
|
||||
</div>
|
||||
|
||||
<RenderSlot
|
||||
v-else
|
||||
@@ -200,9 +197,16 @@ const RenderSlot = {
|
||||
border-radius: 8px 8px 0 0;
|
||||
}
|
||||
|
||||
:deep(.cell),
|
||||
:deep(.table-view-html) {
|
||||
.table-view-html {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.table-col {
|
||||
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
||||
// font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user