提交 e8fe178c authored 作者: 名称's avatar 名称

修复颜色展示问题

上级 94eee744
......@@ -187,14 +187,27 @@ export default class isNewTable extends Component {
{// 卡片模式
items.map((item, i) => {
const allhidden = checkAllHidden(items);
console.log(style)
return (
<>
{' '}
<Card full>
<Card full
style={{
...style
}}
>
{item.map((ary, j) => {
if (!ary.content) {
return;
}
let styles = {};
if (ary.content && ary.content.styles) {
try {
styles = JSON.parse(ary.content.styles);
} catch (e) {
console.log(`第${i}行第${j}列样式配置有误,${e}`);
}
}
if (ary.content && ary.content.comName === 'Label') {
return (
<Card.Header
......@@ -202,7 +215,11 @@ export default class isNewTable extends Component {
!allhidden && ary.hidden ? (
''
) : (
<>
<div
style={{
display: 'inline-block',
...styles,
}}>
<TableCom
modalInit={modalInit}
formCode={formCode}
......@@ -228,7 +245,7 @@ export default class isNewTable extends Component {
defaultValues={defaultValues || {}}
messageData={messageData} // 场景设计器共享变量参数
/>
</>
</div>
)
}
/>
......@@ -245,7 +262,11 @@ export default class isNewTable extends Component {
}
>
{' '}
<>
<div
style={{
display: 'inline-block',
...styles,
}}>
<TableCom
modalInit={modalInit}
formCode={formCode}
......@@ -271,7 +292,7 @@ export default class isNewTable extends Component {
defaultValues={defaultValues || {}}
messageData={messageData} // 场景设计器共享变量参数
/>
</>
</div>
</Card.Body>
);
})}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论