2021-06-26 09:35:40 +08:00
|
|
|
import type { App, Plugin } from 'vue';
|
2019-01-12 11:33:27 +08:00
|
|
|
import Button from './button';
|
|
|
|
import ButtonGroup from './button-group';
|
2017-10-26 15:18:08 +08:00
|
|
|
|
2021-06-30 10:03:17 +08:00
|
|
|
import type { ButtonProps, ButtonShape, ButtonType } from './buttonTypes';
|
|
|
|
import type { ButtonGroupProps } from './button-group';
|
|
|
|
import type { SizeType as ButtonSize } from '../config-provider';
|
|
|
|
|
|
|
|
export type { ButtonProps, ButtonShape, ButtonType, ButtonGroupProps, ButtonSize };
|
|
|
|
|
2019-01-12 11:33:27 +08:00
|
|
|
Button.Group = ButtonGroup;
|
2018-09-19 13:21:57 +08:00
|
|
|
|
|
|
|
/* istanbul ignore next */
|
2021-06-30 10:03:17 +08:00
|
|
|
Button.install = function (app: App) {
|
2020-07-25 22:00:10 +08:00
|
|
|
app.component(Button.name, Button);
|
|
|
|
app.component(ButtonGroup.name, ButtonGroup);
|
2020-10-13 19:14:56 +08:00
|
|
|
return app;
|
2019-01-12 11:33:27 +08:00
|
|
|
};
|
2017-10-26 15:18:08 +08:00
|
|
|
|
2021-06-30 13:48:02 +08:00
|
|
|
export { ButtonGroup };
|
|
|
|
|
2020-11-01 15:03:33 +08:00
|
|
|
export default Button as typeof Button &
|
|
|
|
Plugin & {
|
|
|
|
readonly Group: typeof ButtonGroup;
|
|
|
|
};
|