aio-table 6.0.1 → 6.1.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/index.js +18 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1602,22 +1602,36 @@ var AIOTableCell = /*#__PURE__*/function (_Component7) {
|
|
|
1602
1602
|
minWidth = _column$minWidth === void 0 ? '30px' : _column$minWidth;
|
|
1603
1603
|
var _this$context14 = this.context,
|
|
1604
1604
|
rowHeight = _this$context14.rowHeight,
|
|
1605
|
-
striped = _this$context14.striped
|
|
1605
|
+
striped = _this$context14.striped,
|
|
1606
|
+
_this$context14$getCe = _this$context14.getCellStyle,
|
|
1607
|
+
getCellStyle = _this$context14$getCe === void 0 ? function () {
|
|
1608
|
+
return {};
|
|
1609
|
+
} : _this$context14$getCe;
|
|
1606
1610
|
var style = {
|
|
1607
1611
|
height: rowHeight,
|
|
1608
1612
|
overflow: template ? undefined : 'hidden',
|
|
1609
1613
|
minWidth: minWidth
|
|
1610
1614
|
};
|
|
1611
1615
|
|
|
1612
|
-
if (
|
|
1613
|
-
|
|
1616
|
+
if (row._index % 2 === 0) {
|
|
1617
|
+
if (typeof striped === 'string') {
|
|
1618
|
+
style.background = striped;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
if (Array.isArray(striped)) {
|
|
1622
|
+
style.background = striped[0];
|
|
1623
|
+
style.color = striped[1];
|
|
1624
|
+
}
|
|
1614
1625
|
}
|
|
1615
1626
|
|
|
1616
1627
|
if (column.template === 'gantt') {
|
|
1617
1628
|
style.padding = "0 ".concat(padding);
|
|
1618
1629
|
}
|
|
1619
1630
|
|
|
1620
|
-
|
|
1631
|
+
var cellStyle = getCellStyle(row, column);
|
|
1632
|
+
return { ...style,
|
|
1633
|
+
cellStyle: cellStyle
|
|
1634
|
+
};
|
|
1621
1635
|
}
|
|
1622
1636
|
}, {
|
|
1623
1637
|
key: "getClassName",
|