update src/components/table/index.vue.

Signed-off-by: lyt-Top <1105290566@qq.com>
This commit is contained in:
lyt-Top 2022-11-30 09:39:44 +00:00 committed by Gitee
parent ba80b9bc76
commit 852075ccfb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -21,7 +21,7 @@
:label="item.title"
>
<template v-slot="scope">
<template v-if="item.key === 'image'">
<template v-if="item.type === 'image'">
<img :src="scope.row[item.key]" :width="item.width" :height="item.height" />
</template>
<template v-else>