08 2020 档案
vue中父传子,子传父 怎么相互传值(个人理解)
摘要:父传子: 子组件使用props接收父组件的值 父组件(test.vue): 1 <template> 2 <!-- 父传子 --> 3 <div class="container"> 4 父组件:<input type="text" v-model="value"> 5 <!-- 引入子组件 -->
阅读全文
富文本
摘要:推荐一个富文本: https://github.com/vuejs/awesome-vue 这里面记录了vue技术栈相关的 框架 组件库 插件 文章 博客 教学视频 https://github.com/surmon-china/vue-quill-editor 富文本 安装: 1、npm inst
阅读全文
封装vue插件
摘要:例如:我要在components下封装一个面包屑插件公用与各个页面,我需要在每个页面下impont导入,导致多个页面重复需要import导入,所以决定要对这个组件进行封装 第一步:在components下创建index.js文件 //定义一个插件 //规则:模块向外暴露一个对象,对象中选项insta
阅读全文
Avoided redundant navigation to current 冗余导航报错
摘要:发现原因:做vue项目中,不断重复点击当前路由导航会发生报错, 解决方案: const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(location) { return origi
阅读全文
浙公网安备 33010602011771号