extends question
Version
3.1.1
Reproduction link
https://codesandbox.io/s/nifty-violet-mc6h7
Steps to reproduce
parent code:
export default defineComponent({
name: 'LookupBase',
setup (props, context) {
const showLabel = ref('')
return {
showLabel
};
...
```javascript
extend code:
export default defineComponent({
name: 'LookupLabel',
props: {},
extends: LookupBase,
setup (props, context) {
return {
parentShowLabel: super.showLabel
}
...
question1:mount LookupLabel after parent LookupBase setup not run?
chinese:挂载LookupLabel之后发现父组件不会执行steup()这个方法,super()?
question2:extend LookupLabel how quote parent LookupBase variable or function?
chinese:LookupLabel如何引用父组件的方法和变量?
### What is expected?
use
### What is actually happening?
vue2 have access to extends
---
Is it my usage or a bug?
<!-- generated by vue-issues. DO NOT REMOVE -->
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.