Bug Type: Component
Environment
- Vue Version:
3.2.33
- Element Plus Version:
2.1.10
- Browser / OS:
Edge / windows 10
- Build Tool:
Vue CLI
Reproduction
Related Component
Reproduction Link
Element Plus Playground
Steps to reproduce
<script setup lang="ts">
import { ref } from 'vue'
import { UploadFilled } from '@element-plus/icons-vue'
const upload = () => {
console.log(1)
}
</script>
<el-icon class="el-icon--upload"><upload-filled /></el-icon>
What is Expected?
click事件触发一次
What is actually happening?
click事件触发两次
Additional comments
(empty)
Bug Type:
ComponentEnvironment
3.2.332.1.10Edge / windows 10Vue CLIReproduction
Related Component
el-uploadReproduction Link
Element Plus Playground
Steps to reproduce
<script setup lang="ts"> import { ref } from 'vue' import { UploadFilled } from '@element-plus/icons-vue' const upload = () => { console.log(1) } </script>What is Expected?
click事件触发一次
What is actually happening?
click事件触发两次
Additional comments
(empty)