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

This commit is contained in:
imyzf
2017-03-08 11:47:47 +08:00
committed by 杨奕
parent f2afb71a81
commit e467da0722
2 changed files with 4 additions and 0 deletions

View File

@@ -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);
}
},