Pārlūkot izejas kodu

tags docs improve

baiyaaaaa 8 gadi atpakaļ
vecāks
revīzija
ecda9bdd07
2 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  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() {