1.插件:生成一个plugins.js,在里面可以放过滤器,自定义指令,或者混合放入都可以,最后·在main.js中导入即可。 2.scoped样式: 3.案例实现: 码云:https://gitee.com/kewen-yang/vue-toollist.git