mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
11 lines
255 B
TypeScript
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 }
|