<el-tree class="tree-line" :data="treeOption" :props="defaultProps" @node-click="getCurrentNode" >
利用样式添加虚线指示
.el-tree-style{
/deep/ .el-tree-node {
position: relative;
}
/deep/ .el-tree-node__children {
padding-left: 16px;
}
/deep/ .el-tree-node::before {
content: '';
height: 100%;
width: 1px;
position: absolute;
left: 30px;
top: 0;
border-width: 1px;
border-left: 1px dashed #ddd;
}
/deep/ .el-tree-node:last-child::before {
height: 38px;
}
/deep/ .el-tree-node::after {
content: '';
width: 15px;
height: 20px;
position: absolute;
left: 30px;
top: 12px;
border-width: 1px;
border-top: 1px dashed #ddd;
}
& > .el-tree-node::after {
border-top: none;
}
& > .el-tree-node::before {
border-left: none;
}
.el-tree-node__expand-icon {
font-size: 16px;
&.is-leaf {
color: transparent;
}
}
}
上面是“el-tree组件如何添加虚线指示”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_4410.html
workflows工作流
一位老人安详地坐在云层中钓鱼
一个白色的咖啡杯,蒸汽从杯子里冒出来
一张超现实主义美女照片ComfyUI工作流
蘑菇屋,梦幻家园comfyui工作流
一桌精致的美食,桌上几杯白葡萄酒
1个粉红色头发可爱的女孩ComfyUI工作流
大黄蜂空中决战ComfyUI工作流
一只千纸鹤坐在路上哭泣ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

html5如何3D立方体旋转特效
barcode条形码/qrcode二维码兼容所有浏览器(含ie6/ie7/ie8)
如何利用css3+js做一个下雨效果
利用CSS3代码编写45款按钮效果
jquery做一个漂亮挂墙动态时钟
利用css3做一个动态loading效果
css3画弹珠,可以滚动!
iframe开发admin后台







