Refactor #4211 - For Button
parent
dba00a6d9b
commit
8047671b39
|
@ -20,6 +20,7 @@ export interface ButtonPassThroughMethodOptions {
|
||||||
instance: any;
|
instance: any;
|
||||||
props: ButtonProps;
|
props: ButtonProps;
|
||||||
context: ButtonContext;
|
context: ButtonContext;
|
||||||
|
parent: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,6 +26,10 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
getPTOptions(key) {
|
getPTOptions(key) {
|
||||||
return this.ptm(key, {
|
return this.ptm(key, {
|
||||||
|
parent: {
|
||||||
|
props: this.$parent?.$props,
|
||||||
|
state: this.$parent?.$data
|
||||||
|
},
|
||||||
context: {
|
context: {
|
||||||
disabled: this.disabled
|
disabled: this.disabled
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue