随笔分类 -  【前端】vue笔记

摘要:https://blog.csdn.net/Dobility/article/details/110147985 父组件使用 <Test :value1.sync="value1" :value2.sync="value2" /> data(){ return (){ value1: 1, valu 阅读全文
posted @ 2021-09-23 21:01 Wayhome' 阅读(328) 评论(0) 推荐(0)
摘要:<div class="wait" @click="$emit('update:showCancelOrder',false)"> 我再等等 </div> 阅读全文
posted @ 2021-08-22 11:39 Wayhome' 阅读(287) 评论(0) 推荐(0)
摘要:vue.runtime.esm.js:619 [Vue warn]: Duplicate keys detected: '116817'. This may cause an update error. found in > at src/pages/sort/childComps/ScrollGo 阅读全文
posted @ 2021-07-09 20:04 Wayhome' 阅读(873) 评论(0) 推荐(0)
摘要:<view class="left"> <view class="item-wrap" v-for="item in tapItem" :key='item.id'> <image mode='widthFix' class="icon" :src="item.icon" /> <text clas 阅读全文
posted @ 2021-06-17 17:53 Wayhome' 阅读(872) 评论(0) 推荐(0)
摘要:<template> <div class='Contact'> <popup :show.sync="isShowContact" has-close-footer-btn="true" :footerBtnText="'取消'" @close="close"> <div class="row-i 阅读全文
posted @ 2021-05-08 16:09 Wayhome' 阅读(290) 评论(0) 推荐(0)
摘要:初始化 data 中的 footData 数据 Object.assign(this.$data.footData, this.$options.data().footData); **Object.assign(this.$data.key,this.$options.data().key)** 阅读全文
posted @ 2021-04-28 11:36 Wayhome' 阅读(3127) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_42681295/article/details/115582912 main.js文件 阅读全文
posted @ 2021-04-23 17:15 Wayhome' 阅读(686) 评论(0) 推荐(0)
摘要:退出按钮 <li class="iconfont icon-tuichu" @click="close"> <span>退出</span> </li> close() { Object.keys(localStorage).forEach((item) => item.indexOf('cookie 阅读全文
posted @ 2021-04-16 17:22 Wayhome' 阅读(122) 评论(0) 推荐(0)
摘要:链接:https://blog.csdn.net/GusLi/article/details/113267699 //index.vue页面 created() { uni.$on("changeDorm",()=>{ console.log("宿舍改变了")}) }, //bind.vue页面 m 阅读全文
posted @ 2021-03-10 22:01 Wayhome' 阅读(2340) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/itsxyu/article/details/102784464 阅读全文
posted @ 2021-02-21 17:42 Wayhome' 阅读(263) 评论(0) 推荐(0)
摘要:全局使用过滤器 1、main.js文件 //main.js import Vue from 'vue' import App from './App' import { getSwiperList, getGoodsDetail } from "network/http.js" Vue.protot 阅读全文
posted @ 2021-02-14 23:18 Wayhome' 阅读(385) 评论(0) 推荐(0)
摘要:获取商品id(父子组件通信) 1.子组件 <template> <view class="detail"> <view><button @click="navigator(id)">点我跳转</button></view> </view> </template> <script> export de 阅读全文
posted @ 2021-02-14 22:35 Wayhome' 阅读(409) 评论(0) 推荐(0)
摘要:1、request.js文件 /*request.js*/ /* 封装的网络请求 */ export const request = params => { const baseUrl = "https://api-hmugo-web.itheima.net/api/public/v1" retur 阅读全文
posted @ 2021-02-12 21:26 Wayhome' 阅读(900) 评论(0) 推荐(0)
摘要:[Vue-bug]:Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed 阅读全文
posted @ 2020-09-12 20:34 Wayhome' 阅读(1161) 评论(0) 推荐(0)
摘要:<template> <div class="addUser"> <!-- 点击添加用户对话框 --> <!-- 添加用户表单 --> <el-form :model="addUser" :rules="addUserRules" ref="addUser" label-width="70px"> 阅读全文
posted @ 2020-08-14 10:08 Wayhome' 阅读(7212) 评论(0) 推荐(0)
摘要:├── README.md 项目介绍 ├── index.html 入口页面 ├── build 构建脚本目录 │ ├── build-server.js 运行本地构建服务器,可以访问构建后的页面 │ ├── build.js 生产环境构建脚本 │ ├── dev-client.js 开发服务器热重 阅读全文
posted @ 2020-08-08 20:25 Wayhome' 阅读(345) 评论(0) 推荐(0)
摘要:import Vue from 'vue'; import VueRouter from 'vue-router'; //导入组件 const login = () => import('../components/common/login'); const home = () => import( 阅读全文
posted @ 2020-08-08 10:44 Wayhome' 阅读(304) 评论(0) 推荐(0)
摘要:简单版 //配置路径别名 module.exports = { //修改文件路径 //publicPath:process.env.NODE_ENV 'production'?'./':'/', publicPath: './', //声明配置webpack configureWebpack: { 阅读全文
posted @ 2020-08-07 11:17 Wayhome' 阅读(2586) 评论(0) 推荐(1)
摘要:安装 npm install postcss-px-to-viewport --save-dev postcss.config.js module.exports = { plugins: { autoprefixer: {}, "postcss-px-to-viewport": { viewpor 阅读全文
posted @ 2020-08-06 16:20 Wayhome' 阅读(2672) 评论(0) 推荐(0)
摘要:isCheckedAll: function() { if (this.cartList.length 0) { return false; } else { return !this.cartList.find(item => !item.checked); } }, 改正,加入get()、set 阅读全文
posted @ 2020-08-05 21:36 Wayhome' 阅读(1179) 评论(0) 推荐(0)

// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css