2020-11-01 07:03:33 +00:00
|
|
|
import { App, Plugin } from 'vue';
|
2019-01-12 03:33:27 +00:00
|
|
|
import Radio from './Radio';
|
|
|
|
import Group from './Group';
|
|
|
|
import Button from './RadioButton';
|
2017-10-27 06:04:48 +00:00
|
|
|
|
2021-01-26 03:18:51 +00:00
|
|
|
export { RadioChangeEventTarget, RadioChangeEvent } from './interface';
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
Radio.Group = Group;
|
|
|
|
Radio.Button = Button;
|
2018-09-19 05:21:57 +00:00
|
|
|
|
|
|
|
/* istanbul ignore next */
|
2020-10-20 08:58:08 +00:00
|
|
|
Radio.install = function(app: App) {
|
2020-06-13 14:32:10 +00:00
|
|
|
app.component(Radio.name, Radio);
|
|
|
|
app.component(Radio.Group.name, Radio.Group);
|
|
|
|
app.component(Radio.Button.name, Radio.Button);
|
2020-10-13 11:14:56 +00:00
|
|
|
return app;
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2017-10-27 06:04:48 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
export { Button, Group };
|
2020-11-01 07:03:33 +00:00
|
|
|
export default Radio as typeof Radio &
|
|
|
|
Plugin & {
|
|
|
|
readonly Group: typeof Group;
|
|
|
|
readonly Button: typeof Button;
|
|
|
|
};
|