mat tree changes direction from right to left. The bottom border needs to be removed refer to the Image https://stackblitz.com/edit/material-tree-nested-sndfhl?file=app%2Fapp.component.css
mat tree changes direction from right to left. The bottom border needs to be removed refer to the Image https://stackblitz.com/edit/material-tree-nested-sndfhl?file=app%2Fapp.component.css
当你打开你的树形项目时,比你当前的css效果更好,请在styles.scss
中添加下面的scss
mat-nested-tree-node{
&[aria-expanded="true"]{
& > li {
border-bottom: none;
}
}
}
或者只需在组件的.css
文件中添加下面的css
mat-nested-tree-node[aria-expanded="true"] > li {
border-bottom: none;
}