oak-general-business/es/components/system/passport/web.pc.js

29 lines
923 B
JavaScript

import React from 'react';
import { Tabs } from 'antd';
import PassportList from '../../passport';
import ApplicationPassport from '../../applicationPassport';
export default function Render(props) {
const { systemId, oakFullpath, systemName, } = props.data;
const { t, } = props.methods;
const items = [
{
key: 'passport',
label: '配置',
// destroyInactiveTabPane: true,
children: <PassportList oakPath={`${oakFullpath}/config`} systemId={systemId} systemName={systemName}/>
},
{
key: 'application',
label: '应用',
destroyInactiveTabPane: true,
children: <ApplicationPassport oakPath={`${oakFullpath}/applicationPassport`} systemId={systemId}/>
},
];
if (oakFullpath) {
return (<>
<Tabs items={items}/>
</>);
}
return null;
}