mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-06 05:59:46 +08:00
43 lines
1008 B
TypeScript
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;
|
|
};
|