diff --git a/packages/element-plus/index.ts b/packages/element-plus/index.ts index 85a0974a72..46270cd47c 100644 --- a/packages/element-plus/index.ts +++ b/packages/element-plus/index.ts @@ -59,9 +59,6 @@ import ElPopover from '@element-plus/popover' import ElCascader from '@element-plus/cascader' import ElCascaderPanel from '@element-plus/cascader-panel' import ElMenu from '@element-plus/menu' -import ElMenuItem from '@element-plus/menu-item' -import ElMenuItemGroup from '@element-plus/menu-item-group' -import ElSubmenu from '@element-plus/submenu' import ElCollapseTransition from '@element-plus/transition' import { use } from '@element-plus/locale' @@ -123,9 +120,6 @@ export { ElCascader, ElCascaderPanel, ElMenu, - ElSubmenu, - ElMenuItem, - ElMenuItemGroup, ElCollapseTransition, } @@ -198,9 +192,6 @@ const install = (app: App, opt: InstallOptions = defaultInstallOpt): void => { ElCascader(app) ElCascaderPanel(app) ElMenu(app) - ElSubmenu(app) - ElMenuItem(app) - ElMenuItemGroup(app) ElCollapseTransition(app) app.config.globalProperties.$ELEMENT = opt diff --git a/packages/element-plus/package.json b/packages/element-plus/package.json index 58f7409e7f..f918f575fc 100644 --- a/packages/element-plus/package.json +++ b/packages/element-plus/package.json @@ -46,9 +46,6 @@ "@element-plus/form": "^0.0.0", "@element-plus/tree": "^0.0.0", "@element-plus/select": "^0.0.0", - "@element-plus/menu": "^0.0.0", - "@element-plus/submenu": "^0.0.0", - "@element-plus/menu-item": "^0.0.0", - "@element-plus/menu-item-group": "^0.0.0" + "@element-plus/menu": "^0.0.0" } } diff --git a/packages/menu-item-group/doc/index.stories.ts b/packages/menu-item-group/doc/index.stories.ts deleted file mode 100644 index 9cc589ac3e..0000000000 --- a/packages/menu-item-group/doc/index.stories.ts +++ /dev/null @@ -1,5 +0,0 @@ -import ElMenuItemGroup from '../index' - -export default { - title: 'MenuItem-group', -} diff --git a/packages/menu-item-group/index.ts b/packages/menu-item-group/index.ts deleted file mode 100644 index f1671e18ef..0000000000 --- a/packages/menu-item-group/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { App } from 'vue' -import MenuItemGroup from '../menu/src/menuGroup.vue' -export default (app: App): void => { - app.component(MenuItemGroup.name, MenuItemGroup) -} diff --git a/packages/menu-item-group/package.json b/packages/menu-item-group/package.json deleted file mode 100644 index 3c2de02994..0000000000 --- a/packages/menu-item-group/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@element-plus/menu-item-group", - "version": "0.0.0", - "main": "dist/index.js", - "license": "MIT", - "peerDependencies": { - "vue": "^3.0.0-rc.9" - }, - "devDependencies": { - "@vue/test-utils": "^2.0.0-beta.3" - } -} diff --git a/packages/menu-item/index.ts b/packages/menu-item/index.ts deleted file mode 100644 index 9d1c00aee5..0000000000 --- a/packages/menu-item/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { App } from 'vue' -import MenuItem from '../menu/src/menuItem.vue' -export default (app: App): void => { - app.component(MenuItem.name, MenuItem) -} diff --git a/packages/menu-item/package.json b/packages/menu-item/package.json deleted file mode 100644 index c3639a0112..0000000000 --- a/packages/menu-item/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@element-plus/menu-item", - "version": "0.0.0", - "main": "dist/index.js", - "license": "MIT", - "peerDependencies": { - "vue": "^3.0.0-rc.9" - }, - "devDependencies": { - "@vue/test-utils": "^2.0.0-beta.3" - } -} diff --git a/packages/menu/index.ts b/packages/menu/index.ts index 362e2ecd4d..b9fbd148c4 100644 --- a/packages/menu/index.ts +++ b/packages/menu/index.ts @@ -1,5 +1,11 @@ import { App } from 'vue' import Menu from './src/menu.vue' +import Submenu from './src/submenu.vue' +import MenuItem from './src/menuItem.vue' +import MenuItemGroup from './src/menuItemGroup.vue' export default (app: App): void => { app.component(Menu.name, Menu) + app.component(Submenu.name, Submenu) + app.component(MenuItem.name, MenuItem) + app.component(MenuItemGroup.name, MenuItemGroup) } diff --git a/packages/menu-item-group/src/index.vue b/packages/menu/src/menuItemGroup.vue similarity index 100% rename from packages/menu-item-group/src/index.vue rename to packages/menu/src/menuItemGroup.vue diff --git a/packages/submenu/index.ts b/packages/submenu/index.ts deleted file mode 100644 index 7243827f4b..0000000000 --- a/packages/submenu/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { App } from 'vue' -import Submenu from '../menu/src/submenu.vue' -export default (app: App): void => { - app.component(Submenu.name, Submenu) -} diff --git a/packages/submenu/package.json b/packages/submenu/package.json deleted file mode 100644 index a273a9a7c5..0000000000 --- a/packages/submenu/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@element-plus/submenu", - "version": "0.0.0", - "main": "dist/index.js", - "license": "MIT", - "peerDependencies": { - "vue": "^3.0.0" - }, - "devDependencies": { - "@vue/test-utils": "^2.0.0-beta.3" - } -}