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