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);