mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* build: use vue-tsc to generate dts * reduce inline type declaration * fix: type checking failed * apply suggestions from code review * address PR comments
25 lines
817 B
TypeScript
25 lines
817 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'
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElCheckbox: SFCWithInstall<typeof Checkbox> & {
|
|
CheckboxButton: typeof CheckboxButton
|
|
CheckboxGroup: typeof CheckboxGroup
|
|
} = withInstall(Checkbox, {
|
|
CheckboxButton,
|
|
CheckboxGroup,
|
|
})
|
|
export default ElCheckbox
|
|
|
|
export const ElCheckboxButton: SFCWithInstall<typeof CheckboxButton> =
|
|
withNoopInstall(CheckboxButton)
|
|
export const ElCheckboxGroup: SFCWithInstall<typeof CheckboxGroup> =
|
|
withNoopInstall(CheckboxGroup)
|
|
|
|
export * from './src/checkbox-group'
|
|
export * from './src/checkbox'
|
|
export * from './src/constants'
|