2020-11-01 07:03:33 +00:00
|
|
|
import { App, Plugin } from 'vue';
|
2019-01-12 03:33:27 +00:00
|
|
|
import Spin, { setDefaultIndicator } from './Spin';
|
2018-02-09 09:09:50 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
export { SpinProps } from './Spin';
|
2018-09-05 13:28:54 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
Spin.setDefaultIndicator = setDefaultIndicator;
|
2018-09-19 05:21:57 +00:00
|
|
|
|
|
|
|
/* istanbul ignore next */
|
2020-10-13 14:59:24 +00:00
|
|
|
Spin.install = function(app: App) {
|
2020-06-04 07:04:39 +00:00
|
|
|
app.component(Spin.name, Spin);
|
2020-10-13 11:14:56 +00:00
|
|
|
return app;
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2018-09-19 05:21:57 +00:00
|
|
|
|
2020-11-01 07:03:33 +00:00
|
|
|
export default Spin as typeof Spin &
|
|
|
|
Plugin & {
|
|
|
|
readonly setDefaultIndicator: typeof setDefaultIndicator;
|
|
|
|
};
|