ant-design-vue/components/checkbox/index.ts
tangjinzhou 26496ba0a9
refactor: checkbox (#5091)
* style: remove not use pkg

* refactor: vc-checkbox

* refactor: checkbox

* fix: radio type
2021-12-28 16:47:52 +08:00

20 lines
611 B
TypeScript

import type { App, Plugin } from 'vue';
import Checkbox from './Checkbox';
import CheckboxGroup from './Group';
export type { CheckboxProps, CheckboxGroupProps, CheckboxOptionType } from './interface';
export { checkboxProps, checkboxGroupProps } from './interface';
Checkbox.Group = CheckboxGroup;
/* istanbul ignore next */
Checkbox.install = function (app: App) {
app.component(Checkbox.name, Checkbox);
app.component(CheckboxGroup.name, CheckboxGroup);
return app;
};
export { CheckboxGroup };
export default Checkbox as typeof Checkbox &
Plugin & {
readonly Group: typeof CheckboxGroup;
};