fix: remove loading

This commit is contained in:
gx 2021-04-09 17:17:42 +08:00
parent 7c9066da5b
commit 87ed08a724
6 changed files with 152 additions and 162 deletions

View File

@ -709,15 +709,8 @@ var TableRow = function (_Component) {
// key={hoverKey}
, ref: this.bindElement
},
cells.length > 0 ? cells : isEmptyTr ? _react2["default"].createElement(
'td',
{ 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 } })
cells.length > 0 ? cells : isEmptyTr ? // loading暂时去掉
_react2["default"].createElement('td', { style: { width: 0, padding: 0 } }) : _react2["default"].createElement('td', { style: { width: 0, padding: 0 } })
);
};

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "2.3.15-beta.19",
"version": "2.3.15-beta.20",
"description": "Table ui component for react",
"keywords": [
"react",

View File

@ -580,11 +580,8 @@ class TableRow extends Component{
// key={hoverKey}
ref={this.bindElement}
>
{cells.length > 0 ? cells : isEmptyTr ?
<td className={`loading-td ${ isPre ? 'pre-td' : 'suf-td' }`} style={{ width: tdStyle.width || 1200, height: tdStyle.height || 100 }}>
<div style={{ left: (containerWidth || 1200) / 2 - 23 }} className={`loading-div ${ isPre ? 'pre' : 'suf' }`}>
加载中...
</div>
{cells.length > 0 ? cells : isEmptyTr ? // loading暂时去掉
<td style={{width: 0,padding: 0}}>
</td> : <td style={{width: 0,padding: 0}}>
</td>}
</tr>