Commit 68e0573d authored by xifeiwu's avatar xifeiwu Committed by 杨奕

Loading: fix export default for loading directive to avoid grammar error (#9408)

parent aaf7a878
......@@ -4,7 +4,8 @@ import { addClass, removeClass, getStyle } from 'element-ui/src/utils/dom';
import afterLeave from 'element-ui/src/utils/after-leave';
const Mask = Vue.extend(Loading);
exports.install = Vue => {
const loadingDirective = {};
loadingDirective.install = Vue => {
if (Vue.prototype.$isServer) return;
const toggleLoading = (el, binding) => {
if (binding.value) {
......@@ -117,3 +118,5 @@ exports.install = Vue => {
}
});
};
export default loadingDirective;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment