提交 30957b8d 编写于 作者: neko's avatar neko

init

上级 7089e4ee
......@@ -4,9 +4,16 @@ TARGET=PSSYSAPP
import React, { PureComponent } from 'react';
import './App.less';
import { Tabs } from 'antd';
const { TabPane } = Tabs;
<#if app.getAllPSAppViews()??>
<#list app.getAllPSAppViews() as view>
<#if view.getViewType() == "DEEDITVIEW">
import ${${srfclassname(view.getCodeName())}} from './forms//${srffilepath2(ctrl.getPSDataEntity().getCodeName())}/${srffilepath2(ctrl.getCodeName())}-${ctrl.getControlType()?lower_case}/${srffilepath2(ctrl.getCodeName())}-${ctrl.getControlType()?lower_case}'
</#if>
</#list>
</#if>
/**
* App
*
......@@ -24,17 +31,17 @@ export default class App extends PureComponent {
*/
public render() {
return <div className="App">
<Tabs defaultActiveKey="1" onChange={callback}>
<TabPane tab="Tab 1" key="1">
Content of Tab Pane 1
</TabPane>
<TabPane tab="Tab 2" key="2">
Content of Tab Pane 2
</TabPane>
<TabPane tab="Tab 3" key="3">
Content of Tab Pane 3
<#if app.getAllPSAppViews()??>
<Tabs defaultActiveKey="1">
<#list app.getAllPSAppViews() as view>
<#if view.getViewType() == "DEEDITVIEW">
<TabPane tab="<#if view.getCaption()??>${view.getCaption()}<#else>未知</#if>" key="${view_index}">
<${${srfclassname(view.getCodeName())}}/>
</TabPane>
</#if>
</#list>
</Tabs>
</#if>
</div>;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册