fix : 复制功能组件替换
This commit is contained in:
@@ -38,19 +38,21 @@
|
||||
</template>
|
||||
<template slot-scope="scope" :column="item">
|
||||
<template v-if="item.prop === 'name'">
|
||||
<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.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>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'type'">
|
||||
{{scope.row[item.prop]}}
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'project'">
|
||||
<div class="document-copy-block">
|
||||
<span class="document-copy-text">{{scope.row[item.prop].name}}</span>
|
||||
<i v-if="scope.row[item.prop].name" 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].name'>
|
||||
<template slot="copy-text">
|
||||
{{scope.row[item.prop].name}}
|
||||
</template>
|
||||
</copy>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'endpointNum'">
|
||||
<span class="endpoint-num" @click="showBottomBox('endpoint', scope.row)">
|
||||
@@ -132,10 +134,11 @@
|
||||
<script>
|
||||
import table from '@/components/common/mixin/table'
|
||||
import deleteButton from '@/components/common/deleteButton'
|
||||
import copy from '@/components/common/copy'
|
||||
export default {
|
||||
name: 'moduleTable',
|
||||
mixins: [table],
|
||||
components: { deleteButton },
|
||||
components: { deleteButton, copy },
|
||||
props: {
|
||||
loading: Boolean
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user