![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
Mask丶
这个作者很懒,什么都没留下…
展开
-
按钮权限指令【vue】
**Juris.jsexport function Juris(key){ let arr = ["sys:user:update","sys:user:save","sys:user:reset","sys:user:delete"] let index = arr.indexOf(key) if(index > -1){ return true }else{ return false }}Jurisdiction.j原创 2022-01-12 14:51:52 · 370 阅读 · 0 评论 -
按钮单击防抖指令 v-debounce
import Vue from “vue”;/**按钮单击防抖指令*/Vue.directive(‘debounce’, {inserted(el, binding, vnode) {el.addEventListener(‘click’, (e) => {let timeout = 1000;if(binding.value) {timeout = binding.value;}const i = document.createElement(‘i’);i.classLis原创 2022-01-07 14:10:16 · 767 阅读 · 0 评论