This commit is contained in:
lchen committed 2024-07-10 12:19:52 +08:00
1 parent 5baf00de64
commit adbf4750cc
16 files changed
+1176 -722

No files matched your search

+21 -1
View File
@@ -46,6 +46,24 @@ function offset(e) {
};
}
class OptionBase {
_option;
r;
constructor(opt) {
this._option = opt;
const getText = opt.getText;
if (typeof getText === 'function') {
this.r = getText;
} else if (typeof GetTextByKey === 'function') {
this.r = GetTextByKey;
} else {
this.r = utility.r;
}
}
}
export {
createElement,
// icon
@@ -99,5 +117,7 @@ export {
utility,
// functions
requestAnimationFrame,
offset
offset,
// base classes
OptionBase
}