@netless/telebox-insider 0.2.30 → 0.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1553,6 +1553,11 @@ class TeleBox {
|
|
|
1553
1553
|
const containerRect$ = createVal(containerRect, shallowequal);
|
|
1554
1554
|
const collectorRect$ = createVal(collectorRect, shallowequal);
|
|
1555
1555
|
const title$ = createVal(title);
|
|
1556
|
+
title$.reaction((title2, _, skipUpdate) => {
|
|
1557
|
+
if (!skipUpdate) {
|
|
1558
|
+
this.titleBar.setTitle(title2);
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1556
1561
|
const visible$ = createVal(visible);
|
|
1557
1562
|
visible$.reaction((visible2, _, skipUpdate) => {
|
|
1558
1563
|
if (!skipUpdate && !visible2) {
|
|
@@ -1957,7 +1962,11 @@ class TeleBox {
|
|
|
1957
1962
|
});
|
|
1958
1963
|
});
|
|
1959
1964
|
this._renderSideEffect.add(() => this._visible$.subscribe((visible) => {
|
|
1960
|
-
|
|
1965
|
+
if (visible) {
|
|
1966
|
+
this.$box.style.removeProperty("display");
|
|
1967
|
+
} else {
|
|
1968
|
+
this.$box.style.display = "none";
|
|
1969
|
+
}
|
|
1961
1970
|
}));
|
|
1962
1971
|
this._renderSideEffect.add(() => this._zIndex$.subscribe((zIndex) => {
|
|
1963
1972
|
this.$box.style.zIndex = String(zIndex);
|