mirror of https://github.com/ElemeFE/element
Loading: keep loading text sync with element-loading-text attribute #2272
parent
f2afb71a81
commit
e467da0722
|
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue