Refactor #4211 - For Button

pull/4224/head
Tuğçe Küçükoğlu 2023-07-30 21:22:49 +03:00
parent dba00a6d9b
commit 8047671b39
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export interface ButtonPassThroughMethodOptions {
instance: any;
props: ButtonProps;
context: ButtonContext;
parent: any;
}
/**

View File

@ -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
}