Commit c56806f9 by zhaochengxiang

样式调整

parent 5282528c
...@@ -11,6 +11,8 @@ import { getInternalCurrentAnchor, getQueryParam } from '../../../../util'; ...@@ -11,6 +11,8 @@ import { getInternalCurrentAnchor, getQueryParam } from '../../../../util';
import { Action } from '../../../../util/constant'; import { Action } from '../../../../util/constant';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
import './ImportAction.less'
const ImportAction = React.forwardRef((props, ref) => { const ImportAction = React.forwardRef((props, ref) => {
const { action, hints, onChange, form, modelerId, terms, ddl, roughModelerData, versionId, permitCheckOut, catalogId } = props; const { action, hints, onChange, form, modelerId, terms, ddl, roughModelerData, versionId, permitCheckOut, catalogId } = props;
...@@ -135,7 +137,7 @@ const ImportAction = React.forwardRef((props, ref) => { ...@@ -135,7 +137,7 @@ const ImportAction = React.forwardRef((props, ref) => {
'model-import-action-manage', 'model-import-action-manage',
'model-import-action-relation', 'model-import-action-relation',
], ],
0, 20,
5, 5,
container container
); );
...@@ -577,7 +579,7 @@ const ImportAction = React.forwardRef((props, ref) => { ...@@ -577,7 +579,7 @@ const ImportAction = React.forwardRef((props, ref) => {
{ {
(action==='detail' && ((modelerData||{}).optionList||[]).findIndex(item => item.enabled && item.name==='查看') === -1) ? <div style={{ padding: '10px 20px' }}> (action==='detail' && ((modelerData||{}).optionList||[]).findIndex(item => item.enabled && item.name==='查看') === -1) ? <div style={{ padding: '10px 20px' }}>
{loading?'':'暂无权限'} {loading?'':'暂无权限'}
</div> : <div> </div> : <div className='import-action'>
<div style={{ position: 'sticky', top: 0 }}> <div style={{ position: 'sticky', top: 0 }}>
<Tabs activeKey={activeValue} centered onChange={(val) => { <Tabs activeKey={activeValue} centered onChange={(val) => {
setActiveValue(val); setActiveValue(val);
...@@ -586,7 +588,7 @@ const ImportAction = React.forwardRef((props, ref) => { ...@@ -586,7 +588,7 @@ const ImportAction = React.forwardRef((props, ref) => {
animating.current = true; animating.current = true;
targetElement.scrollIntoView(); targetElement.scrollIntoView();
} }
}} style={{ margin: 0 }}> }}>
<Tabs.TabPane tab='基本信息' key="model-import-action-basic" /> <Tabs.TabPane tab='基本信息' key="model-import-action-basic" />
<Tabs.TabPane tab='技术信息' key="model-import-action-technical" /> <Tabs.TabPane tab='技术信息' key="model-import-action-technical" />
<Tabs.TabPane tab='数据表结构' key="model-import-action-table" /> <Tabs.TabPane tab='数据表结构' key="model-import-action-table" />
...@@ -595,7 +597,7 @@ const ImportAction = React.forwardRef((props, ref) => { ...@@ -595,7 +597,7 @@ const ImportAction = React.forwardRef((props, ref) => {
<Tabs.TabPane tab='关联对象' key="model-import-action-relation" /> <Tabs.TabPane tab='关联对象' key="model-import-action-relation" />
</Tabs> </Tabs>
</div> </div>
<div ref={setContainer} style={{ height: action==='edit-inherite-modal'?'60vh':'calc(100vh - 44px - 64px - 82px)', overflow: 'auto', padding: '0 20px' }}> <div ref={setContainer} style={{ height: action==='edit-inherite-modal'?'60vh':'calc(100vh - 44px - 64px - 82px)', overflow: 'auto', padding: '20px 20px 0' }}>
<ImportActionHeader <ImportActionHeader
form={form} form={form}
editable={action!=='detail'&&action!=='flow'&&action!=='detail-version'&&action!=='edit-inherited'} editable={action!=='detail'&&action!=='flow'&&action!=='detail-version'&&action!=='edit-inherited'}
......
.import-action {
.yy-tabs-nav {
margin: 0;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment