diff --git a/components/lib/button/Button.d.ts b/components/lib/button/Button.d.ts index eefbbc294..7b69e3243 100755 --- a/components/lib/button/Button.d.ts +++ b/components/lib/button/Button.d.ts @@ -20,6 +20,7 @@ export interface ButtonPassThroughMethodOptions { instance: any; props: ButtonProps; context: ButtonContext; + parent: any; } /** diff --git a/components/lib/button/Button.vue b/components/lib/button/Button.vue index ddc6062e5..bf7e50a8f 100755 --- a/components/lib/button/Button.vue +++ b/components/lib/button/Button.vue @@ -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 }