楼栋增删改查完成, 接着房屋

This commit is contained in:
Zy
2026-04-08 18:37:30 +08:00
parent cd292d5bf4
commit 6e998d4e87
9 changed files with 241 additions and 82 deletions

View File

@@ -9,12 +9,12 @@
<div class="pagetitle">{{ props.title }}</div>
</div>
<!-- solt -->
<slot name="content" v-if="showSlot"></slot>
<div class="h-20px" v-show="!showSlot"></div>
<slot name="content" v-if="Boolean(showSlot.content)"></slot>
<div class="h-20px" v-show="!Boolean(showSlot.content)"></div>
</div>
<div class="rightbox">
<!-- 操作按钮 -->
<slot name="operate" v-if="showSlot"></slot>
<slot name="operate" v-if="Boolean(showSlot.operate)"></slot>
</div>
</div>
</template>
@@ -23,7 +23,10 @@
import Breadcrumb from '@/components/Breadcrumb/index.vue';
const slots = useSlots();
const showSlot = computed(() => {
return slots.content && slots.content().length > 0;
return {
content: slots.content ?? null,
operate: slots.operate ?? null
};
});
const props = defineProps({