你可以试试下面的CSS。可能需要使用填充对齐。
修复涉及删除
display: flex
具有
block
和
inline-block
使其达到全宽。
最后,在孩子身上,我们使用
display: flex; justify-content: space-between
使元件首尾相连。
.custom-treeview .k-treeview-top,
.custom-treeview .k-treeview-mid,
.custom-treeview .k-treeview-bot {
display: block !important;
}
.custom-treeview .k-treeview-leaf {
display: inline-block !important;
width: 100% !important;
}
.custom-treeview .k-treeview-leaf > span {
display: flex !important;
justify-content: space-between !important;
}