baiyaaaaa пре 8 година
родитељ
комит
ecda9bdd07
2 измењених фајлова са 12 додато и 0 уклоњено
  1. 6 0
      examples/docs/en-US/tag.md
  2. 6 0
      examples/docs/zh-CN/tag.md

+ 6 - 0
examples/docs/en-US/tag.md

@@ -22,6 +22,9 @@
 
       showInput() {
         this.inputVisible = true;
+        this.$nextTick(_ => {
+          this.$refs.saveTagInput.$refs.input.focus();
+        });
       },
 
       handleInputConfirm() {
@@ -149,6 +152,9 @@ You can use the `close` event to add and remove tag dynamically.
 
       showInput() {
         this.inputVisible = true;
+        this.$nextTick(_ => {
+          this.$refs.saveTagInput.$refs.input.focus();
+        });
       },
 
       handleInputConfirm() {

+ 6 - 0
examples/docs/zh-CN/tag.md

@@ -22,6 +22,9 @@
 
       showInput() {
         this.inputVisible = true;
+        this.$nextTick(_ => {
+          this.$refs.saveTagInput.$refs.input.focus();
+        });
       },
 
       handleInputConfirm() {
@@ -149,6 +152,9 @@
 
       showInput() {
         this.inputVisible = true;
+        this.$nextTick(_ => {
+          this.$refs.saveTagInput.$refs.input.focus();
+        });
       },
 
       handleInputConfirm() {