提交 5b1e2085 authored 作者: tb53863844's avatar tb53863844

1111111111

上级 dcff2a10
...@@ -652,7 +652,7 @@ export default class ZdyTable extends Component { ...@@ -652,7 +652,7 @@ export default class ZdyTable extends Component {
try { try {
style = JSON.parse(formConfig.style); style = JSON.parse(formConfig.style);
} catch (e) { } catch (e) {
console.log(e); //console.log(e);
style = {}; style = {};
} }
} }
......
...@@ -1182,10 +1182,11 @@ class FormList extends React.Component { ...@@ -1182,10 +1182,11 @@ class FormList extends React.Component {
const { showMobileDiv, isView } = this.state; const { showMobileDiv, isView } = this.state;
let scrollWidth = document.documentElement.clientWidth || document.body.clientWidth; //可使宽度 let scrollWidth = document.documentElement.clientWidth || document.body.clientWidth; //可使宽度
let isMobile = scrollWidth < 1200; let isMobile = scrollWidth < 1000;
if (document.querySelector('#previewDiv')) { if (document.querySelector('#previewDiv')) {
isMobile = true; isMobile = true;
} }
let showDiv = let showDiv =
document.querySelector('#mobelDiv') && document.querySelector('#mobelDiv') &&
document.querySelector('#mobelDiv')?.parentNode.clientWidth; document.querySelector('#mobelDiv')?.parentNode.clientWidth;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论