Pārlūkot izejas kodu

Merge branch 'test' of https://git.yishihui.com/DeNet/de-net into test

zhangwei 3 gadi atpakaļ
vecāks
revīzija
f158178a76
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/view/components/follow-input.vue

+ 4 - 1
src/view/components/follow-input.vue

@@ -149,7 +149,10 @@ const addUser = (name = '') => {
 const addInput = () => {
     addUser('');
     setTimeout(() => {
-        setIptWidth(props.atUserList.length - 1);
+        let index = props.atUserList.length - 1;
+        setIptWidth(index);
+        let iptDom = document.getElementById('input'+index);
+        iptDom.focus();
     })
 }