hy-virtual-tree 1.1.19 → 1.1.20
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 -0
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1680,7 +1680,11 @@ class VirtualTree {
|
|
|
1680
1680
|
value = defaultFn && isFunction(defaultFn) && defaultFn(node.data, node);
|
|
1681
1681
|
}
|
|
1682
1682
|
else {
|
|
1683
|
-
|
|
1683
|
+
let dom = fn(node.data, node);
|
|
1684
|
+
if (isObject(dom) && dom.el) {
|
|
1685
|
+
$destroy = dom.$destroy;
|
|
1686
|
+
dom = dom.el;
|
|
1687
|
+
}
|
|
1684
1688
|
if (isBoolean(dom) && dom) {
|
|
1685
1689
|
value = defaultFn && isFunction(defaultFn) && defaultFn(node.data, node);
|
|
1686
1690
|
}
|