| | |
| | | } |
| | | } |
| | | }, |
| | | // editingRows:{ |
| | | // handler(newval,oldval){ |
| | | // if(newval){ |
| | | // const inputElement = document.querySelector(`#inputRef${newval.oid}`); |
| | | // if (inputElement) { |
| | | // inputElement.focus(); |
| | | // }; |
| | | // } |
| | | // } |
| | | // }, |
| | | ProData: { |
| | | handler(newval, oldval) { |
| | | if (newval) { |
| | |
| | | this.editShows = column.property; |
| | | this.rowOid = row.oid; |
| | | this.CurrentCell = row; |
| | | if(this.editingRows){ |
| | | const inputElement = document.querySelector(`#inputRef${row.oid}`); |
| | | if (inputElement) { |
| | | inputElement.focus(); |
| | | }; |
| | | } |
| | | // const inputElement = document.querySelector(`#inputRef${row.oid}`); |
| | | // if (inputElement) { |
| | | // inputElement.focus(); |
| | | // }; |
| | | if (column.property == 'referConfig') { |
| | | this.referConfigVisble = true; |
| | | this.referConfigOption = { |
| | |
| | | saveRows() { |
| | | this.editingRows = null; |
| | | this.editShows = null; |
| | | const inputElement = document.querySelector(`#inputRef${this.CurrentCell.oid}`); |
| | | if (inputElement) { |
| | | inputElement.blur(); |
| | | } |
| | | // const inputElement = document.querySelector(`#inputRef${this.CurrentCell.oid}`); |
| | | // if (inputElement) { |
| | | // inputElement.blur(); |
| | | // } |
| | | }, |
| | | // 枚举注入添加一行空数据 |
| | | addRow() { |