提交 1ca0fdee authored 作者: 徐立's avatar 徐立

修改展示空白

上级 4c93271c
...@@ -891,7 +891,7 @@ class FormList extends React.Component { ...@@ -891,7 +891,7 @@ class FormList extends React.Component {
isMobile = true isMobile = true
} }
let showDiv = document.querySelector('#mobelDiv')&&document.querySelector('#mobelDiv')?.parentNode.clientWidth let showDiv = document.querySelector('#mobelDiv')&&document.querySelector('#mobelDiv')?.parentNode.clientWidth
console.log(showDiv)
const parentMethods = { const parentMethods = {
handleAdd: this.handleAdd, handleAdd: this.handleAdd,
handleModalVisible: this.handleModalVisible, handleModalVisible: this.handleModalVisible,
...@@ -967,6 +967,9 @@ class FormList extends React.Component { ...@@ -967,6 +967,9 @@ class FormList extends React.Component {
if(isEmpty(item)){ if(isEmpty(item)){
return item return item
} }
if(index === this.columns.length-1){
return item
}
let width = item.width?item.width:150 let width = item.width?item.width:150
if(!item.width){ if(!item.width){
item.width = 150 item.width = 150
...@@ -979,9 +982,9 @@ class FormList extends React.Component { ...@@ -979,9 +982,9 @@ class FormList extends React.Component {
){ ){
this.columns[this.columns.length-2].width = '' this.columns[this.columns.length-2].width = ''
AllWidth+=100 AllWidth+=100
// this.columns.push({})
} }
} }
console.log(this.columns)
const xxxx = <><Card bordered={false} bodyStyle={{padding:0}}> const xxxx = <><Card bordered={false} bodyStyle={{padding:0}}>
<div className={styles.tableList}> <div className={styles.tableList}>
<div className={styles.tableListForm}>{this.renderForm()}</div> <div className={styles.tableListForm}>{this.renderForm()}</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论