hy-virtual-tree 2.0.4 → 2.0.5

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  ## Changelog
2
2
 
3
+ ### 2.0.5
4
+
5
+ _2026-03-13_
6
+
7
+ - 扩展[VirtualTree] 功能
8
+ (1)修复 renderIcon 自定义图标显示问题
9
+
3
10
  ### 2.0.4
4
11
 
5
12
  _2026-03-12_
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* hy-virtual-tree v2.0.4 */
1
+ /* hy-virtual-tree v2.0.5 */
2
2
  import './svg_bundle.js';
3
3
  const isString = (e) => typeof e === 'string';
4
4
  const isNumber = (e) => typeof e === 'number';
@@ -9042,8 +9042,9 @@ const customRender = (options) => {
9042
9042
  }
9043
9043
  if (isBoolean(value) && value) {
9044
9044
  value = defaultFn && isFunction(defaultFn) ? defaultFn(node.data, node) : undefined;
9045
- if (value && parent) {
9046
- value.mount(parent);
9045
+ if (value) {
9046
+ className && value.el.classList.add(className);
9047
+ parent && value.mount(parent);
9047
9048
  }
9048
9049
  return value;
9049
9050
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-virtual-tree",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",