|
@@ -21,7 +21,7 @@
|
|
|
<Input v-if="it.controlType==6 || it.controlType==7"
|
|
|
:item="it"
|
|
|
:key="it.id"
|
|
|
- :focusPosition="focusPosition"
|
|
|
+ @focusPosition="focusPosition"
|
|
|
@updata="updataData($event,it.id,i)"/>
|
|
|
<!-- 文本域 -->
|
|
|
<ComTextArea v-if="it.controlType == 5"
|
|
@@ -100,6 +100,9 @@
|
|
|
})
|
|
|
},
|
|
|
methods:{
|
|
|
+ focusPosition(e){
|
|
|
+ // this.scroll.scrollToElement(e.target,100,0,-40);
|
|
|
+ },
|
|
|
onScroll(data) {
|
|
|
this.$store.commit('setScroll', data);
|
|
|
document.activeElement.scrollIntoViewIfNeeded(true);
|
|
@@ -159,9 +162,6 @@
|
|
|
this.$nextTick(()=>{
|
|
|
this.scroll.refresh()
|
|
|
})
|
|
|
- },
|
|
|
- focusPosition(){
|
|
|
- this.scroll.scrollTo(0,this.$store.state.scroll.y-50)
|
|
|
}
|
|
|
},
|
|
|
components:{
|