fix:拖拽列宽报错问题
This commit is contained in:
parent
b8872d9e44
commit
2f0d76d36d
|
@ -485,7 +485,7 @@ var TableHeader = function (_Component) {
|
||||||
da.children,
|
da.children,
|
||||||
|
|
||||||
// && columIndex != _rowLeng
|
// && columIndex != _rowLeng
|
||||||
dragborder && da.key != lastObj.key ? _react2["default"].createElement(
|
dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement(
|
||||||
"div",
|
"div",
|
||||||
{ ref: function ref(el) {
|
{ ref: function ref(el) {
|
||||||
return _this6.gap = el;
|
return _this6.gap = el;
|
||||||
|
|
|
@ -52097,7 +52097,7 @@
|
||||||
da.children,
|
da.children,
|
||||||
|
|
||||||
// && columIndex != _rowLeng
|
// && columIndex != _rowLeng
|
||||||
dragborder && da.key != lastObj.key ? _react2["default"].createElement(
|
dragborder && lastObj && da.key != lastObj.key ? _react2["default"].createElement(
|
||||||
"div",
|
"div",
|
||||||
{ ref: function ref(el) {
|
{ ref: function ref(el) {
|
||||||
return _this6.gap = el;
|
return _this6.gap = el;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -805,7 +805,7 @@ class TableHeader extends Component {
|
||||||
{da.children}
|
{da.children}
|
||||||
{
|
{
|
||||||
// && columIndex != _rowLeng
|
// && 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-line-index={columIndex} data-th-width={da.width}
|
||||||
data-type="online" className = {`${clsPrefix}-thead-th-drag-gap`}>
|
data-type="online" className = {`${clsPrefix}-thead-th-drag-gap`}>
|
||||||
<div className='online' /></div>:""
|
<div className='online' /></div>:""
|
||||||
|
|
Loading…
Reference in New Issue