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

17 lines
383 B
TypeScript
Raw Normal View History

2020-10-13 10:04:02 +00:00
import { App } from 'vue';
2019-01-12 03:33:27 +00:00
import Button from './button';
import ButtonGroup from './button-group';
2017-10-26 07:18:08 +00:00
2019-01-12 03:33:27 +00:00
Button.Group = ButtonGroup;
/* istanbul ignore next */
2020-10-13 10:04:02 +00:00
Button.install = function(app: App) {
2020-07-25 14:00:10 +00:00
app.component(Button.name, Button);
app.component(ButtonGroup.name, ButtonGroup);
2020-10-13 11:14:56 +00:00
return app;
2019-01-12 03:33:27 +00:00
};
2017-10-26 07:18:08 +00:00
2020-10-15 14:38:48 +00:00
export default Button as typeof Button & {
readonly Group: typeof ButtonGroup;
};