wsfe / vue-tree

使用虚拟列表优化的 Vue 树组件 Vue tree component optimized using virtual list
https://wsfe.github.io/vue-tree/
MIT License
176 stars 32 forks source link

v3.2.0版本,底层节点会显示展开图标 #80

Closed wang-pengju closed 2 months ago

wang-pengju commented 9 months ago

Bug 描述 v3.2.0版本,底层节点会显示展开图标 路径:/src/components/TreeNode.vue

// v3.2.0版本
const expandCls = computed(() => {
      return [
        `${prefixCls}__square`,
        `${prefixCls}__expand`,
        {
          [`${prefixCls}__expand_active`]: props.data?.expand
        }
      ]
    })
// v3.1.0版本
const expandCls = computed(() => {
      return [
        `${prefixCls}__square`
        {
          [`${prefixCls}__expand_active`]: props.data?.expand
        }
      ]
    })
ChuChencheng commented 9 months ago

什么意思呢,能清晰描述一下你遇到的问题,并给个复现示例吗