RuoYi
2024-09-11 1c2da6dfb1e23fa38c58ada5d7e98f91ae2d738e
src/components/TreeSelect/index.vue
@@ -82,14 +82,14 @@
function initHandle() {
  nextTick(() => {
    const selectedValue = valueId.value;
    if(selectedValue && selectedValue !== null && typeof (selectedValue) !== "undefined"){
    if(selectedValue !== null && typeof (selectedValue) !== 'undefined') {
      const node = proxy.$refs.selectTree.getNode(selectedValue)
      if (node) {
        valueTitle.value = node.data[props.objMap.label]
        proxy.$refs.selectTree.setCurrentKey(selectedValue) // 设置默认选中
        defaultExpandedKey.value = [selectedValue] // 设置默认展开
      }
    }else{
    } else {
      clearHandle()
    }
  })
@@ -140,7 +140,7 @@
  font-weight: normal;
}
ul li  .el-tree .el-tree-node__content {
ul li .el-tree .el-tree-node__content {
  height: auto;
  padding: 0 20px;
  box-sizing: border-box;