Use pipeline wrapper and improve scaffold UI (#1368)

Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Divya Jain
2022-11-15 14:43:52 +05:30
committed by GitHub
parent 0c96880d70
commit d785d05718
7 changed files with 41 additions and 30 deletions

View File

@@ -10,9 +10,10 @@
<template v-if="$slots.tabActions" #tabActions><slot name="tabActions" /></template>
</Header>
<FluidContainer>
<FluidContainer v-if="fluidContent">
<slot />
</FluidContainer>
<slot v-else />
</template>
<script setup lang="ts">
@@ -32,6 +33,9 @@ export interface Props {
enableTabs?: boolean;
disableHashMode?: boolean;
activeTab: string;
// Content
fluidContent?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
@@ -42,6 +46,8 @@ const props = withDefaults(defineProps<Props>(), {
// eslint-disable-next-line vue/no-boolean-default
enableTabs: false,
activeTab: '',
// eslint-disable-next-line vue/no-boolean-default
fluidContent: true,
});
const emit = defineEmits(['update:activeTab', 'update:search']);