Explorar el Código

tags docs improve

baiyaaaaa hace 8 años
padre
commit
ecda9bdd07
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  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() {