vue-treeselect只能选择叶子节点,不能选中父节点

废话不说,直接上代码:

 <el-form-item label="归属公司" prop="custId">
              <treeselect
                v-model="form.custId"
                :options="deptOptions"
                :show-count="true"
                placeholder="请选择归属公司"
                :disable-branch-nodes="true"
              />
            </el-form-item>

:disable-branch-nodes=“true”

猜你喜欢

转载自blog.csdn.net/fd2025/article/details/125314073