fix : 复制功能组件替换

This commit is contained in:
likexuan
2022-10-20 17:08:16 +08:00
parent de3f4ccc3c
commit ddb4fa4cc9
16 changed files with 156 additions and 114 deletions

View File

@@ -36,22 +36,25 @@
</template>
<template slot-scope="scope" :column="item">
<div v-if="item.prop === 'group'">
<div class="document-copy-block">
<span class="document-copy-text"> {{scope.row[item.prop] ? scope.row[item.prop].name : '-'}}</span>
<i v-if="scope.row[item.prop]" class="nz-icon nz-icon-override" style="visibility: hidden" @click="onCopy(scope.row[item.prop].name)" :title="$t('overall.copyText')"></i>
</div>
<copy :copyData='scope.row[item.prop].name' :showInfo='scope.row[item.prop]'>
<template slot="copy-text">
{{scope.row[item.prop]?scope.row[item.prop].name:'-'}}
</template>
</copy>
</div>
<div v-else-if="item.prop === 'name'">
<div class="document-copy-block">
<span class="document-copy-text">{{scope.row.name ? scope.row.name : '-'}}</span>
<i v-if="scope.row.name" class="nz-icon nz-icon-override" style="visibility: hidden" @click="onCopy(scope.row.name)" :title="$t('overall.copyText')"></i>
</div>
<copy :copyData='scope.row[item.prop]' :showInfo='scope.row[item.prop]'>
<template slot="copy-text">
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
</template>
</copy>
</div>
<div v-else-if="item.prop === 'metaKey'">
<div class="document-copy-block">
<span class="document-copy-text">{{scope.row[item.prop] || '-'}}</span>
<i v-if="scope.row[item.prop]" class="nz-icon nz-icon-override" style="visibility: hidden" @click="onCopy(scope.row[item.prop])" :title="$t('overall.copyText')"></i>
</div>
<copy :copyData='scope.row[item.prop]' :showInfo='scope.row[item.prop]'>
<template slot="copy-text">
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
</template>
</copy>
</div>
<div v-else-if=" item.prop === 'display' ">
<div v-if="scope.row[item.prop] === 1">Enabled</div>
@@ -127,10 +130,11 @@
<script>
import table from '@/components/common/mixin/table'
import deleteButton from '@/components/common/deleteButton'
import copy from '@/components/common/copy'
export default {
name: 'assetLabelTable',
mixins: [table],
components: { deleteButton },
components: { deleteButton, copy },
props: {
loading: Boolean
},