element-plus/packages/components/checkbox/index.ts
MonsterPi 49109158c8
refactor(components): [checkbox] refactor (#9594)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-09-16 20:53:11 +08:00

18 lines
529 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils'
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)
export * from './src/checkbox-group'
export * from './src/checkbox'