mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-06 05:59:46 +08:00
26 lines
720 B
TypeScript
26 lines
720 B
TypeScript
import type { App, Plugin } from 'vue';
|
|
import Button from './button';
|
|
import ButtonGroup from './button-group';
|
|
|
|
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 };
|
|
|
|
Button.Group = ButtonGroup;
|
|
|
|
/* istanbul ignore next */
|
|
Button.install = function (app: App) {
|
|
app.component(Button.name, Button);
|
|
app.component(ButtonGroup.name, ButtonGroup);
|
|
return app;
|
|
};
|
|
|
|
export { ButtonGroup };
|
|
|
|
export default Button as typeof Button &
|
|
Plugin & {
|
|
readonly Group: typeof ButtonGroup;
|
|
};
|