From 8047671b39f5ff586a5f536ce31d1d938ef69a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Sun, 30 Jul 2023 21:22:49 +0300 Subject: [PATCH] Refactor #4211 - For Button --- components/lib/button/Button.d.ts | 1 + components/lib/button/Button.vue | 4 ++++ 2 files changed, 5 insertions(+) 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 }