父组件
<template slot="footer-operation">
<div ref="refUpdateButtons" :is="customComponent.updateButtons" :data="{parent:vm}">
</div>
</template>
data() {
return {
vm: this,
}
}
子组件
<template>
<div>
<el-button icon="el-icon-arrow-left" plain @click="parent.back">{{ st('frame.back') }}</el-button>
</div>
</template>
computed: {
parent() {
return this.data.parent
},
}