需要lazy、 load 两个属性一起用 <el-tree:data="treeData":props="defaultProps":load="loadNode"@node-click="handleNodeClick"lazy> </el-tree> AI代码助手复制代码 data() {return{treeDataList: [],defaultProps: {id:'id',label:'name',children:'children',parentId:'parentId',isLeaf:false,// ...
<el-tree class="me_self_tree me_distributeTree" node-key="treeId" :data="treeData" ref="treeL" :indent="25" :props="props1" :load="loadNode1" lazy :highlight-current="true" :expand-on-click-node="false" @node-click="showQudao"> {{ node.label }} 上面的是我对tree的一些初始...
需要lazy、 load 两个属性一起用 <el-tree :data="treeData" :props="defaultProps" :load="loadNode" @node-click="handleNodeClick" lazy> </el-tree> data() { return { treeDataList: [], defaultProps: { id: 'id', label: 'name', children: 'children', parentId:'parentId', isLeaf: fa...