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

25 lines
667 B
TypeScript
Raw Normal View History

2021-06-26 01:35:40 +00:00
import type { 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;
/* istanbul ignore next */
2021-06-23 15:08:16 +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
2021-06-23 13:47:53 +00:00
export { Button, Group, Button as RadioButton, Group as RadioGroup };
2020-11-01 07:03:33 +00:00
export default Radio as typeof Radio &
Plugin & {
readonly Group: typeof Group;
readonly Button: typeof Button;
};