ant-design-vue/components/float-button/index.ts
2023-03-03 16:58:47 +08:00

43 lines
1008 B
TypeScript

import type { App, Plugin } from 'vue';
import FloatButton from './FloatButton';
import FloatButtonGroup from './FloatButtonGroup';
import BackTop from './BackTop';
import type {
FloatButtonProps,
FloatButtonShape,
FloatButtonType,
FloatButtonGroupProps,
BackTopProps,
} from './interface';
import type { SizeType as FloatButtonSize } from '../config-provider';
export type {
FloatButtonProps,
FloatButtonShape,
FloatButtonType,
FloatButtonGroupProps,
BackTopProps,
FloatButtonSize,
};
FloatButton.Group = FloatButtonGroup;
FloatButton.BackTop = BackTop;
/* istanbul ignore next */
FloatButton.install = function (app: App) {
app.component(FloatButton.name, FloatButton);
app.component(FloatButtonGroup.name, FloatButtonGroup);
app.component(BackTop.name, BackTop);
return app;
};
export { FloatButtonGroup, BackTop };
export default FloatButton as typeof FloatButton &
Plugin & {
readonly Group: typeof FloatButtonGroup;
readonly BackTop: typeof BackTop;
};