fix:拖拽列宽报错问题

This commit is contained in:
yangchch6 2019-12-24 14:29:26 +08:00
parent b8872d9e44
commit 2f0d76d36d
4 changed files with 4 additions and 4 deletions

View File

@ -485,7 +485,7 @@ var TableHeader = function (_Component) {
da.children,
// && columIndex != _rowLeng
dragborder && da.key != lastObj.key ? _react2["default"].createElement(
dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement(
"div",
{ ref: function ref(el) {
return _this6.gap = el;

2
dist/demo.js vendored
View File

@ -52097,7 +52097,7 @@
da.children,
// && columIndex != _rowLeng
dragborder && da.key != lastObj.key ? _react2["default"].createElement(
dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement(
"div",
{ ref: function ref(el) {
return _this6.gap = el;

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -805,7 +805,7 @@ class TableHeader extends Component {
{da.children}
{
// && columIndex != _rowLeng
dragborder && da.key != lastObj.key ? <div ref={el => (this.gap = el)} data-line-key={da.key}
dragborder && lastObj && da.key != lastObj.key ? <div ref={el => (this.gap = el)} data-line-key={da.key}
data-line-index={columIndex} data-th-width={da.width}
data-type="online" className = {`${clsPrefix}-thead-th-drag-gap`}>
<div className='online' /></div>:""