NEZ-1965 feat :增加列表页面内容复制功能

This commit is contained in:
likexuan
2022-07-06 11:11:40 +08:00
parent 82d7386dec
commit 873afdc67e
6 changed files with 55 additions and 8 deletions

View File

@@ -88,6 +88,12 @@
{{scope.row[item.prop]}}
</span>
</template>
<template v-else-if="item.prop === 'name'">
<div class="document-copy-block">
<span class="document-copy-text">{{scope.row.name ? scope.row.name : '-'}}</span>
<i class="nz-icon nz-icon-override" style="visibility: hidden" @click="onCopy(scope.row.name)" :title="$t('overall.copyText')"></i>
</div>
</template>
<span v-else-if="item.prop === 'id'" :id="'globalSearch' + scope.row.id">{{scope.row[item.prop]}}</span>
<template v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</template>
<template v-else>-</template>