fix : 复制功能组件化替换

This commit is contained in:
likexuan
2022-10-20 16:38:11 +08:00
parent 9d08d29b20
commit de3f4ccc3c
7 changed files with 56 additions and 47 deletions

View File

@@ -37,14 +37,14 @@
</template>
<template slot-scope="scope" :column="item">
<template v-if="item.prop === 'name'">
<copy :copyData='scope.row.name'>
<copy :copyData='scope.row.name' :showInfo='scope.row.name'>
<template slot="copy-text">
{{scope.row.name ? scope.row.name : '-'}}
</template>
</copy>
</template>
<template v-else-if="item.prop === 'type'">
<copy :copyData='scope.row.type'>
<copy :copyData='scope.row.type' :showInfo='scope.row.type'>
<template slot="copy-text">
{{scope.row.type ? scope.row.type : '-'}}
</template>