You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
459 B
27 lines
459 B
2 years ago
|
import { shortcut, Widget } from "@/core";
|
||
|
|
||
|
@shortcut()
|
||
|
export class JokerIcon extends Widget {
|
||
|
static xtype = "demo.joker.icon";
|
||
|
|
||
|
render() {
|
||
|
const self = this;
|
||
|
|
||
|
return {
|
||
|
type: "bi.label",
|
||
|
cls: "anim-rotate",
|
||
|
ref (ref) {
|
||
|
self.text = ref;
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
|
||
|
loading() {
|
||
|
this.text.setText("🤡");
|
||
|
}
|
||
|
|
||
|
loaded() {
|
||
|
this.text.setText("");
|
||
|
}
|
||
|
}
|