|
|
@ -12,9 +12,9 @@ Demo.Button = BI.inherit(BI.Widget, { |
|
|
|
height: 30, |
|
|
|
height: 30, |
|
|
|
handler() { |
|
|
|
handler() { |
|
|
|
console.log("触发点击事件"); |
|
|
|
console.log("触发点击事件"); |
|
|
|
this.setLoading(); |
|
|
|
this.loading(); |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.setLoaded(); |
|
|
|
this.loaded(); |
|
|
|
}, 5 * 1000); |
|
|
|
}, 5 * 1000); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
@ -305,9 +305,9 @@ Demo.Button = BI.inherit(BI.Widget, { |
|
|
|
text: "带加载的按钮", |
|
|
|
text: "带加载的按钮", |
|
|
|
handler() { |
|
|
|
handler() { |
|
|
|
console.log("触发点击事件"); |
|
|
|
console.log("触发点击事件"); |
|
|
|
this.setLoading(); |
|
|
|
this.loading(); |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.setLoaded(); |
|
|
|
this.loaded(); |
|
|
|
}, 5 * 1000); |
|
|
|
}, 5 * 1000); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
@ -316,9 +316,9 @@ Demo.Button = BI.inherit(BI.Widget, { |
|
|
|
iconCls: "circle-close-font", |
|
|
|
iconCls: "circle-close-font", |
|
|
|
handler() { |
|
|
|
handler() { |
|
|
|
console.log("触发点击事件"); |
|
|
|
console.log("触发点击事件"); |
|
|
|
this.setLoading(); |
|
|
|
this.loading(); |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.setLoaded(); |
|
|
|
this.loaded(); |
|
|
|
}, 5 * 1000); |
|
|
|
}, 5 * 1000); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
@ -328,9 +328,9 @@ Demo.Button = BI.inherit(BI.Widget, { |
|
|
|
iconCls: "circle-close-font", |
|
|
|
iconCls: "circle-close-font", |
|
|
|
handler() { |
|
|
|
handler() { |
|
|
|
console.log("触发点击事件"); |
|
|
|
console.log("触发点击事件"); |
|
|
|
this.setLoading(); |
|
|
|
this.loading(); |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.setLoaded(); |
|
|
|
this.loaded(); |
|
|
|
}, 5 * 1000); |
|
|
|
}, 5 * 1000); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|