Commit ecda9bdd authored by baiyaaaaa's avatar baiyaaaaa Committed by cinwell.li

tags docs improve

parent a4894347
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
showInput() { showInput() {
this.inputVisible = true; this.inputVisible = true;
this.$nextTick(_ => {
this.$refs.saveTagInput.$refs.input.focus();
});
}, },
handleInputConfirm() { handleInputConfirm() {
...@@ -149,6 +152,9 @@ You can use the `close` event to add and remove tag dynamically. ...@@ -149,6 +152,9 @@ You can use the `close` event to add and remove tag dynamically.
showInput() { showInput() {
this.inputVisible = true; this.inputVisible = true;
this.$nextTick(_ => {
this.$refs.saveTagInput.$refs.input.focus();
});
}, },
handleInputConfirm() { handleInputConfirm() {
......
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
showInput() { showInput() {
this.inputVisible = true; this.inputVisible = true;
this.$nextTick(_ => {
this.$refs.saveTagInput.$refs.input.focus();
});
}, },
handleInputConfirm() { handleInputConfirm() {
...@@ -149,6 +152,9 @@ ...@@ -149,6 +152,9 @@
showInput() { showInput() {
this.inputVisible = true; this.inputVisible = true;
this.$nextTick(_ => {
this.$refs.saveTagInput.$refs.input.focus();
});
}, },
handleInputConfirm() { handleInputConfirm() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment