本文实例为大家分享了vue实现树形菜单效果展示的具体代码,供大家参考,具体内容如下
vue *{ color:#585858; } #app{ min-height: 650px; } #app li{ list-style-type:none; } #app a{ text-decoration:none; } #app button{ width:100%; } #app ul{ padding:10px; } #app span{ cursor:pointer; } #tree{ border: 1px solid #ccc; min-height: 650px; width: 50%; margin:0; padding-top: 10px; background-color:#f2f2f2; position: absolute; top:0; left:0; } #tree li { display: block; padding: 0; margin: 0; border: 0; border-bottom: 1px solid #e5e5e5; min-height: 32px; line-height:32px; }
- {{ tree[i].open ? '-' : '+' }} {{v.city}}
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



