|
@@ -40,7 +40,8 @@ class Inspect extends React.Component {
|
|
|
visible:false,
|
|
|
dom:[],
|
|
|
isIE:isIE(),
|
|
|
- ieVersion:null
|
|
|
+ ieVersion:null,
|
|
|
+ height:'-1'
|
|
|
}
|
|
|
this.handleImportExcel = this.handleImportExcel.bind(this)
|
|
|
this.cancel = this.cancel.bind(this)
|
|
@@ -99,7 +100,8 @@ class Inspect extends React.Component {
|
|
|
if (message.length != 0) {
|
|
|
that.setState({
|
|
|
visible:true,
|
|
|
- dom:message
|
|
|
+ dom:message,
|
|
|
+ height:message.length
|
|
|
})
|
|
|
}
|
|
|
$("#choose").val("");
|
|
@@ -183,6 +185,7 @@ class Inspect extends React.Component {
|
|
|
okText='删除'
|
|
|
cancelText='确定'
|
|
|
width="450"
|
|
|
+ height={(this.state.height > 2 && this.state.height < 8)?((this.state.height * 30 + 120)+'px') : this.state.height > 8 ? '350px' : '200px'}
|
|
|
noFooter= {true}
|
|
|
close={this.cancel}>
|
|
|
<ul className={styles.excelList}>
|