
VUE
淺川之夏
这个作者很懒,什么都没留下…
展开
-
Avoid mutating a prop directly since the value will be overwritten whenever the parent component
VUE报错: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “isShowData”;原因: 直接在子组件修改了父组件的值解决办法在子组件不要修改父组件的值,原创 2022-04-21 14:28:06 · 2517 阅读 · 0 评论 -
iview Anchor锚点使用,不管用解决方法
<template> <div class="check-container"> <Row type="flex" class="app-content"> <Col span="22" style="padding-bottom: 16px;"> <div id="0001" style="height:500px;border:1px solid red">原创 2021-02-26 09:37:53 · 1728 阅读 · 0 评论 -
win10 vue-cli 下载成功,显示 vue不是内部或外部命令,也不是可运行的程序
vue不是内部或外部命令,也不是可运行的程序1.安装vue-clinpm install -g @vue/cli 2.查看是否安装成功vue -V出现错误vue不是内部或外部命令,也不是可运行的程序,解决办法:运行 npm config listnpm config list这个路径中有没有vue相关文件:将路径添加到环境变量的path中:电脑->属性->高级系统设置->环境变量->系统变量->Path检查一下是否安装上:vue -V原创 2020-12-29 11:03:40 · 1240 阅读 · 1 评论 -
Iview Dropdown @click点击事件无效
Iview Dropdown下拉菜单 click点击事件无效报错:Uncaught TypeError: Cannot read property ‘$emit’ of undefined在@click在面加上@click.navite就能解决<DropdownMenu slot="list"> <DropdownItem @click="clickEvent">点击事件</DropdownItem></DropdownMenu>原创 2020-12-25 16:23:54 · 620 阅读 · 0 评论 -
Iview Tag标签,多个标签只能选择其中的几个
iview没有监听是否选中的属性,tag是否选中是由两个属性决定的checked,isChecked, isChecked主要决定了是否选中的标签样式。源码:<template> <transition name="fade" v-if="fade"> <div :class="classes" @click.stop="check" :style="wraperStyles"> <span :class="do原创 2020-12-23 15:18:28 · 1113 阅读 · 0 评论