Commit e467da07 authored by imyzf's avatar imyzf Committed by 杨奕

Loading: keep loading text sync with element-loading-text attribute #2272

parent f2afb71a
......@@ -91,6 +91,7 @@ exports.install = Vue => {
update: function(el, binding) {
if (binding.oldValue !== binding.value) {
el.instance.setText(el.getAttribute('element-loading-text'));
toggleLoading(el, binding);
}
},
......
......@@ -28,6 +28,9 @@
methods: {
handleAfterLeave() {
this.$emit('after-leave');
},
setText(text) {
this.text = text;
}
}
};
......
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