mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Refactor #4211 - For Button
This commit is contained in:
parent
dba00a6d9b
commit
8047671b39
2 changed files with 5 additions and 0 deletions
1
components/lib/button/Button.d.ts
vendored
1
components/lib/button/Button.d.ts
vendored
|
@ -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…
Add table
Add a link
Reference in a new issue