From 5d2778a416141b5059ab57c65ea8f82018c68a81 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: Mon, 31 May 2021 09:53:50 +0300 Subject: [PATCH] Fixed #1019, Fixed #1209, Fixed #1221: New build Accordion and TabView --- src/components/accordion/Accordion.vue | 122 +++--------------- src/components/accordiontab/AccordionTab.d.ts | 1 - src/components/accordiontab/AccordionTab.vue | 68 +++++++++- src/components/tabpanel/TabPanel.d.ts | 1 - src/components/tabpanel/TabPanel.vue | 38 +++++- src/components/tabview/TabView.d.ts | 1 + src/components/tabview/TabView.vue | 99 +++++++------- src/views/tabview/TabViewDoc.vue | 9 +- 8 files changed, 183 insertions(+), 156 deletions(-) diff --git a/src/components/accordion/Accordion.vue b/src/components/accordion/Accordion.vue index 0885220112..a44d9eeba5 100755 --- a/src/components/accordion/Accordion.vue +++ b/src/components/accordion/Accordion.vue @@ -1,132 +1,48 @@ - diff --git a/src/components/accordiontab/AccordionTab.d.ts b/src/components/accordiontab/AccordionTab.d.ts index 11f4638e3b..569d581195 100755 --- a/src/components/accordiontab/AccordionTab.d.ts +++ b/src/components/accordiontab/AccordionTab.d.ts @@ -2,7 +2,6 @@ import Vue, { VNode } from 'vue'; declare class AccordionTab extends Vue { header?: string; - active?: boolean; disabled?: boolean; $slot: { '': VNode[]; diff --git a/src/components/accordiontab/AccordionTab.vue b/src/components/accordiontab/AccordionTab.vue index 039f6327dd..72fd3b805b 100755 --- a/src/components/accordiontab/AccordionTab.vue +++ b/src/components/accordiontab/AccordionTab.vue @@ -1,13 +1,75 @@ + \ No newline at end of file diff --git a/src/components/tabpanel/TabPanel.d.ts b/src/components/tabpanel/TabPanel.d.ts index 51a24f199c..c942c9e1ef 100755 --- a/src/components/tabpanel/TabPanel.d.ts +++ b/src/components/tabpanel/TabPanel.d.ts @@ -2,7 +2,6 @@ import Vue, { VNode } from 'vue'; declare class TabPanel extends Vue { header?: any; - active?: boolean; disabled?: boolean; $slots: { '': VNode[]; diff --git a/src/components/tabpanel/TabPanel.vue b/src/components/tabpanel/TabPanel.vue index 6a7d53a39a..73caf534e9 100755 --- a/src/components/tabpanel/TabPanel.vue +++ b/src/components/tabpanel/TabPanel.vue @@ -1,12 +1,46 @@ + + \ No newline at end of file diff --git a/src/components/tabview/TabView.d.ts b/src/components/tabview/TabView.d.ts index b6fe61fbbf..fc285ac1cc 100755 --- a/src/components/tabview/TabView.d.ts +++ b/src/components/tabview/TabView.d.ts @@ -3,6 +3,7 @@ import Vue, { VNode } from 'vue'; declare class TabView extends Vue { activeIndex?: number; $emit(eventName: 'tab-change', e: { originalEvent: Event, tab: any }): this; + $emit(eventName: 'tab-click', e: { originalEvent: Event, tab: any }): this; $slots: { '': VNode[]; } diff --git a/src/components/tabview/TabView.vue b/src/components/tabview/TabView.vue index f95d2486a7..cdf497175d 100755 --- a/src/components/tabview/TabView.vue +++ b/src/components/tabview/TabView.vue @@ -1,20 +1,51 @@ + +