element-plus/packages/loading/index.ts

11 lines
255 B
TypeScript
Raw Normal View History

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
}
2020-10-29 17:28:26 +08:00
export { Loading, vLoading }