2021-12-10 17:52:11 +08:00
|
|
|
import { Loading } from './src/service'
|
|
|
|
import { vLoading } from './src/directive'
|
2021-08-24 13:36:48 +08:00
|
|
|
|
|
|
|
import type { App } from 'vue'
|
|
|
|
|
|
|
|
// installer and everything in all
|
2021-12-10 17:52:11 +08:00
|
|
|
export const ElLoading = {
|
2021-08-24 13:36:48 +08:00
|
|
|
install(app: App) {
|
|
|
|
app.directive('loading', vLoading)
|
|
|
|
app.config.globalProperties.$loading = Loading
|
|
|
|
},
|
|
|
|
directive: vLoading,
|
|
|
|
service: Loading,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ElLoading
|
2022-03-15 00:13:57 +08:00
|
|
|
export { vLoading, vLoading as ElLoadingDirective, Loading as ElLoadingService }
|
2021-08-24 13:36:48 +08:00
|
|
|
|
2021-12-10 17:52:11 +08:00
|
|
|
export * from './src/types'
|