hy-virtual-tree 2.3.0 → 2.3.1
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 +7 -1
- package/dist/index.js +8 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hy-virtual-tree v2.3.
|
|
1
|
+
/* hy-virtual-tree v2.3.1 */
|
|
2
2
|
import './svg_bundle.js';
|
|
3
3
|
const isString = (e) => typeof e === 'string';
|
|
4
4
|
const isNumber = (e) => typeof e === 'number';
|
|
@@ -9096,11 +9096,16 @@ const getLabelHandler = (data, node, config) => {
|
|
|
9096
9096
|
const useContent = (data, node, config) => {
|
|
9097
9097
|
return createVNode('div', (vnode) => {
|
|
9098
9098
|
const label = getLabelHandler(data, node, config);
|
|
9099
|
-
|
|
9099
|
+
if (isElement(label)) {
|
|
9100
|
+
vnode.el.appendChild(label);
|
|
9101
|
+
}
|
|
9102
|
+
else {
|
|
9103
|
+
vnode.el.innerHTML = label;
|
|
9104
|
+
}
|
|
9100
9105
|
if (label) {
|
|
9101
9106
|
const tooltip = new Tooltip({
|
|
9102
9107
|
bind: vnode.el,
|
|
9103
|
-
content:
|
|
9108
|
+
content: vnode.el.textContent,
|
|
9104
9109
|
placement: 'top',
|
|
9105
9110
|
trigger: 'hover-overflow'
|
|
9106
9111
|
});
|