From a54f6848780a5c11d78be3c1e6fe86a51edeead0 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: Thu, 3 Jun 2021 13:50:28 +0300 Subject: [PATCH] Refactor #1019 #1209 #1221 --- src/components/accordion/Accordion.vue | 5 -- src/components/accordiontab/AccordionTab.vue | 49 +++++++++----------- src/components/tabpanel/TabPanel.vue | 31 ++++--------- 3 files changed, 31 insertions(+), 54 deletions(-) diff --git a/src/components/accordion/Accordion.vue b/src/components/accordion/Accordion.vue index a44d9eeba5..2e900fa17e 100755 --- a/src/components/accordion/Accordion.vue +++ b/src/components/accordion/Accordion.vue @@ -38,11 +38,6 @@ export default { this.$emit('update:activeIndex', this.d_activeIndex); } - }, - computed: { - tabs() { - return this.$children.filter(child => child.$vnode.tag.indexOf('accordiontab') !== -1); - } } } diff --git a/src/components/accordiontab/AccordionTab.vue b/src/components/accordiontab/AccordionTab.vue index 72fd3b805b..b411e833b6 100755 --- a/src/components/accordiontab/AccordionTab.vue +++ b/src/components/accordiontab/AccordionTab.vue @@ -1,16 +1,15 @@