<el-tree v-if="orgDrawer" :data="orgTree" size="medium" ref="orgTree" highlight-current :props="defaultProps" :expand-on-click-node="false" @current-change="currentChange" node-key="id" :default-expanded-keys="expandKeys" > <span :class="['custom-tree-node',data.disabled?'disabled':'']" slot-scope="{ node, data }" @click="selectNode($event,node,data)"> <span>{{ node.label }}</span> <span><i></i></span> <span :style="{'position':'absolute',left:0,width:(node.level-1)*18+'px',height:'32px'}"></span> </span> </el-tree>
通过el-tree 实现每次可选中一个节点方案(非checkbox)
内容版权声明:除非注明,否则皆为本站原创文章。