From 5a6b0db021e0f873a4858e62d0c88f51c8ba09f1 Mon Sep 17 00:00:00 2001 From: "oe.sonnh" Date: Mon, 13 Feb 2023 12:29:33 +0700 Subject: [PATCH] Fix: interface import issue in vue 3, using interface directly in Collapsible component --- src/components/Collapsible/Collapsible.vue | 8 +++++++- src/components/Collapsible/utils.ts | 6 ------ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 src/components/Collapsible/utils.ts diff --git a/src/components/Collapsible/Collapsible.vue b/src/components/Collapsible/Collapsible.vue index 7e812178..7864af25 100644 --- a/src/components/Collapsible/Collapsible.vue +++ b/src/components/Collapsible/Collapsible.vue @@ -15,7 +15,13 @@ div( import { computed, onMounted, onUpdated, ref, watch } from 'vue'; import { classNames } from '@/utilities/css'; import styles from '@/classes/Collapsible.json'; -import type { TransitionCollapsible } from './utils'; + +interface TransitionCollapsible { + /** Assign a transition duration to the collapsible animation. */ + duration?: string; + /** Assign a transition timing function to the collapsible animation */ + timingFunction?: string; +} interface CollapsibleProps { /** Assign a unique ID to the collapsible. For accessibility, pass this ID as the value of the triggering component’s aria-controls prop. */ diff --git a/src/components/Collapsible/utils.ts b/src/components/Collapsible/utils.ts deleted file mode 100644 index b59f2467..00000000 --- a/src/components/Collapsible/utils.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface TransitionCollapsible { - /** Assign a transition duration to the collapsible animation. */ - duration?: string; - /** Assign a transition timing function to the collapsible animation */ - timingFunction?: string; -}