import { IPSFlexLayout, IPSLayout } from '@ibiz-template/model'; import { useNamespace } from '@ibiz-template/vue-util'; import { defineComponent, PropType } from 'vue'; export const AppRow = defineComponent({ name: 'AppRow', props: { layout: Object as PropType, }, setup() { const ns = useNamespace('row'); return { ns }; }, render() { if (this.layout?.layout === 'FLEX') { const { dir, align, vAlign } = this.layout as IPSFlexLayout; return (
{this.$slots.default}
); } return ( {this.$slots.default} ); }, });