ant-design-vue/components/menu/index.tsx

24 lines
702 B
Vue
Raw Normal View History

2021-05-23 13:49:35 +00:00
import Menu from './src/Menu';
import MenuItem from './src/MenuItem';
import SubMenu from './src/SubMenu';
import ItemGroup from './src/ItemGroup';
import Divider from './src/Divider';
import { App } from 'vue';
/* istanbul ignore next */
2020-10-24 14:38:25 +00:00
Menu.install = function(app: App) {
2020-06-16 14:55:02 +00:00
app.component(Menu.name, Menu);
2021-05-23 13:49:35 +00:00
app.component(MenuItem.name, MenuItem);
app.component(SubMenu.name, SubMenu);
app.component(Divider.name, Divider);
app.component(ItemGroup.name, ItemGroup);
2020-10-13 11:14:56 +00:00
return app;
2019-01-12 03:33:27 +00:00
};
2020-11-01 07:03:33 +00:00
export default Menu as typeof Menu &
Plugin & {
2021-05-23 13:49:35 +00:00
readonly Item: typeof MenuItem;
2020-11-01 07:03:33 +00:00
readonly SubMenu: typeof SubMenu;
readonly Divider: typeof Divider;
readonly ItemGroup: typeof ItemGroup;
};