All files / src/components/u-panel.vue group.vue

68.42% Statements 13/19
9.09% Branches 2/22
33.33% Functions 1/3
72.22% Lines 13/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57      7x   7x     7x                                                                                     7x 7x        
<template>
<div :class="$style.root">
    <div :class="$style.head" v-if="title || $slots.title || $env.VUE_APP_DESIGNER" vusion-slot-name-edit="title" vusion-slot-name="title">
        <slot name="title">
            {{ title }}
            <s-empty
                v-if="!$slots.title
                    && !title
                    && $env.VUE_APP_DESIGNER
                    && !!$attrs['vusion-node-path']">
            </s-empty>
        </slot>
    </div>
    <div :class="$style.body" vusion-slot-name="default">
        <slot></slot>
        <s-empty v-if="(!$slots.default) && $env.VUE_APP_DESIGNER && !!$attrs['vusion-node-path']"></s-empty>
    </div>
</div>
</template>
 
<script>
import SEmpty from '../s-empty.vue';
 
export default {
    name: 'u-panel-group',
    components: {
        SEmpty,
    },
    props: { title: String },
};
</script>
 
<style module>
.root {
 
}
 
.root:not(:last-child) {
    margin-bottom: var(--space-base);
}
 
.head {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    /* border-top: 1px solid $border-color-light;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px; */
    color: var(--color-light);
}

.body {
    padding-bottom: 5px;
}
</style>