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