forked from JavaScript/bee-table
fix: remove loading
This commit is contained in:
parent
7c9066da5b
commit
87ed08a724
|
@ -709,15 +709,8 @@ var TableRow = function (_Component) {
|
||||||
// key={hoverKey}
|
// key={hoverKey}
|
||||||
, ref: this.bindElement
|
, ref: this.bindElement
|
||||||
},
|
},
|
||||||
cells.length > 0 ? cells : isEmptyTr ? _react2["default"].createElement(
|
cells.length > 0 ? cells : isEmptyTr ? // loading暂时去掉
|
||||||
'td',
|
_react2["default"].createElement('td', { style: { width: 0, padding: 0 } }) : _react2["default"].createElement('td', { style: { width: 0, padding: 0 } })
|
||||||
{ className: 'loading-td ' + (isPre ? 'pre-td' : 'suf-td'), style: { width: tdStyle.width || 1200, height: tdStyle.height || 100 } },
|
|
||||||
_react2["default"].createElement(
|
|
||||||
'div',
|
|
||||||
{ style: { left: (containerWidth || 1200) / 2 - 23 }, className: 'loading-div ' + (isPre ? 'pre' : 'suf') },
|
|
||||||
'\u52A0\u8F7D\u4E2D...'
|
|
||||||
)
|
|
||||||
) : _react2["default"].createElement('td', { style: { width: 0, padding: 0 } })
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "2.3.15-beta.19",
|
"version": "2.3.15-beta.20",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
|
@ -580,11 +580,8 @@ class TableRow extends Component{
|
||||||
// key={hoverKey}
|
// key={hoverKey}
|
||||||
ref={this.bindElement}
|
ref={this.bindElement}
|
||||||
>
|
>
|
||||||
{cells.length > 0 ? cells : isEmptyTr ?
|
{cells.length > 0 ? cells : isEmptyTr ? // loading暂时去掉
|
||||||
<td className={`loading-td ${ isPre ? 'pre-td' : 'suf-td' }`} style={{ width: tdStyle.width || 1200, height: tdStyle.height || 100 }}>
|
<td style={{width: 0,padding: 0}}>
|
||||||
<div style={{ left: (containerWidth || 1200) / 2 - 23 }} className={`loading-div ${ isPre ? 'pre' : 'suf' }`}>
|
|
||||||
加载中...
|
|
||||||
</div>
|
|
||||||
</td> : <td style={{width: 0,padding: 0}}>
|
</td> : <td style={{width: 0,padding: 0}}>
|
||||||
</td>}
|
</td>}
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue