<el-table-column prop="specialRequest" :label="$t('member.MemberProfile.lang_memberprofile_252')" width="200">
<template slot-scope="scope">
<el-popover placement="top" trigger="hover">
<p v-for="item in scope.row.specialRequest">{{item}}</p>
<div slot="reference" v-if="JSON.stringify(scope.row.specialRequest).length>60">
{{ JSON.stringify(scope.row.specialRequest).replace(/\[|]|"/g,' ').slice(0,60)+"..." }}
</div>
<div slot="reference" v-else="">
{{JSON.stringify(scope.row.specialRequest).replace(/\[|]|"/g,' ') }}
</div>
</el-popover>
</template>
</el-table-column>
Element 数据省略,点击数据展示全部数据
最新推荐文章于 2023-12-28 10:05:44 发布