按需导入 import {getCurrentInstance} from "vue"; 定义 const { proxy } = getCurrentInstance(); 使用 proxy.$emit("update:StepComponent",2)