Aug
21
element tree显示横向滚动条
tommyhu , 17:49 , 大前端 » vue.js , Comments(0) , Trackbacks(0) , Reads(2686) , Via Original
Large | Medium | Small


本文基于 "element-ui": "^2.4.3", tree控件文档:https://element.faas.ele.me/#/zh-CN/component/tree#tree-shu-xing-kong-jian
这是个坑,如果遇到这个问题,先到git上看下人家的bug fix:https://github.com/ElemeFE/element/issues/4944
然并卵,我这没搞定,通过下面方法搞定

具体操作:
1、在tree外包一层div,给class=‘tree’
2、定义tree的样式
3、重写tree样式
代码:
template
style
▲返回顶部
Last modified by tommyhu on2018/08/21 17:49
这是个坑,如果遇到这个问题,先到git上看下人家的bug fix:https://github.com/ElemeFE/element/issues/4944
然并卵,我这没搞定,通过下面方法搞定
具体操作:
1、在tree外包一层div,给class=‘tree’
2、定义tree的样式
3、重写tree样式
代码:
template
style
▲返回顶部
Last modified by tommyhu on2018/08/21 17:49
