diff --git a/packages/ui-vue/components/section/src/section.component.tsx b/packages/ui-vue/components/section/src/section.component.tsx index b1df3be2c267fbe9068a406b6232cda1f7767a00..d292c9afa903f14873ed00f0c2caec2115439212 100644 --- a/packages/ui-vue/components/section/src/section.component.tsx +++ b/packages/ui-vue/components/section/src/section.component.tsx @@ -1,16 +1,92 @@ -import { defineComponent, SetupContext } from "vue"; -import { SectionProps, sectionProps } from "./section.props"; +import { computed, defineComponent, ref, SetupContext } from 'vue'; +import { ButtonConfig, SectionProps, sectionProps } from './section.props'; export default defineComponent({ - name:'FSection', - props:sectionProps, - emits:[], - setup(props:SectionProps, context:SetupContext) { - - return ()=>{ - return ( + name: 'FSection', + props: sectionProps, + emits: [], + setup(props: SectionProps, context: SetupContext) { + const shouldShowHeader = computed(() => { + return true; + }); + + const shouldShowToolbarInHeader = computed(() => { + return false; + }); + + const shouldShowToolbarInContent = computed(() => { + return false; + }); + + const shouldShowToolbarTemplateInContent = computed(() => { + return false; + }); + + const shouldShowExtendArea = computed(() => { + return false; + }); + + const toolbarButtons = ref([]); + + const headerClass = computed(() => ({})); - ) + const extendAreaClass = computed(() => ({})); + + const contentClass = computed(() => ({ + 'f-section-content': true, + })); + + function getToolbarState() { + return true; } + + return () => { + return ( + <> + {shouldShowHeader.value && ( +