<script setup lang="ts">
import { ILayoutOpts, LayoutTool } from "@core";
//  输入参数
interface IProps {
    caption?: string 
    name: string;
    layoutOpts: ILayoutOpts;
    visible: boolean;
    showCaption?: boolean;
    labelCssName?: string;
}
const props = withDefaults(defineProps<IProps>(), {
    showCaption: true
});

</script>

<template>
    <AppRow :layoutOpts="layoutOpts" v-show="visible">
        <div v-if="showCaption" class="panel-container-header">
            <span :class="['text', labelCssName]">{{caption}}</span>
        </div>
        <slot></slot>
    </AppRow>
</template>