Vue.js中使用Mixins

Vue 

本文使用 前端封装字典 介绍话不多说直接上代码CurdDict.jsconst CurdDict = { data() { //判断组件是否定义了curdDictTypes字典数组 if (this.$options !== undefined && this.$opt

Vue权限控制显隐

Vue 

权限来控制按钮显隐。实现:我们需要自定义指令来控制新建一个文件btnOption.js import Vue from 'vue' Vue.directive('has ', { inserted: function (el, binding) {