Update framework

This commit is contained in:
2022-11-26 02:22:02 +01:00
parent 9a6ce1f832
commit ae057940af
508 changed files with 26011 additions and 14248 deletions

View File

@@ -0,0 +1,29 @@
import * as EventEmitter from 'eventemitter3';
export class BaseItem extends EventEmitter {
constructor(id, title) {
super();
this.id = id;
this.title = title;
}
getDOMNode() {
let node = document.createTextNode(this.title);
let element = document.createElement('div');
element.appendChild(node);
return element;
}
getContents() {
return;
}
onFocus(event) {
this.emit('focus', this.id);
}
focus() {
this.container && this.container.focus();
}
click() {
return;
}
getID() {
return this.id;
}
}