Update: PageBase class中增加Tab栏标记状态设置
This commit is contained in:
@@ -39,7 +39,6 @@ class StatusBarLibs extends PageBase {
|
||||
}
|
||||
|
||||
#manager_ = null;
|
||||
#$close_ = null;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
@@ -56,8 +55,7 @@ class StatusBarLibs extends PageBase {
|
||||
init() {
|
||||
this.addDirty();
|
||||
const $tab = this.getTab();
|
||||
this.#$close_ = $tab.find('.chrome-tab-close');
|
||||
this.#$close_.addClass('layui-badge-dot layui-bg-blue');
|
||||
this.setMarkStatus('negative');
|
||||
}
|
||||
|
||||
getManager() {
|
||||
@@ -78,6 +76,12 @@ class StatusBarLibs extends PageBase {
|
||||
this.#manager_.onUnmounted();
|
||||
super.onUnmounted();
|
||||
}
|
||||
|
||||
dispose() {
|
||||
this.#manager_.dispose();
|
||||
this.#manager_ = null;
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Mixly.StatusBarLibs = StatusBarLibs;
|
||||
|
||||
Reference in New Issue
Block a user