Install the vue – click – outside

The introduction of

import ClickOutside from "vue-click-outside"; 
Copy the code

Used as instructions in TS

@Component({
  name: "editable-cell",
  directives: {
    ClickOutside,
  },
})
Copy the code

use

 v-click-outside="closeInput"
Copy the code

Usage scenarios

Click next edit when the previous one is closed