提交 f4ff7d32 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 38a81777
...@@ -181,7 +181,7 @@ defineExpose({ refetch, tableRef }) ...@@ -181,7 +181,7 @@ defineExpose({ refetch, tableRef })
ref="tableRef" ref="tableRef"
:header-cell-style="{ background: '#EFEFEF' }" :header-cell-style="{ background: '#EFEFEF' }"
> >
<el-table-column v-bind="item" v-for="item in columns" :key="item.prop"> <el-table-column v-bind="item || {}" v-for="item in columns" :key="item.prop">
<template #default="scope" v-if="item.slots || item.computed"> <template #default="scope" v-if="item.slots || item.computed">
<slot :name="item.slots" v-bind="scope" v-if="item.slots"></slot> <slot :name="item.slots" v-bind="scope" v-if="item.slots"></slot>
<div v-html="item.computed(scope)" v-if="item.computed"></div> <div v-html="item.computed(scope)" v-if="item.computed"></div>
......
...@@ -151,7 +151,7 @@ const changeCard = () => { ...@@ -151,7 +151,7 @@ const changeCard = () => {
<div class="card-list" v-if="data.length"> <div class="card-list" v-if="data.length">
<CardListItem :tabIndex="tabValue" v-for="(item, index) in data" :data="item" :key="index"></CardListItem> <CardListItem :tabIndex="tabValue" v-for="(item, index) in data" :data="item" :key="index"></CardListItem>
</div> </div>
<el-empty v-else description="description" /> <el-empty v-else description="暂无数据" />
</template> </template>
</AppList> </AppList>
</AppCard> </AppCard>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论