ant-design-vue/components/checkbox/index.ts

20 lines
611 B
TypeScript
Raw Normal View History

2021-06-26 01:35:40 +00:00
import type { App, Plugin } from 'vue';
import Checkbox from './Checkbox';
2019-01-12 03:33:27 +00:00
import CheckboxGroup from './Group';
export type { CheckboxProps, CheckboxGroupProps, CheckboxOptionType } from './interface';
export { checkboxProps, checkboxGroupProps } from './interface';
2017-10-26 07:18:08 +00:00
2019-01-12 03:33:27 +00:00
Checkbox.Group = CheckboxGroup;
/* istanbul ignore next */
2021-06-23 15:08:16 +00:00
Checkbox.install = function (app: App) {
app.component(Checkbox.name, Checkbox);
app.component(CheckboxGroup.name, CheckboxGroup);
2020-10-13 11:14:56 +00:00
return app;
2019-01-12 03:33:27 +00:00
};
export { CheckboxGroup };
2020-11-01 07:03:33 +00:00
export default Checkbox as typeof Checkbox &
Plugin & {
readonly Group: typeof CheckboxGroup;
};