1、安装 npm install --save @riophae/vue-treeselect 然后在页面中引入 // import the component import Treeselect from '@riophae/vue-treeselect' // import the styles import '@riophae/vue-treeselect/dist/vue-treeselect.css options" />
修复后的效果如下,之前就是table行内服务包类型的vue-treeselect无效 其实只要在treeselect组件里加上2个参数 <treeselect append-to-body z-index
在使用vue和museui构建移动站的时候发现museui中没有树状结构的UI组件,因业务需求,项目中的组织结构是树状结构,在npm中找到 vue-treeselect ,第一次使用 labelClassName">
{{ node.label }}
</label>
</treeselect>
那就只能通过对数据进行处理得到 vue-treeselect