Procházet zdrojové kódy

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

zhangwei před 3 roky
rodič
revize
f158178a76
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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();
     })
 }