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

修改bug

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