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

23 lines
544 B
TypeScript
Raw Normal View History

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
2019-01-12 03:33:27 +00:00
Radio.Group = Group;
Radio.Button = Button;
/* istanbul ignore next */
2020-10-20 08:58:08 +00:00
Radio.install = function(app: App) {
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;
};