hy-virtual-tree 2.0.5 → 2.0.6
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.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +23 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hy-virtual-tree v2.0.
|
|
1
|
+
/* hy-virtual-tree v2.0.6 */
|
|
2
2
|
import './svg_bundle.js';
|
|
3
3
|
const isString = (e) => typeof e === 'string';
|
|
4
4
|
const isNumber = (e) => typeof e === 'number';
|
|
@@ -7162,27 +7162,38 @@ class Tooltip {
|
|
|
7162
7162
|
break;
|
|
7163
7163
|
}
|
|
7164
7164
|
}
|
|
7165
|
-
hide() {
|
|
7165
|
+
hide(isRealTime = false) {
|
|
7166
7166
|
this._openTimer && clearTimeout(this._openTimer);
|
|
7167
7167
|
this._closeTimer && clearTimeout(this._closeTimer);
|
|
7168
|
-
|
|
7168
|
+
if (isRealTime) {
|
|
7169
7169
|
if (!this._el)
|
|
7170
7170
|
return;
|
|
7171
|
-
this._el.
|
|
7172
|
-
this.
|
|
7171
|
+
this._el.style.setProperty('top', '-10000px');
|
|
7172
|
+
this._el.style.setProperty('left', '-10000px');
|
|
7173
|
+
if (!this._el.parentElement)
|
|
7174
|
+
return;
|
|
7175
|
+
this._el.parentElement.removeChild(this._el);
|
|
7176
|
+
}
|
|
7177
|
+
else {
|
|
7173
7178
|
this._closeTimer = setTimeout(() => {
|
|
7174
7179
|
if (!this._el)
|
|
7175
7180
|
return;
|
|
7176
|
-
this._el.
|
|
7177
|
-
this.
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
+
this._el.classList.remove('hy-tooltip-show');
|
|
7182
|
+
this._closeTimer && clearTimeout(this._closeTimer);
|
|
7183
|
+
this._closeTimer = setTimeout(() => {
|
|
7184
|
+
if (!this._el)
|
|
7185
|
+
return;
|
|
7186
|
+
this._el.style.setProperty('top', '-10000px');
|
|
7187
|
+
this._el.style.setProperty('left', '-10000px');
|
|
7188
|
+
if (!this._el.parentElement)
|
|
7189
|
+
return;
|
|
7190
|
+
this._el.parentElement.removeChild(this._el);
|
|
7191
|
+
}, 200);
|
|
7181
7192
|
}, 200);
|
|
7182
|
-
}
|
|
7193
|
+
}
|
|
7183
7194
|
}
|
|
7184
7195
|
destroy() {
|
|
7185
|
-
this.hide();
|
|
7196
|
+
this.hide(true);
|
|
7186
7197
|
this._timer && clearTimeout(this._timer);
|
|
7187
7198
|
this._trigger && this._trigger.destroy();
|
|
7188
7199
|
this._el = undefined;
|