import { defineComponent, VNode } from 'vue'; import { IUIMountable } from './shared'; import { SetupComponentOptions } from './types'; export interface UIContainerProps { controller: IUIMountable; } const containerConfig = { props: ['controller'] } satisfies SetupComponentOptions; export const UIContainer = defineComponent(props => { const data = props.controller; const back = data.backIns; return (): VNode[] => { const elements: VNode[] = []; const b = back.value; if (b && data.showBack.value && !b.hidden) { elements.push( ); } return elements.concat( data.stack.map((v, i) => ( )) ); }; }, containerConfig);