修改卡片模板.

This commit is contained in:
lijiahang
2023-10-07 18:55:24 +08:00
parent d0f0c9428e
commit 6d37fb51cf
16 changed files with 315 additions and 23 deletions

View File

@@ -163,10 +163,12 @@
]">
<slot :name="field.slotName" :record="item" :index="index" :key="item[key]">
<a-tooltip v-if="field.tooltip" :content="item[field.dataIndex]">
<span>{{ item[field.dataIndex] }}</span>
<span v-if="field.render" v-html="field.render({ record: item, index })" />
<span v-else>{{ item[field.dataIndex] }}</span>
</a-tooltip>
<template v-else>
<span>{{ item[field.dataIndex] }}</span>
<span v-if="field.render" v-html="field.render({ record: item, index })" />
<span v-else>{{ item[field.dataIndex] }}</span>
</template>
</slot>
</a-col>