From 2fcfc61422f4d92be7fc07bac340473b4a6760ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 1 Mar 2023 14:08:29 +0300 Subject: [PATCH] DocApiSection - Accordion.dts updated --- components/accordion/Accordion.d.ts | 6 +++--- components/accordiontab/AccordionTab.d.ts | 2 +- layouts/doc/DocApiSection.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/accordion/Accordion.d.ts b/components/accordion/Accordion.d.ts index 4b734b4b0..ef3c75533 100755 --- a/components/accordion/Accordion.d.ts +++ b/components/accordion/Accordion.d.ts @@ -84,12 +84,12 @@ export interface AccordionProps { /** * Defines valid slots in Accordion slots. */ -export declare type AccordionSlots = { +export interface AccordionSlots { /** * Default slot to detect AccordionTab components. */ default(): VNode[]; -}; +} /** * Defines valid emits in Accordion component. @@ -129,7 +129,7 @@ export interface AccordionEmits { * @group Component * */ -export declare class Accordion extends ClassComponent {} +declare class Accordion extends ClassComponent {} declare module '@vue/runtime-core' { interface GlobalComponents { diff --git a/components/accordiontab/AccordionTab.d.ts b/components/accordiontab/AccordionTab.d.ts index 23fa9b9b1..ea8eeefd7 100755 --- a/components/accordiontab/AccordionTab.d.ts +++ b/components/accordiontab/AccordionTab.d.ts @@ -84,7 +84,7 @@ export interface AccordionTabEmits {} * * @group Component */ -export declare class AccordionTab extends ClassComponent {} +declare class AccordionTab extends ClassComponent {} declare module '@vue/runtime-core' { interface GlobalComponents { diff --git a/layouts/doc/DocApiSection.vue b/layouts/doc/DocApiSection.vue index 9db3479fd..fe8491aee 100644 --- a/layouts/doc/DocApiSection.vue +++ b/layouts/doc/DocApiSection.vue @@ -53,7 +53,7 @@ export default { const props = values[`${docName}Props`]; const emits = values[`${docName}Emits`]; const slots = values[`${docName}Slots`]; - const methods = componentValues ? componentValues[docName].methods : null; + const methods = componentValues ? componentValues['default'].methods : null; const types = APIDocs[moduleName]['types']; let events = this.findEvents(values);