@lvce-editor/explorer-view 7.19.1 → 7.21.0
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.
- package/dist/explorerViewWorkerMain.js +19 -16
- package/package.json +1 -1
|
@@ -7058,15 +7058,16 @@ const Input = 6;
|
|
|
7058
7058
|
const Img = 17;
|
|
7059
7059
|
const P = 50;
|
|
7060
7060
|
|
|
7061
|
+
const errorMessageNode = {
|
|
7062
|
+
childCount: 1,
|
|
7063
|
+
className: mergeClassNames(ExplorerErrorMessage),
|
|
7064
|
+
type: Div
|
|
7065
|
+
};
|
|
7061
7066
|
const getErrorMessageDom = errorMessage => {
|
|
7062
7067
|
if (!errorMessage) {
|
|
7063
7068
|
return [];
|
|
7064
7069
|
}
|
|
7065
|
-
return [
|
|
7066
|
-
childCount: 1,
|
|
7067
|
-
className: mergeClassNames(ExplorerErrorMessage),
|
|
7068
|
-
type: Div
|
|
7069
|
-
}, text(errorMessage)];
|
|
7070
|
+
return [errorMessageNode, text(errorMessage)];
|
|
7070
7071
|
};
|
|
7071
7072
|
|
|
7072
7073
|
const HandleButtonClick = 18;
|
|
@@ -7189,16 +7190,17 @@ const label = {
|
|
|
7189
7190
|
className: Label,
|
|
7190
7191
|
type: Div
|
|
7191
7192
|
};
|
|
7193
|
+
const dimmedLabel = {
|
|
7194
|
+
childCount: 1,
|
|
7195
|
+
className: mergeClassNames(Label, LabelCut),
|
|
7196
|
+
type: Div
|
|
7197
|
+
};
|
|
7192
7198
|
const getLabelDom = (isEditing, name, isDimmed) => {
|
|
7193
7199
|
if (isEditing) {
|
|
7194
7200
|
return [];
|
|
7195
7201
|
}
|
|
7196
7202
|
if (isDimmed) {
|
|
7197
|
-
return [
|
|
7198
|
-
childCount: 1,
|
|
7199
|
-
className: mergeClassNames(Label, LabelCut),
|
|
7200
|
-
type: Div
|
|
7201
|
-
}, text(name)];
|
|
7203
|
+
return [dimmedLabel, text(name)];
|
|
7202
7204
|
}
|
|
7203
7205
|
return [label, text(name)];
|
|
7204
7206
|
};
|
|
@@ -7324,17 +7326,18 @@ const scrollBarThumbNode = {
|
|
|
7324
7326
|
className: ScrollBarThumb,
|
|
7325
7327
|
type: Div
|
|
7326
7328
|
};
|
|
7329
|
+
const scrollBarNode = {
|
|
7330
|
+
childCount: 1,
|
|
7331
|
+
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
7332
|
+
onPointerDown: HandleScrollBarPointerDown,
|
|
7333
|
+
type: Div
|
|
7334
|
+
};
|
|
7327
7335
|
const getScrollBarVirtualDom = scrollBarHeight => {
|
|
7328
7336
|
const shouldShowScrollbar = scrollBarHeight > 0;
|
|
7329
7337
|
if (!shouldShowScrollbar) {
|
|
7330
7338
|
return [];
|
|
7331
7339
|
}
|
|
7332
|
-
return [
|
|
7333
|
-
childCount: 1,
|
|
7334
|
-
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
7335
|
-
onPointerDown: HandleScrollBarPointerDown,
|
|
7336
|
-
type: Div
|
|
7337
|
-
}, scrollBarThumbNode];
|
|
7340
|
+
return [scrollBarNode, scrollBarThumbNode];
|
|
7338
7341
|
};
|
|
7339
7342
|
|
|
7340
7343
|
const getParentNode = childCount => {
|