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

26 lines
720 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 Button from './button';
import ButtonGroup from './button-group';
2017-10-26 07:18:08 +00: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 03:33:27 +00:00
Button.Group = ButtonGroup;
/* istanbul ignore next */
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
2021-06-30 05:48:02 +00:00
export { ButtonGroup };
2020-11-01 07:03:33 +00:00
export default Button as typeof Button &
Plugin & {
readonly Group: typeof ButtonGroup;
};