提交 997a4eed 编写于 作者: ibizdev's avatar ibizdev

SYSTEM 发布系统代码

上级 6ae4a57e
......@@ -3,10 +3,12 @@ import EntityEditView from './pages/module/entity-edit-view/entity-edit-view';
import ExampleEditorType from './pages/exapmple/example-editor-type/example-editor-type';
import ExampleEditView from './pages/exapmple/example-edit-view/example-edit-view';
import Entity3EditView from './pages/module3/entity3-edit-view/entity3-edit-view';
import ExampleMain3EditView from './pages/exapmple/example-main3-edit-view/example-main3-edit-view';
import Entity4EditView from './pages/module4/entity4-edit-view/entity4-edit-view';
import Entity5EditView from './pages/module5/entity5-edit-view/entity5-edit-view';
import ExampleDLFEditView from './pages/exapmple/example-dlfedit-view/example-dlfedit-view';
import Entity2EditView from './pages/module2/entity2-edit-view/entity2-edit-view';
import ExampleMain2EditView from './pages/exapmple/example-main2-edit-view/example-main2-edit-view';
import './App.less';
import { Layout, Menu, Breadcrumb, Icon } from 'antd';
const { Header, Content, Footer, Sider } = Layout;
......@@ -55,6 +57,9 @@ export default class App extends PureComponent {
if (Object.is(this.currentPage, "Entity3EditView")) {
return <Entity3EditView/>;
}
if (Object.is(this.currentPage, "ExampleMain3EditView")) {
return <ExampleMain3EditView/>;
}
if (Object.is(this.currentPage, "Entity4EditView")) {
return <Entity4EditView/>;
}
......@@ -67,6 +72,9 @@ export default class App extends PureComponent {
if (Object.is(this.currentPage, "Entity2EditView")) {
return <Entity2EditView/>;
}
if (Object.is(this.currentPage, "ExampleMain2EditView")) {
return <ExampleMain2EditView/>;
}
}
/**
......@@ -91,7 +99,7 @@ export default class App extends PureComponent {
<Layout id="components-layout-demo-custom-trigger">
<Sider trigger={null} collapsible style={{ minHeight: '100vh' }}>
<div className="logo"><img src="assets/images/logo.png" /></div>
<Menu theme="dark" mode="inline" defaultSelectedKeys={['"EntityEditView""ExampleEditorType""ExampleEditView""Entity3EditView""Entity4EditView""Entity5EditView""ExampleDLFEditView""Entity2EditView"']} onClick={({ item, key, keyPath, domEvent }) => { this.handleMenuClick(item, key, keyPath, domEvent) }}>
<Menu theme="dark" mode="inline" defaultSelectedKeys={['"EntityEditView""ExampleEditorType""ExampleEditView""Entity3EditView""ExampleMain3EditView""Entity4EditView""Entity5EditView""ExampleDLFEditView""Entity2EditView""ExampleMain2EditView"']} onClick={({ item, key, keyPath, domEvent }) => { this.handleMenuClick(item, key, keyPath, domEvent) }}>
<Menu.Item key="EntityEditView">
<Icon type="user" />
<span>实体编辑视图</span>
......@@ -108,22 +116,30 @@ export default class App extends PureComponent {
<Icon type="user" />
<span>实体3编辑视图</span>
</Menu.Item>
<Menu.Item key="Entity4EditView">
<Menu.Item key="ExampleMain3EditView">
<Icon type="video-camera" />
<span>表单3</span>
</Menu.Item>
<Menu.Item key="Entity4EditView">
<Icon type="upload" />
<span>实体4编辑视图</span>
</Menu.Item>
<Menu.Item key="Entity5EditView">
<Icon type="upload" />
<Icon type="user" />
<span>实体5编辑视图</span>
</Menu.Item>
<Menu.Item key="ExampleDLFEditView">
<Icon type="user" />
<Icon type="video-camera" />
<span>表单项动态逻辑示例</span>
</Menu.Item>
<Menu.Item key="Entity2EditView">
<Icon type="video-camera" />
<Icon type="upload" />
<span>实体2编辑视图</span>
</Menu.Item>
<Menu.Item key="ExampleMain2EditView">
<Icon type="user" />
<span>表单2</span>
</Menu.Item>
</Menu>
</Sider>
<Layout>
......
......@@ -175,10 +175,6 @@ export default class Main2 extends PureComponent<Main2Props> {
* @memberof Main2
*/
public detailsModel: any = {
tabpanel1: new FormTabPanelModel({ caption: '', detailType: 'TABPANEL', name: 'tabpanel1', visible: true, isShowCaption: false, form: this, tabPages: [] })
,
formpage1: new FormPageModel({ caption: '表单分页', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false,error:"",isEmptyCaption:"false",validateStatus:"",required:false,enableCond: 3 })
,
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false,error:"",isEmptyCaption:"false",validateStatus:"",required:false,enableCond: 3 })
......@@ -197,6 +193,7 @@ export default class Main2 extends PureComponent<Main2Props> {
,
exampleid: new FormItemModel({ caption: '示例标识', detailType: 'FORMITEM', name: 'exampleid', visible: true, isShowCaption: true, form: this, disabled: false,error:"",isEmptyCaption:"false",validateStatus:"",required:false,enableCond: 3 })
,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [] }),
}
/**
......@@ -226,8 +223,6 @@ export default class Main2 extends PureComponent<Main2Props> {
}
......@@ -331,13 +326,8 @@ export default class Main2 extends PureComponent<Main2Props> {
return <>
<div className="ibiz-form main2">
<Form layout="inline">
{this.detailsModel.tabpanel1.visible?<Col style={{}} lg={{ span: 24, offset: 0}}>
<Tabs className="">
</Tabs>
</Col>:""}
<Tabs defaultActiveKey="1" onChange={(key: string) => this.tabChange(key)}>
</Tabs>
</Form>
</div>
</>;
......
// this is less
.app-form-item {
display: flex;
justify-content: space-between;
padding-right: 16px;
margin-bottom: 6px;
.app-form-item-label {
text-align: right;
height: 32px;
line-height: 32px;
padding-right: 16px;
.isrequired {
display: inline-block;
margin-right: 4px;
font-family: SimSun;
line-height: 1;
font-size: 14px;
color: #f5222d;
}
}
.app-form-item-container {
.ant-form-item {
width: 100%;
.ant-form-item-control-wrapper {
width: 100%;
height: auto;
min-height: 59px;
}
}
}
}
.app-form-item-left {
flex-direction: row;
}
.app-form-item-right {
flex-direction: row-reverse;
}
.app-form-item-top {
flex-direction: column;
}
.app-form-item-bottom {
flex-direction: column-reverse;
}
.ant-form-inline .ant-form-item-with-help {
margin-bottom: 0px !important;
}
此差异已折叠。
import React, { PureComponent } from 'react';
import './example-main3-edit-view.less';
import Main3form from '../../../forms/example/main3/main3';
/**
* ExampleMain3EditView
*
* @export
* @class ExampleMain3EditView
* @extends {PureComponent}
*/
export default class ExampleMain3EditView extends PureComponent {
public formData = {
"bookname":"test1",
"input":"文本test",
"label":"标签test",
"group1":"书籍基本信息test",
"formpage1":"基本信息test",
"createman":"建立人test",
"createdate":"建立时间test",
"updateman":"更新人test",
"updatedate":"更新时间test",
"group2":"操作信息test",
"formpage2":"其它test"
}
/**
* 绘制内容
*
* @returns
* @memberof ExampleMain3EditView
*/
public render() {
return <>
<div>
<Main3form data={{}} formItemChange={(value:any) =>{this.formItemChange(value)}}></Main3form>
</div>
</>;
}
/**
* 表单项变化
* @param value
*/
public formItemChange(value:any){
console.log(value);
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册