element-plus/packages/loading/index.ts
2020-10-29 19:37:18 +08:00

11 lines
255 B
TypeScript

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