current position:Home>elementui utils/clickoutside. JS click element external trigger

elementui utils/clickoutside. JS click element external trigger

2022-06-24 09:51:35Time202051

This is a elementui The framework clicks on a custom instruction triggered outside the element . We need to bind manually

mian.js

import clickoutside from 'element-ui/src/utils/clickoutside'
Vue.directive('clickoutside', clickoutside)

Use v-clickoutside=“handlerOutside” So clicking on the outside of the element will execute

copyright notice
author[Time202051],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/175/202206240903258666.html

Random recommended