2020年8月27日

vue-复制

摘要: 1.安装vue-clipboard2 npm install --save-dev vue-clipboard2 2.main.js中添加 import VueClipboard from 'vue-clipboard2' VueClipboard.config.autoSetContainer = 阅读全文

posted @ 2020-08-27 16:46 秃了头也不退休 阅读(235) 评论(0) 推荐(0) 编辑

Nprogress-进度条

摘要: 引入 nprogress yarn add nprogress import NProgress from 'nprogress' import 'nprogress/nprogress.css' //这个样式必须引入 router.beforeEach((to,from,next) => { NP 阅读全文

posted @ 2020-08-27 14:43 秃了头也不退休 阅读(501) 评论(0) 推荐(0) 编辑

vue-directive(自定义指令)

摘要: <button @click="$router.push('/login')" v-botton>directive</button> export default { name: "directive", directives: { botton: { bind: function (el,bin 阅读全文

posted @ 2020-08-27 14:30 秃了头也不退休 阅读(798) 评论(0) 推荐(0) 编辑

导航