element-plus/packages/components/checkbox/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

15 lines
473 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils/with-install'
import Checkbox from './src/checkbox.vue'
import CheckboxButton from './src/checkbox-button.vue'
import CheckboxGroup from './src/checkbox-group.vue'
export const ElCheckbox = withInstall(Checkbox, {
CheckboxButton,
CheckboxGroup,
})
export default ElCheckbox
export const ElCheckboxButton = withNoopInstall(CheckboxButton)
export const ElCheckboxGroup = withNoopInstall(CheckboxGroup)