Created
April 13, 2021 13:30
-
-
Save kyle-go/59fc9362d4affa613d2696744a5a9fd7 to your computer and use it in GitHub Desktop.
疑似element-plus的bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--报错信息:--> | |
<!--runtime-core.esm-bundler.js?5c40:540 TypeError: Cannot read property 'style' of null--> | |
<!--at patchStyle (runtime-dom.esm-bundler.js?830f:104)--> | |
<!--at patchProp (runtime-dom.esm-bundler.js?830f:363)--> | |
<!--at patchProps (runtime-core.esm-bundler.js?5c40:4104)--> | |
<!--at patchElement (runtime-core.esm-bundler.js?5c40:4051)--> | |
<!--at processElement (runtime-core.esm-bundler.js?5c40:3871)--> | |
<!--at patch (runtime-core.esm-bundler.js?5c40:3788)--> | |
<!--at patchKeyedChildren (runtime-core.esm-bundler.js?5c40:4506)--> | |
<!--at patchChildren (runtime-core.esm-bundler.js?5c40:4449)--> | |
<!--at patchElement (runtime-core.esm-bundler.js?5c40:4062)--> | |
<!--at processElement (runtime-core.esm-bundler.js?5c40:3871)--> | |
<template> | |
<!-- 将el-main换成div则不会报错了,大概率是element-plus的锅 --> | |
<el-main> | |
<div> | |
<!-- 去掉 @click 也不报错了,好奇怪啊--> | |
<i class="el-icon-close" style="float: right;" @click="func"></i> | |
<span>{{ title + "运行起来后,随便改本字符串一个字母,WebStorm自动加载, 会报错123" }}</span> | |
</div> | |
</el-main> | |
</template> | |
<script> | |
export default { | |
mounted() { | |
this.title = "Title" | |
}, | |
data() { | |
return { | |
title: "", | |
} | |
}, | |
methods: { | |
func() { | |
alert("closed!!!") | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment