提交 6a477e1f authored 作者: chlolch's avatar chlolch

修改bug

上级 c86633de
...@@ -48,6 +48,7 @@ export default class isNewTable extends Component { ...@@ -48,6 +48,7 @@ export default class isNewTable extends Component {
<div <div
key={i} key={i}
style={{ style={{
marginTop: 0, marginTop: 0,
background: '#ffffff', background: '#ffffff',
paddingLeft: 12, paddingLeft: 12,
...@@ -71,6 +72,7 @@ export default class isNewTable extends Component { ...@@ -71,6 +72,7 @@ export default class isNewTable extends Component {
<div <div
style={{ style={{
...styles, ...styles,
display:ary.content.isMobileHidden&&"none"
}} }}
> >
<TableCom <TableCom
...@@ -112,7 +114,6 @@ export default class isNewTable extends Component { ...@@ -112,7 +114,6 @@ export default class isNewTable extends Component {
} }
if (isRowCol) { if (isRowCol) {
return items.map((item, i) => { return items.map((item, i) => {
console.log(item);
const allhidden = checkAllHidden(items); const allhidden = checkAllHidden(items);
return ( return (
<Row <Row
......
...@@ -5,17 +5,17 @@ import React, { Component } from 'react'; ...@@ -5,17 +5,17 @@ import React, { Component } from 'react';
import { Row, Col } from 'antd'; import { Row, Col } from 'antd';
export default class MobileItem extends Component { export default class MobileItem extends Component {
render() { render() {
const { labelCol, wrapperCol, label } = this.props; const { labelCol, wrapperCol, label,paddingTop } = this.props;
const x = this.props.children.type=="span"
return ( return (
<Row style={{ <Row style={{
minHeight:40, minHeight:35,
fontSize:14 fontSize:14
}}> }}>
<Col <Col
style={{ style={{
paddingTop:5, paddingTop:5,
minHeight: 32, minHeight: 35,
textAlign:"right" textAlign:"right"
}} }}
span={labelCol.span ? labelCol.span : labelCol} span={labelCol.span ? labelCol.span : labelCol}
...@@ -25,7 +25,8 @@ export default class MobileItem extends Component { ...@@ -25,7 +25,8 @@ export default class MobileItem extends Component {
<Col <Col
span={wrapperCol.span ? wrapperCol.span : wrapperCol} span={wrapperCol.span ? wrapperCol.span : wrapperCol}
style={{ style={{
minHeight: 32, paddingTop:x?5:0,
minHeight: 35,
}} }}
> >
{this.props.children} {this.props.children}
......
...@@ -3277,7 +3277,13 @@ export default class tableCom extends Component { ...@@ -3277,7 +3277,13 @@ export default class tableCom extends Component {
) : ( ) : (
'' ''
)} )}
{json.isMobileLabel&&!isEdit&&get=="mobile"? <MobileItem
labelCol={{ span: json.labelSpan }}
wrapperCol={{ span: json.wrapperSpan }}
label={title}
>
{cm} {cm}
</MobileItem>:cm}
</> </>
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论