|
@@ -173,7 +173,16 @@ const onKeyup = (params, index) => {
|
|
|
}
|
|
|
|
|
|
const setIptWidth = (index) => {
|
|
|
- document.getElementById('input'+index).style.width = document.getElementById('pre'+index).offsetWidth + 'px'
|
|
|
+ let iptDom = document.getElementById('input'+index);
|
|
|
+ if(iptDom) {
|
|
|
+ iptDom.style.width = document.getElementById('pre'+index).offsetWidth + 'px'
|
|
|
+ } else {
|
|
|
+ setTimeout(() => {
|
|
|
+ let iptDom = document.getElementById('input'+index);
|
|
|
+ iptDom.style.width = document.getElementById('pre'+index).offsetWidth + 'px'
|
|
|
+ console.log('iptDom1',iptDom,document.getElementById('pre'+index).offsetWidth);
|
|
|
+ }, 500)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const onIptChange = (params, index) => {
|