<template>
<div>
<div class="p_open" @click="handleOpen">{{showMore ? '收起筛选' : '展开筛选'}}</div>
<el-collapse-transition>
<div class="item" v-show="showMore">
<div>[Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading 'map')"</div>
<div>[Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading 'map')"</div>
<div>[Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading 'map')"</div>
</div>
</el-collapse-transition>
</div>
</template>
<script>
export default {
data () {
return {
showMore: true
}
},
methods: {
handleOpen () {
this.showMore = !this.showMore
}
}
}
</script>
<style lang="less" scoped>
.p_open {
margin-left: 700px;
cursor: pointer;
}
.item {
margin-left: 100px;
}
</style>
折叠面板展开动画
最新推荐文章于 2024-05-16 11:16:56 发布
文章描述了一个Vue.js项目中遇到的警告错误,涉及到TypeError,特别指出在事件处理程序中尝试访问undefined对象的map属性。开发者展示了如何通过点击事件控制显示或隐藏详细错误信息。
摘要由CSDN通过智能技术生成