提交 07282336 authored 作者: tb53863844's avatar tb53863844

开发

上级 5b1e2085
...@@ -65,7 +65,7 @@ export default class TableList extends React.Component { ...@@ -65,7 +65,7 @@ export default class TableList extends React.Component {
<FormList <FormList json={json}
onSelectRow={this.props.value.onSelectRow} onSelectRow={this.props.value.onSelectRow}
istableCom={true} istableCom={true}
showHeader={this.props.showHeader} showHeader={this.props.showHeader}
......
...@@ -1174,22 +1174,23 @@ class FormList extends React.Component { ...@@ -1174,22 +1174,23 @@ class FormList extends React.Component {
callback, callback,
valueName, valueName,
notShowBack, notShowBack,
json,
istableCom, // 是否有模板设计器调用 istableCom, // 是否有模板设计器调用
value: { btns }, value: { btns },
loading, loading,
} = this.props; } = this.props;
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 < 1000; let isMobile = scrollWidth < 1000;
if (document.querySelector('#previewDiv')) { if (document.querySelector('#previewDiv')) {
isMobile = true; isMobile = true;
} }
let showDiv = let showDiv =json.twidth?json.twidth:(
document.querySelector('#mobelDiv') && document.querySelector('#mobelDiv') &&
document.querySelector('#mobelDiv')?.parentNode.clientWidth; document.querySelector('#mobelDiv')?.parentNode.clientWidth);
const parentMethods = { const parentMethods = {
handleAdd: this.handleAdd, handleAdd: this.handleAdd,
handleModalVisible: this.handleModalVisible, handleModalVisible: this.handleModalVisible,
...@@ -1331,7 +1332,7 @@ class FormList extends React.Component { ...@@ -1331,7 +1332,7 @@ class FormList extends React.Component {
} }
const xxxx = ( const xxxx = (
<> <>
<Card bordered={false} bodyStyle={{ padding: 0 }}> <Card bordered={false} bodyStyle={{ padding: 0,width:json.twidth?json.twidth:"100%" }}>
<div className={styles.tableList}> <div className={styles.tableList}>
<div className={styles.tableListForm}>{this.renderForm()}</div> <div className={styles.tableListForm}>{this.renderForm()}</div>
<div className={styles.tableListOperator}> <div className={styles.tableListOperator}>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论