gantt-task-react-powern 0.4.39 → 0.4.40
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/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/types/public-types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -374,10 +374,12 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
374
374
|
}, tasks.map(function (t) {
|
|
375
375
|
var expanderSymbol = "";
|
|
376
376
|
|
|
377
|
-
if (t.
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
if (t.childrenCount && t.childrenCount > 0) {
|
|
378
|
+
if (t.hideChildren === false) {
|
|
379
|
+
expanderSymbol = "▼";
|
|
380
|
+
} else if (t.hideChildren === true) {
|
|
381
|
+
expanderSymbol = "►";
|
|
382
|
+
}
|
|
381
383
|
}
|
|
382
384
|
|
|
383
385
|
return React.createElement("div", {
|
|
@@ -398,7 +400,7 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
398
400
|
style: {
|
|
399
401
|
paddingLeft: t.depth * 4 + "px"
|
|
400
402
|
}
|
|
401
|
-
}, React.createElement("div", {
|
|
403
|
+
}, t.childrenCount && t.childrenCount > 0 && React.createElement("div", {
|
|
402
404
|
className: styles$1.taskListExpander,
|
|
403
405
|
onClick: function onClick() {
|
|
404
406
|
return onExpanderClick(t);
|