@hypericon/mico 0.3.17 → 0.3.19
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.
|
@@ -215,10 +215,12 @@ function createTree() {
|
|
|
215
215
|
toggleButtonWidth: attrs.toggleButtonWidth,
|
|
216
216
|
});
|
|
217
217
|
}),
|
|
218
|
-
(canHaveChildren && !hasChildren && emptyChildrenMessage !== undefined)
|
|
219
|
-
? (0, mithril_1.default)("span.mico-tree-empty-children", emptyChildrenMessage)
|
|
220
|
-
: [],
|
|
221
218
|
]) : [],
|
|
219
|
+
(canHaveChildren && !hasChildren && expanded && emptyChildrenMessage !== undefined) ? [
|
|
220
|
+
(0, mithril_1.default)("span.mico-tree-empty-children", {
|
|
221
|
+
style: `margin-left: ${attrs.toggleButtonWidth};`,
|
|
222
|
+
}, emptyChildrenMessage)
|
|
223
|
+
] : [],
|
|
222
224
|
]);
|
|
223
225
|
}
|
|
224
226
|
};
|