This commit is contained in:
张成
2025-10-08 15:10:33 +08:00
commit 2e1cd65b07
161 changed files with 19936 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<script>
export default {
name: 'RenderCol',
props: {
col: {
type: Function,
required: true
},
param: {
type: Object,
default: () => ({})
}
},
render(h) {
try {
const content = this.col(h, this.param)
return <div class="text-center">{content}</div>
} catch (e) {
// 渲染失败时提供一个容错显示
return <div class="text-center">-</div>
}
}
}
</script>