fix(固定列样式问题):

This commit is contained in:
wanghaoo 2018-12-26 14:33:22 +08:00
parent 0e4b450f79
commit 538d59f293
4 changed files with 4 additions and 4 deletions

View File

@ -732,7 +732,7 @@ var Table = function (_Component) {
width = width + contentWidthDiff;
}
if (!fixed && c.fixed) {
fixedClass = _this3.props.clsPrefix + '-row-fixed-columns-in-body';
fixedClass = ' ' + _this3.props.clsPrefix + '-row-fixed-columns-in-body';
}
return _react2["default"].createElement('col', { key: c.key, style: { width: width, minWidth: c.width }, className: fixedClass });
}));

View File

@ -109,7 +109,7 @@ var TableCell = function (_Component) {
}
//不是固定表格并且当前列是固定,则隐藏当前列
if (column.fixed && !fixed) {
className = className + (clsPrefix + '-fixed-columns-in-body');
className = className + (' ' + clsPrefix + '-fixed-columns-in-body');
}
return _react2["default"].createElement(
'td',

View File

@ -631,7 +631,7 @@ var TableHeader = function (_Component) {
var canDotDrag = "";
//主表格下、固定列或者是过滤行中含有固定列时添加该属性
if (!fixed && (da.fixed || filterable && index == rows.length - 1 && rows[0][columIndex].fixed)) {
fixedStyle = clsPrefix + "-row-fixed-columns-in-body";
fixedStyle = " " + clsPrefix + "-row-fixed-columns-in-body";
}
if (lastShowIndex == columIndex) {

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "1.6.18",
"version": "1.6.19",
"description": "Table ui component for react",
"keywords": [
"react",