hy-virtual-tree 2.0.17 → 2.0.18

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,11 @@
1
1
  ## Changelog
2
2
 
3
+ ### 2.0.18
4
+
5
+ _2026-05-15_
6
+
7
+ (1)修复 channel 业务类型的 updateTree 问题
8
+
3
9
  ### 2.0.17
4
10
 
5
11
  _2026-05-15_
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* hy-virtual-tree v2.0.17 */
1
+ /* hy-virtual-tree v2.0.18 */
2
2
  import './svg_bundle.js';
3
3
  const isString = (e) => typeof e === 'string';
4
4
  const isNumber = (e) => typeof e === 'number';
@@ -9290,9 +9290,9 @@ function updateDeviceChannelTree(tree, data, config) {
9290
9290
  // 通道
9291
9291
  if (v.channelId) {
9292
9292
  const channel = channelMap.get(v.channelId);
9293
- const channelParent = channel.parent;
9294
- if (!channel || !parent)
9293
+ if (!channel || !channel.parent)
9295
9294
  return;
9295
+ const channelParent = channel.parent;
9296
9296
  Object.assign(channel, {
9297
9297
  data: {
9298
9298
  ...channel.data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-virtual-tree",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",