element-plus/packages/loading/index.ts
zazzaz b19d2fc374
fix: correct bundle export (#630)
* fix: correct bundle export

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update
2020-11-20 20:24:16 +08:00

13 lines
279 B
TypeScript

import { App } from 'vue'
import Loading from './src/index'
import vLoading from './src/directive'
export default {
install(app: App) {
app.directive('loading', vLoading)
app.config.globalProperties.$loading = Loading
},
directive: vLoading,
service: Loading,
}