@lvce-editor/source-control-worker 3.16.1 → 3.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3914,6 +3914,9 @@ const getIconsDom = (icon, fileIcon) => {
|
|
|
3914
3914
|
if (icon === ChevronRight) {
|
|
3915
3915
|
return [chevron, getIconVirtualDom(icon)];
|
|
3916
3916
|
}
|
|
3917
|
+
if (!fileIcon) {
|
|
3918
|
+
return [];
|
|
3919
|
+
}
|
|
3917
3920
|
return [getFileIconVirtualDom(fileIcon)];
|
|
3918
3921
|
};
|
|
3919
3922
|
const createItemOther = item => {
|
|
@@ -3935,16 +3938,17 @@ const createItemOther = item => {
|
|
|
3935
3938
|
const dom = [];
|
|
3936
3939
|
const hasButtons = buttons.length;
|
|
3937
3940
|
const buttonsDom = getButtonsVirtualDom(buttons);
|
|
3941
|
+
const iconsDom = getIconsDom(icon, fileIcon);
|
|
3938
3942
|
const treeItemClassName = getTreeItemClassName(indent);
|
|
3939
3943
|
dom.push({
|
|
3940
3944
|
ariaPosInSet: posInSet,
|
|
3941
3945
|
ariaSetSize: setSize,
|
|
3942
|
-
childCount:
|
|
3946
|
+
childCount: 2 + (iconsDom.length > 0 ? 1 : 0) + (hasButtons ? 1 : 0),
|
|
3943
3947
|
className: treeItemClassName,
|
|
3944
3948
|
role: TreeItem$1,
|
|
3945
3949
|
title: file,
|
|
3946
3950
|
type: Div
|
|
3947
|
-
}, ...
|
|
3951
|
+
}, ...iconsDom);
|
|
3948
3952
|
const labelDom = {
|
|
3949
3953
|
childCount: 1,
|
|
3950
3954
|
className: labelClassName,
|