element-plus/packages/components/dropdown/index.ts
jeremywu 3138dea797
fix(components): sub components no install issue (#3615)
- Add noop install for all sub components for supress the warning
2021-09-24 19:11:56 +08:00

14 lines
457 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils/with-install'
import Dropdown from './src/dropdown.vue'
import DropdownItem from './src/dropdown-item.vue'
import DropdownMenu from './src/dropdown-menu.vue'
export const ElDropdown = withInstall(Dropdown, {
DropdownItem,
DropdownMenu,
})
export default ElDropdown
export const ElDropdownItem = withNoopInstall(DropdownItem)
export const ElDropdownMenu = withNoopInstall(DropdownMenu)