fix(types): Submenu export error #6232 #4945

This commit is contained in:
XiongAmao 2019-11-16 18:55:53 +08:00
parent 5f04795b70
commit 98c84b77cf
2 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ export { Scroll } from './scroll';
export { Split } from './split'; export { Split } from './split';
export { Layout } from './layout'; export { Layout } from './layout';
export { LoadingBar, LoadingBarConfig } from './loading-bar'; export { LoadingBar, LoadingBarConfig } from './loading-bar';
export { Menu, MenuGroup, MenuItem, MenuSub } from './menu'; export { Menu, MenuGroup, MenuItem, Submenu } from './menu';
export { Message, MessageConfig } from './message'; export { Message, MessageConfig } from './message';
export { Modal, ModalInstance, ModalConfig } from './modal'; export { Modal, ModalInstance, ModalConfig } from './modal';
export { Notice, NoticeConfig, NoticeGlobalConfig } from './notice'; export { Notice, NoticeConfig, NoticeGlobalConfig } from './notice';

6
types/menu.d.ts vendored
View file

@ -38,7 +38,7 @@ export declare class Menu extends Vue {
*/ */
$emit(eventName: 'on-select', name?: string | number): this; $emit(eventName: 'on-select', name?: string | number): this;
/** /**
* / * /
* @default Submenu name * @default Submenu name
*/ */
$emit(eventName: 'on-open-change', names: string[] | number[]): this; $emit(eventName: 'on-open-change', names: string[] | number[]): this;
@ -78,7 +78,7 @@ export declare class MenuItem extends Vue {
append?: boolean; append?: boolean;
} }
export declare class MenuSub extends Vue { export declare class Submenu extends Vue {
/** /**
* *
*/ */
@ -104,4 +104,4 @@ export declare class MenuGroup extends Vue {
* @default * @default
*/ */
title?: string; title?: string;
} }