import React, { Fragment } from 'react'; import { Row } from 'antd'; import { PortalCol } from './PortalCol'; import { PortletMap } from './PortletSwitch'; import { PortalRequiredServices } from './PortalRequiredServices'; import { ServiceUtil, Entity } from 'matrix-ui-service'; interface P { portal: Entity; customerPortletMap: PortletMap; services: PortalRequiredServices; portalRowRelAllList: Entity[]; portletColRelAllList: Entity[]; } export class PortalRows extends React.Component

{ render() { const { portal, customerPortletMap, portalRowRelAllList, portletColRelAllList } = this.props; const relList = portalRowRelAllList.filter((value) => value.portal.id === portal.id); return ( {relList.map((rel) => ( {rel.row.cols .slice() .sort((a: Entity, b: Entity) => a.colOrder - b.colOrder) .map((col: Entity) => ( ))} ))} ); } }