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