18 lines
364 B
Vue
18 lines
364 B
Vue
<script lang="js" setup>
|
|
defineOptions({
|
|
name: "G3RecursiveColumn",
|
|
});
|
|
|
|
const isGroup = computed(() => {
|
|
return Array.isArray(props.column.children) && props.column.children.length > 0;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<vxe-colgroup v-if="isGroup" :title="column.label" :field="column.field">
|
|
|
|
</vxe-colgroup>
|
|
</template>
|
|
|
|
<style lang="scss" scoped></style>
|