0
我想使用Element UI
框架的加載服務。 我讀了documentation,但我很難弄清楚如何使用它。Vue.js - 加載服務 - 元素UI
讓我們舉個例子:如何只在對話框上的這個dialog
https://jsfiddle.net/5xmoxwsy/1/
的confirm
按鈕按下時顯示加載謝謝
我想使用Element UI
框架的加載服務。 我讀了documentation,但我很難弄清楚如何使用它。Vue.js - 加載服務 - 元素UI
讓我們舉個例子:如何只在對話框上的這個dialog
https://jsfiddle.net/5xmoxwsy/1/
的confirm
按鈕按下時顯示加載謝謝
添加裁判對話框:
ref="dialog"
綁定點擊方法在vm中:
@click="Confirm"
方法:
methods: {
Confirm() {
var self = this;
var loadingInstance = window.ELEMENT.Loading.service(
{
target: self.$refs.dialog.$el.querySelector('.el-dialog')
});
setTimeout(function(){
self.dialogFormVisible = false;
loadingInstance.close();
},1000);
}
}